DeLoop: Repeated Actions as Self-Supervision for Long-Horizon Agents
Tianle Chen, Pushkar Singh, Ketan Todi, Biswajit Paria, Qijia He, Wenqi Wang, Yuwen Tan, Jike Zhong, Sugato Basu, Deepti Ghadiyaram, Arjun Akula
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%.
Create a lesson
Related papers
FinEvo: Recursive Self-Improvement for Long-Horizon Financial Modeling
Shared title terminologycs.AIChengjun Pan, Shichun Liu, Zekai Zhou et al.
Kolab: Benchmarking Human-Agent Collaboration in Long-Horizon Workflows
Shared title terminologycs.AIShirley Anugrah Hayati, Patricia Anugrah Setiani, Ruizi Wang et al.
OmicsBench: a long-horizon multi-turn benchmark of AI agents on research-study-scale bioinformatics
Shared title terminologycs.AIGideon Shaked, Siddharth Nagisetty
Explorer-Zero: Improving Self-Play for Long-Horizon Tasks with Decomposable Verifiable Rewards
Shared title terminologycs.AITianyu Liu, Davide Belli, Bence Major et al.
SERO: Learning from Executable Oracle Continuations for Long-Horizon Agentic Reinforcement Learning
Shared title terminologycs.AIDingyi Rong, Yue Shi, Chaofan Ma et al.
Navalia: Advancing Cowork Agents through Verifiable Task Synthesis and Long-Horizon Post-Training
Shared title terminologycs.AIHengqi Liu, Ziyuan Liu, Yang Qin et al.