Mistake Notebook Learning: Batch-Clustered Failures for Training-Free Agent Adaptation

Xuanbo Su, Yingfang Zhang, Hao Luo, Xiaoteng Liu, Leo Huang
12/12/2025
4 citations
cs.CL

Official code: Bairong-Xdynamics/MistakeNotebookLearning (127 stars, Python, last commit 2026-04-12).

Abstract

With the growing adoption of Large Language Model (LLM) agents in persistent, real-world roles, they naturally encounter continuous streams of tasks and inevitable failures. A key limitation, however, is their inability to systematically learn from these mistakes, forcing them to repeat identical errors in similar contexts.

Show full abstract

Unlike prior training-free methods that primarily store raw instance-level experience or focus on retrieving successful trajectories, we propose Mistake Notebook Learning (MNL), a novel memory framework that enables agents to self-curate generalizable guidance from batch-clustered failures. This mechanism allows agents to distill shared error patterns into structured "mistake notes," updating an external memory only when batch performance improves to ensure stability. To further amplify adaptability, we integrate MNL with test-time scaling, leveraging aggregated failure patterns to actively steer the search process away from known pitfalls. Experiments on mathematical reasoning, Text-to-SQL, and interactive agent benchmarks show that MNL achieves competitive performance compared to existing memory mechanisms and in-context methods in both effectiveness and efficiency. These findings position structured mistake abstraction as a critical lever for robust agent evolution, enabling continuous improvement without the cost of parameter updates. The code is available at https://github.com/Bairong-Xdynamics/MistakeNotebookLearning/tree/main.

View on arXivView PDF

Code Implementations(1)

🎉 Congratulations! This work has been accepted for publication as a Findings paper at ACL 2026! Mistake Notebook Learning (MNL) is a novel, training-free memory framework that enables Large Language Model (LLM) agents to systematically learn from their mistakes

1277Python, JsonnetDec 12, 20257 months ago

Similar Papers

Cite this paper

@article{su2025mistake,
  title  = {Mistake Notebook Learning: Batch-Clustered Failures for Training-Free Agent Adaptation},
  author = {Xuanbo Su and Yingfang Zhang and Hao Luo and Xiaoteng Liu and Leo Huang},
  year   = {2025},
  eprint = {2512.11485},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.11485v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.11485.svg)](https://codeofpaper.com/paper/2512.11485)

Discussion