ReflexGrad: Within-Episode Failure Recovery in LLM Agents via Progress-Gated Dual-Process Routing
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
We present ReflexGrad, a dual-process architecture for within-episode failure recovery in LLM agents without demonstrations. When agents commit to a wrong approach early and exhaust the step budget, the post-failure trajectory contains the information to escape -- but no published architecture acts on it within a single episode. ReflexGrad routes between a fast process (TextGrad-style continuous refinement every k=3 steps) and a slow process (Reflexion-style causal diagnosis when m=5 consecutive low-progress scores fire a routing gate). A deterministic priority merge keeps the natural-language policy coherent, and each slow activation emits three observable artifacts: a reproducible trigger, a causal diagnostic, and a verified fix. On ALFWorld 134 tasks, n=10 seeds, no demonstrations, ReflexGrad lifts Qwen-3-8B from 35.1% to 75.4% (+40.3pp), beating compute-matched 1-shot LATS by +2.7pp (p≈0.01), ToT by +5.7pp (p<10-4), and Self-Refine by +6.7pp (p<10-5); on GPT-5 the lift is 46.3→88.1% (+41.8pp). The 1.5pp cross-model difference is within seed noise (p≈0.13), suggesting that the routing mechanism, rather than model scale, is the primary source of the gain. Code, prompts, per-seed logs, and sensitivity sweeps are released.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 13 of its 23 references that are in the map. First posted on arXiv 18 Nov 2025.
Builds on
13 of 23 references.
References · 13
- 2025Qwen3 Technical Reportcited by 8,820
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,195
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 876
- 2023Large Language Models as Optimizerscited by 864
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 783
- 2018TextWorld: A Learning Environment for Text-based Gamescited by 310
- 2023AdaPlanner: Adaptive Planning from Feedback with Language Modelscited by 196
1 more
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Sentry: Learning to Recover from LLM Agent Failures at Test Time
- 2026When Harnesses Lose the Signal: Causal Evaluation of Recovery in LLM Agents
- 2026Failure Recovery via Belief Updates and World Modeling for Long-Horizon Agents
- 2026ANNEAL: Adapting LLM Agents via Governed Symbolic Patch Learning
- 2025Conditional Multi-Stage Failure Recovery for Embodied Agents
- 2026Doomed from the Start: Early Abort of LLM Agent Episodes via a Recall-Controlled Probe Cascade
- 2026SiLR: Structure-Preserving Admission and Process Reward for LLM Tool Agents
- 2026Diagnosis Before Recovery: Turning Agent Failures into Selective Self-Correction