NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SE-Agent: Self-Evolution Trajectory Optimization in Multi-Step Reasoning with LLM-Based Agents

Yifu Guo, Jiaye Lin, Huacan Wang, Yuzhen Han, Sen Hu, Ziyi Ni, Licheng Wang, Mingguang Chen

Abstract

Large Language Model (LLM) agents have demonstrated significant potential in multi-step reasoning and tool use, yet they often struggle with complex, real-world tasks such as software engineering. We present SE-Agent, a novel self-evolution framework that treats reasoning trajectories as "genotypes" to be iteratively optimized. By implementing operations of revision, recombination, and refinement, SE-Agent enables models to escape local optima and leverage cross-trajectory insights. Our approach achieves a state-of-the-art resolution rate of 80.0% on the SWE-bench Verified benchmark, significantly outperforming existing multi-sampling and tree-search methods.

Introduction

The advancement of LLM-based agents has enabled the automation of complex workflows, particularly in software development. However, current methodologies for improving agent performance—primarily multi-sampling and Monte Carlo Tree Search (MCTS)—face two critical bottlenecks. First is trajectory homogeneity: even with high stochasticity, LLMs tend to produce structurally similar reasoning paths that fail in identical ways. Second is the independence assumption: existing search methods treat each attempt in isolation, failing to synthesize successful components from different failed trajectories.

To address these challenges, we introduce SE-Agent. This framework shifts the paradigm from simple search to iterative evolution. By viewing a multi-step reasoning path as a genetic sequence, we can apply evolutionary principles to refine and combine "elite" traits across a population of trajectories.

Methodology: The Self-Evolution Framework

SE-Agent operates through an iterative cycle designed to evolve a population of reasoning trajectories. The process begins with an initial pool generated via diverse planning strategies and mutation-based diversification.

Overview of the SE-Agent self-evolution framework, illustrating the Revision, Trajectory Pool, and Recombination phases.

The framework consists of three core operations:

1. Revision

The agent performs self-reflection to pinpoint critical decision points within a trajectory. It identifies logical inconsistencies or underdeveloped steps and generates a revised version. This targeted mutation allows the agent to correct specific errors without discarding the entire reasoning path.

2. Recombination

Recombination is the central innovation of SE-Agent, facilitating "cross-trajectory inspiration." It employs three sub-strategies:

  • Crossover: Splicing high-performing segments from different paths to create a superior hybrid trajectory.
  • Transfer: Systematically migrating successful strategies from "elite" trajectories to suboptimal ones.
  • Restructuring: Reorganizing the global reasoning process based on insights aggregated from the entire trajectory pool.

3. Refinement

A multi-dimensional reward function evaluates the "fitness" of trajectories based on task completion (functional correctness), reasoning quality (logical flow), and efficiency (step count). This ensures that only the most effective trajectories proceed to the next generation.

Experimental Evaluation

We evaluated SE-Agent on SWE-bench Verified, a curated subset of 500 real-world GitHub issues with high-quality unit tests. This benchmark provides a rigorous testbed for an agent's ability to perform functional bug fixes in complex environments.

Key Results

SE-Agent demonstrated substantial performance improvements across a variety of underlying LLMs, including DeepSeek-V3, Qwen-2.5-72B, Llama-3.1-70B, GPT-4o, and Claude-3.7-Sonnet.

Comparison of resolution rates on the SWE-bench Verified benchmark, showing SE-Agent achieving a state-of-the-art 80.0%.
  • State-of-the-Art Performance: When paired with Claude-3.7-Sonnet, SE-Agent achieved an 80.0% resolution rate, setting a new benchmark for open-source agents.
  • Significant Relative Gains: SE-Agent improved the resolution rate of Llama-3.1-70B by 112% and GPT-4o by 80% compared to standard CodeAct-based baselines.
  • Superiority over Search Baselines: SE-Agent consistently outperformed MCTS-based methods (e.g., SWE-Search), providing an average relative gain of +30%.

Discussion and Insights

The success of SE-Agent stems from its ability to escape the "tunnel vision" common in standard agents. By treating trajectories as genotypes, the framework forces the agent to consider alternative perspectives discovered in other attempts. Notably, SE-Agent achieves these results with high efficiency, often requiring only 1-2 evolutionary cycles due to the LLM's ability to perform intelligent, rather than random, mutations.

Ablation studies confirmed that both the Revision and Recombination modules are essential. Removing either component leads to a significant performance degradation, highlighting the necessity of both individual reflection and collective idea synthesis.

Conclusion and Future Work

SE-Agent represents a significant step forward in agentic reasoning. By moving beyond independent search to a collaborative, evolutionary paradigm, we enable agents to solve significantly more complex tasks. Future work will explore extending this self-evolution framework to other domains such as robotics and general path-search problems, as well as optimizing the computational costs associated with trajectory generation.

Summary updated

BibTeX
@inproceedings{guo2025se,
  author = {Yifu Guo and Jiaye Lin and Huacan Wang and Yuzhen Han and Sen Hu and Ziyi Ni and Licheng Wang and Mingguang Chen},
  title = {{SE-Agent: Self-Evolution Trajectory Optimization in Multi-Step Reasoning with LLM-Based Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=isATAFP71B},
}
Figure