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 and 3 others
Google · Boston University · University of Washington · University of Southern California · Google DeepMind
Published October 14, 2026 · on the feed October 22, 2026 · ▲ 32 · arXiv 2610.19376
The 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%.
The Brief
2:22A short podcast summary of the paper. Written and voiced by AI.
Transcript
DeLoop. Repeated Actions as Self-Supervision for Long-Horizon Agents. By Tianle Chen and ten others, from Google, Boston University, and three other institutions. Published on the fourteenth of October. Its code repository is public but slight: one source file.
Language-model agents running long tasks often redo work they have already done. They re-issue a tool call made earlier, and get back exactly the same observation as before: a step that adds no new information at all. The authors call this failure a loop. Loops appear natively in Qwen, Llama and Gemini agents, and they become far more common once the agent's history is compressed to fit its context window, which is precisely the situation a long task creates.
DeLoop is a self-supervised training method for reducing loops. It rests on a simple observation: the agent's own rollout already contains the supervision needed to learn from its loops. No outside judge is required to say that a repeated call with a repeated result was wasted. The repetition is visible in the record of the run, and so is what the agent eventually did instead. Both halves of a training example are already sitting there.
Each looping action becomes a negative example. The first later action in the same rollout that does not loop becomes the positive example paired with it. DeLoop learns from these pairs through direct preference optimization. Because the pairs come from the rollout itself, the method needs no task rewards, no gold answers, and no LLM judges.
The evaluation uses CodeGym with history compression. For Qwen3-8B, DeLoop cuts the share of tasks that contain loops from fifty-seven point three percent to six point one percent. It also uses about one third as many steps per task, with similar task success. At this size, then, the gain is efficiency: the agent reaches comparable outcomes while wasting far fewer steps on calls it has already made.
The larger model gains on success as well. On Qwen3-32B, DeLoop reduces both loops and steps, and raises task success from thirty-seven point seven percent to forty-four point eight percent.
What makes the method cheap is where the signal comes from. A loop announces itself: the same call, the same answer. And the agent's own next move away from it is a ready-made better choice. Pairing the two turns a common failure of long-horizon agents into training data, with nothing external needed to label it. No reward, no reference answer and no grader enter the recipe at any point.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free