BONSAI: Evolvability-Guided Tree Search over Skills
BONSAI is a novel skill-optimization framework for frozen agents that employs evolvability-guided Monte Carlo tree search to distinguish between overfitting spikes and improvable plateaus, significantly outperforming existing baselines in heldout accuracy.
Original paper dedicated to the public domain under CC0 1.0 (http://creativecommons.org/publicdomain/zero/1.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 trying to teach a super-smart robot how to do a complex job, like fixing a spreadsheet or solving a tricky math problem. The catch? The robot is "frozen." Its brain is locked in place; you cannot retrain it, tweak its neurons, or let it learn from its mistakes the way a human student does. The only way to make it better is to write it a set of instructions—a "skill"—in plain English. Think of this skill not as a simple command, but as a detailed field manual that tells the robot exactly which tools to grab, what pitfalls to avoid, and how to double-check its work before handing in the answer.
The big question scientists are asking is: How do you write the perfect manual? If you just try a few changes, test them, and keep the ones that work, you might get stuck. It's like hiking up a mountain where the map only shows your current altitude. You might reach a tiny, sharp peak that looks high, but it's so narrow that the next step takes you straight off a cliff. Or, you might be on a wide, gentle plateau where every step forward leads to even higher ground, but you can't tell the difference just by looking at your current height. This paper introduces a new way to navigate this landscape, using a concept borrowed from biology called "evolvability"—the ability of a path to keep producing good results even when you take a wrong turn.
The Problem: The Trap of the "Sharp Peak"
The researchers at IBM Research noticed a flaw in how we usually improve these AI manuals. The standard method is simple: take a manual, ask the AI to rewrite it, test the new version, and if the score goes up, keep it. If it goes down, throw it away.
The problem is that this method is "blind." It only looks at the score of the current manual. It can't tell the difference between a manual sitting on a broad plateau (a safe, stable area where small changes usually lead to even better results) and a manual perched on a narrow, overfit spike (a fragile peak where the score is high, but any tiny change causes the score to crash). If you are on a spike, the next edit might fix one small error but break ten other things that were working perfectly. The standard method keeps walking off the cliff because it only sees the high score, not the danger.
The Solution: BONSAI and the "Evolvability" Compass
To fix this, the team created a new framework called BONSAI. Instead of just looking at how good a manual is right now, BONSAI asks: "How good is the neighborhood around this manual?"
They use a clever metaphor from nature: Evolvability. In biology, a species isn't just judged by how well it survives today, but by its ability to keep producing useful offspring in the future. A species on a "broad plateau" can mutate and still survive; a species on a "sharp spike" dies out if it changes even a little.
BONSAI treats the search for the perfect manual like growing a tree.
- The Tree: It starts with one "seed" manual.
- The Branches: Every time the AI tries to rewrite the manual, it grows a new branch (a child node).
- The Compass: When deciding which branch to explore next, BONSAI doesn't just pick the branch with the highest score. It picks the branch that looks like it has the best future. It calculates a score called Evolvability, which is basically the average score of all the little changes (mutations) made to that manual.
If a manual is on a "spike," its neighbors will have terrible scores, and the evolvability score will be low. BONSAI avoids it. If a manual is on a "plateau," its neighbors will also have good scores, and the evolvability score will be high. BONSAI dives deep into these safe, productive areas.
How It Works: The "Graft" Trick
The researchers added a special feature called GRAFT. Imagine you have two branches of the tree: one branch learned how to handle "math problems," and another branch learned how to handle "spreadsheets." They are on different paths and never talk to each other.
Usually, the AI can't combine these skills because it only looks at one manual at a time. But GRAFT allows the AI to peek at the "math" branch, see a trick that works, and copy that trick into the "spreadsheet" manual. It's like a gardener taking a strong branch from one tree and grafting it onto another to give it new powers. This happens without breaking the tree structure, allowing the AI to mix and match the best ideas from different parts of its search.
The Results: Climbing Higher
The team tested BONSAI on three different challenges:
- SpreadsheetBench: Fixing Excel files.
- SearchQA: Answering quiz questions using search results.
- LiveMathematicianBench: Solving math problems.
They used a frozen 30-billion-parameter AI agent (the "performer") and a separate AI to write the manuals (the "optimizer"). They compared BONSAI against two other methods, GEPA and SkillOpt, making sure everyone used the same amount of computing power (the same "budget").
The results were clear:
- On SpreadsheetBench, BONSAI improved the accuracy by 5.71 points over the starting manual and beat the best competitor (GEPA) by 2.14 points.
- On SearchQA, it improved by 6.57 points over the starting manual.
- On LiveMathematicianBench, the gap was huge. BONSAI reached 64.91% accuracy, while the starting manual was only at 28.23%, and the competitor GEPA was at 56.14%.
The researchers found that when they turned off the "evolvability" compass and just let the AI greedily chase the highest score (like the old methods), the AI got stuck on those "sharp peaks" early and stopped improving. BONSAI, however, kept finding better solutions deeper into the search because it knew which paths were safe to explore.
The Takeaway
The paper suggests that to make frozen AI agents smarter, we shouldn't just look for the highest score right now. We should look for the most promising neighborhood. By using a tree-search method that values stability and future potential (evolvability) over immediate, fragile wins, BONSAI found better instructions for the AI to follow. It didn't need to retrain the AI's brain; it just needed to write a better field manual, and it did so by knowing which paths were safe to walk down.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.