Fork and flush method helps ai research agents find better solutions

Fork-and-Flush: Escaping Idea Basins in Autoresearch Agents

Machine Learning

Summary

Autoresearch agents try to solve complex problems by testing ideas repeatedly, but they often get stuck exploring similar solutions and miss better ones. The authors show these stuck areas, called idea basins, cause agents to stop improving. They propose a simple technique called fork-and-flush that runs multiple copies of the agent in parallel from the same knowledge but fresh starts, then continues with the best performing one. This approach helps agents escape these stuck regions and find significantly better solutions across many tasks.

What this means in practice

  • For ai development teams: Improve long-running AI research agents by periodically restarting search with multiple fresh contexts to find better solutions.
  • For engineering design teams: Enhance automated engineering problem solvers by splitting and refreshing search paths to escape local solution traps quickly.

Authors

Ziyang Cai, Christos Ziakas, Vasilis Kontonis, Tim Pearce, Siddhartha Sen, Akshay Krishnamurthy, Shivam Garg, Dimitris Papailiopoulos

Abstract

Autoresearch agents tackle open-ended problems by repeatedly proposing candidate solutions, evaluating them, and using feedback to guide subsequent experiments. We show that independent runs of the same agent on the same task often plateau at substantially different scores, with gaps that persist even after considerable additional compute. Embedding their candidate artifacts by functional similarity provides further evidence that trajectories remain in localized regions of the solution space, which we call idea basins. To help agents escape these basins, we study a simple periodic intervention, fork-and-flush. Our method forks the agent into parallel trajectories, each inheriting the accumulated workspace but starting with a fresh chat context. After running each trajectory for a fixed horizon, the agent continues from the highest-scoring one. Across 13 long-horizon research and engineering tasks, with individual agent runs lasting up to several days, fork-and-flush outperformed the single-run and best-of-N baselines by a relative improvement of 66.0% and 44.4%, respectively, on the min-max normalized average score under an equal compute budget.