DeLoop: Repeated Actions as Self-Supervision for Long-Horizon Agents
cs.AI
Submitted: 2026-10-14
Updated: 2026-10-14
License: http://creativecommons.org/licenses/by/4.0/
The gist: Language-model agents that run long tasks often redo work they have already done: they re-issue a tool call they made earlier and get back exactly the same observation, a step that adds no new
Abstract
Language-model agents that run long tasks often redo work they have already done: they re-issue a tool call they made earlier and get back exactly the same observation, a step that adds no new information. We identify this failure as a loop. Loops appear natively in Qwen, Llama, and Gemini agents and become far more common once the agent's history is compressed to fit its context window. To reduce these loops, we propose DeLoop, a self-supervised training method. DeLoop builds on a simple observation: the agent's own rollout can provide the supervision needed to learn from its loops. We use a looping action as a negative example and the first later non-looping action in the same rollout as a positive example. DeLoop learns from these pairs through direct preference optimization and does not require task rewards, gold answers, or LLM judges. On CodeGym under compression, DeLoop reduces the share of Qwen3-8B tasks containing loops from 57.3% to 6.1%. It also uses about one third as many steps per task, with similar task success. On Qwen3-32B, DeLoop reduces loops and steps while raising task success from 37.7% to 44.8%.
Sources
- A General Theoretical Paradigm to Understand Learning from Human Preferences
- AgentRx: Diagnosing AI Agent Failures from Execution Trajectories
- FireAct: Toward Language Agent Fine-tuning
- Agentic-DPO: From Imitation to Agentic Policy Optimization on Expert Trajectories
- Beyond Semantic Organization: Memory as Execution State Management for Long-Horizon Agents
- BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agent
- TRAIL: Trace Reasoning and Agentic Issue Localization
- Generalizable End-to-End Tool-Use RL with Synthetic CodeGym
- KTO: Model Alignment as Prospect Theoretic Optimization
- PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning
- Gemini: A Family of Highly Capable Multimodal Models
- The Llama 3 Herd of Models
- Reinforced Self-Training (ReST) for Language Modeling
- CodeRescue: Budget-Calibrated Recovery Routing for Coding Agents
- Co-Evolving Agents: Learning from Failures as Hard Negatives
- CTRL: A Conditional Transformer Language Model for Controllable Generation
- Step-DPO: Step-wise Preference Optimization for Long-chain Reasoning of LLMs
- Multi-Harness Reinforcement Learning for Coding Agents: Training Gains and Harness Dependence
- Who&When Pro: Can LLMs Really Attribute Failures in AI Agents?
- Context as a Tool: Context Management for Long-Horizon SWE-Agents
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems