← Latest papers
🤖 AI

PROOF-Gen: From Optimized Data to Better Distillation

The paper introduces PROOF-Gen, a method that uses per-scenario prompt optimization to recover successful trajectories from teacher model failures, thereby significantly improving the performance of distilled tool-calling agents on benchmarks and in deployed pipelines.

Original authors: Anh Ta, Junjie Zhu, Shahin Shayandeh

Published 2026-08-26
📖 4 min read☕ Coffee break read

Original authors: Anh Ta, Junjie Zhu, Shahin Shayandeh

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

In the world of artificial intelligence, a common way to teach a smaller, faster computer program to perform complex tasks is to have a much larger, smarter program demonstrate how to do it. This process, known as distillation, works like a master craftsman showing an apprentice a perfect technique. The apprentice watches the master's successful attempts and learns to mimic them. However, this method has a blind spot. If the master makes a mistake, the apprentice simply ignores that attempt and waits for the next successful demonstration. In the specific field of tool-calling—where an AI must decide which digital tools to use to solve a problem, such as checking a database or sending a message—this creates a significant gap. The hardest problems are often the ones where the master almost succeeds but fails at the very last step. Because the standard teaching method discards these near-misses, the apprentice never learns how to navigate the specific decision point that caused the failure, leaving the AI unable to solve the most difficult scenarios.

Researchers at Apple have developed a new method called PROOF-Gen to fix this gap. Instead of throwing away the failed attempts, they treat them as valuable learning opportunities. When the master program fails a task, a second, even more advanced program acts as a reflective coach. This coach analyzes exactly where the master went wrong, looking at the sequence of actions and the final error. It then writes a specific set of instructions, or a "guide," designed to guide the master through that exact same problem again. The master program tries the task once more, this time following the coach's new advice. If it succeeds, that successful path is saved as a new lesson. Crucially, before the apprentice sees this new lesson, the guide is removed. The apprentice learns only from the clean, successful sequence of actions, not from the extra instructions that helped create it. This ensures the apprentice learns the skill itself, rather than memorizing a specific set of hints.

The results of this approach are striking. In tests using a benchmark designed to simulate customer service interactions, the standard method of discarding failures meant that the master program succeeded in only about 7 percent of cases. The new method recovered successful solutions for 93 percent of the tasks that the master had originally failed. When smaller AI models were trained on this expanded collection of lessons, their ability to complete tasks improved dramatically. One model jumped from solving 13 percent of tasks to solving 53 percent, while another saw a similar leap in performance. The researchers confirmed that this improvement came from learning the correct path through difficult decision points, not just from getting better at the easy parts of the task. In fact, training only on the easy, pre-selected successes improved the models' ability to make individual tool calls, but it did not help them finish the overall job. Only by including the recovered, difficult examples did the models learn to complete the full task.

This method also offers a practical advantage for companies that want to upgrade their AI systems without changing how the AI sounds or behaves. Because the final lessons are stripped of the coaching instructions, the AI learns the problem-solving capability of the powerful coach while retaining the natural voice and style of the original master program. The researchers tested this in a real-world production system used for customer service, where the method improved the success rate of the AI by 6.3 percentage points. These gains held true across dozens of different languages and regions, showing that the ability to recover from failure is a universal skill that does not depend on a specific language or cultural context. By turning failures into a structured learning process, the researchers have shown that the path to a smarter AI lies not just in finding more perfect examples, but in understanding and correcting the imperfect ones.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →