Prompting Policies for Multi-step Reasoning and Tool-Use in Black-box LLMs with Iterative Distillation of Experience
This paper proposes a Reinforcement Learning framework that optimizes a lightweight prompter model through iterative distillation of experience to significantly enhance the multi-step reasoning and tool-use capabilities of frozen black-box LLMs, achieving superior performance and sample efficiency compared to state-of-the-art evolutionary baselines.
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
The Big Picture: The "Black Box" Problem
Imagine you have a super-smart, trillion-dollar robot (a "Black-Box" AI) that you can't touch, open, or reprogram. You can only talk to it through a walkie-talkie. In the past, if you wanted this robot to get better at a specific job, you had to rewire its brain (fine-tuning). But since you can't touch the brain, you have to be very clever with what you say to it. This is called Prompt Engineering.
The problem is that finding the perfect thing to say is like trying to guess the winning lottery numbers by shouting random phrases. Sometimes a tiny change in your words makes the robot fail completely.
The Solution: A "Prompter" Coach and a "Worker" Robot
The authors propose a new system with two characters:
- The Worker: The big, frozen, super-smart robot that actually does the hard work (like solving math or booking flights). We never change this one.
- The Prompter: A smaller, cheaper, trainable "Coach" AI. Its only job is to write the perfect instructions (the prompt) for the Worker.
Think of it like a Chess Coach (the Prompter) and a Grandmaster Player (the Worker). The Coach doesn't play the game; they just figure out the best opening moves to tell the Grandmaster. The Coach learns by watching what happens when the Grandmaster plays.
How They Teach the Coach: The "Experience Buffer"
Usually, teaching an AI is hard because you only get a simple "Right" or "Wrong" score at the end. That's like telling a student, "You failed the test," without telling them why.
This paper introduces a special trick called the Contrastive Experience Buffer.
- The Analogy: Imagine a Gym Trainer who doesn't just say "Good job" or "Bad job." Instead, the Trainer keeps a notebook (the Buffer) of every workout.
- When the athlete succeeds, the Trainer writes down exactly what they did right.
- When they fail, the Trainer writes a detailed critique: "You lifted your elbow too high," or "You forgot to breathe."
- The Magic: The Coach AI reads this notebook before every new attempt. It learns from the stories of past successes and failures, not just the final score. This allows the Coach to learn much faster than if it were just guessing.
The Results: From Clumsy to Master
The researchers tested this on two types of difficult tasks:
Logic Puzzles (The "Web of Lies"):
- The Task: Figuring out who is telling the truth in a chain of confusing statements.
- The Result: The standard AI got it right about 55% of the time. The Coach-Worker team got it right 90% of the time.
- What the Coach Learned: The Coach stopped asking the Worker to "just think hard." Instead, it learned to tell the Worker to act like a strict "State Auditor," checking every single step against the raw data, refusing to trust its own intuition.
Tool Use (Booking Flights & Shopping):
- The Task: Using a computer system to book a flight or return a shirt, which requires following strict rules and clicking specific buttons in the right order.
- The Result: Success rates jumped from 74% to 91%.
- What the Coach Learned: The Coach discovered that the Worker often tried to do too many things at once. The Coach learned to give instructions like a "Protocol Engineer," forcing the Worker to do one tiny step, check the result, and then do the next step, preventing the Worker from getting confused.
Why This Matters
- Speed: Because the Coach learns from detailed notes (the buffer) rather than just scores, it learns 2.4 times faster than previous methods.
- Efficiency: You don't need to retrain the giant, expensive Worker robot. You only train the tiny, cheap Coach.
- Discovery: The system didn't just find a better sentence; it discovered new strategies. For example, in the flight booking task, the Coach figured out that you must upgrade the cabin class before changing the flight dates, a specific rule the Worker didn't know to follow on its own.
Summary
This paper shows that instead of trying to fix the giant AI, we can train a small, smart "Prompter" to act as a coach. By giving this coach a notebook of detailed feedback (what went right and what went wrong), the coach learns to write instructions that turn a good AI into a great one, solving complex logic and tool-use problems with much higher accuracy.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.