Papers for

llm system developers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Latent communication compresses context for faster large language model queries

LatComm: Reusable Context Compression for Latent Communication between Large Language Models

Abstract: Systems that combine several large language models (LLMs) often use one context for many questions. When the context is passed between models as text, the receiving model processes all of its tokens again for every question. Avoiding this cost requires a context representation that is compact, reusable across questions, and readable by a different LLM. Existing compression and latent communication methods each provide only some of these properties. We introduce LatComm, a Latent Communication interface that provides all three by separating encoding from reading: the context is encoded once without the question, and the receiver selects what to read for each question. A frozen context encoder LLM compresses the context into a fixed-size packet and sends it to a different frozen receiver LLM, which reads the packet through cross-attention, with gates computed from its prompt. On 12 multiple-choice question-answering datasets, LatComm improves average accuracy over single-vector baselines by up to 10.2 points. On QuALITY, it reduces the receiver's input by 57x and answers the questions of an article 3x faster.

Mon 19 OctComputation and LanguageArtificial Intelligence
The gist
When large language models answer many questions using the same background information, they usually have to read all that information every time, which is slow. The authors created LatComm, a new way to squash that background down into a small, reusable package that another model can quickly read for each question. LatComm lets the models share context efficiently without repeating the work, making answering questions faster and more accurate on several tests.
Open → 2610.26840v1

Ensemble gains in large language models depend on candidate comparison methods

Where Do LLM Ensemble Gains Come From? Decomposing Candidate Value, Diversity, and Aggregation

Abstract: LLM ensemble gains are often measured against a single baseline, but the value attributed to additional candidates can change with the comparison used. We study an LLM aggregator under four matched conditions: Direct (no candidates), Single-slot (one candidate in a multi-slot interface), Duplicate (one candidate repeated), and Multi-candidate (separately generated candidates). Under either non-diverse control, overall candidate gain (CIV) splits algebraically into an additional-candidate contrast (DSV) and a candidate-context contrast (CCV); the split, but not CIV, depends on the chosen control. On MultiHopRAG model diversity (k=2), the repetition gap Rep=-8.33 pp [-13.25, -3.75] quantifies the difference between gains measured against Duplicate and Single-slot. On a matched FRAMES stronger-panel extension (n=200, k=3, aggregator output limit 4096), paired Delta Rep=+9.67 pp [+6.00, +13.50]; within panels, Rep changes sign (original -6.33; stronger +3.33). In FRAMES evidence aggregation, candidate-context contrasts remain strongly negative under both non-diverse controls. Our results show why ensemble evaluations should state the reference control before attributing gains to additional candidates.

Tue 13 OctComputation and LanguageArtificial Intelligence
The gist
When people combine multiple responses from large language models (LLMs) to get better answers, the improvement seen can change based on how the comparisons are made. The authors studied different setups where candidates (model outputs) are repeated, singular, or multiple. They found that the way improvements are split depends on the baseline comparison, revealing hidden influences when measuring ensemble benefits. This means future evaluations should clearly state what the baseline is before claiming improvements come from more candidates.
Open → 2610.18786v1

Large language model token prediction follows a predictable error pattern

Autoregressive Decoding as a Martingale: Characterizing the Stochastic Dynamics of LLM Generation

Abstract: Large language models (LLMs) have achieved remarkable success across a wide range of language tasks. At their core, autoregressive LLMs are conditional probability models that learn to approximate the next-token distribution given the preceding context. Despite this probabilistic nature, the stochastic dynamics of autoregressive decoding have rarely been investigated from a rigorous probabilistic perspective. In this work, we define the per-step prediction error as the difference between the sampled token indicator and the model's conditional predictive distribution, and prove that the cumulative error process is a martingale with respect to the decoding filtration, implying that its conditional first-order moment is identically zero. Beyond this first-order property, we derive a closed-form expression for the second-order behavior of the martingale sequence: its predictable quadratic variation reduces to $\sum_t\left(1-p(y_t\mid y_{<t})\right)$, computable from realized token probabilities alone. This identity establishes a direct theoretical connection between sequence fluctuations and predictive uncertainty during autoregressive decoding. White-box experiments on Llama-3.x and Qwen2.5 families (1B to 72B parameters) verify that the empirically measured second-order moments closely match the theoretical predictions derived from our martingale analysis. These results provide a probabilistic framework for analyzing autoregressive LLM decoding, reveal intrinsic probabilistic fingerprints of different language models, and establish a rigorous mathematical foundation for LLM-generated text detection and uncertainty quantification.

