mlsanityData to 7 Oct 2026

SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement

arXiv 2410.20285 ↗First posted 26 Oct 2024cs.AIcited by 124

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

Abstract (arXiv)

Software engineers operating in complex and dynamic environments must continuously adapt to evolving requirements, learn iteratively from experience, and reconsider their approaches based on new insights. However, current large language model (LLM)-based software agents often follow linear, sequential processes that prevent backtracking and exploration of alternative solutions, limiting their ability to rethink their strategies when initial approaches prove ineffective. To address these challenges, we propose SWE-Search, a multi-agent framework that integrates Monte Carlo Tree Search (MCTS) with a self-improvement mechanism to enhance software agents' performance on repository-level software tasks. SWE-Search extends traditional MCTS by incorporating a hybrid value function that leverages LLMs for both numerical value estimation and qualitative evaluation. This enables self-feedback loops where agents iteratively refine their strategies based on both quantitative numerical evaluations and qualitative natural language assessments of pursued trajectories. The framework includes a SWE-Agent for adaptive exploration, a Value Agent for iterative feedback, and a Discriminator Agent that facilitates multi-agent debate for collaborative decision-making. Applied to the SWE-bench benchmark, our approach demonstrates a 23% relative improvement in performance across five models compared to standard open-source agents without MCTS. Our analysis reveals how performance scales with increased inference-time compute through deeper search, providing a pathway to improve software agents without requiring larger models or additional training data. This highlights the potential of self-evaluation driven search techniques in complex software engineering environments.

Key facts. Cited by 124 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 27 of its 45 references that are in the map. First posted on arXiv 26 Oct 2024.

Builds on

27 of 45 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  3. 2024Executable Code Actions Elicit Better LLM Agents1 Feb

Other references · 24

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  3. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  4. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  5. 2022Emergent Abilities of Large Language Modelscited by 2,483
  6. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
  7. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
  8. 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
  9. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  10. 2024The AI Scientist: Towards Fully Automated Open-Ended Scientific Discoverycited by 1,002
  11. 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
  12. 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 542
12 more
  1. 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoningcited by 379
  2. 2024AutoCodeRover: Autonomous Program Improvementcited by 272
  3. 2024Debating with More Persuasive LLMs Leads to More Truthful Answerscited by 255
  4. 2024Tree Search for Language Model Agentscited by 148
  5. 2024WebPilot: A Versatile and Autonomous Multi-Agent System for Web Task Execution with Strategic Explorationcited by 100
  6. 2024Teams of LLM Agents can Exploit Zero-Day Vulnerabilitiescited by 93
  7. 2024Alibaba LingmaAgent: Improving Automated Issue Resolution via Comprehensive Repository Explorationcited by 58
  8. 2024MultiAgent Collaboration Attack: Investigating Adversarial Attacks in Large Language Model Collaborations via Debatecited by 54
  9. 2024System-1.x: Learning to Balance Fast and Slow Planning with Language Modelscited by 35
  10. 2024Intelligent Go-Explore: Standing on the Shoulders of Giant Foundation Modelscited by 32
  11. 2024Can LLMs Beat Humans in Debating? A Dynamic Multi-agent Framework for Competitive Debatecited by 16
  12. 2024Hackphyr: A Local Fine-Tuned LLM Agent for Network Security Environmentscited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 45; 2026: 78.

124 papers.

Sort:

By area:

  1. 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
  2. 2025APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplaycited by 158
  3. 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agentscited by 127
  4. 2025MLGym: A New Framework and Benchmark for Advancing AI Research Agentscited by 111
  5. 2025Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectoriescited by 75
  6. 2025SE-Agent: Self-Evolution Trajectory Optimization in Multi-Step Reasoning with LLM-Based Agentscited by 66
  7. 2025AI Research Agents for Machine Learning: Search, Exploration, and Generalization in MLE-benchcited by 65
  8. 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 64
  9. 2025LLM Agents for Education: Advances and Applicationscited by 59
  10. 2025Wider or Deeper? Scaling LLM Inference-Time Compute with Adaptive Branching Tree Searchcited by 48
  11. 2026A Survey of Agentic Reasoning for Large Language Models: Towards Recursively Self-Improving and Collective Agentscited by 47
  12. 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 40
