Papers for

software developers building ai assistants

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.

Nash-MOPD improves multi-domain training with adaptive task scheduling

Nash-MOPD: Optimizing Task Trade-offs in Multi-Teacher On-Policy Distillation

Abstract: Multi-teacher on-policy distillation (MOPD) aggregates the capabilities of multiple domain-expert teachers into a single student model. However, all domains in MOPD share the student's finite budget of optimization steps and rollouts. Fixed uses constant domain sampling ratios based on corpus sizes; by contrast, D$^3$-MOPD adjusts the ratios using the teacher-student reverse-KL divergence and its recent decrease. However, favoring large recent decreases can direct more training toward domains that already improve quickly, while domains that improve more slowly may receive too few examples. To address inflexible allocation and the risk of giving insufficient training to domains that improve more slowly, we propose Nash-MOPD, an adaptive domain scheduler based on a local minimax game using existing reverse-KL statistics. The equilibrium maximizes the smallest predicted proportional reduction under the local model and gives more prompts to domains that need more examples for comparable improvement. Consequently, Nash-MOPD responds to changing learning progress and supports domains that improve more slowly without extra teacher queries or rollouts. At step 100, Nash-MOPD exceeds both baselines' final mathematics and code checkpoint scores on DeepSeek-R1-Distill-Qwen-1.5B and reaches Fixed's on Qwen3-8B-Base. Furthermore, it leads eight of nine reported metrics and is best or tied best on all six mathematics and code accuracy metrics, respectively.

Mon 19 OctMachine LearningArtificial Intelligence
The gist
Training one AI to learn from many expert teachers can be tricky because the AI has limited time and resources to practice each subject. Previous methods either split training time evenly or focus on subjects that show quick improvement, which can leave harder subjects behind. The authors created Nash-MOPD, a smarter way to decide which subject to train on next, balancing attention so slower topics get enough practice. Their approach leads to better overall learning without needing extra teacher data.
Open → 2610.26124v1

KV-Surgeon improves offline key-value cache compaction accuracy and speed

The KV-Surgeon: Compensation-Aware Offline KV-Cache Compaction

Abstract: Offline compaction of the key--value cache (KV-cache) reduces the cost of repeatedly querying a fixed context by constructing a smaller cache once and reusing it subsequently. The central challenge of compaction is deciding which cache entries to delete and which to retain. Existing methods score each candidate for deletion on its own, with the rest of the cache being held fixed. However, softmax renormalization of the attention operation couples these decisions in a nonlinear manner: removing one entry changes the attention weights of every remaining one. In this work, we introduce KV-Surgeon, which uses calibration data to take interactions into account in a tractable way. We derive a quadratic surrogate that admits closed-form expressions for jointly making the optimal greedy removal decision as well as compensation within the remaining entries. On QuALITY, LongHealth, and Long Code Arena, and at every evaluated compaction ratio, KV-Surgeon substantially advances the cost--accuracy Pareto frontier of dense and mixture-of-experts models from 4B to 30B parameters. At $50\times$ compaction, KV-Surgeon improves question-answering accuracy by up to four points over attention matching (Zweiger et al., 2026), the state of the art, at comparable cost. Lastly, we introduce an even faster variant, which also exceeds the state of the art while requiring only two fifths of its cost.

Mon 19 OctMachine LearningArtificial Intelligence
The gist
When computers use key-value caches to remember information, they sometimes need to shrink these caches to save space or speed. The difficulty is picking which parts to keep or remove because removing one part affects how the rest works. The paper's authors created KV-Surgeon, a method that looks at how the parts interact and chooses the best ones to keep, making the cache smaller without losing as much accuracy. Their tests show KV-Surgeon works better and faster than previous methods on several tasks.
Open → 2610.25933v1

Large language models improved by using explicit logical structure

When Form Changes but Logic Doesn't: Building Logic-invariant LLMs through Logical Structure

