Recursive Synthesis for Long-Horizon Terminal Tasks
This paper introduces Recursive Synthetic Terminal Tasks (RST), a scalable framework that recursively generates and verifies long-horizon terminal-agent tasks to produce 37,484 high-quality examples at low cost, significantly boosting the performance of fine-tuned and agentic models on challenging benchmarks without showing signs of diminishing returns.
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 teaching a robot to be a master mechanic. You don't just want it to know what a wrench looks like; you want it to actually fix a car engine that has never been broken before. This is the world of "AI agents"—smart computer programs that don't just chat with you but actually do things, like typing commands, moving files, and fixing software bugs. The big problem is that these robots are terrible at long, complicated jobs. If you ask them to build a house, they might lay one brick and then get confused. To teach them better, we need thousands of practice problems where the robot tries to build the house, fails, gets corrected, and tries again. But making these practice problems is a nightmare. If you write one by hand, it costs a fortune. If you ask a computer to write one, it often makes up rules that don't match the tools, or creates a puzzle that is impossible to solve. It's like asking a chef to write a recipe for a cake, but the recipe calls for ingredients that don't exist in the kitchen, or the oven is broken.
Enter a new method called Recursive Synthetic Terminal Tasks (RST). Think of this as a "digital evolution machine" for creating robot training puzzles. Instead of humans writing every single problem, the researchers started with a small pile of 639 verified, working puzzles (the "seeds"). Then, they used a powerful AI to act like a mischievous but brilliant game designer. This AI looked at a working puzzle, added a new, harder step to the solution (like adding a new gear to the engine), and then immediately updated the instructions and the "answer key" to match the new, harder version. Crucially, before the new puzzle was saved, it was thrown into a digital sandbox—a safe, isolated computer room—to see if it actually worked. If the solution failed, the puzzle was tossed. If it worked, it was kept and used as a seed for the next round of even harder puzzles. The researchers ran this loop 15 times. By the end, they had created nearly 38,000 new, verified puzzles. The best part? The puzzles got genuinely harder with every round. The middle puzzle went from needing 67 lines of code to solve to needing 374 lines. The number of commands a robot had to type jumped from 40 to 244.
The results were dramatic. When they tested a top-tier AI solver on these puzzles, its success rate dropped from 90% on the easy, first-round puzzles to a mere 2.5% on the 15th round. This proved the system wasn't just making longer instructions; it was actually creating tasks that required much deeper thinking and more steps. But the real magic happened when they used these puzzles to train a different AI model (Qwen3.5). After training on the trajectories (the step-by-step attempts) generated by these puzzles, the model got significantly better at solving real-world terminal tasks. On standard tests, its performance jumped by up to 10 points, and with further reinforcement learning, it improved by another 20% to 41% depending on the test. The most exciting finding is that the system showed no sign of stopping. Even after 15 rounds of making things harder, the system kept churning out valid, diverse puzzles without collapsing into nonsense or repeating the same tricks. It suggests that we might be able to generate an endless supply of high-quality training data for AI agents, turning the expensive, slow process of human teaching into a fast, automated, and scalable evolution.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.