Mon 12 OctMachine LearningArtificial Intelligence
The gist
Predicting the next word in a sentence with large language models (LLMs) involves some randomness, but this paper shows that the errors over time follow a special balanced pattern called a martingale. The authors provide a way to measure how much the sequence of predicted tokens fluctuates based on the model's own uncertainty. They tested their math on several popular LLMs and found the predictions matched real data closely. This helps us understand the “randomness” in text generation and could improve detecting AI-generated text or estimating uncertainty.
Open → 2610.16041v1

Multi-turn large model routing improves success with better training targets

Handoff Curves: Initial Selection, Later Handoff, and Supervision Targets in Multi-turn LLM Routing

Abstract: We study how initial model selection, later handoff, and training targets affect success and cost in LLM tasks that span multiple turns. We compare several router architectures using handoff curves, which record task success and cost as the handoff step changes. Our dataset contains 34,204 complete executions of three Qwen models across BFCL, MultiWOZ, and $τ$-retail, providing offline supervision for routing decisions. In our primary comparison, with Qwen3.5 35B-A3B as the starting model, allowing a later handoff does not establish an improvement in utility over initial selection on BFCL or MultiWOZ, and increases cost on BFCL across a range of cost weights. Changing the supervision targets improves router performance on both our dataset and TwinRouterBench. On our dataset, replacing noisy training success curves with monotone fits raises success by 0.2 to 4.1 percentage points at the same cost across the reported operating points. On TwinRouterBench, we construct targets that describe the model capability needed for the remaining work and difficult steps ahead. Compared with training on the benchmark's per-step labels, these targets raise trajectory pass scores by 7.8 percentage points and cost savings by 6.3 percentage points on the full static bank. A live deployment of the router trained with these targets resolves 79 of 100 instances at a router cost of 0.59 US dollars per instance.

Sun 11 OctArtificial Intelligence
The gist
Handling tasks that need multiple steps using different large language models (LLMs) can be costly and tricky. This paper studies when to switch between models during a task and how to train the system that decides the switch. The authors find that allowing a later switch doesn't always help and can increase costs. They show that training with improved, clearer targets helps the system pick better moments to switch models, improving success and saving costs. They tested their approach on several datasets and in a live system handling user queries.
Open → 2610.15993v1

VETTA improves multi-turn LLM agent success by coordinating credit assignment

VETTA: Coordinating Turn- and Token-Level Credit Assignment for Multi-Turn LLM Agents

Abstract: Multi-turn LLM agents often receive sparse task feedback across several interactions, while generating each response token by token. This creates two related credit-assignment questions: which responses helped achieve the outcome, and which generation decisions mattered within each response? Existing methods typically focus on only one level: turn-level methods evaluate complete responses but do not distinguish the decisions within them; token-level methods can propagate feedback across turns but do not explicitly model credit for each response. These complementary limitations motivate learning credit at both levels and coordinating it in a single policy update. We introduce VETTA, a credit assignment method that jointly learns turn- and token-level values through separate heads on a shared lightweight critic. VETTA computes advantages along both temporal sequences and combines each turn advantage with a within-response-centered token residual for PPO updates. Furthermore, to reduce value-learning cost, the critic retains only early Transformer blocks from the pretrained checkpoint used to initialize the actor. On two challenging agent benchmarks, ALFWorld and WebShop, VETTA improves success rates over PPO by 37.5% and 22.3%, respectively, with Qwen2.5-1.5B-Instruct and achieves success rates of 95.5% and 76.0%, respectively, with Qwen2.5-7B-Instruct. Critic-depth comparisons further show strong task performance with substantially lower critic-side computation. These results suggest that a compact shared critic can coordinate turn- and token-level credit to improve agent performance while keeping value estimation efficient. Code is available at https://github.com/Jiaju-Chen/VETTA-official.