Abstract: Large language models (LLMs) have achieved strong performance across diverse reasoning tasks, yet it remains unclear whether this performance reflects an understanding of underlying logical structure or a reliance on shallow semantic cues. A key indicator of such understanding is whether models treat logically equivalent inputs consistently, producing the same predictions despite differences in expression. Through systematic evaluation on curated data, we show that even strong LLMs often fail this test: they do not consistently preserve predictions across logically equivalent inputs and generalize poorly to unseen logical forms. To address this limitation, we propose LoGIcal STructure-guided reasoning (LoGIST), a framework that guides LLM reasoning with explicit logical structure. LoGIST maps each input instance to a decision diagram, a directed acyclic graph that captures the underlying logical structure, and encodes this graph into a logical embedding that conditions the LLM's reasoning process. Across multiple training settings, LoGIST reduces inconsistency under logical equivalence and improves generalization to unseen logical forms, suggesting that logical invariance is a useful target for building more robust and generalizable logical reasoning in LLMs.

Sun 18 OctArtificial Intelligence
The gist
Large language models can perform reasoning tasks but often struggle to give consistent answers to questions that are logically the same but worded differently. The authors show that current models do not always recognize such logical equivalences and fail to generalize to new logical forms. They created a method called LoGIST that helps models understand the underlying logic by turning inputs into structured diagrams and using those to guide the models' reasoning. This approach makes models more consistent and better at handling new logical expressions.
Open → 2610.25402v1

Efficient reinforcement learning improves language model reasoning accuracy

ForkGRPO: Efficient Exploration and Fine-Grained Credit Assignment for Diffusion Language Models

Abstract: Diffusion large language models (dLLMs) have advanced rapidly, yet strengthening their reasoning through reinforcement learning (RL) remains an open challenge. Any-order generation can suffer from entropy degradation, which narrows the reasoning paths available for exploration. Recent work mitigates this issue by applying standard GRPO with left-to-right generation. However, independently generating every rollout from the input prompt can leave alternative continuations from intermediate states underexplored, while trajectory-level advantages assign uniform credit to all tokens without distinguishing the contributions of individual reasoning segments. We propose ForkGRPO, an RL framework that couples efficient exploration with fine-grained segment-level credit assignment. It samples multiple continuations from high-entropy intermediate states along a reference trajectory, prioritizing textual boundaries and reusing shared prefixes. The continuations provide complementary learning signals: within-state group-relative advantages guide which continuations to reinforce, while Monte Carlo state-value differences indicate which reasoning segments improve expected outcomes. Among the evaluated architecture-preserving RL methods, ForkGRPO achieves the best performance on three of four benchmarks, while improving over the directly comparable JustGRPO by up to 1.2 percentage points and using up to 27.8% fewer generated tokens. ForkGRPO-Fast further achieves a $2.49\times$ training wall-clock speedup with negligible accuracy loss.

Wed 14 OctComputation and Language
The gist
Language models that generate text can sometimes struggle to explore different ways of answering questions, which hurts how well they reason. The paper introduces ForkGRPO, a new method that helps the model try multiple possible answer paths from key points and better figures out which parts are most important to improve. This approach uses fewer model runs and boosts performance on several tests compared to earlier methods. It can also train much faster without losing accuracy, making smarter text generation more efficient.
Open → 2610.19408v1

Agent safety risks rise in shared workspaces using command tools

APEX-Harm: Evaluating Agent Safety in Shared Professional Workspaces

