Learning Adaptive Parallel Execution for Efficient Code Localization
FuseSearch is an adaptive parallel execution framework that employs a two-phase SFT and RL training strategy to dynamically optimize search breadth based on task context, achieving state-of-the-art code localization performance on SWE-bench Verified while significantly reducing redundant invocations, token usage, and execution time.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are a detective trying to solve a mystery in a massive library containing millions of books. Your goal is to find the exact page in the exact book where a specific error happened.
In the world of software, this is called Code Localization. It's the hardest part of fixing bugs automatically.
The Problem: The "One-Book-at-a-Time" Trap
Traditionally, computer agents (AI programs) tried to solve this by looking at one book, reading a page, closing it, and then asking for the next book. This is called sequential execution.
The problem? It's slow. If you only have a few minutes (a "tight budget") to solve the case, you might run out of time before you even find the right book. This is called information starvation—you're starving for clues because you're moving too slowly.
The Old "Parallel" Fix: The Clumsy Team
Some developers tried to speed things up by sending a whole team of agents to grab books at the same time. This is parallel execution.
But there was a catch. These teams were clumsy. They would send 10 people to grab books, but 3 or 4 of them would grab the exact same book or a book that was already opened. The paper calls this redundancy.
- The Result: They wasted time and money (computing power) grabbing duplicate books, and the noise of all those useless books actually made it harder to find the real clue.
The Solution: FuseSearch (The Smart Detective Team)
The authors of this paper created a new system called FuseSearch. Think of it as a detective team that learns to be smart about when and how to grab books together.
Here is how it works, using simple metaphors:
1. The "Tool Efficiency" Scorecard
Instead of just asking, "Did we find the clue?" FuseSearch asks, "Was that book new information?"
- If an agent grabs a book they've never seen before, they get a Gold Star.
- If they grab a book they already looked at, they get a Frown.
- The system is trained to maximize Gold Stars and minimize Frowns. This is called Tool Efficiency.
2. The Two-Phase Training (SFT + RL)
To teach the AI this skill, the authors used a two-step training camp:
- Phase 1 (SFT - The Classroom): They showed the AI examples of good detectives who grabbed many different books at once. This taught the AI how to work in a team without getting confused.
- Phase 2 (RL - The Real-World Drill): They let the AI practice. If the AI grabbed too many duplicate books, it lost points. If it found the right page quickly with few duplicates, it got a huge reward. Over time, the AI learned to start by grabbing a wide variety of books (exploration) and then quickly narrow down to just the specific pages it needed (refinement).
3. The Minimalist Toolkit
Unlike other systems that need complex maps of the library (code graphs) or special translators, FuseSearch only uses three simple tools:
- grep: "Find any book with this specific word."
- glob: "Find all books with this name pattern."
- read_file: "Open this specific book and read a few lines."
It's like solving the mystery with just a magnifying glass and a list of names, rather than needing a super-computer to map the whole library first.
The Results: Fast, Cheap, and Accurate
When they tested FuseSearch on a famous benchmark (SWE-bench Verified):
- Speed: It finished the search 93.6% faster than previous methods.
- Efficiency: It used 67.7% fewer steps (turns) and 68.9% less computing power (tokens).
- Accuracy: It didn't just get faster; it got better. It found the right files 84.7% of the time and the right functions 56.4% of the time, beating much larger and more expensive systems.
The Bottom Line
FuseSearch proves that you don't need to be the biggest or most complex detective to solve the case. By teaching the AI to stop wasting time on duplicate clues and to grab multiple new clues at once, you get a system that is smarter, faster, and cheaper.
It turns the chaotic "grab everything" approach into a targeted, efficient hunt, ensuring that every second of computing time actually brings the agent closer to the solution.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.