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.
Figures & tables
Figure 2: NoteTaker trains a notebook model on short segments of task streams (B) for deployment on long task streams (A) . Each notebook update receives credit only from rewards on tasks it can influence, shown here for m2 .
AppWorld
ALFWorld
MiniGrid
Average
Memory harness
Notebook model
Train
Test (N)
Test (C)
Train
Test
Train
Test
Train
Test
Qwen3.5-4B
No memory
–
0.0
0.0
0.0
68.1
40.7
30.2
19.1
32.8
19.9
AWM
Qwen3.5-4B
0.0
0.0
0.0
76.2
47.4
31.5
18.6
35.9
22.0
ReasoningBank
Qwen3.5-4B
0.0
0.0
0.0
69.4
47.5
29.4
15.6
32.9
21.0
ACE
Qwen3.5-4B
0.5
0.0
0.0
75.8
42.6
36.6
20.3
37.7
21.0
Minimal
Qwen3.5-4B
0.0
0.0
0.2
81.2
56.2
38.0
28.8
39.8
28.4
Table 1: Memory harnesses are bounded by the capability of the notebook model. Task success rate (%) on training and held-out task streams. The last row keeps our minimal harness and replaces the notebook model with our fine-tuned NoteTaker model. For AppWorld, N and C denote Test-Normal and Test-Challenge. The Average columns average the per-benchmark scores, first averaging the two AppWorld test splits.
AppWorld
ALFWorld
MiniGrid
Average
Notebook model
Train
Test (N)
Test (C)
Train
Test
Train
Test
Train
Test
Qwen3.5-4B
GPT-5.6-Sol
24.2
18.0
10.8
90.6
78.1
54.5
34.5
56.5
42.3
Fable-5.1
28.2
18.5
16.8
95.6
90.9
64.2
49.4
62.7
52.6
Kimi-K2.6 (SFT teacher)
13.8
9.2
8.5
83.9
79.6
82.2
31.5
60.0
40.0
Qwen3.5-4B
0.0
0.0
0.2
81.2
56.2
38.0
28.8
39.8
28.4
+ SFT
15.2
5.2
4.5
87.5
77.1
42.9
30.1
48.6
37.4
Table 2: NoteTaker enables models to accumulate experiential knowledge. Task success rate (%) on training and held-out task streams. All rows use our minimal notebook harness and vary only the notebook model. For AppWorld, N and C denote Test-Normal and Test-Challenge. The Average columns average the per-benchmark scores, first averaging the two AppWorld test splits.
Figure 3: NoteTaker notebook models generalize beyond their RL training conditions. (a) Task success rate of 9B notebook models trained on each benchmark and evaluated on all three, with the 9B task model. Shading marks the training benchmark. (b) On AppWorld, task success rate of the 4B and 9B notebook models with each task model, one subfigure per task model. Shading marks the task model each notebook model was trained with, and Base is the untrained notebook model.
Figure 4: Credit assignment and rollout length affect RL effectiveness on AppWorld. (a) Training stream success and held-out task success rate during training with causal accumulated rewards, a trajectory-level outcome reward, or next-task credit, for the first training seed. (b) Held-out task success rate for rollout lengths K∈{4,8,16} at matched numbers of sampled training tasks. Training curves are smoothed, and dots on the held-out curves mark evaluated checkpoints.
Figure 5: SFT initialization makes RL effective. (a) Training stream success and the share of rollout groups in which every rollout receives the same reward (zero-gradient groups) during RL that starts from the SFT checkpoint or directly from the base model, with otherwise identical settings. (b) Held-out AppWorld task success at RL checkpoints, starting from step 0.
Figure 6: Five categories for organizing retained experiential knowledge. Each card shows a verbatim notebook excerpt illustrating one category. Categories can co-occur within a notebook and are not specific to any notebook model or benchmark.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Task model
Method
Initial notebook
Train
Test (N)
Test (C)
4B
No memory
–
0.0
0.1
0.0
ACE
Empty
0.2
0.0
0.0
Static manual
Hand-written
13.8
11.3
5.8
ACE
Hand-written
21.3
12.8
6.2
NoteTaker
Empty
32.0
22.2
11.8
9B
No memory
–
0.9
0.6
0.2
Appendix
Table 3: Effect of a hand-written initial notebook on AppWorld. Task success rate (%). The static manual is never updated, and ACE and NoteTaker update their notebook after every task. All rows average 50 streams per split, whereas Table 1 and Table 2 use the first 10, so the NoteTaker rows differ slightly from those tables.
Condition
Test (N)
Test (C)
No gradient
SFT
19.5
2.2
–
A: empty
24.6
16.1
0.0
B: teacher
19.2
12.0
14.5
C: SFT library
20.4
9.3
14.8
D: online
19.6
11.7
27.6
Appendix
Table 4: Intermediate-state initialization does not outperform empty-start RL for the 9B notebook model. The left table reports held-out task success rate and the overall percentage of no-gradient groups. The right table reports training coverage, no-gradient groups, and notebook-cap events by starting depth for condition C, initialized from the SFT library.
Estimator
Model
Seed 1
Seed 2
Average
Trajectory-level outcome reward
4B
12.8
11.8
12.3
Causal accumulated reward (ours)
4B
14.7
14.3
14.5
Trajectory-level outcome reward
9B
19.8
21.8
20.8
Causal accumulated reward (ours)
9B
24.1
25.1
24.6
Appendix
Table 5: Credit assignment across two training seeds on AppWorld. Held-out task success rate (%) after 160 training steps.
Detailed feedback
Binary feedback
Task model
Notebook model
AppWorld
ALFWorld
MiniGrid
AppWorld
ALFWorld
MiniGrid
4B
None (no memory)
0.0
40.7
19.9
0.0
40.7
19.9
Qwen3.5-4B
0.1
56.2
28.4
0.1
58.7
26.1
4B + NoteTaker
17.3
86.0
38.8
4.1
79.3
40.0
9B
None (no memory)
0.4
51.2
34.1
0.4
51.2
34.1
Qwen3.5-9B
1.2
67.9
35.5
0.4
65.1
33.0
Appendix
Table 6: Detailed vs. success/failure-only (binary) feedback. Task success rate (%) on held-out streams of 40 tasks. The notebook models are trained with detailed feedback and evaluated without retraining.
Figure 7: NoteTaker-trained notebook models maintain their advantage throughout long deployment task streams. Each curve reports task success averaged within the prefix from task 1 through task t , and then across held-out task streams. (b) AppWorld notebook models trained with K∈{4,8,16} . Dashed vertical lines mark the corresponding RL training horizons.
AppWorld
ALFWorld
MiniGrid
All 40
Last 8
All 40
Last 8
All 40
Last 8
4B, frozen after 8
16.6
16.5
82.4
84.6
39.4
41.5
4B, continued updating
17.4 (+0.8)
19.0 (+2.5)
86.0 (+3.6)
94.1 (+9.5)
38.8 ( − 0.6)
38.8 ( − 2.7)
9B, frozen after 8
29.9
30.2
84.4
88.2
41.4
44.8
9B, continued updating
29.1 ( − 0.8)
30.5 (+0.3)
86.6 (+2.2)
96.3 (+8.1)
41.7 (+0.3)
41.8 ( − 3.0)
Appendix
Table 7: Continued updating vs. freezing the notebook after 8 updates. Task success rate (%). Parentheses give the improvement from continued updating.
Benchmark
Feedback (abridged)
AppWorld
Num Passed Tests: 1 Num Failed Tests: 6 >> Failed Requirement: assert model changes match venmo.Notification, venmo.PaymentRequest AssertionError: {’venmo.Transaction’, ’venmo.Notification’, ’venmo.User’} == {’venmo.Notification’, ’venmo.PaymentRequest’}
ALFWorld
ALFWorld binary outcome: FAIL. Executed 45 admissible actions and received cumulative native reward 0. Final environment feedback: You arrive at countertop 2. … Episode outcome: FAIL. The agent reached the 50-turn evaluation limit.
MiniGrid
GridGames episode terminated; reward=-1.000000; primitive_steps=1; invalid_actions=0 Episode outcome: FAIL. The environment ended after 1 model turns.
Appendix
Table 8: Abridged held-out examples of post-task feedback.
Large language model (LLM) agents can improve their performance by reusing knowledge distilled from past interactions. However, curating new experiences into a knowledge bank that becomes more useful as it grows remains challenging. Effective knowledge accumulation should limit redundant overlap among entries and ensure that new knowledge contributes beyond what the bank already provides. Yet training a curator with Group Relative Policy Optimization (GRPO) on standalone task success can reinforce general guidance even when it duplicates existing knowledge. Therefore, we propose Knowledge Weaver, a reinforcement learning framework that trains a language model to curate reusable knowledge from agent trajectories. We couple feedback inspired by token-wise mutual information (MI) with marginal success rewards to guide knowledge accumulation. Together, these signals encourage the curator to preserve distinct information from experience and produce entries that improve task success when added to existing knowledge. Standalone success rewards also favor entries that are useful on their own. On ALFWorld and WebShop, Knowledge Weaver achieves mean success rates of 54.0% and 42.0% with k=10 retrieved entries, exceeding GRPO by 16.9 and 18.7 percentage points, respectively. Its knowledge banks also outperform the evaluated prompt-based and established banks, including human-written banks, in overall ALFWorld success rate and WebShop score with the executor frozen. Our codebase is available at https://github.com/LaoKuiZe/Knowledge-Weaver.
Yuyang Zhao, Lizi Liao, Leyang Shen +4
University of Science and Technology of China · Singapore Management University · National University of Singapore
As agents powered by foundation models move into open-ended environments, continual learning from experience becomes essential. For agents built on models with fixed parameters, this learning requires reusing prior task experience in context to improve performance and efficiency on future tasks. Existing memory and experience-learning systems typically focus on either retained facts or procedures, and lack a mechanism for establishing the reliability of claims extracted from the ongoing task stream. Indeed, we find that approximately 12--33% of entries produced by representative systems harm future task performance when reused. To address these limitations, we propose RIKA (Reliable Knowledge Acquisition), which combines hierarchical extraction of factual, conceptual, procedural, and metacognitive knowledge with Evidence-based Knowledge Admission, which uses source evidence and subsequent experience to govern which claims enter the task agent's context, without additional validation tasks. Across six task streams from Continual Learning Bench and four model backbones, RIKA achieves the highest aggregate score on every backbone.
Yixu Huang, Jiaqi W. Ma
University of California, Davis · University of Illinois Urbana-Champaign
A language model does not keep the experience of a task it completes. Where an attempt can be checked by executing it, that experience can become training data without human-written tasks or labels. We present and evaluate a framework that generates practice tasks, verifies attempts by execution, trains a small adapter (added weights; the base model remains fixed) on the verified records, and repeats, one generation per repetition, evaluating every model on a held-out examination that no stage of the pipeline reads. In predicting the output of Lua programs, using an interpreter as the sole source of labels, a 4-billion-parameter (4B) model's examination accuracy rises from 5.05% to 13.24% over four generations. In editing files with Vim, a larger teacher model writes tasks from the user manual and supplies most verified solutions. Trained on these records, the 4B model solves hand-written examination tasks its base never solves (up to 3.50% of attempts, versus 62.25% for the teacher), whereas a control trained with mismatched task requests solves none. On 228 easier hand-written course exercises, the pass rate rises from 15-16% to 37-41% (exploratory). An iterative protocol then ran three generations with 4B and 8B models, governing every release by a fixed rule. In the first generation, examination gains were one-tenth to one-fifth of the gains on held-out generated tasks. Across training seeds, later candidates averaged 1.2 to 6.1 percentage points above their baselines on generated tasks, implying an expected examination gain of 0.1 to 1.3 points, below the 100-task examination's 2.8-point detection threshold. Consequently, no later examination gain was established, and because outcomes were recorded per attempt rather than per task, whether transfer, acquisition, or retention stalled remains undecided.