Abstract: Professional agents increasingly work through command-line interfaces and multiple tools over shared workspaces containing files, messages, and business applications. These environments create safety risks that are difficult to capture with attacks placed at a single, known read location. We introduce APEX-Harm, a benchmark for evaluating prompt and script injection against long-horizon agents performing finance, consulting, and legal tasks in large workspaces. Each task contains 115 to 328 files, together with email, calendar, chat, document, spreadsheet, PDF, and code-execution tools exposed through MCP servers. The benchmark includes six attack categories covering static and dynamic injections, task-specific script replacement, and attacker-provided generic scripts, and evaluates attack success, exposure, and task performance. We evaluate 12 frontier models on 180 task instances per model. Opus 5 and Sonnet 5 have the lowest overall attack success rates (8% and 20%), while task-specific script replacement and attacker-provided generic script attacks remain substantially more effective, averaging 81-84% and 73% attack success, respectively. Gemini 3.8 Flash achieves the highest mean task score (0.877) while still exhibiting a 33% attack success rate. These results show that completing the requested task is not sufficient evidence of safe behavior: an agent can produce a correct deliverable while also performing an unauthorized action in the workspace.

Fri 9 OctCryptography and SecurityComputation and Language
The gist
Working with shared computer spaces and tools can be unsafe because hidden attacks might trick software agents without being obvious. The authors created APEX-Harm, a test to see how well different agents handle tricky commands and scripts in big work projects like finance and law. They found some agents are better at resisting attacks, but even good agents can do a task correctly while sneaking in bad actions. This shows just finishing work right does not always mean the agent is safe to trust.
Open → 2610.13623v1

Reinforcement learning improves by teaching students where they are

A Good Self-Teacher Meets the Student Where They Are: Joint On-Policy Learning and Teaching

Abstract: Reinforcement Learning (RL) from outcome rewards suffers from sparse supervision, particularly on difficult, long-horizon tasks where successful trajectories are rare and costly to generate. On-Policy Distillation (OPD) offers an attractive alternative by providing dense token-level supervision from a stronger teacher along the student's own generations. Self-distillation methods further remove the need for a separate teacher model by conditioning the same policy on privileged information to serve as its own teacher. However, privileged conditioning alone does not guarantee that the resulting distillation update improves the student. Indeed, privileged information can lead the teacher to solve tasks through shortcuts unavailable to the student, producing supervision poorly matched to the student's current behavior. Consequently, even a higher-performing teacher can provide guidance that degrades student performance. To address this, we analyze how the choice of privileged teacher affects the student's update. We derive a necessary and sufficient condition for the teacher's local distillation update to be a positive multiple of the student's reward gradient. Our analysis suggests that the teacher should not only perform well on the task, but also provide guidance suited to the student's current capabilities. This characterization motivates a practical teacher-training surrogate that combines outcome rewards with token-level Kullback-Leibler (KL) regularization toward the student. Based on this result, we propose Joint On-Policy Learning and Teaching (JOLT), which jointly trains a single policy in two roles: a privileged teacher using a KL-regularized objective, and an unprivileged student using dense on-policy distillation. Across mathematical reasoning, coding, tool use, and terminal use, JOLT improves training efficiency and performance, with further gains from student rewards.

Wed 7 OctMachine LearningArtificial Intelligence
The gist
Learning from rewards in some tasks is hard because the student only gets feedback when they succeed, which can take a long time. The authors study a way to train a policy by having it teach itself using extra helpful information during training. But if the teacher's advice doesn't match what the student can do, it can confuse rather than help. They figure out how to train the teacher to guide the student effectively based on the student's skills, leading to better learning on several tasks.
Open → 2610.10447v1

DAEDALUS improves agent memory by learning from self-made tasks

DAEDALUS: Bootstrapping Agent Memory from Self-Generated Tasks

Abstract: LLM agents often lack the operational knowledge to act reliably in new environments, as they must discover specific tool behaviors or environment conventions on their own. Without memory of past attempts, they repeat the same mistakes across tasks, leading to more task failures and longer trajectories. To address this, agentic systems typically rely on human-written guidelines or on procedural memory built from training tasks and an oracle verifier, both of which require prior knowledge of the environment. We present DAEDALUS, a method for bootstrapping reusable agent memory from self-generated practice without existing tasks or oracle verifiers. DAEDALUS pairs two agents: an explorer that interacts with the environment to generate challenging yet solvable tasks, and a solver that attempts them. A heuristic is derived from each solver failure and accepted only after the solver repeatedly succeeds with that heuristic in context. These outcomes also provide feedback for the explorer to refine the difficulty of future tasks. Accepted heuristics are then consolidated into a memory bank for test-time use. Across AppWorld, $τ^2$-bench, and AutomationBench, DAEDALUS improves mean success rates by up to 15.9 points and pass^5 by up to 2.2x over a no-memory baseline, and is competitive with methods using training tasks, at a lower inference cost than most. We show that performance gains already emerge with a small exploration budget, and that its heuristics also benefit agents from other model families. Our ablations further reveal that solver traces provide the key information needed to derive effective heuristics, while factorizing early discoveries makes exploration more cost-efficient. Beyond memory construction, we find that the tasks generated by DAEDALUS can serve as a proxy for benchmark tasks when ranking models by performance. Code and artifacts: www.github.com/illuin-tech/daedalus.

Tue 6 OctArtificial IntelligenceComputation and LanguageMachine Learning
The gist
Large language model agents often struggle to act well in new places because they don’t remember what they tried before and keep making the same mistakes. The authors present DAEDALUS, a method where two agents work together: one creates tasks to challenge the other, and from failures, useful strategies or rules are learned. This memory helps the agent do better in future tasks without relying on human instructions or prior knowledge. Their tests show DAEDALUS boosts task success noticeably and works even with limited practice.
Open → 2610.08048v1

SkillFM generates task skills for language model agents without retrieval

SkillFM: Generating Skills for LLM Agents via Latent Flow Matching

Abstract: Textual skills provide reusable guidance for large language model agents, but existing approaches often rely on manually curated skill banks or reinforcement learning with indirect and delayed feedback. We introduce SkillFM (Skill Flow Matching), a generative framework that synthesizes task-conditioned textual skills directly without test-time skill retrieval. Our framework combines a codec for encoding and reconstructing textual skills in a continuous latent space with a conditional flow model trained using improved MeanFlow. At inference time, the learned velocity field enables single-step latent sampling, and an LLM-based decoder converts the sampled representation into textual guidance for a frozen downstream agent. We evaluate the framework on embodied tasks, question answering, and web shopping. On ALFWorld and Search-QA, our method achieves the best overall performance among the compared vector-based skill approaches. Our analyses further demonstrate that latent skill generation is an effective alternative to retrieval-based skill augmentation. Our code and training skill libraries are available at https://github.com/lulushang999/SkillFM.

Wed 30 SeptArtificial Intelligence
The gist
Some computer programs called large language models (LLMs) can do many tasks, but they often need extra instructions or "skills" to guide them. Usually, these skills come from a fixed list or are learned slowly with trial and error. The authors created SkillFM, a new way to generate these skills automatically and quickly by using a special math method to create skill instructions tailored to each task. SkillFM was tested on tasks like navigating virtual worlds and answering questions, performing better than other methods that rely on looking up stored skills.
Open → 2609.39382v1

Multi-turn AI agents learn better with self-practice using instructions

From Self-Distillation to Self-Practice: Privileged Information for Multi-Turn Agents

Abstract: On-policy self-distillation (OPSD) has become a popular recipe for post-training LLM agents. It supervises the agent model at the token level with a stronger teacher view of the same model, obtained by conditioning on privileged information (PI). In this work, we show that in multi-turn agents, this paradigm teaches the student to act with confidence but without the information behind it. The trained agent behaves as if it had privileged information it never observed, and its performance falls well short of plain RL, in the worst case below the untrained base model. Therefore, we propose Privileged Self-Practice (PSP), which keeps the PI and moves it from the loss to the sampler. When the student's rollouts on a task mostly fail, we inject a short per-task instruction written by an analyzer model, sample the task again with the instruction in context, and train on the result with an unchanged GRPO objective. The privileged information stays in the prompt and never enters the loss. Across AppWorld and SWE-bench Verified, with three different student models, PSP obtains the best average score in every setting and is the only method that consistently outperforms plain GRPO, improving task-goal completion by up to 65% on AppWorld and the resolved rate by up to 61% on SWE-bench Verified.

