NTH

Don't Forget What You Just Learned: Self-Directed Repair Turns Agent Mistakes Into Lasting Lessons

AuthorsYuval Kansal, Karen Ullrich, Polina Kirichenko, Ilia Kulikov, Niraj K. Jha, Mohammad Pezeshki, Mark Ibrahim

AffiliationsPrinceton University · Meta FAIR

October 30, 2026 2 min read
Watch on YouTube
The one-line take

Self-Direction turns an agent’s mistakes into small reusable adapters so it can avoid repeating them on future tasks.

Key results

17.0
GAIA success gain

Percentage-point improvement in task success.

13.8
Terminal-Bench 2.1 success gain

Percentage-point improvement in task success.

8.9
Claw-Eval success gain

Percentage-point improvement in task success.

0.02%
Maximum trainable parameter share

Maximum share of base-model parameters trained per repair adapter.

18.9%
Three-encounter pass rate

Share of prior mistakes solved in all three encounters, up from 9.7%.

What the paper found

Meta's Self-Direction turns an agent's verified failure into a reusable repair: the agent reflects on its failed trajectory, creates procedural training examples, and distills them into a separate SVD-initialized LoRA adapter. A sentence-embedding router retrieves relevant adapters for later tasks, while the base model and existing adapters remain frozen; each repair adds at most 0.02% of the base model's parameters. On open-weight Qwen-family agents, including Qwen3.6-27B, success improves by 17.0 percentage points on GAIA, 13.8 points on Terminal-Bench 2.1, and 8.9 points on Claw-Eval. Across repeated task encounters, the share of prior mistakes solved in all three encounters rises from 9.7% to 18.9%. The method also transfers lessons to unseen tasks, rather than merely correcting the original failure. Reported comparisons show competitive results against frontier systems including Anthropic's Claude Opus 4.7, Google's Gemini 3.1 Pro, and agents using OpenAI's GPT-5.4; on Terminal-Bench 2.1, it also outperforms GLM-5.1. The central contribution is a persistent, modular learning loop that lets deployment experience improve future behavior without full-model fine-tuning.

Original abstract

Intelligent agents should learn from their mistakes so that experience leads to continuous improvement. Yet today's agents recover from a mistake only temporarily: in-context reflections are easily forgotten across sessions and compete for limited context, while full-parameter fine-tuning is expensive and can interfere with existing capabilities. We introduce Self-Direction, a mechanism for agents to learn from mistakes that combines the benefits of temporary in-context retries and policy updates. When an agent fails a task, it reflects on its own trajectory in order to extract a lesson and immediately distills it into a lightweight low-rank adapter. By keeping the original weights frozen, Self-Direction prevents adapter training from overwriting base-model parameters while training additional parameters equivalent to ~0.02% of the base model's parameter count for each adapter. The agent then saves these adapters in a persistent library of lessons, automatically routing them to solve related problems later. Experiments with agents based on open-weight models from the Qwen family across open-ended research (GAIA), tool-use workflows (Claw-Eval), and terminal tasks (Terminal-Bench 2.1) show that our method improves overall success rates by 8.9 to 17.0 percentage points and performs competitively with frontier systems. We find that Self-Direction reduces repeated mistakes across future encounters of a task, nearly doubling the reliability of an agent's corrections. Learned lessons also transfer: a handful of adapters generalize to dozens of new tasks without additional training. Ultimately, this self-directed repair transforms everyday mistakes into lasting lessons.

Read the original paper

More in Continual Learning

Browse all 30 papers →
01Continual Learning

Are Self-Evolving Agents Continual Learners?

Xiaoyin Chen, Yizheng Huang, Yinglun Xu, Ziyun Zhao, Emmett McQuinn, Julie Liu, Hope Yao

The study finds that current self-evolving AI agents can learn new workflows, but often do so by disrupting what they already know.

Read analysis
02Continual Learning

Towards Continual Learning: Mitigating Forgetting With Subspace Tuning

Arnav Chavan, Kusha Sareen, Rishabh Tiwari, Abhranil Chandra, Johan Obando-Ceron, Kurt Keutzer, Scott Niekum, Inderjit S Dhillon, Devvrit Khatri

Subspace Tuning aims to help language models learn new skills while preserving the capabilities they already have.

Read analysis
03Continual Learning

Cortex: Consolidating Context into Parametric Memory

Jintian Zhang, Feng He, Xinnian Liang, Ziwen Xu, Haoming Xu, Haojing Huang, Shuangzhi Wu, Ningyu Zhang

Cortex aims to help language models retain useful information from temporary context without forgetting what they already know.

Read analysis