TL;DR
Researchers have developed a method called Memento No More (MNM) that allows AI agents to "internalize" human coaching into their model weights, rather than relying on increasingly bloated prompts. By iteratively distilling targeted human hints into a Llama-3-70B model, the resulting agent outperformed GPT-4o and DeepSeek-V3 on complex tool-use benchmarks while being 3–4x faster and using 90% fewer input tokens.
What Problem Does This Paper Address?
Current Large Language Model (LLM) agents suffer from what the authors call the "Memento effect"—a reference to the film about a man with anterograde amnesia who must rely on a system of notes to function. Because most agents cannot "learn" from experience without expensive full-scale retraining, developers often pack every possible instruction, tool description, and "best practice" into the system prompt.
This approach has three major flaws:
- Performance Degradation: As prompts grow longer, models struggle to attend to the most relevant information (the "lost in the middle" phenomenon).
- Quadratic Costs: In Transformer architectures, longer prompts lead to quadratically increasing computational costs and slower inference.
- Data Scarcity: Traditional supervised fine-tuning requires massive amounts of high-quality demonstration data, which is difficult and expensive to collect for complex, multi-step tasks.
Methods
The MNM approach uses an iterative coaching process to move knowledge from the prompt into the model's weights.
The process unfolds in distinct rounds:
- Round 1 (Internalizing the Playbook): A "teacher" agent is given a prompt containing tool documentation and general strategies. A "student" agent (the same model) is trained to mimic the teacher's output distribution without seeing those hints. This is done via context distillation, where the student minimizes the KL divergence between its output and the teacher's.
- Round 2 and Onwards (Corrective Coaching): The trained agent is run on tasks to find where it still fails. A human expert analyzes these failures and writes targeted "corrective hints." An automated reviewer then identifies similar mistakes in other trajectories. The model is again trained to internalize these specific corrections.
To keep the model flexible, the authors used LoRA (Low-Rank Adaptation) for efficient weight updates and implemented a probabilistic hint dropout. During training, hints are randomly removed 90% of the time, forcing the model to rely on its internalized weights while still maintaining the ability to follow new instructions in the prompt.
Datasets
The authors evaluated MNM on two challenging benchmarks:
- ToolQA: A dataset requiring agents to interact with external databases (SQL, graphs, text) to answer questions across six domains like Airbnb, DBLP (citations), and Flights.
- OfficeBench: A benchmark for complex office workflows involving multiple applications such as Email, Calendar, Word, and Excel. Unlike ToolQA, these tasks are unique and not based on templates, making generalization much harder.
Key Insights and Ideas
- Internalization > Prompting: The "Memento effect" is real. Figure 2 shows that an agent given "Combined Hints" for all tasks actually performs worse than an agent given hints for just one task. By internalizing these hints, the MNM agent bypasses this cognitive load.
- Richer Training Signals: Unlike standard imitation learning (which just looks at the final text), context distillation uses the full probability distribution over tokens. This provides a much denser signal for the model to learn why a certain action was chosen.
- Annotation Efficiency: The process is surprisingly lean. The researchers achieved state-of-the-art results using only 36 corrective hints for ToolQA and 24 for OfficeBench. Because hints are applied to types of mistakes rather than individual examples, a single hint can correct hundreds of trajectories.
Key Results
The results demonstrate that "coached" smaller models can punch well above their weight class:
- Superior Accuracy: After three rounds of coaching, the MNM Llama-3-70B agent reached a 97.9% success rate on ToolQA, surpassing GPT-4o (92.8%) and DeepSeek-V3 (87.5%). On OfficeBench, it achieved 90.3%, narrowly beating GPT-4o (89.9%).
- Massive Efficiency Gains: Because the agent no longer needs massive prompts to function, it achieved a 3–4x improvement in inference speed.
- Cost Reduction: The input token count was reduced by 90–93% compared to the baseline models, drastically lowering the cost of running the agent in production.
Limitations and Future Work
While powerful, the authors note several areas for further exploration:
- Human-in-the-Loop Scaling: Although efficient, the method still requires human experts to analyze mistakes and write hints. Future work could involve using stronger models to automate the hint-generation process.
- Domain Specificity: The current study focused on multi-tasking within a single domain (e.g., office work). The authors haven't yet tested "cross-training" an agent on entirely unrelated domains (like switching from OfficeBench to medical data).
- Safety and Oversight: Internalizing behaviors into weights makes them harder to "edit" or "turn off" compared to a prompt. The authors emphasize the need for rigorous guardrails and transparent logging when deploying such agents in the real world.
Summary updated