Tue 6 OctMachine Learning
The gist
Multi-turn language agent systems often get sparse feedback after many exchanges, making it hard to know which part of their responses helped with success. The authors introduce VETTA, a method that figures out credit both at the level of whole responses and individual words generated, combining these to improve learning updates. They use a smaller critic model shared across tasks to keep computations efficient. Testing on two difficult benchmarks shows VETTA significantly improves agent task success while reducing computational cost.
Open → 2610.08402v1

Memory canonicalization improves emotional consistency across language models

Memory Canonicalization: A Framework and Benchmark for Cross-Model Drift in Persistent LLM Memory

Abstract: Persistent memory for Large Language Models (LLMs) has matured rapidly: systems such as MemGPT/Letta, Mem0, and Zep now provide agents with tiered, temporally-aware, model-agnostic external storage, while the Model Context Protocol (MCP) standardizes access to memory servers. A less addressed problem is that an identical stored memory object, retrieved by two different LLMs under otherwise identical conditions, may not be interpreted the same way, factually or emotionally. This paper proposes memory canonicalization: a write-time pipeline that detects ambiguity, conditional structure, and emotional loading in a raw memory object and rewrites it into an explicit, structurally disambiguated canonical form, with emotional valence represented as a separate field rather than inferred from tone. We formalize the pipeline, define a companion Cross-Model Semantic Drift / Emotional Consistency Score benchmark (CMSC-E), and report results from a three-arm pilot using 176 synthetic memory objects and three downstream model families. We find an uncorrected improvement in cross-model emotional consistency for fully canonicalized memory relative to raw memory (+0.050, 95% bootstrap CI [0.013, 0.086], paired t-test p = 0.010), but this result does not survive Bonferroni, Holm, or Benjamini-Hochberg correction across the six comparisons tested. None of the factual-drift (CMSD) comparisons reach significance at any correction level. We report these results as exploratory rather than confirmatory and outline needed follow-up work, including larger samples, independent judge models, human-validated rendering, and preregistration.

Sun 4 OctArtificial Intelligence
The gist
Different large language models (LLMs) can interpret the same stored memory differently, especially in emotional tone or factual meaning. The authors suggest a way to rewrite these memories into a clear, standardized form that separates emotion explicitly. They tested this method using multiple models and found it can improve emotional consistency, though results were not strong enough to be definitive. Their work provides a foundation for improving shared memory use across different AI models in the future.
Open → 2610.05124v1

Proxy model improves error detection in black-box LLM agents

Proxy Confidence: Auditing Black-Box LLM Agents with a Surrogate's Log-Probabilities

Abstract: A deployed LLM agent emits tool calls, queries, and code that can be silently wrong -- by the time the error surfaces, the action has run. Frontier chat APIs hide the model's token probabilities; the agent's stated confidence barely beats chance on the mistakes that matter; and resampling does not help, since frontier models are highly repetitive, reproducing the same call across samples. We recover the missing signal from a low-cost open-weight surrogate run in parallel. It reads the same context, schema, and proposed action as the agent, then scores the call from its own log-probabilities through a family of complementary readouts: teacher forcing and request-PMI weigh the likelihood of each argument value, a discriminative verdict judges the call as a whole, and tool-choice competition tests the function against its siblings. One principle says which to trust: a generative likelihood localizes wrong argument values, while the verdict catches holistically wrong calls. When the error type is unknown, an ensemble is the low-regret default. The readout is training-free, needs no access to the agent's internals, and costs one prefill pass alongside the tool call. On difficult coding tasks it reaches AUROC 0.825 where the actor's stated confidence is near chance (0.598), and the generative readouts beat it by +0.07 to +0.28 across three further actors. Against self-consistency it gains +0.14 to +0.19 on near-deterministic actors, at 1/K the cost. The signal drives two deployment modes: a real-time gate escalating the least-trustworthy calls for review (+0.05 to +0.30 accepted-action accuracy at 50% coverage), and confidence feedback, returning the tool result with the score so the agent adapts its next step -- lifting task success on live-execution benchmarks (+0.119 and +0.137, p <= 1e-4) and beating a random-value control where step errors are silent (+0.078, p = 0.003).

Fri 2 OctArtificial IntelligenceComputation and LanguageMachine Learning
The gist
Large language model (LLM) agents sometimes make mistakes when calling tools or running code, but these errors are hard to detect because models don’t reveal their confidence well. The authors introduce a method that uses a separate, low-cost open-source model alongside the main agent to judge how likely the agent’s actions are. This surrogate’s scores help identify wrong answers more accurately than the agent’s own confidence or other sampling techniques. Their approach improves error detection and helps guide safer or more successful use of LLM tools without needing access to the main model’s inner workings.
Open → 2610.03894v1

Llm agent orchestration vulnerable to identity spoofing risks

Trust the Brand, Lose Control: How Identity Hijacks LLM Agent Orchestration

Abstract: LLM agents now execute tasks end to end with permission to change real systems and increasingly orchestrate subagents that differ in capability and cost. Prior work treats the choice of subagent as an optimization problem. Yet the orchestrator makes this choice from the identities that subagents display, and an attacker can spoof them. Displayed identity thus decides operational authority, meaning who is trusted to check the work and who is allowed to change it. As a result, a risky subagent can keep authority over execution even after other evidence contradicts it. We introduce TrustFork, an LLM agent safety benchmark with 1,890 tasks and 27,826 valid trajectories across 16 agent systems. These systems run eight orchestrators under the OpenCode, OpenClaw, and Pi harnesses. In each task, one subagent carries a risky goal while the other three stay aligned with the user, so contradicting evidence can exist. A task can also change the identity a subagent displays without changing the model behind it, which lets us trace a shift in authority to the label. Our analysis shows that even when another subagent contradicts the risky response, the orchestrator still acts on it in 72.0% of cases on average, most often in the systems with the least terminal harm. Swapping the family labels nearly triples how often the orchestrator obtains the risky response. A safer response is available in 84.0% of tasks, yet it decides the outcome in only 25.0%. The harness also decides which responses reach the orchestrator. Among three runtime defenses, hiding identity cues helps most consistently, while verifying before action helps only when the harness returns enough evidence. TrustFork shows that production agent orchestration must bind authority to evidence before execution causes harm. Our project is in https://henrymao2004.github.io/agent-orchestration-safety/.

Sat 26 SeptCryptography and SecurityArtificial Intelligence
The gist
LLM agents use smaller subagents to complete tasks, trusting them based on their presented identity. The authors found that attackers can fake these identities, causing unsafe subagents to keep control even when contradicted by reliable ones. They created a benchmark called TrustFork to study this problem, showing orchestrators often trust risky subagents despite better options. Their work highlights the need to link trust to actual evidence rather than just identity labels to avoid harm.
Open → 2609.32635v1

Moscopt improves llm agents by mixing and choosing skills dynamically

MOSCOPT: Mixture-of-Skills Collective Optimization for LLM Agents

Abstract: Natural language prompts and skills serve as the strategic backbone of LLM-based agents. Recent advances in prompt and skill optimization have achieved notable gains, yet all existing methods optimize a \emph{single} text template---missing the synergy among multiple complementary strategies. We propose MOSCOPT, a text-native, parameter-free algorithm that jointly optimizes a pool of $N$ skills and a gating skill $G$ that dynamically selects $K$ skills per step. To effectively optimize the skills, we build the EditAdam with internally maintained dual states. Through the three-phase interleaved updates with EditAdam, the system monotonically improves without gradient or parameter tuning. Extensive experiments and detailed ablations across 5 benchmarks and 3 target LLMs demonstrate that MOSCOPT consistently outperforms all baselines, and confirm that both the mixture-of-skills architecture with selective activation and the collective evolution with three-phase interleaving are essential to its superior performance. Code is released https://github.com/zhangzhenyu13/SummerClaw/tree/master/summerclaw/agent_trainer/algorithms/moscopt.

