Memento No More: Coaching AI Agents to Master Multiple Tasks via Hints Internalization

Minttu Alakuijala, Ya Gao, Georgy Ananov, Samuel Kaski, Pekka Marttinen, Alexander Ilin, Harri Valpola

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:

  1. Performance Degradation: As prompts grow longer, models struggle to attend to the most relevant information (the "lost in the middle" phenomenon).
  2. Quadratic Costs: In Transformer architectures, longer prompts lead to quadratically increasing computational costs and slower inference.
  3. 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.

Figure 1: The proposed iterative pro- cess in which a human expert coaches an AI agent to master multiple tasks.

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.
Figure 3: Overview of the proposed training procedure. Left: In Round 1, a student agent is trained to internalize initial hints (tool documentation and general best practices) by learning to distill the outputs (actions at) of a teacher agent that has access to these hints, while the student itself only sees a minimal task description and the execution history (actions a1:t−1, environment observations o1:t−1). Right: In Round 2 and subsequent rounds, the behavior of the trained student is further refined based on human feedback in the form of mistake descriptions and corrective hints, each addressing a specific kind of mistake the agent exhibits. These hints can be inserted only at steps where this mistake occurs, by implementing an automated reviewer (AI or a script) that locates the mistake in past trajectories. The student is then further trained to distill the outputs of a teacher that is conditioned on this corrective feedback, while the student is not.

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:

  1. 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.
  2. 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.
Figure 2: The percentage of wrong answers across all ToolQA test tasks. Our agent (MNM for Memento No More) outperforms an agent that combines hints for all tasks in the prompt (Combined Hints), and after 3 feedback rounds even outperforms dedicated agents with only hints for the single correct task in the prompt.

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

Abstract

As the general capabilities of artificial intelligence (AI) agents continue to evolve, their ability to learn to master multiple complex tasks through experience remains a key challenge. Current LLM agents, particularly those based on proprietary language models, typically rely on prompts to incorporate knowledge about the target tasks. This approach does not allow the agent to internalize this information and instead relies on ever-expanding prompts to sustain its functionality in diverse scenarios. This resembles a system of notes used by a person affected by anterograde amnesia, the inability to form new memories. In this paper, we propose a novel method to train AI agents to incorporate knowledge and skills for multiple tasks without the need for either cumbersome note systems or prior high-quality demonstration data. Our approach employs an iterative process where the agent collects new experiences, receives corrective feedback from humans in the form of hints, and integrates this feedback into its weights via a context distillation training procedure. We demonstrate the efficacy of our approach by implementing it in a Llama-3-based agent that, after only a few rounds of feedback, outperforms advanced models GPT-4o and DeepSeek-V3 in tasksets requiring correct sequencing of information retrieval, tool use, and question answering.
BibTeX
@article{alakuijala2026memento,
  author = {Minttu Alakuijala and Ya Gao and Georgy Ananov and Samuel Kaski and Pekka Marttinen and Alexander Ilin and Harri Valpola},
  title = {{Memento No More: Coaching AI Agents to Master Multiple Tasks via Hints Internalization}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure