mlsanityData to 14 Oct 2026

When Agents go Astray: Course-Correcting SWE Agents with PRMs

arXiv 2509.02360 ↗First posted 2 Sep 2025cs.AI cs.SEcited by 28

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Large Language Model (LLM) agents are increasingly deployed for complex, multi-step software engineering (SWE) tasks. However, their trajectories often contain costly inefficiencies, such as redundant exploration, looping, and failure to terminate once a solution is reached. Prior work has largely treated these errors in a post-hoc manner, diagnosing failures only after execution. In this paper, we introduce SWE-PRM, an inference-time Process Reward Model (PRM) that intervenes during execution to detect and course-correct trajectory-level errors. Our PRM design leverages a taxonomy of common inefficiencies and delivers lightweight, interpretable feedback without modifying the underlying policy. On SWE-bench Verified, closed-source PRMs improve resolution from 40.0% to 50.6% (+10.6 p.p.), with the largest gains on medium and hard tasks. Among feedback strategies, taxonomy-guided PRMs outperform unguided or explicit action-prescriptive variants, increasing success rate while reducing trajectory length. These benefits come at an acceptable added inference cost of as low as 0.2, making PRMs a practical and scalable mechanism for improving SWE agents' reliability and efficiency.

Key facts. Cited by 28 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 21 of its 38 references that are in the map. First posted on arXiv 2 Sep 2025.

Builds on

21 of 38 references.

Closest ancestors · 10

Same direction, newest first

  1. 2025Doc2Feat-Bench: Evaluating Documentation-Driven Feature Addition24 Jul
  2. 2025Guided Search Strategies in Non-Serializable Environments with Applications to Software Engineering Agents19 May
  3. 2025TRAIL: Trace Reasoning and Agentic Issue Localization13 May
  4. 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents11 Apr
  5. 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr
  6. 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute31 Mar
  7. 2025Why Do Multi-Agent LLM Systems Fail?17 Mar
  8. 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
  9. 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement26 Oct
  10. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 11

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2023Let's Verify Step by Stepcited by 3,789
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  4. 2024Trial and Error: Exploration-Based Trajectory Optimization for LLM Agentscited by 197
  5. 2025FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementationcited by 58
  6. 2025SMART: Self-Aware Agent for Tool Overuse Mitigationcited by 52
  7. 2025STeCa: Step-level Trajectory Calibration for LLM Agent Learningcited by 37
  8. 2025RefactorBench: Evaluating Stateful Reasoning in Language Agents Through Codecited by 30
  9. 2025BacktrackAgent: Enhancing GUI Agent with Error Detection and Backtracking Mechanismcited by 25
  10. 2025VeriLA: A Human-Centered Evaluation Framework for Interpretable Verification of LLM Agent Failurescited by 14
  11. 2025FreePRM: Training Process Reward Models Without Ground Truth Process Labelscited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 23.

28 papers.

Sort:

By area:

  1. 2025A Survey of Process Reward Models: From Outcome Signals to Process Supervisions for Large Language Modelscited by 38
  2. 2025BugPilot: Complex Bug Generation for Efficient Learning of SWE Skillscited by 30
  3. 2026Wink: Recovering from Misbehaviors in Coding Agentscited by 15
  4. 2026Counterfactual Trace Auditing of LLM Agent Skillscited by 10
  5. 2025GUI-PRA: Process Reward Agent for GUI Taskscited by 9
  6. 2025Enhancing Large Language Model Reasoning with Reward Models: An Analytical Surveycited by 8
  7. 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
  8. 2026Rewarding the Scientific Process: Process-Level Reward Modeling for Agentic Data Analysiscited by 5
  9. 2026Steer, Don't Solve: Training Small Critic Models for Large Code Agentscited by 5
  10. 2026What Resolve Rate Hides: Trajectory Structure Diagnostics for Coding Agentscited by 5
  11. 2026Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Taskscited by 5
  12. 2026Think Locally, Explain Globally: Graph-Guided LLM Investigations via Local Reasoning and Belief Propagationcited by 3
16 more
  1. 2026Independent Patch Verification for Coding Agents with a Bidirectional Reconstruct-and-Verify Frameworkcited by 3
  2. 2026EGSS: Entropy-guided Stepwise Scaling for Reliable Software Engineeringcited by 2
  3. 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agentscited by 2
  4. 2026Online Monitoring and Corrective Steering of Programming Agentscited by 2
  5. 2026DIG to Heal: Scaling General-purpose Agent Collaboration via Explainable Dynamic Decision Pathscited by 1
  6. 2026Reusing Past Repairs Through Hierarchical Trajectory Abstraction for Coding Agentscited by 1
  7. 2026Before the Rollout Ends: Early Terminal Reward Prediction for Long-horizon Coding Agentscited by 1
  8. 2026Mid-Harness: Scaling Actions Between Model and Harness for Terminal Agentscited by 1
  9. 2026Better Understanding, Better Fixes? A Study of Hallucination in LLM-based Automated Program Repaircited by 0
  10. 2026FLARE: A Full-Lifecycle Dense Supervision Paradigm for Long-Horizon Coding Agents via Generative Reward Modelcited by 0
  11. 2026WatchPoint: Executable User Feedback for Real-World Agentic Web Developmentcited by 0
  12. 2026Opera: A Verbal Critic Framework for Long-horizon Coding Agentscited by 0
  13. 2026Learning When and How to Intervene: A Hindsight-Distilled Sentinel for Coding Agentscited by 0
  14. 2026What Can Component-Replacement Evidence Establish? A Critical Scoping Review of Local Decisions in LLM Agentscited by 0
  15. 2026SWE-Critix: Post-Training Generalist Verifiers for Assessing Coding-Agent Trajectoriescited by 0
  16. 2026JevCoder: When Does Decision Delegation Pay Off in Code Repair?cited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026SWE-Shepherd: Advancing PRMs for Reinforcing Code Agents
  2. 2026SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scaling
  3. 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Training
  4. 2026SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks
  5. 2025SWE-RM: Execution-free Feedback For Software Engineering Agents
  6. 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents
  7. 2026Beyond Verifiable Rewards: Rubric-Based GRM for Reinforced Fine-Tuning SWE Agents
  8. 2026Socratic-SWE: Self-Evolving Coding Agents via Trace-Derived Agent Skills