The Optimizer Is the Agent: Reasoning-Driven Search across Prompts, Programs, and ML Workflows
The paper introduces ReASearch, a unified framework where a single reasoning-driven agent autonomously manages the entire optimization process for prompts, programs, and ML workflows, effectively internalizing complex search policies and outperforming specialized systems across diverse tasks.
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 trying to teach a robot to solve a puzzle, write a poem, or train a video game character to win. In the world of artificial intelligence, this is called "optimization." Usually, humans act like the strict coaches on the sidelines. They design a rigid game plan: "Try this, then try that, then if it fails, go back and try something else." The robot (a large language model) is just the player, blindly following orders to make small changes while the human coach decides the big strategy. But what if the robot could be the coach too? What if it could look at the scoreboard, figure out why it lost, decide to change the rules of the game, or even realize it's stuck and need a completely new approach—all on its own? This paper explores that exact question: Can a single, smart AI agent learn to manage its own search for the best solution, without a human-written script telling it how to think?
The researchers behind this study, published at the COLM 2026 conference, introduce a new system called ReASearch. Think of it as handing the robot a Swiss Army knife instead of just a hammer. In the past, AI optimizers were like a factory assembly line with a fixed conveyor belt: a human-designed algorithm decided which candidate solution to test next, how much time to spend, and when to give up. The AI's only job was to whisper a small edit to the current solution. ReASearch flips the script. It gives the AI agent a set of tools—like a Python interpreter to run code, a memory file to remember past mistakes, and the ability to run experiments—and then lets the agent decide everything. The agent asks itself: "Should I test this idea on a small sample first? Did I just make the same mistake twice? Should I throw away my current plan and go back to a better one I tried earlier?" The agent isn't just guessing; it's reasoning through the process, building a strategy as it goes.
The team tested this "self-coaching" agent on 14 different challenges, ranging from tweaking text prompts to make them smarter, to evolving computer programs to solve math puzzles, and even optimizing machine learning training workflows. The results were surprisingly strong. In many cases, ReASearch beat specialized systems that had been built by human experts with specific, hard-coded rules. For example, in a task called "Circle Packing" (fitting circles into a square as tightly as possible), the agent discovered solutions that were better than the best-known results humans had found before. In other tasks, it improved performance by anywhere from 2% to a massive 40%.
What's truly fascinating is how the agent did it. The researchers found that the agent naturally started acting like a seasoned scientist or a grandmaster chess player, even though no one told it to. It began "double-checking" promising ideas before committing to them. It learned to "revert" to earlier, safer versions of a solution when a new path led to a dead end. It started keeping a "lessons learned" journal to avoid repeating the same errors. Most impressively, it figured out that sometimes you need to combine two different techniques to solve a problem, a discovery that usually requires deep human insight. The paper suggests that when you give an AI the right tools and let it reason through the process, it can internalize complex search strategies that we previously thought needed a human-designed algorithm to manage. It turns out, the optimizer doesn't need to be a separate, rigid controller; the optimizer can be the agent itself.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.