Sun 13 SeptArtificial IntelligenceComputation and Language
The gist
LLM agents use language prompts called skills to perform tasks, but existing approaches optimize only one skill at a time, missing benefits from combining multiple strategies. The authors propose MOSCOPT, a method that optimizes a group of skills together and learns when to activate which skills dynamically. They introduce a new optimization technique called EditAdam to improve these skills without needing parameter tuning. Experiments show MOSCOPT performs better than previous methods by using a mix of skills and updating them collectively in an organized way.
Open → 2609.14399v1

Synthetic data can cause forgetting in large skill retrieval systems

When Synthetic Data Hurts: On Catastrophic Forgetting in Skill Retrieval for LLM Agents

Abstract: LLM agents increasingly rely on external skills retrieved at runtime, making skill selection from large repositories a critical challenge. We present a production skill router over 34,396 skills and a large-scale study of skill retrieval using limited real supervision and synthetic data. We found that the synthetic-data fine-tuning improves in-distribution retrieval but it causes catastrophic forgetting on real and out-of-distribution (OOD) data. We evaluate several forgetting mitigation fine-tuning approaches inspired by continual learning, including embedding-anchor regularization, Learning without Forgetting (LwF), Elastic Weight Consolidation (EWC), and L2-initialization. The results show that these approaches not only retain the performance on OOD skills retrieval but also improve the retrieval on synthetic in-distribution skills by 13.98\% for 0.6B Qwen retriever and reranker. Our results provide a practical benchmark and a robust fine-tuning recipe for scarce, multi-positive supervision.

Wed 9 SeptInformation RetrievalArtificial IntelligenceMachine Learning
The gist
Selecting the right skills from a huge list is important for AI helpers that use language models. The authors show that training with made-up (synthetic) data helps the AI pick good skills it has seen before but makes it forget how to pick real or new skills. They tested several methods meant to stop this forgetting and found some improved performance across both familiar and new skill choices. This work gives a tested way to train these AI helpers better when there isn’t much real data available.
Open → 2609.10750v1

Self evolving skill graphs improve large language model task retrieval

SE-GoS: Self-Evolving Graph-of-Skills for Skill Library at Scale

Abstract: Modern LLM agents increasingly rely on reusable skills, yet as skill libraries scale to thousands of entries, effective retrieval becomes a bottleneck. Graph-of-Skills (GoS) addresses this challenge by exploiting dependency-aware graph structure for scalable skill retrieval, while SkillDAG further demonstrates that skill graphs can accumulate execution-backed structure online. However, these approaches leave open whether historical execution traces can be systematically distilled into a better retrieval graph that generalizes to unseen tasks. We present Self-Evolving Graph-of-Skills (SE-GoS), a training-free framework that evolves an existing GoS graph from execution traces while preserving the original retrieval pipeline. SE-GoS performs three complementary updates: topology evolution that discovers and prunes skill relationships from execution evidence, edge-weight evolution that reinforces retrieval-relevant relationships based on historical effectiveness, and description evolution that optimizes retrieval-facing skill descriptions using execution feedback. Across three LLMs on SkillsBench, SE-GoS consistently improves task reward while reducing input tokens relative to full skill loading, with gains varying across model families. In a representative setting, one evolution round improves reward from 52.4\% to 59.4\% while reducing input tokens by approximately one-third relative to full skill loading, and the resulting graph transfers to a disjoint held-out split with a 5.4-point improvement over the static GoS baseline. These results show that skill graphs can be improved from execution experience without model training, changes to the retrieval algorithm, or modifications to skill content, turning a static retrieval graph into an evolving retrieval infrastructure.

Tue 8 SeptArtificial IntelligenceComputation and Language
The gist
Large language models (LLMs) use many small specialized abilities called skills to complete tasks. When there are thousands of these skills, finding the right ones quickly becomes hard. The authors propose SE-GoS, a method that improves how these skills are organized by learning from past tasks without retraining the model. This makes the skill search smarter and faster, improving performance and reducing the amount of information needed to pick skills. Their method works across different LLMs and even helps for tasks the system hasn’t seen before.
Open → 2609.08228v1