Thu 24 SeptArtificial Intelligence
The gist
When teaching AI agents to perform tasks over multiple steps, simply copying from a more informed version of the same agent can make them act confidently but without truly understanding why. The researchers found this approach leads to worse performance than standard training. Instead, they suggest a method called Privileged Self-Practice where extra helpful instructions are given during practice but not used directly to teach the AI. This approach improves how well the agents complete tasks by a large margin across different tests and models.
Open → 2609.29051v1

Language models learn complex reasoning better when trained on whole tasks

Compositional Reasoning in Language Models under Reinforcement Learning Post-Training

Abstract: Compositional reasoning is critical for real-world problem solving: since training data is necessarily limited, models must generalize by composing learned skills in new ways. While post-training methods such as reinforcement learning (RL) have substantially improved the reasoning abilities of language models (LMs), their effects on compositional reasoning remain less well understood. We propose a dependency-graph framework to formalize compositional reasoning, yielding three levels of compositionality with increasing complexity. Empirically, we instantiate this framework with data-structure tasks, which provide deterministic reward computation and clear compositional structure. We find a consistent decomposed-to-composed asymmetry: decomposed-skill training does not reliably transfer to composed tasks, whereas composed-task training transfers more readily back to decomposed tasks. We provide theoretical explanation for this asymmetry, and further evaluate compositional generalization under length extrapolation, structural distribution shift, and transfer to tasks requiring unseen skills. Finally, we present a pilot study on real-world tool-calling benchmarks, showing preliminary evidence that the decomposed-to-composed asymmetry can extend to practical settings.

Wed 16 SeptArtificial IntelligenceMachine Learning
The gist
Solving big problems often means breaking them into smaller skills and then combining those skills. This paper looks at how language models improve their problem-solving after extra training with rewards, especially for combining skills. The authors found it’s easier for the models to learn big combined tasks first and then do smaller parts, rather than the other way around. They explain why this happens and check if it holds true in different tricky settings and even some real-world examples.
Open → 2609.19465v1

Repair stale key value caches faster using local contiguous edits

Contiguity, Not Importance: Budgeted Repair of Stale KV Caches After Document Edits

Abstract: KV-cache reuse can reduce inference cost in retrieval-augmented generation and agentic systems, but cached contexts may become stale when retrieved knowledge, working memory, or user state is edited. Under causal self-attention, even a local edit can affect downstream KV states. A full re-prefill reliably restores consistency but is costly, whereas refreshing only the edited span can leave downstream dependencies stale. We formulate in-place repair as budgeted recomputation and compare training-free position-selection policies on a factual RAG benchmark with matched direct and derived edits. Across three model families, all policies repair direct cases, but derived cases clearly separate them. At the primary budget, a contiguous edit-local window recovers at least 0.94 of the post-edit answer margin and substantially outperforms attention-based, KV-deviation, and structural selectors. Mechanistic analysis shows that position sets effective under clean-state transplantation can fail under actual recomputation because scattered positions inherit surrounding staleness. The edit-local advantage also depends on adjacency and largely disappears when the answer-bearing text moves downstream. Because answer-relevant edits almost always corrupt model behavior, failure severity is difficult to predict, and repair is 13-21 times faster than full re-prefill, our results support unconditional edit-local repair when the dependent text remains adjacent to the edit.

Wed 16 SeptArtificial Intelligence
The gist
When computers use memory caches to speed up understanding or generating text, small changes in documents can cause parts of the cache to become outdated, leading to errors. The authors show that updating only the part of the cache closest to the change, rather than redoing the whole cache, keeps most answers accurate and is much faster. They found that spreading out updates to scattered parts of the cache is less effective because those parts can still be affected by stale information nearby. This approach works best when the important text stays next to the edited section.
Open → 2609.17983v1

ReDraft improves large multimodal models by fixing their own errors

