FLARE: A Full-Lifecycle Dense Supervision Paradigm for Long-Horizon Coding Agents via Generative Reward Model
cs.CL, cs.AI
Submitted: 2026-09-20
Updated: 2026-09-20
Code: https://github.com/cline/cline
License: http://creativecommons.org/licenses/by/4.0/
The gist: While test-time scaling enhances Large Language Model (LLM) agents in long-horizon software engineering (SWE), sparse binary rewards (Pass/Fail) create a severe credit assignment crisis and waste
Terminology
Abstract
While test-time scaling enhances Large Language Model (LLM) agents in long-horizon software engineering (SWE), sparse binary rewards (Pass/Fail) create a severe credit assignment crisis and waste failed exploratory trajectories. Current trajectory optimization and scaling methods are costly and structurally limited, relying on heuristic state reuse without causal diagnosis or delayed scalar scoring without actionable online guidance. We propose FLARE (Full-Lifecycle Alignment and Reward Engine), a novel dense supervision paradigm driven by a lightweight Generative Reward Model (GRM). First, RADAR, an offline causal-aware diagnostic framework, extracts high-fidelity, hindsight-free supervision through causal-chain backtracking to distill a GRM providing real-time, step-level risk feedback. Second, FLARE uses this GRM to continuously optimize the agent across its entire lifecycle. During inference, FLARE acts as an Active Scaffold, autonomously intercepting high-risk generation steps for localized breakpoint re-execution, drastically reducing compute overhead. During post-training, the GRM's structured signals serve as process-supervised reranking scores for Supervised Fine-Tuning (SFT) and step-level dense rewards for Reinforcement Learning (RL), mitigating policy collapse in sparse environments. Extensive evaluations show that FLARE establishes a new Pareto frontier across the agent lifecycle: FLARE (N=1) outperforms Global Rollout (N=5) with a 5x reduction in token consumption. Extending FLARE to training overcomes the sparse reward problem in long-horizon interactive tasks, delivering relative performance gains of 19.13% in SFT through process-aware data curation and a consistent 9.19% improvement in RL.
Sources
- DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models
- SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?
- TRAIL: Trace Reasoning and Agentic Issue Localization
- SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents
- When Agents go Astray: Course-Correcting SWE Agents with PRMs
- SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scaling
- CodeTracer: Towards Traceable Agent States
- ToolSafe: Enhancing Tool Invocation Safety of LLM-based agents via Proactive Step-level Guardrail and Feedback
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
- TRACER: Trajectory Risk Aggregation for Critical Episodes in Agentic Reasoning
- A Rubric-Supervised Critic from Sparse Real-World Outcomes
- SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolution
- Agentless: Demystifying LLM-based Software Engineering Agents
- SWE-Compass: Towards Unified Evaluation of Agentic Coding Abilities for Large Language Models
- Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineering
- AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering