DeLoop: Treating repetitive actions as self-supervision for long-horizon agentsDeLoop: Repeated Actions as Self-Supervision for Long-Horizon Agents
Translation in progress — untranslated text is omitted.
Researchers propose DeLoop, a self-supervised preference optimization method that uses the language model agent's own rollouts to reduce repetitive tool-call loops in long tasks. A loop means the agent repeatedly issues a tool call it made before and receives the same observation; loops exist natively in Qwen, Llama and Gemini agents, and increase markedly after history is compressed to fit the context window. DeLoop treats loop actions as negative examples and the first non-loop action after them in the same rollout as positive examples, training via DPO without task rewards, ground-truth answers or an LLM judge. Under the CodeGym compression setting, for Qwen3-8B the share of tasks containing loops drops from 57.3% to 6.1%, steps per task are about one third of the original, and task success rate is similar; on Qwen3-32B, loops and steps decrease while task success rate rises from 37.7% to 44.8%.
- Long-horizon agents often repeat tool calls they have already executed and get the same observation, which the authors call a loop; loops are more common after history is compressed to fit the context window and are correlated with task failure.
- DeLoop mines preference pairs from the agent's own rollouts: the looping action is the rejected one, and the first action in the same rollout that breaks the loop is the chosen one; it trains with DPO and does not require task rewards, gold answers, or LLM judging.
- The authors report: for Qwen3-8B under CodeGym compression, the loop rate drops from 57.3% to 6.1%, steps drop from 15.00 to 4.67, and success rate is essentially unchanged; for Qwen3-32B, success rate rises from 37.7% to 44.8%; loop rates also decrease on four environments including ALFWorld and AppWorld, and on BrowseComp-Plus.
- The authors do not set aside a dedicated section to discuss limitations. Experiments focus mainly on Qwen3-8B, with additional coverage of Qwen3-14B/32B, Qwen3.5-9B, and Llama-3.1-8B; Gemini models are only tested for the loop phenomenon and are not trained with DeLoop; the main evaluation is on 300 held-out CodeGym tasks, and some settings are run only once.