ReDraft, Don't Just Distill: Reference-Driven Revision for Continual VLLM Post-Training

Abstract: Continual post-training of large multimodal models should add new capabilities while preserving those from pre-training, and the two goals pull in opposite directions. SFT gives explicit target supervision that learns a task from near-zero accuracy, but its off-policy targets move the model far enough to cause forgetting; on-policy methods such as RLVR and self-distillation preserve policy proximity yet supply little signal when the policy cannot yet solve the task. We introduce ReDraft (Reference-Driven Revision and Fine-Tuning), which obtains both from the model's own failures: using an expert response only as a reference, it has the model revise its own incorrect rollout, keeps the revision only if a verifier accepts it, and fine-tunes on what survives. Each retained target is therefore explicit, yet still close to the current policy. Across Counting, Clock Reading, and Jigsaw on Qwen2.5-VL-3B/7B, two of them with near zero accuracy, ReDraft gains 56.9 points on the target task against SFT's 52.9 while cutting prior-task loss from 16.6 to 1.5 points (11.3x less forgetting), and improves on OPSD along both axes (19.3 gain, 6.2 loss). Data- and parameter-space analyses match the design: revised targets are more probable under the base model, and the updates they induce stay compact and follow SFT's direction more closely than OPSD's. Repairing the model's own output, rather than replacing it with an expert's, is what lets one objective do both.

Tue 15 SeptArtificial Intelligence
The gist
Large multimodal models, which understand images and text together, need to learn new tasks without forgetting old ones. The authors show that instead of just teaching the model with correct answers, having the model fix its own mistakes produces better learning. Their method, called ReDraft, helps the model keep old skills while gaining new ones by revising its failed attempts and only learning from successful corrections. This approach improved accuracy on challenging tasks while strongly reducing forgetting of previous skills.
Open → 2609.16639v1

Efficient training method improves large language model agent harnesses

Ecdysis: Efficient and Effective Training of Runtime Harnesses for LLM Agents

Abstract: Self-evolving runtime harnesses can substantially improve the capabilities of large language model (LLM) agents and provide a promising paradigm for optimizing agent execution. Existing harness evolution methods typically rely on iterative search, repeatedly evaluating and revising candidate harnesses based on execution feedback from task instances. While this paradigm enables continuous harness optimization, it incurs substantial time overhead due to repeated agent executions and code modifications, and may overfit to observed tasks and specific failure patterns, resulting in degraded generalization to unseen tasks. We identify the lack of principled failure diagnosis as a key bottleneck in harness evolution: an observed failure can reflect either model-specific deficiencies or systematic harness deficiencies, and directly optimizing against individual failures can lead to unnecessary model-specific accommodation. We therefore propose Ecdysis, an efficient and effective framework that distinguishes model-specific accommodation from harness-level repair and biases adaptation toward systematic harness deficiencies by identifying recurring cross-task failure patterns. Ecdysis adopts a batch-level cross-instance failure aggregation paradigm to jointly analyze failure evidence from multiple task instances and further introduces Failure-Driven Collaborative Refinement to diagnose failure causes and iteratively refine harness modification specifications. By combining cross-instance failure analysis with multi-role diagnosis, Ecdysis enables more effective harness evolution with lower training time. Experiments show that Ecdysis achieves up to a 1.84x speedup in harness training compared with existing harness evolution methods, while improving the reasoning accuracy of the resulting harnesses by 18.56%.

Thu 10 SeptSoftware EngineeringArtificial Intelligence
The gist
Training the control systems, or harnesses, that manage large language model agents can be slow and sometimes leads to systems that work well only on tested tasks but not new ones. The authors identify that this happens because these training methods often don't clearly understand the causes of failures. They propose a new way called Ecdysis that looks at failures across many tasks together to better pinpoint common problems and avoid unnecessary fixes tied to specific model quirks. This method makes training faster and results in harnesses that reason more accurately across different tasks.
Open → 2609.11677v1

Evaluation and repair improve language model planning problem generation

