SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents
On the map: LLM reasoning → Reasoning for agents, planning and code
also in 1 more
Abstract (arXiv)
Test-time scaling has been widely adopted to enhance the capabilities of Large Language Model (LLM) agents in software engineering (SWE) tasks. However, the standard approach of repeatedly sampling trajectories from scratch is computationally expensive. While recent methods have attempted to mitigate costs using specialized value agents, they can suffer from model miscalibration and fail to generalize to modern agents that synthesize custom bash scripts as tools. In this paper, we introduce SWE-Replay, the first efficient and generalizable test-time scaling technique for modern agents without reliance on potentially noisy value estimates. SWE-Replay optimizes the scaling process by recycling trajectories from prior trials, dynamically choosing to either explore from scratch or exploit archived experience by branching at critical intermediate steps. This selection of intermediate steps is driven by the potential and reasoning significance of repository exploration, rather than external LLM-based quality estimates. Our evaluation shows that, on SWE-Bench Verified, SWE-Replay consistently outperforms naive scaling, reducing costs by up to 17.4% while maintaining or even improving performance by up to 3.8%. Further evaluation on SWE-Bench Pro and Multilingual validates the generalizability of SWE-Replay, establishing it as a robust foundation for efficient test-time scaling of software engineering agents.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 23 of its 28 references that are in the map. First posted on arXiv 29 Jan 2026.
Builds on
23 of 28 references.
Closest ancestors · 7
Same direction, newest first
- 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
- 2025The Cost of Dynamic Reasoning: Demystifying AI Agents and Test-Time Scaling from an AI Infrastructure Perspective4 Jun
- 2025Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineering29 May
- 2025Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute31 Mar
- 2025CodeMonkeys: Scaling Test-Time Compute for Software Engineering24 Jan
- 2023Teaching Large Language Models to Self-Debug11 Apr
- 2022Competition-Level Code Generation with AlphaCode8 Feb
Other references · 16
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 956
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 294
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 254
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 215
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
4 more
- 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?cited by 91
- 2025CWM: An Open-Weights LLM for Research on Code Generation with World Modelscited by 87
- 2024LLM-as-a-Judge & Reward Model: What They Can and Cannot Docited by 32
- 2025Empowering Multi-Turn Tool-Integrated Agentic Reasoning with Group Turn Policy Optimizationcited by 9
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026Scaling Test-Time Compute for Agentic Codingcited by 11
- 2026From Question Answering to Task Completion: A Survey on Agent System and Harness Designcited by 9
- 2026How Inference Compute Shapes Frontier LLM Evaluationcited by 5
- 2026FastContext: Training Efficient Repository Explorer for Coding Agentscited by 4
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Testscited by 4
- 2026Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Taskscited by 3
- 2026EvoRepair: Enhancing Vulnerability Repair Agents Through Experience-Based Self-Evolutioncited by 2
- 2026DocSync: Agentic Documentation Maintenance via Critic-Guided Reflexioncited by 0
- 2026Disagree to Explore, Agree to Commit: Routing-Guided Test-Time Scaling for Software Agentscited by 0
- 2026FLARE: A Full-Lifecycle Dense Supervision Paradigm for Long-Horizon Coding Agents via Generative Reward Modelcited by 0
- 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agentscited by 0
- 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents22 Sep 2026
- 2026FLARE: A Full-Lifecycle Dense Supervision Paradigm for Long-Horizon Coding Agents via Generative Reward Model20 Sep 2026
- 2026Disagree to Explore, Agree to Commit: Routing-Guided Test-Time Scaling for Software Agents23 Aug 2026
- 2026Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Tasks4 Aug 2026
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests1 Jul 2026
- 2026How Inference Compute Shapes Frontier LLM Evaluation16 Jun 2026
- 2026From Question Answering to Task Completion: A Survey on Agent System and Harness Design14 Jun 2026
- 2026FastContext: Training Efficient Repository Explorer for Coding Agents12 Jun 2026
- 2026EvoRepair: Enhancing Vulnerability Repair Agents Through Experience-Based Self-Evolution28 May 2026
- 2026DocSync: Agentic Documentation Maintenance via Critic-Guided Reflexion4 May 2026
- 2026Scaling Test-Time Compute for Agentic Coding16 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2026SWE-World: Building Software Engineering Agents in Docker-Free Environments
- 2026SWE-Next: Scalable Real-World Software Engineering Tasks for Agents
- 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Training
- 2025SWE-RM: Execution-free Feedback For Software Engineering Agents
- 2026SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scaling
- 2026Immersion in the GitHub Universe: Scaling Coding Agents to Mastery
- 2026E2E-SWE: Benchmarking LLMs on Building Working Codebases from Scratch
- 2025SWE-smith: Scaling Data for Software Engineering Agents