Language models improve by learning from past task experience

Learning to Learn Experiential Knowledge

Computation and LanguageMachine Learning

Summary

Large language models often struggle to learn useful general lessons from past tasks to help with new ones. This paper shows a new way for models to keep a special notebook that summarizes what they learn in ways that help later on. The authors trained a system called NoteTaker to edit this notebook after each task, focusing on knowledge that pays off in future tasks. Their approach improved performance on many different task streams and worked well even beyond training conditions.

What this means in practice

  • For ai product developers: Improve AI assistants by enabling them to learn reusable knowledge from past task interactions for better performance on new tasks.$Commercial implications: The method enables building smarter AI assistants that incrementally improve through experience, making them more valuable products.
  • For automation engineers: Enhance robot or agent task planning systems to accumulate and reuse knowledge across multiple tasks, improving efficiency in complex environments.

Authors

Tong Chen, Teng Xiao, Mohan Cao, Chuanyang Jin, Faeze Brahman, Akari Asai, Hannaneh Hajishirzi, Luke Zettlemoyer

Abstract

Language models remain limited at improving across a stream of tasks by learning from experience. We study experiential knowledge accumulation: converting earlier task trajectories into reusable knowledge in free-form text that improves performance on later tasks. Although memory harnesses and workflows are effective, they are insufficient alone: models often fail to abstract rules or procedures that are salient for reuse, and instead record task-specific details that do not generalize to future tasks. We therefore propose to learn the memory update policy from outcomes on later tasks, using a minimal harness that leaves the model free to decide what to retain. Our method, NoteTaker, trains a notebook model that rewrites a persistent notebook after each task, in two stages: SFT on teacher-generated notebook updates, followed by RL on short task streams, where each update receives credit only from the rewards of subsequent tasks it can influence. On 40-task streams from AppWorld, ALFWorld, and MiniGrid, with Qwen3.5-9B solving the tasks, our trained 9B notebook model raises average held-out success from 33.6 to 53.8, outperforming prior memory harnesses paired with the untrained model, as well as several much larger notebook models. These gains also transfer to held-out tools and environments, to trajectories from other task models, to streams longer than those seen in training, and to other benchmarks in most cases. Our analysis shows that our causal accumulated reward learns more efficiently than the trajectory-outcome and next-task rewards used in prior work, since knowledge often pays off several tasks later.