Grounded Evaluation and Repair for NL-to-PDDL Problem Generation

Abstract: Large Language Models (LLMs) have shown promise for translating Natural Language (NL) planning descriptions into PDDL problem instances. However, standard evaluation criteria such as syntactic validity or planner success can substantially overestimate faithfulness to the described task: a generated problem may be parseable and solvable while misrepresenting the intended initial state, goal, object structure, or optimization target. This paper studies an end-to-end NL-to-PDDL pipeline that combines LLM generation, checks in terms of PDDL parsing, planning and validation, a domain-conformance checker, an LLM critic, and iterative repair. Fine-grained repair feedback is constructed from the domain description, the generated problem, the natural language problem description, and operational diagnostics. Reference-based comparisons against curated benchmark PDDL problem descriptions are used for post-hoc benchmark analysis, and these offline checks include renaming-invariant structural matching and semantic equivalence, where domain support is available. Across Planetarium, AutoPlanBench, and curated PDDL~2.1 problems, results show that operational success and benchmark-reference reconstruction can diverge substantially. Results also show that structured repair can be useful, and that PDDL~2.1 remains challenging for reference reconstruction, even when operational success improves.

Wed 9 SeptArtificial Intelligence
The gist
Translating description text into formal planning problems is tricky because tools often only check if the problem is syntactically correct or solvable, missing if it truly matches the original description. The authors explored a process that uses large language models to generate problems, then checks and repairs them using several steps, including parsing, planning, domain rules, and feedback loops. Their findings show that a problem can be solvable but still not faithful to the described task, and guiding repairs improves accuracy though challenges remain. They also showed that fully matching known problem sets is still hard even with better success rates.
Open → 2609.09898v1

Benchmark labels stepwise tool call attacks on language model agents

AgentDrift: A Step-Labeled Benchmark of Injection-Hijacked LLM Agent Trajectories

Abstract: LLM agents complete tasks by issuing sequences of tool calls, and every observation they read is a channel through which an indirect prompt injection can enter. A successful injection has a characteristic shape when the trajectory is read in order: a benign prefix gives way to actions that serve the attacker rather than the user. Existing benchmarks measure whether such attacks succeed against live agents, and existing guard models judge a trace as a whole; no public corpus labels, step by step, where an injection enters a trajectory and which steps it corrupts. We present AgentDrift, a benchmark of 12,536 synthetic tool-call trajectories over five agent domains in which every one of the 71,024 steps carries one of four labels: benign, injection point, hijacked, or failed injection. The corpus contains 4,000 benign, 5,536 attacked, 1,500 failed-attack, and 1,500 hard-negative trajectories; attacked trajectories follow three compliance patterns whose label strings obey a stated regular grammar. Failed attacks carry an injection the agent resisted, and hard negatives carry legitimate content that resembles an attack, so a detector must separate attempt from success and deviation from novelty. Trajectories were generated by a single open model under category-specific protocols, enforced by a closed-vocabulary structural validator, screened by an LLM judge, and audited by hand on 1,200 trajectories; we show that the LLM judge was itself fooled by the hard negatives. A surface-feature logistic regression recovers only 55.4% of attacks (F1 0.647), including only 8.2% of partial hijacks and 23.1% of delayed executions, so nearly half of the attacks require modeling the behavioral sequence. We measure template concentration, attack-goal-family collapse, and world-identity leakage in the generated data, and release the corpus with its documentation under CC BY 4.0.

Mon 7 SeptCryptography and SecurityArtificial IntelligenceMachine Learning
The gist
Language model agents use tools to complete tasks, but bad actors can sneak in harmful instructions partway through their actions. The authors created AgentDrift, a large collection of example sequences where these attacks happen at specific steps, with clear labels showing when the attack starts and affects the agent. This lets developers better study and detect these sneaky attacks which are hard to spot by looking only at the whole activity. The dataset includes normal actions, successful attacks, failed attacks, and tricky cases that look like attacks but aren't.
Open → 2609.06972v1