38 more
  1. 2026Code as Agent Harnesscited by 40
  2. 2025Training Long-Context, Multi-Turn Software Engineering Agents with Reinforcement Learningcited by 34
  3. 2026Group-Evolving Agents: Open-Ended Self-Improvement via Experience Sharingcited by 32
  4. 2025BugPilot: Complex Bug Generation for Efficient Learning of SWE Skillscited by 28
  5. 2025Code Graph Model (CGM): A Graph-Integrated Large Language Model for Repository-Level Software Engineering Taskscited by 27
  6. 2025BacktrackAgent: Enhancing GUI Agent with Error Detection and Backtracking Mechanismcited by 25
  7. 2025When Agents go Astray: Course-Correcting SWE Agents with PRMscited by 25
  8. 2025Symbiotic Cooperation for Web Agents: Harnessing Complementary Strengths of Large and Small LLMscited by 24
  9. 2025SWE-Dev: Building Software Engineering Agents with Training and Inference Scalingcited by 24
  10. 2024An Empirical Study on LLM-based Agents for Automated Bug Fixingcited by 23
  11. 2025PatchPilot: A Cost-Efficient Software Engineering Agent with Early Attempts on Formal Verificationcited by 22
  12. 2025Issue Localization via LLM-Driven Iterative Code Graph Searchingcited by 22
  13. 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited by 22
  14. 2025DARS: Dynamic Action Re-Sampling to Enhance Coding Agent Performance by Adaptive Tree Traversalcited by 20
  15. 2026BeyondSWE: Can Current Code Agent Survive Beyond Single-Repo Bug Fixing?cited by 20
  16. 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Taskscited by 18
  17. 2025Unified Software Engineering Agent as AI Software Engineercited by 17
  18. 2025SWE-Effi: Re-Evaluating Software AI Agent System Effectiveness Under Resource Constraintscited by 17
  19. 2025Systematic Failures in Collective Reasoning under Distributed Information in Multi-Agent LLMscited by 15
  20. 2025AutoAdvExBench: Benchmarking autonomous exploitation of adversarial example defensescited by 14
  21. 2026Don't Act Blindly: Robust GUI Automation via Action-Effect Verification and Self-Correctioncited by 14
  22. 2025Training Versatile Coding Agents in Synthetic Environmentscited by 13
  23. 2025Co-PatcheR: Collaborative Software Patching with Component(s)-specific Small Reasoning Modelscited by 12
  24. 2025Evolutionary Perspectives on the Evaluation of LLM-Based AI Agents: A Comprehensive Surveycited by 12
  25. 2026SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scalingcited by 12
  26. 2025Seeing is Fixing: Cross-Modal Reasoning with Multimodal LLMs for Visual Software Issue Fixingcited by 11
  27. 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agentscited by 11
  28. 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agentscited by 11
  29. 2026Scaling Test-Time Compute for Agentic Codingcited by 11
  30. 2026DeltaBox: Scaling Stateful AI Agents with Millisecond-Level Sandbox Checkpoint/Rollbackcited by 10
  31. 2025Guided Search Strategies in Non-Serializable Environments with Applications to Software Engineering Agentscited by 9
  32. 2025Self-Abstraction from Grounded Experience for Plan-Guided Policy Refinementcited by 9
  33. 2026SGAgent: Suggestion-Guided LLM-Based Multi-Agent Framework for Repository-Level Software Repaircited by 9
  34. 2026SWE-Next: Scalable Real-World Software Engineering Tasks for Agentscited by 8
  35. 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
  36. 2026The Interplay of Harness Design and Post-Training in LLM Agentscited by 8
  37. 2025SeaView: Software Engineering Agent Visual Interface for Enhanced Workflowcited by 7
  38. 2025InfCode: Adversarial Iterative Refinement of Tests and Patches for Reliable Software Issue Resolutioncited by 7

50 most cited of 124 All 124 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2026SWE-World: Building Software Engineering Agents in Docker-Free Environments
  2. 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Training
  3. 2026SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks
  4. 2026Socratic-SWE: Self-Evolving Coding Agents via Trace-Derived Agent Skills
  5. 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?
  6. 2025U2F: Encouraging SWE-Agent to Seize Novelty without Losing Feasibility
  7. 2025BOAD: Discovering Hierarchical Software Engineering Agents via Bandit Optimization
  8. 2026From SWE-ZERO to SWE-HERO: Execution-free to Execution-based Fine-tuning for Software Engineering Agents