Paper · Open models · Version v1
Learning to Learn Experiential Knowledge
First published: arXiv, . Original
Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.
This page holds the text of the paper, converted to HTML; figures may be left out.
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.
1]University of Washington 2]The Allen Institute for AI (AI2) 3]Johns Hopkins University 4]Carnegie Mellon University
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 rollout task sequences, 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.
Figure 1: Experiential knowledge accumulation over a task stream. (A) The minimal memory harness used in this study. Before each task, the task model reads a persistent notebook; afterward, the notebook model rewrites the notebook based on the trajectory and reward. (B) A typical failure mode: the notebook model summarizes individual tasks instead of distilling generalizable rules that transfer to future tasks. (C) This work focuses on improving the notebook model. We report test success averaged over the three benchmarks, with Qwen3.5-9B as the task model.
1 Introduction
Language model agents can solve individual tasks, but they remain far behind humans at improving across a stream of tasks by learning from experience. (Wang et al., 2025a). We study experiential knowledge accumulation: converting earlier task trajectories into reusable, free-form textual knowledge that improves performance on later tasks. A simple and widely used form of such knowledge is a persistent in-context notebook that a model reads before each task and rewrites after it (Figure 1(A)), so the knowledge is accumulated in token space rather than in model weights.
Prior work builds memory harnesses around prompted models, with hand-designed rules for what to extract from a trajectory, how to represent it, and when to update it (Zhao et al., 2024; Suzgun et al., 2026; Zhang et al., 2026d). We find that such harnesses are bounded by the capability of the model that writes the notebook (Figure 1(C)). The bottleneck is therefore the notebook model’s ability to abstract reusable knowledge, such as general rules and procedures, from trajectories rather than summarize task-specific details (Figure 1(B)).
Training this capability is difficult for two reasons. First, the value of a notebook update is revealed only through later tasks, whereas assigning credit from a single outcome reward to each notebook update remains difficult (Sutton, 1984; Pignatelli et al., 2024; Feng et al., 2025). Second, streams can be very long at deployment, which makes full-stream RL rollouts prohibitively expensive (Fu et al., 2025; Lu et al., 2026). We propose NoteTaker, which trains the notebook model while keeping the task model frozen, so that gains come from better notebook updates and the trained notebook model can serve other task models. NoteTaker first applies SFT on teacher-generated notebook updates to teach basic behaviors for abstracting and organizing experience. It then applies RL on short task-stream segments, which avoids full-stream rollouts, and credits each update only with the rewards of the subsequent tasks it can influence, which addresses delayed credit.
We evaluate NoteTaker on three benchmarks that require different forms of reusable knowledge, namely API usage in AppWorld (Trivedi et al., 2024), household procedures in ALFWorld (Shridhar et al., 2021), and navigation strategies in MiniGrid (Chevalier-Boisvert et al., 2023), with size-matched Qwen3.5-4B and 9B task and notebook models. With the same minimal harness and the Qwen3.5-9B task model, the trained notebook model raises average held-out success from 33.6 to 53.8, above GPT-5.6-Sol (51.4) and approaching Fable-5.1 (61.7) as notebook models (Figure 1(C)). On AppWorld, it reaches 34.0 on Test-Normal and 25.8 on Test-Challenge, whose applications and APIs are absent from training, compared with 23.0 on Test-Challenge for Fable-5.1. RL improves over SFT in every held-out setting, and crediting each update with the rewards of subsequent tasks outperforms a trajectory-level outcome reward. Although RL uses eight-task segments with a single task model, the trained notebook model remains effective over 40-task streams, transfers to other task models, and in most cases also improves on benchmarks it was not trained on.
In summary, our contributions are:
- We show that memory harnesses are bounded by the notebook model: weak models can use high-quality notebooks but cannot write them, and harness design alone does not close this gap.
- We propose NoteTaker, which trains a notebook model with teacher SFT followed by RL on short task-stream segments with causal credit assignment, improving over SFT across three benchmarks and two model sizes.
- We demonstrate generalization beyond the training conditions: from short to long streams, from training tasks to held-out tasks and applications, to other task models, and across benchmarks.
More broadly, our workflow provides a foundation for training agents that operate over task streams to learn from prior experience, including settings with alternative knowledge representations or jointly trained task models.
2 Related Work
Continual Learning Agents.
Continual learning traditionally studies how models improve over sequences of tasks through parameter updates while retaining previously acquired capabilities (Parisi et al., 2019; Kirkpatrick et al., 2017; Luo et al., 2025). Recent work extends this objective to language-model agents and evaluates whether experience from earlier tasks improves performance on later tasks (Wu et al., 2024; Zheng et al., 2025; Shu et al., 2026; Asawa et al., 2026). We study the same cross-task objective, but accumulate experience in token space rather than modifying model parameters (Zweiger et al., 2025) during a task stream. The model weights remain fixed within each task stream while task trajectories are converted into textual knowledge carried across tasks in a persistent notebook.
External Memory and Context Engineering.
Prior work enables agents to carry information across interactions through two broad mechanisms. External-memory systems store structured records in databases and provide operations for adding, updating, deleting, and retrieving them (Park et al., 2023; Packer et al., 2023; Xu et al., 2025; Chhikara et al., 2025); CoALA frames such memory modules conceptually (Sumers et al., 2024), and long-term memory benchmarks evaluate them (Maharana et al., 2024; Wu et al., 2025). Context-engineering systems instead encode experience as textual artifacts, including verbal feedback, skills, workflows, playbooks, guidelines, manuals, and persistent documents (Shinn et al., 2023; Wang et al., 2024; Majumder et al., 2024; Zhao et al., 2024; Wang et al., 2025c; Fu et al., 2024; Chen et al., 2024; Fang et al., 2026; Suzgun et al., 2026; Zhang et al., 2026d). Even when revision is automated, the memory representation and update interface are generally specified through prompts, fixed operation vocabularies, or hand-designed retention rules (Kang et al., 2026; Chhikara et al., 2025; Zhang et al., 2026d; Zhou et al., 2026a), and even frameworks that evolve the memory architecture itself rely on LLM-driven redesign rather than training (Zhang et al., 2026b). Moreover, repeatedly rewriting a textual memory with an untrained LLM can make it less useful over time (Zhang et al., 2026a). Different from these methods, we train models over task streams to abstract experience into reusable knowledge and learn the update policy directly from downstream task performance.
Reinforcement Learning for External Memory.
RL has been used to replace hand-written memory-update rules, but most prior work optimizes memory within a single task, either by updating external records for downstream question answering (Yan et al., 2026; Wang et al., 2025b; Yu et al., 2026b; Huo et al., 2026; Zhang et al., 2026c) or by rewriting context before the task produces its final outcome (Yu et al., 2026a; Zhou et al., 2026b; Zhang et al., 2026e; Li et al., 2026a; Yi et al., 2026; Lu et al., 2026; Li et al., 2026b). More closely related, several methods train memory update models over task streams but differ in how they assign task rewards to memory updates. Some broadcast a single outcome reward to every update (Ouyang et al., 2026), while others credit an update using only the next task (Cai et al., 2026) or a selected pair of tasks (Wang et al., 2026). MemoPilot (Cai et al., 2026) trains a memory writer for a frozen reader in repeated games against a fixed opponent, where an update can pay off in the next game. In our task streams, knowledge often pays off several tasks later, and next-task credit underperforms crediting all later tasks (Section A.3). The closest work is the concurrent CoD framework (Chen et al., 2026), which focuses on RL training for long-lifecycle agents. Our focus is complementary: we treat experiential knowledge accumulation as a distinct learning problem, freezing the task model and training a separate notebook model. This separation attributes performance gains to the notebook rather than to improved task solving, and we show that the learned update policy generalizes to trajectories from other task models.
3 Method: NoteTaker
3.1 Task Formulation
We study how experiential knowledge accumulates over long streams of tasks. Our goal is a notebook model that converts task trajectories into reusable knowledge, so that task models perform better on future tasks. A task stream is a sequence of tasks that share reusable information. For task , a task model interacts with an environment and produces a trajectory and reward . We treat post-task feedback as part of the terminal environment observation and hence as part of . Section C.1 describes the feedback for each benchmark, and Section A.4 evaluates success/failure-only feedback. Although each task can be solved independently, our objective is to use experience from earlier tasks to improve performance on later ones.
A persistent text notebook carries information across tasks. Before task , the frozen task model reads notebook , starting from an empty . After task ends, the notebook model produces the complete revised notebook for the next task:
The transition enforces the fixed notebook budget. Because is written after is observed, it can affect only task and later tasks. The notebook is the only communication channel between tasks, and we train only while keeping the task model frozen. Figure 1 illustrates this causal boundary.
3.2 Teacher Supervision for Initialization
Small base models often struggle to turn raw task trajectories into reusable notebook content. We therefore initialize the notebook model with supervised examples from a stronger teacher, following the standard supervised cold-start stage before group-relative RL (Guo et al., 2025). We collect task-model trajectories on training task streams. After each task, the teacher maps the previous notebook and completed trajectory to a revised notebook. Each such rewrite provides a supervised example for the student notebook model, and the resulting checkpoint initializes RL. Without this initialization, most rollout groups provide no learning signal at the start of RL (Figure 5). Section B gives the teacher, data, and optimization details.
3.3 Short-Stream RL with Causal Credit
Our goal is to maximize the frozen task model’s average reward over a long task stream. Direct optimization requires expensive full-stream rollouts, so NoteTaker instead trains on short segments. Each training group begins with an empty notebook and an ordered sequence of tasks . We sample independent rollouts that share this initial notebook and task sequence. In rollout , the task model first solves and produces . At each position , the notebook model rewrites the notebook from , after which the task model completes and receives reward . Thus, each rollout contains notebook updates and the downstream rewards that can evaluate them. Sharing the task sequence aligns rewards by position, while independent sampling produces different notebooks and outcomes.
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 .
Position-Matched Causal Advantages
A trajectory-level estimator averages the rewards in a rollout and assigns the same return to every notebook update. Instead, we compare rewards across rollouts at the same task position and propagate only causally subsequent rewards to each update. Specifically, we compute a position-matched leave-one-out residual (Ahmadian et al., 2024) and its causal suffix return:
Position matching controls for differences in task difficulty, and the suffix ensures that an update receives credit only from rewards it could influence. This adapts the inner-group estimator of Feng et al. (2025) by using position within the task stream as the shared anchor, so the free-form notebook states need not repeat.
Let denote the pooled standard deviation of across all rollouts and task positions, computed with divisor . A single shared normalizer preserves the relative magnitude of returns across positions. Let be the notebook-model input, its -th output token, and its output length. We define the normalized advantage and token-level importance ratio together:
We optimize the notebook model with the following clipped group-relative policy objective (Schulman et al., 2017; Shao et al., 2024):
where and is the clipping threshold. The same update-level advantage is assigned to every token in a notebook update, so no learned value model is required.
4 Experimental Setup
4.1 Datasets and Evaluation Pipeline
We evaluate three types of agentic tasks: tool use in AppWorld (Trivedi et al., 2024), embodied household instruction following in ALFWorld (Shridhar et al., 2021), and grid-world navigation and control in MiniGrid (Chevalier-Boisvert et al., 2019; Chevalier-Boisvert et al., 2023). Although each task can be solved independently, tasks within a stream share environment rules, compositional skills, and planning strategies that can be reused across tasks.
For each benchmark, we construct task streams with 40 tasks for evaluation. We illustrate two types of generalization. First, we use the same tasks as training but different order, named as Train. Second, we use a different set of tasks from the test split of each of the benchmark (which typically contains different set of tools and environment), named as Test. In AppWorld, Test (N) contains same applications and APIs but different tasks (normal), whereas Test (C) introduces unseen applications and more complex multi-application tasks (challenge).
The task model interacts with the environment over multiple turns, after which the notebook model read the whole task history and rewrite the notebook. The task model and notebook model can be same model or different models. This design aims to give flexibility on model selection and to study the gain from improving memory component alone. Every stream starts with an empty notebook and follows a fixed task order. We score each task by binary success and report the mean across the stream.
4.2 Baselines
We evaluate our method under two different settings. First, we compare our method with those prompting method with model fixed. As a starting point, we evaluate each task standalone without a notebook, denoted No Memory. To compare memory harnesses, we run Agent Working Memory (AWM) (Wang et al., 2025c), ReasoningBank (Ouyang et al., 2025), and Agentic Context Engineering (ACE) (Zhang et al., 2026d) with the Qwen3.5-4B and Qwen3.5-9B model. We include the prompt we used in our method, named it as Minimal as it is only a single prompt with no explicit instruction of what to abstract from trajectory.
Secondly, we evaluate two proprietary notebook models, GPT-5.6-Sol and Fable-5.1. We also evaluate an open-weight model, Kimi-K2.6, which also serves as the teacher in our training.
4.3 Training Details
For each benchmark (Appworld, ALFWorld, MiniGrid), and model size (4B and 9B), we train a separate notebook model initialized from either Qwen3.5-4B or Qwen3.5-9B. The task models remain frozen. We first supervise finetune each notebook model using Kimi-K2.6. We then apply NoteTaker’s RL stage using segments of notebook updates. Every stream in RL rollout starts from an empty notebook. More training details about optimization and inference settings are provided in Section B.
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | |
| Minimal | + NoteTaker | 34.0 | 22.5 | 11.5 | 90.6 | 82.4 | 55.5 | 40.9 | 60.0 | 46.8 | |
| Qwen3.5-9B | No memory | – | 0.8 | 1.0 | 0.2 | 88.1 | 50.7 | 47.1 | 34.9 | 45.3 | 28.7 |
| AWM | Qwen3.5-9B | 0.5 | 0.8 | 0.2 | 91.9 | 68.8 | 44.2 | 27.0 | 45.5 | 32.1 | |
| ReasoningBank | Qwen3.5-9B | 0.2 | 0.5 | 0.0 | 89.4 | 67.1 | 49.8 | 42.2 | 46.5 | 36.5 | |
| ACE | Qwen3.5-9B | 2.8 | 2.2 | 0.8 | 86.0 | 62.8 | 48.8 | 39.3 | 45.9 | 34.5 | |
| Minimal | Qwen3.5-9B | 0.0 | 3.2 | 0.0 | 90.6 | 65.6 | 48.0 | 33.6 | 46.2 | 33.6 | |
| Minimal | + NoteTaker | 41.0 | 34.0 | 25.8 | 95.0 | 87.6 | 59.8 | 44.0 | 65.3 | 53.8 |
5 Results
5.1 Learning Memory Update Policy over Manual Designed Rules
Memory Harnesses are Bounded by the Capability of the Notebook Model
Table 1 fixes the notebook model to the Qwen3.5 base models and varies only the memory harness. We find all the memory harnesses are helpful on the average task reward, improving the average test score by +1.1 to +8.5 on 4B and +3.4 to +7.8 on 9B. However, we find those prior memory harneses, Agent Workflow Memory (AWM), ReasoningBank, and Agentic Context Engineering (ACE) stay close to zero on every AppWorld split. Also, we fine the performance of minimal harness used in our method is also weak on the base model. This observation motivate us to train the model to improve the memory update capability.
Learning memory update rules outperforms memory harness baselines.
Those prior harness typically include some human-designed rules for memory updates, such as some human design aspects to extract, identify whether each item is helpful or not. We also provide some exemplar in the instruction. While our work aim to learn those update rules by model itself from the signal from the later task in the stream.
As shown in Table 1, NoteTaker outperforms all baselines for model sizes on every task split. These results suggest that learning an update policy over task streams provides benefits beyond careful context design.
5.2 NoteTaker Enables Models to Accumulate Experiential Knowledge
Small models can use experiential knowledge but struggle to produce it.
Table 1 and Table 2 reveal a substantial gap between the task model’s ability to use experiential knowledge and the notebook model’s ability to produce it. With the same Qwen3.5-9B task model, solving tasks without a notebook yields success rates of 1.0 on AppWorld Test-Normal and 0.2 on Test-Challenge. Using the base Qwen3.5-9B as the notebook model provides little benefit, reaching 3.2 and 0.0, whereas replacing it with Fable-5.1 raises performance to 36.5 and 23.0. The task model can therefore exploit high-quality experiential knowledge, even when its untrained counterpart cannot reliably extract that knowledge from previous trajectories.
NoteTaker substantially improves trained notebook models.
Supervised initialization with Kimi-K2.6 raises the 9B notebook model from 3.2 to 19.5 on Test-Normal and from 0.0 to 2.2 on Test-Challenge, but leaves substantial room for improvement. Adding NoteTaker’s RL stage improves every held-out result over SFT by +5.3 to +23.6 and produces the strongest trained Qwen notebook model in every evaluation setting. On AppWorld, the 9B model reaches 34.0 on Test-Normal and 25.8 on Test-Challenge, approaching Fable-5.1 on Test-Normal and exceeding it on Test-Challenge. The same improvement over SFT appears for both model sizes on ALFWorld and MiniGrid, showing that the benefit is not specific to tool-use tasks. Relative to Fable-5.1, training narrows the gap in average held-out success from 24.2 to 5.8 for the 4B notebook model and from 28.1 to 7.9 for the 9B notebook model, and NoteTaker exceeds GPT-5.6-Sol and its Kimi-K2.6 teacher at both sizes (Table 2).
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.
| 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 | |
| + SFT + RL (NoteTaker) | 34.0 | 22.5 | 11.5 | 90.6 | 82.4 | 55.5 | 40.9 | 60.0 | 46.8 | |
| Qwen3.5-9B | GPT-5.6-Sol | 34.2 | 24.2 | 19.5 | 91.9 | 85.3 | 61.2 | 47.0 | 62.5 | 51.4 |
| Fable-5.1 | 45.2 | 36.5 | 23.0 | 96.9 | 95.7 | 71.0 | 59.5 | 71.0 | 61.7 | |
| Kimi-K2.6 (SFT teacher) | 33.2 | 24.8 | 10.2 | 88.9 | 64.4 | 90.5 | 68.5 | 70.9 | 50.1 | |
| Qwen3.5-9B | 0.0 | 3.2 | 0.0 | 90.6 | 65.6 | 48.0 | 33.6 | 46.2 | 33.6 | |
| + SFT | 13.8 | 19.5 | 2.2 | 94.4 | 79.4 | 51.0 | 36.1 | 53.1 | 42.1 | |
| + SFT + RL (NoteTaker) | 41.0 | 34.0 | 25.8 | 95.0 | 87.6 | 59.8 | 44.0 | 65.3 | 53.8 |
5.3 Notebook Models Generalize Beyond Training Conditions
The notebook model transfers to other task models.
Each notebook model is trained with a single frozen, size-matched task model. Figure 3(b) shows that its improvement over SFT persists when it instead processes trajectories produced by the larger Qwen3.5-27B task model: success increases from 38.9 to 47.7 for the 4B notebook model and from 42.9 to 56.6 for the 9B notebook model. This transfer indicates that NoteTaker learns to extract reusable experiential knowledge rather than adapting only to the trajectory style of its training task model. In most cases, a notebook model trained on one benchmark also improves over the untrained base model on the other two benchmarks (Figure 3(a)).
the learned policy shows some transferability as well.
Figure 3(a) evaluate the notebook model on all of the three datasets. We train the notebook model with SFT or SFT+RL on one of the three datasets (shown in x axis). We find that the seen cases have a clear improvement as we shown in Table 2. However, we find that training on other datasets can also bring benefits as well. for example, on ALFWorld, we find the SFT on AppWorld or MiniGrid also bring imporvement of +2.9 to +4.4, and doing RL on those datasets bring a total improvement of +7.6 to +9.7. This showing our training not only memorize one dataset but can learn generalizable rules. We speculate training on more diverse datasets in the training can bring better generalization and leave as future work.
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.
6 Analysis
We next analyze how credit assignment and rollout length affect RL and how different notebook models organize retained experiential knowledge.
6.1 Effects of Credit Assignment and Rollout Length
Causal accumulated rewards improve credit assignment.
We compare the causal accumulated reward used in NoteTaker with two baselines: a trajectory-level outcome reward and a next-task reward (Cai et al., 2026). Recall that each group contains rollouts, and denotes the reward of rollout at task position . Let be this reward minus the mean reward of the other rollouts at the same position. Let be the mean reward of rollout over its tasks, and let be the mean over all rollouts in the group. For the notebook update at position , the trajectory-level outcome reward is , the next-task reward is , and our causal accumulated reward is . All three methods compute the advantage from these quantities, with no further discounting or accumulation. Figure 4(a) shows that the three methods perform similarly early in training but diverge at later checkpoints for both model sizes. Compared with the outcome reward, the causal accumulated reward improves performance from 12.3 to 14.5 for the 4B model and from 20.8 to 24.6 for the 9B model. The outcome reward credits each notebook update with rewards from earlier tasks, which that update could not have affected. The causal accumulated reward also outperforms the next-task reward. We speculate that knowledge written to the notebook for one task is often reused several tasks later in the stream. An accumulated reward captures these longer-range dependencies, while the next-task reward does not.
Rollout length presents a tradeoff.
We study how does the number of tasks in the streams used in the RL training influence the resulting model. We next vary the number of consecutive notebook updates in each AppWorld training rollout, using , and keep the compute matched (i.e., the number of rollouts). Figure 4(b) shows that training with progresses more slowly than with the shorter horizons. We see two likely reasons. First, under a fixed compute budget, longer streams yield fewer gradient updates. Second, the averaged reward includes many later steps where the notebook has already saturated, which dilutes the signal for improving the notebook right away. We do not expect any single to be optimal. A smaller lowers the cost of sequential rollouts, but it may miss longer-horizon effects and estimates notebook quality from too few downstream rewards. A larger gives a longer evaluation horizon, but it makes data collection more sequential and refreshes the policy less often.
(a) Credit assignment
(b) Rollout length
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 at matched numbers of sampled training tasks. Training curves are smoothed, and dots on the held-out curves mark evaluated checkpoints.
6.2 SFT Initialization Makes RL More Effective
We find that SFT is an effective way to teach memory-update behaviors and provides a strong cold start for RL. To test this, we run RL on AppWorld directly from the base model, skipping the SFT stage. As Figure 5(a) shows, without SFT the stream outcome reward stays close to zero, and a large share of rollout groups have no reward variance (i.e., at a given stream position, every rollout either succeeds or fails). These groups give no learning signal, so training is slow, and the base-initialized run stays behind the SFT-initialized run for the entire compute budget. Figure 5(b) reports held-out test performance. RL improves performance from both starting points, but the SFT-initialized run reaches higher success than the run that starts from the base model.
(a) Training signal
(b) Held-out success
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.
6.3 What Knowledge Do Notebook Models Retain?
A taxonomy of knowledge organization.
We manually check the final notebooks from five notebook models (Base, SFT, SFT+RL, GPT-5.6-Sol, and Fable-5.1) on ten task streams from the test split from each of AppWorld, MiniGrid, and ALFWorld, holding the Qwen3.5-9B task model fixed. We define five categories that describe how notebooks organize retained experiential knowledge (see Figure 6). A task-specific record stores information about one task without generalizing it to other tasks. An environment hypothesis stores an observation or guess about the environment that may apply across tasks but does not tell the agent which actions to take. Rule-based guidance stores general instructions about which actions the agent should take or avoid. Procedure-based guidance stores an action sequence, high-level plan, or reusable template for completing a task. Case-grounded guidance stores previous task examples alongside guidance so the agent can reuse earlier behavior or judge how reliable the guidance is. Each notebook receives every applicable category tag rather than being forced into a single category.
Different notebook models favor different forms of organization.
Across the 30 notebooks per model, GPT-5.6-Sol almost always writes rule-based (30/30) and procedure-based guidance (28/30) but never case-grounded guidance (0/30). Fable-5.1, in contrast, consistently writes case-grounded (30/30) and procedure-based guidance (30/30) but includes rule-based guidance less often (12/30). Thus, even strong models differ markedly in how they organize experiential knowledge. Compared with SFT alone on the same task orders, SFT+RL increases the presence of procedure-based guidance from 19/30 to 27/30 and rule-based guidance from 26/30 to 29/30, while case-grounded guidance remains absent (0/30). This suggests that RL rarely introduces new forms of organization. Instead, it strengthens existing forms that better serve future tasks. Section D shows example notebooks from the five notebook models on the three benchmarks.
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.
7 Conclusion
We establish experiential-knowledge accumulation as a distinct, trainable capability by freezing the task model and training only the notebook model. Small models can use strong notebooks but do not reliably create them without explicit training: NoteTaker combines SFT for reusable abstraction with RL for downstream utility, closing much of the gap to larger frontier models. Its update policies, trained on eight-task continuations, remain effective over 40-task streams and transfer to other task models. These results show that effective experiential learning depends not only on scale, but on learning what knowledge to retain.
Training a separate notebook model isolates knowledge abstraction from task solving and allows the trained model to serve other task models. Future work includes a unified model that both solves tasks and maintains its notebook, joint training of the task and notebook models, joint training across benchmarks, which the partial cross-benchmark transfer suggests is promising, and other teachers for initialization.
Acknowledgment
We thank Rulin Shao, Zhiyuan Zeng, Hamish Ivison, Dean Light, Tianhua Tao, Victoria Graf, and Yijia Xiao, Mickel Liu, Jacqueline He, and Oscar Yinn for valuable discussions throughout the project. We are grateful to Pang Wei Koh for insightful feedback on this work, and to Xinran Zhao and Sherry Tongshuang Wu for their suggestions on the visualization and representation.
References
- Ahmadian et al. (2024) A. Ahmadian, C. Cremer, M. Gallé, M. Fadaee, J. Kreutzer, O. Pietquin, A. Üstün, and S. Hooker Back to Basics: Revisiting REINFORCE-Style Optimization for Learning from Human Feedback in LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12248–12267. Document
- Asawa et al. (2026) P. Asawa, C. M. Glaze, G. Orlanski, R. Ramakrishnan, B. Xu, A. Biswal, V. S. Chen, F. Sala, M. Zaharia, and J. E. Gonzalez Continual Learning Bench: Evaluating Frontier AI Systems in Real-World Stateful Environments. arXiv. Document
- Cai et al. (2026) Y. Cai, X. Guo, X. Huang, J. Du, C. Huang, W. Huang, W. Ma, Y. Hu, A. Zeng, J. Tang, and X. Sun From Player to Master: Enhancing Test-Time Learning of LLM Agents via Reinforcement Learning over Memory. In Proceedings of the 43rd International Conference on Machine Learning,
- Chen et al. (2024) M. Chen, Y. Li, Y. Yang, S. Yu, B. Lin, and X. He AutoManual: Constructing Instruction Manuals by LLM Agents via Interactive Environmental Learning. In Advances in Neural Information Processing Systems, Vol. 37, pp. 589–631. Document
- Chen et al. (2026) Y. Chen, W. Shi, B. Hu, Z. Zhang, Z. Wang, Y. Xie, Y. Li, B. Ding, and J. Zhou Connect the dots: training llms for long-lifecycle agents with cross-domain generalization via reinforcement learning. Link
- Chevalier-Boisvert et al. (2019) M. Chevalier-Boisvert, D. Bahdanau, S. Lahlou, L. Willems, C. Saharia, T. H. Nguyen, and Y. Bengio BabyAI: A Platform to Study the Sample Efficiency of Grounded Language Learning. In International Conference on Learning Representations, Link
- Chevalier-Boisvert et al. (2023) M. Chevalier-Boisvert, B. Dai, M. Towers, R. Perez-Vicente, L. Willems, S. Lahlou, S. Pal, P. S. Castro, and J. K. Terry Minigrid & Miniworld: Modular & Customizable Reinforcement Learning Environments for Goal-Oriented Tasks. In Advances in Neural Information Processing Systems (Datasets and Benchmarks Track), Vol. 36, pp. 73383–73394. Document
- Chhikara et al. (2025) P. Chhikara, D. Khant, S. Aryan, T. Singh, and D. Yadav Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory. In ECAI 2025 – 28th European Conference on Artificial Intelligence, Frontiers in Artificial Intelligence and Applications, Vol. 413, pp. 2993–3000. Document
- Fang et al. (2026) R. Fang, Y. Liang, X. Wang, J. Wu, S. Qiao, P. Xie, F. Huang, H. Chen, and N. Zhang Memp: Exploring Agent Procedural Memory. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 17490–17502. Document
- Feng et al. (2025) L. Feng, Z. Xue, T. Liu, and B. An Group-in-Group Policy Optimization for LLM Agent Training. In Advances in Neural Information Processing Systems, Vol. 38, pp. 51797–51830. Document
- Fu et al. (2025) W. Fu, J. Gao, X. Shen, C. Zhu, Z. Mei, C. He, S. Xu, G. Wei, J. Mei, J. Wang, T. Yang, B. Yuan, and Y. Wu AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning. In Advances in Neural Information Processing Systems, Vol. 38, pp. 40748–40774. Document
- Fu et al. (2024) Y. Fu, D. Kim, J. Kim, S. Sohn, L. Logeswaran, K. Bae, and H. Lee AutoGuide: Automated Generation and Selection of Context-Aware Guidelines for Large Language Model Agents. In Advances in Neural Information Processing Systems, Vol. 37, pp. 119919–119948. Document
- Guo et al. (2025) D. Guo, D. Yang, H. Zhang, J. Song, P. Wang, Q. Zhu, R. Xu, R. Zhang, S. Ma, X. Bi, X. Zhang, X. Yu, Y. Wu, Z. F. Wu, Z. Gou, Z. Shao, Z. Li, Z. Gao, A. Liu, B. Xue, B. Wang, B. Wu, B. Feng, C. Lu, C. Zhao, C. Deng, C. Ruan, D. Dai, D. Chen, D. Ji, E. Li, F. Lin, F. Dai, F. Luo, G. Hao, G. Chen, G. Li, H. Zhang, H. Xu, H. Ding, H. Gao, H. Qu, H. Li, J. Guo, J. Li, J. Chen, J. Yuan, J. Tu, J. Qiu, J. Li, J. L. Cai, J. Ni, J. Liang, J. Chen, K. Dong, K. Hu, K. You, K. Gao, K. Guan, K. Huang, K. Yu, L. Wang, L. Zhang, L. Zhao, L. Wang, L. Zhang, L. Xu, L. Xia, M. Zhang, M. Zhang, M. Tang, M. Zhou, M. Li, M. Wang, M. Li, N. Tian, P. Huang, P. Zhang, Q. Wang, Q. Chen, Q. Du, R. Ge, R. Zhang, R. Pan, R. Wang, R. J. Chen, R. L. Jin, R. Chen, S. Lu, S. Zhou, S. Chen, S. Ye, S. Wang, S. Yu, S. Zhou, S. Pan, S. S. Li, S. Zhou, S. Wu, T. Yun, T. Pei, T. Sun, T. Wang, W. Zeng, W. Liu, W. Liang, W. Gao, W. Yu, W. Zhang, W. L. Xiao, W. An, X. Liu, X. Wang, X. Chen, X. Nie, X. Cheng, X. Liu, X. Xie, X. Liu, X. Yang, X. Li, X. Su, X. Lin, X. Q. Li, X. Jin, X. Shen, X. Chen, X. Sun, X. Wang, X. Song, X. Zhou, X. Wang, X. Shan, Y. K. Li, Y. Q. Wang, Y. X. Wei, Y. Zhang, Y. Xu, Y. Li, Y. Zhao, Y. Sun, Y. Wang, Y. Yu, Y. Zhang, Y. Shi, Y. Xiong, Y. He, Y. Piao, Y. Wang, Y. Tan, Y. Ma, Y. Liu, Y. Guo, Y. Ou, Y. Wang, Y. Gong, Y. Zou, Y. He, Y. Xiong, Y. Luo, Y. You, Y. Liu, Y. Zhou, Y. X. Zhu, Y. Huang, Y. Li, Y. Zheng, Y. Zhu, Y. Ma, Y. Tang, Y. Zha, Y. Yan, Z. Z. Ren, Z. Ren, Z. Sha, Z. Fu, Z. Xu, Z. Xie, Z. Zhang, Z. Hao, Z. Ma, Z. Yan, Z. Wu, Z. Gu, Z. Zhu, Z. Liu, Z. Li, Z. Xie, Z. Song, Z. Pan, Z. Huang, Z. Xu, Z. Zhang, and Z. Zhang DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature 645 (8081), pp. 633–638. Document
- Huo et al. (2026) Y. Huo, Y. Lu, Z. Zhang, H. Chen, and Y. Lin AtomMem : Learnable Dynamic Agentic Memory with Atomic Memory Operation. arXiv. Document
- Kang et al. (2026) M. Kang, W. Chen, D. Han, H. A. Inan, L. Wutschitz, Y. Chen, R. Sim, and S. Rajmohan ACON: Optimizing Context Compression for Long-horizon LLM Agents. In Proceedings of the 43rd International Conference on Machine Learning,
- Kirkpatrick et al. (2017) J. Kirkpatrick, R. Pascanu, N. Rabinowitz, J. Veness, G. Desjardins, A. A. Rusu, K. Milan, J. Quan, T. Ramalho, A. Grabska-Barwinska, D. Hassabis, C. Clopath, D. Kumaran, and R. Hadsell Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences 114 (13), pp. 3521–3526. Document
- Li et al. (2026a) X. Li, T. Lyu, Y. Yang, L. Shan, S. Yang, L. Zhang, Z. Huang, Q. Liu, and Y. Li Escaping the Context Bottleneck: Active Context Curation for LLM Agents via Reinforcement Learning. arXiv. Document
- Li et al. (2026b) Y. Li, Z. Hou, Y. Jing, J. Tang, and Y. Dong CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agents. arXiv. Document
- Lu et al. (2026) M. Lu, W. Sun, W. Du, Z. Ling, X. Yao, K. Liu, and J. Chen Beyond the Context Window: Scaling Agentic RL via End-to-end Optimized Context Compression. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 21074–21125. Document
- Luo et al. (2025) Y. Luo, Z. Yang, F. Meng, Y. Li, J. Zhou, and Y. Zhang An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-Tuning. IEEE Transactions on Audio, Speech and Language Processing 33, pp. 3776–3786. Document
- Maharana et al. (2024) A. Maharana, D. Lee, S. Tulyakov, M. Bansal, F. Barbieri, and Y. Fang Evaluating Very Long-Term Conversational Memory of LLM Agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 13851–13870. Document
- Majumder et al. (2024) B. P. Majumder, B. D. Mishra, P. Jansen, O. Tafjord, N. Tandon, L. Zhang, C. Callison-Burch, and P. Clark CLIN: A Continually Learning Language Agent for Rapid Task Adaptation and Generalization. In First Conference on Language Modeling, Link
- Ouyang et al. (2026) S. Ouyang, J. Yan, Y. Chen, R. Han, Z. Wang, B. D. Mishra, R. Meng, C. Li, Y. Jiao, K. Zha, M. Shen, V. Tirumalashetty, G. Lee, J. Han, T. Pfister, and C. Lee SkillOS: Learning Skill Curation for Self-Evolving Agents. arXiv. Document
- Ouyang et al. (2025) S. Ouyang, J. Yan, I. Hsu, Y. Chen, K. Jiang, Z. Wang, R. Han, L. T. Le, S. Daruki, X. Tang, V. Tirumalashetty, G. Lee, M. Rofouei, H. Lin, J. Han, C. Lee, and T. Pfister ReasoningBank: scaling agent self-evolving with reasoning memory. arXiv preprint arXiv:2509.25140.
- Packer et al. (2023) C. Packer, S. Wooders, K. Lin, V. Fang, S. G. Patil, I. Stoica, and J. E. Gonzalez MemGPT: Towards LLMs as Operating Systems. arXiv. Document
- Parisi et al. (2019) G. I. Parisi, R. Kemker, J. L. Part, C. Kanan, and S. Wermter Continual Lifelong Learning with Neural Networks: A Review. Neural Networks 113, pp. 54–71. Document
- Park et al. (2023) J. S. Park, J. O’Brien, C. J. Cai, M. R. Morris, P. Liang, and M. S. Bernstein Generative Agents: Interactive Simulacra of Human Behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology, UIST ’23, pp. 1–22. Document
- Pignatelli et al. (2024) E. Pignatelli, J. Ferret, M. Geist, T. Mesnard, H. van Hasselt, and L. Toni A Survey of Temporal Credit Assignment in Deep Reinforcement Learning. Transactions on Machine Learning Research. Link
- Schulman et al. (2017) J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov Proximal Policy Optimization Algorithms. arXiv preprint arXiv:1707.06347.
- Shao et al. (2024) Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. K. Li, Y. Wu, and D. Guo DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv preprint arXiv:2402.03300.
- Shinn et al. (2023) N. Shinn, F. Cassano, A. Gopinath, K. Narasimhan, and S. Yao Reflexion: language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems, Vol. 36, pp. 8634–8652. Document
- Shridhar et al. (2021) M. Shridhar, X. Yuan, M. Côté, Y. Bisk, A. Trischler, and M. Hausknecht ALFWorld: Aligning Text and Embodied Environments for Interactive Learning. In International Conference on Learning Representations, Link
- Shu et al. (2026) Y. Shu, B. J. Gutiérrez, S. P. Jonnalagedda, Y. Yao, H. Sun, and Y. Su AgentCL: Toward Rigorous Evaluation of Continual Learning in Language Agents. arXiv. Document
- Sumers et al. (2024) T. R. Sumers, S. Yao, K. Narasimhan, and T. L. Griffiths Cognitive Architectures for Language Agents. Transactions on Machine Learning Research. Link
- Sutton (1984) R. S. Sutton Temporal Credit Assignment in Reinforcement Learning. Ph.D. Thesis, University of Massachusetts Amherst.
- Suzgun et al. (2026) M. Suzgun, M. Yuksekgonul, F. Bianchi, D. Jurafsky, and J. Zou Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory. In Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 7080–7106. Document
- Trivedi et al. (2024) H. Trivedi, T. Khot, M. Hartmann, R. Manku, V. Dong, E. Li, S. Gupta, A. Sabharwal, and N. Balasubramanian AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 16022–16076. Document
- Uchendu et al. (2023) I. Uchendu, T. Xiao, Y. Lu, B. Zhu, M. Yan, J. Simon, M. Bennice, C. Fu, C. Ma, J. Jiao, S. Levine, and K. Hausman Jump-Start Reinforcement Learning. In Proceedings of the 40th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 202, pp. 34556–34583.
- Wang et al. (2024) G. Wang, Y. Xie, Y. Jiang, A. Mandlekar, C. Xiao, Y. Zhu, L. Fan, and A. Anandkumar Voyager: An Open-Ended Embodied Agent with Large Language Models. Transactions on Machine Learning Research. Link
- Wang et al. (2025a) J. Wang, Z. Guo, W. Ma, and M. Zhang How Far Can LLMs Improve from Experience? Measuring Test-Time Learning Ability in LLMs with Human Comparison. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 25677–25691. Document
- Wang et al. (2026) J. Wang, Q. Yan, Y. Wang, Y. Tian, S. S. Mishra, Z. Xu, M. Gandhi, P. Xu, and L. L. Cheong Reinforcement Learning for Self-Improving Agent with Skill Library. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1529–1550. Document
- Wang et al. (2025b) Y. Wang, R. Takanobu, Z. Liang, Y. Mao, Y. Hu, J. McAuley, and X. Wu Mem-: Learning Memory Construction via Reinforcement Learning. arXiv. Document
- Wang et al. (2025c) Z. Z. Wang, J. Mao, D. Fried, and G. Neubig Agent Workflow Memory. In Proceedings of the 42nd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 267, pp. 63897–63911.
- Wu et al. (2024) C. Wu, Z. R. Tam, C. Lin, Y. Chen, and H. Lee StreamBench: Towards Benchmarking Continuous Improvement of Language Agents. In Advances in Neural Information Processing Systems (Datasets and Benchmarks Track), Vol. 37, pp. 107039–107063. Document
- Wu et al. (2025) D. Wu, H. Wang, W. Yu, Y. Zhang, K. Chang, and D. Yu LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory. In International Conference on Learning Representations, Link
- Xu et al. (2025) W. Xu, Z. Liang, K. Mei, H. Gao, J. Tan, and Y. Zhang A-Mem: Agentic Memory for LLM Agents. In Advances in Neural Information Processing Systems, Vol. 38, pp. 20004–20031. Document
- Yan et al. (2026) S. Yan, X. Yang, Z. Huang, E. Nie, Z. Ding, Z. Li, X. Ma, J. Bi, K. Kersting, J. Z. Pan, H. Schütze, V. Tresp, and Y. Ma Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12805–12825. Document
- Yi et al. (2026) L. Yi, R. Lei, L. Yao, Y. Xie, Y. Li, W. Zhang, Z. Wei, Y. Li, and J. Nie Learning Agent-Compatible Context Management for Long-Horizon Tasks. arXiv. Document
- Yu et al. (2026a) H. Yu, T. Chen, J. Feng, J. Chen, W. Dai, Q. Yu, Y. Zhang, W. Ma, J. Liu, M. Wang, and H. Zhou MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agent. In International Conference on Learning Representations, Link
- Yu et al. (2026b) Y. Yu, L. Yao, Y. Xie, Q. Tan, J. Feng, Y. Li, and L. Wu Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agents. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 21457–21483. Document
- Zhang et al. (2026a) D. Zhang, Y. Lin, Z. Wu, Y. Sun, B. Li, D. Li, and H. Peng Useful Memories Become Faulty When Continuously Updated by LLMs. arXiv. Document
- Zhang et al. (2026b) G. Zhang, H. Ren, C. Zhan, J. Wang, H. Zhu, W. Zhou, and S. Yan MemEvolve: Meta-Evolution of Agent Memory Systems. In Proceedings of the 43rd International Conference on Machine Learning,
- Zhang et al. (2026c) H. Zhang, Q. Long, J. Bao, T. Feng, W. Zhang, H. Yue, and W. Wang MemSkill: Learning and Evolving Memory Skills for Self-Evolving Agents. arXiv. Document
- Zhang et al. (2026d) Q. Zhang, C. Hu, S. Upasani, B. Ma, F. Hong, V. Kamanuru, J. Rainton, C. Wu, M. Ji, H. Li, U. Thakker, J. Zou, and K. Olukotun Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models. In International Conference on Learning Representations, Link
- Zhang et al. (2026e) Y. Zhang, J. Shu, Y. Ma, X. Lin, S. Wu, and J. Sang Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Tasks. In Findings of the Association for Computational Linguistics: ACL 2026, pp. 19149–19164. Document
- Zhao et al. (2024) A. Zhao, D. Huang, Q. Xu, M. Lin, Y. Liu, and G. Huang ExpeL: LLM Agents Are Experiential Learners. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38, pp. 19632–19642. Document
- Zheng et al. (2025) J. Zheng, X. Cai, Q. Li, D. Zhang, Z. Li, Y. Zhang, L. Song, and Q. Ma LifelongAgentBench: Evaluating LLM Agents as Lifelong Learners. arXiv. Document
- Zhou et al. (2026a) S. Zhou, S. Yu, H. Wei, J. Wu, S. Ouyang, Y. Jiao, S. Pan, J. McAuley, Y. Zhang, T. Yu, and J. Han Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability. arXiv. Document
- Zhou et al. (2026b) Z. Zhou, A. Qu, Z. Wu, S. Kim, A. Prakash, D. Rus, B. K. H. Low, and P. P. Liang MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents. In International Conference on Learning Representations, Link
- Zweiger et al. (2025) A. Zweiger, J. Pari, H. Guo, E. Akyürek, Y. Kim, and P. Agrawal Self-adapting language models. Link
Appendix A Additional Results
A.1 Effect of a Hand-Written Initial Notebook
The ACE baseline in Table 1 starts from an empty notebook, like every other method in the main text. The original ACE paper (Zhang et al., 2026d) instead starts AppWorld streams from a hand-written seed playbook that lists a few important rules under a few categories. Table 3 adds two methods with hand-written notebooks: ACE started from this seed playbook and updated after every task, and a static manual, a hand-written AppWorld instruction notebook kept fixed throughout the stream. The seeded ACE follows the original ACE prompts and curation rules and retries a failed task once using its reflection (we score only the first attempt), so it differs from the empty-start ACE in more than the initial notebook.
A small set of human-written rules goes a long way on AppWorld. With the 9B task model, ACE reaches 12.0 on Test (C) from the seed playbook but only 0.6 from an empty notebook, and the static manual reaches 11.6 on Test (N) without any update. The base notebook model rarely discovers such rules from its own experience. After training, NoteTaker starts from an empty notebook and still outperforms both hand-written notebooks on every split at both sizes, reaching 23.6 on Test (C) with the 9B task model. Because hand-written notebooks inject benchmark-specific knowledge that is unavailable to the other methods, we start all methods in the main text from an empty notebook.
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.
| 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 |
| ACE | Empty | 2.9 | 1.8 | 0.6 | |
| Static manual | Hand-written | 12.7 | 11.6 | 4.8 | |
| ACE | Hand-written | 34.0 | 25.3 | 12.0 | |
| NoteTaker | Empty | 41.2 | 36.7 | 23.6 |
A.2 Training from Intermediate Notebook States
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.
| 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 |
| Depth | Training coverage | No-gradient groups | Notebook-cap events |
|---|---|---|---|
| 0–9 | 25.9 | 7.7 | 0.1 |
| 10–19 | 23.9 | 7.1 | 4.0 |
| 20–29 | 24.1 | 21.2 | 12.0 |
| 30–39 | 26.1 | 22.8 | 11.6 |
The RL stage of NoteTaker starts every rollout from an empty notebook and therefore never trains on the late-stage notebooks encountered in long test-time streams. To test whether this mismatch matters, we compare empty-start training (A) with rollouts initialized from notebooks produced by a Kimi-K2.6 teacher (B), an SFT notebook model (C), or an online replay pool (D), analogous to starting RL from states reached by a guide policy (Uchendu et al., 2023). All conditions use . Starting from intermediate states does not help: for the 9B notebook model (Table 4, left), empty-start training performs best, reaching 24.6 on Test (N) and 16.1 on Test (C), compared with 19.2–20.4 and 9.3–12.0 for the intermediate-state variants. Exposure to deployment-like states is therefore not sufficient on its own. Later states also yield weaker training signals. In condition C, whose starting depths are roughly balanced (Table 4, right), the fraction of no-gradient groups rises from 7.1–7.7% below depth 20 to 21.2–22.8% beyond it. All trajectories in these groups receive zero reward, indicating uniform failure rather than saturation. Notebook-cap events also rise, from 0.1% at depths 0–9 to roughly 12% beyond depth 20. Effective intermediate-state training may therefore require filtering starting states and trajectories, which we leave to future work.
A.3 Credit-Assignment Ablation and Training Seeds
For the trajectory-level outcome reward and our method, we report the average of two training runs with different random seeds (Table 5), and for next-task credit a single run. At both model sizes, our estimator outperforms the trajectory-level outcome reward, which gives every update the same credit, and next-task credit, which ignores delayed payoffs. Across two training seeds, the causal accumulated reward stays ahead of the trajectory-level outcome reward at both model sizes (Table 5).
Table 5: Credit assignment across two training seeds on AppWorld. Held-out task success rate (%) after 160 training steps.
| 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 |
A.4 Success/Failure-Only Feedback
To test how much of the improvement carries over when the notebook model receives only success or failure feedback, we re-run the held-out evaluation with binary feedback. After each task, the notebook model receives the task model’s trajectory and only Task outcome: SUCCESS or Task outcome: FAIL, without the benchmark-specific feedback described in Section C.1 (detailed feedback). We use the same notebook models, which were trained with detailed feedback, and do not retrain them (Table 6). At both model sizes, NoteTaker outperforms both the no-memory baseline and the untrained notebook model on all three benchmarks, while the untrained notebook model stays close to the no-memory baseline on AppWorld and on MiniGrid at 9B. On ALFWorld and MiniGrid, binary feedback leaves the success of NoteTaker nearly unchanged. On AppWorld, NoteTaker remains well above both baselines, and the evaluator’s diagnostics in the detailed feedback provide the largest additional gain.
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.
| 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 | |
| 9B + NoteTaker | 29.1 | 86.6 | 41.7 | 11.4 | 87.2 | 42.5 |
A.5 Notebook Effectiveness Beyond the RL Training Horizon
Figure 7reports prefix-averaged success through each position of the 40-task held-out streams. Although RL trains the notebook model using only updates, the SFT+RL model maintains an advantage over SFT and the base model throughout deployment on all three benchmarks and at both model sizes. Figure 7(b) further evaluates notebook models trained with at a matched optimization budget. For both model sizes and every value of , prefix-averaged task success continues increasing beyond the corresponding training horizon, rising by +1.5 to +11.0 between that cutoff and task 40. The trained notebook update policy remains stable and effective when repeatedly applied far beyond its training horizon.
(a) Task index
(b) Stream length
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 , and then across held-out task streams. (b) AppWorld notebook models trained with . Dashed vertical lines mark the corresponding RL training horizons.
A.6 Freezing the Notebook After 8 Updates
Prefix-averaged success can keep increasing even if the notebook stops improving. To test whether updates beyond the RL training horizon remain useful, we run the trained notebook model on the same held-out streams of each benchmark. It updates the notebook for tasks 1–8, after which the notebook is either kept updating or frozen for tasks 9–40 (Table 7). On ALFWorld, continued updating improves success, mostly late in the stream. On AppWorld and MiniGrid, the two settings perform similarly.
Table 7: Continued updating vs. freezing the notebook after 8 updates. Task success rate (%). Parentheses give the improvement from continued updating.
| 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 B Experimental Details
Supervised initialization.
For each benchmark and model size, we train a separate notebook model initialized from either Qwen3.5-4B or Qwen3.5-9B. The notebook model and its corresponding task model are separate instances, and the task model remains frozen. To construct the supervised data, Kimi-K2.6 rewrites the notebook after each training task using the trajectory produced by the corresponding task model. We fine-tune each notebook model on its benchmark- and size-specific data for two epochs and use the resulting checkpoint to initialize RL.
Reinforcement learning.
Each training group contains independently sampled rollouts that start from an empty notebook and share an ordered sequence of tasks. Every rollout contains notebook updates and the eight subsequent task rewards used to score them. Each collection iteration contains 32 groups; with a global batch size of 512 notebook updates, this yields eight optimizer steps per iteration. All compared conditions use matched training and rollout seeds, with one independent training seed per condition, except for the credit-assignment comparison in Section A.3, which uses two independent training seeds.
Checkpoint selection and training budgets.
Table 2 and Figure 7 use the same final checkpoints from the main training runs. Figure 7(b) compares all rollout-length conditions at optimizer step 144, providing a matched optimization budget across . The intermediate-state comparison in Section A.2 uses checkpoints at optimizer step 96 for all conditions. All ablations use matched optimizer steps. We capped the ablation sweeps at the reported budgets because of their computational cost. They are intended as controlled comparisons rather than evidence of convergence. This explains why scores in Figure 3 and Figure 4 can differ from those in Table 2.
Optimization.
We train in BF16 with Adam using a constant learning rate of , , , zero weight decay, gradient-norm clipping at 1, and no dropout. We use a policy-ratio clipping threshold of 0.2, with no KL penalty, entropy bonus, or learned value model.
Rollout and inference settings.
We sample notebook updates at temperature 1 with at most 32K prompt tokens and 32K generated tokens. The frozen task model runs at temperature 0 with hidden reasoning disabled, and its private reasoning is excluded from the notebook-model input. Each task-model response is limited to 4,096 tokens. Episodes allow at most 20 interaction turns in AppWorld and MiniGrid and 50 action turns in ALFWorld, terminating earlier upon success or environment termination. Section C specifies prompt construction, output processing, and the 16,384-byte notebook limit.
Compute.
SFT takes 4–5 hours on 8 H200 GPUs. A complete RL run on one benchmark (e.g., AppWorld) takes about 70 hours on 8 H200 GPUs.
Notebook size limit.
We measured how often notebook updates reach the 16,384-byte limit. On 40-task AppWorld streams, 7–10% of notebook updates reach the limit for the 4B notebook model and 26–34% for the 9B notebook model. The limit is therefore large enough for most updates, yet the notebook fills up as knowledge accumulates over a long stream, which tests whether the notebook model can compress useful information into a limited space. On ALFWorld, the Qwen notebook models use an equivalent limit of 4,000 tokens (about 16 KB at four bytes per token).
Evaluation task streams.
Each evaluation stream contains 40 tasks. For AppWorld, we randomly sample tasks from the official Train, Test-Normal, and Test-Challenge splits, containing 90, 168, and 417 tasks, respectively. For MiniGrid, Train contains six semantic families comprising 47 environment variants, while Test contains five disjoint held-out families comprising 18 variants. Each stream uses one family and samples freshly seeded instances from its variants. For ALFWorld, Train contains simple pick-and-place, look-at-object-in-light, and clean-then-place tasks, whereas Test contains held-out heat-then-place, cool-then-place, and two-object placement tasks. Each stream uses one FloorPlan scene and samples eligible tasks without replacement. Task order is randomized rather than sorted by difficulty, so later positions are not intentionally easier than earlier ones.
Appendix C Prompts
Every prompt below is reproduced verbatim, including its role markers, markdown, and wording. Doubled-brace tokens such as
{{ notepad }}
are placeholders filled at runtime. The prompts use notepad for the persistent artifact called a notebook in the paper.
C.1 Post-Task Feedback
After the task model finishes, the environment first computes task success and then produces benchmark-specific feedback. We treat this feedback as the terminal environment observation in . In the notebook-model prompt, it is serialized in the Feedback on the attempt field immediately after the visible interaction messages. The notebook is updated only afterward, so feedback from task cannot affect its score and can influence only task and later tasks. The same feedback construction is used during training and evaluation.
For AppWorld, the feedback contains the benchmark evaluator’s requirement-level test report and the episode termination reason. The report identifies satisfied and unsatisfied requirements and may contain diagnostic information such as assertion errors or actual and expected values. For MiniGrid, the feedback contains the episode outcome and reward, termination reason, primitive-step count, invalid-action count, and a fixed description of the scoring protocol. For ALFWorld, it contains the episode outcome, native reward, action count, final environment feedback, termination reason, and a fixed protocol summary. Held-out evaluation never includes reference solutions. Table 8 gives a short held-out example for each benchmark.
Table 8: Abridged held-out examples of post-task feedback.
| 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. |
C.2 Notebook Model
The same benchmark-agnostic prompt is used for the teacher, prompted notebook models, and trained notebook models.
You maintain a notepad for another agent that is working through a stream of tasks, one after
another. The notepad is the only thing that carries over: the agent begins every future task
with it and with nothing else it learned. You are judged solely on whether the notepad you
produce raises that agent’s success rate on **future, unseen tasks** — not on how well it
describes what just happened.
Think it through before you write. Work out what actually happened, whether the cause was
specific to this one task or something that will recur, and what the agent would have needed to
know in advance.
## What the agent did
A JSON list of messages in order. Roles may include ‘user‘, ‘assistant‘, ‘tool‘ and
‘reasoning‘.
<messages>
{{ messages_json }}
</messages>
## Feedback on the attempt
Whatever the environment reported. This may include test results, scores, a reference
solution, or free-form notes, and it may be empty.
<feedback>
{{ feedback }}
</feedback>
## The current notepad
Line numbers are shown **for reference only** — use them to talk about what to change. **Do not
copy the line numbers into your output.**
<notepad>
{{ numbered_notepad }}
</notepad>
Keep the complete resulting notepad focused and within {{ budget_limit }} {{ budget_unit }}. If it
is near the limit, prune, merge, or compress older material before adding anything.
## Output
Return the complete notepad as it should be for the next task, and **nothing else** — no
preamble, no explanation, no code fence, no line numbers. You may add, reword, reorganise,
merge or delete anything. If nothing was learned, return the notepad unchanged.
Slot contents.
{{ messages_json }}
contains the visible task interaction; hidden task-model reasoning is excluded. {{ feedback }} contains the environment feedback, and {{ numbered_notepad }} contains the current notebook with reference-only line numbers. {{ budget_limit }} {{ budget_unit }} specifies the 16,384-byte notebook limit.
Output handling.
The visible reply becomes the complete notebook for the next task, while hidden reasoning is discarded. Code fences and line-number prefixes are removed, unsafe role or tag markers are neutralized, and the result is truncated to the notebook limit. An empty reply clears the notebook.
C.3 Task Models
The task model is frozen, and each benchmark uses the same task-model prompt across all notebook conditions. The templates below show the complete prompts before their placeholders are filled.
C.3.1 AppWorld
The prompt provides the notebook, interaction protocol, API-discovery calls, user information, and task instruction.
USER:
Your notepad is below. It holds everything you have learned from previous tasks. Read it
carefully and follow it throughout this task.
<<<NOTEPAD>>>
{{ notepad }}
</notepad>
USER:
I am your supervisor, and you are an AI Assistant whose job is to complete my day-to-day tasks fully autonomously.
To do this, you will need to interact with app(s) (e.g., spotify, venmo etc) using their associated APIs on my behalf. For this you will undertake a *multi-step conversation* using a python REPL environment. That is, you will write the python code, the environment will execute it and show you the result, based on which, you will write python code for the next step and so on, until you’ve achieved the goal. This environment will let you interact with app(s) using their associated APIs on my behalf.
Here are three key APIs that you need to know to get more information
# To get a list of apps that are available to you.
“‘python
print(apis.api_docs.show_app_descriptions())
“‘
# To get the list of APIs under any app listed above, e.g. spotify
“‘python
print(apis.api_docs.show_api_descriptions(app_name=’spotify’))
“‘
# To get the specification of a particular api, e.g. spotify app’s login api
“‘python
print(apis.api_docs.show_api_doc(app_name=’spotify’, api_name=’login’))
“‘
Each code execution will produce an output that you can use in subsequent calls. Using these APIs, you can now generate code, that I will execute, to solve the task.
USER:
Using these APIs, now generate code to solve the actual task:
My name is: {{ main_user.first_name }} {{ main_user.last_name }}. My personal email is {{ main_user.email }} and phone number is {{ main_user.phone_number }}.
Task: {{ instruction }}
C.3.2 MiniGrid
The prompt provides the notebook, available actions, task goal, and initial observation.
USER:
Your notepad is below. It holds everything you have learned from previous tasks. Read it
carefully and follow it throughout this task.
<<<NOTEPAD>>>
{{ notepad }}
</notepad>
USER:
You are an exploration master that wants to finish every goal you are given. Every round I will give you an observation, and you have to respond an action and your thought based on the observation to finish the given task. You are placed in a room and you need to accomplish the given goal with actions.
You can use the following actions:
- turn right
- turn left
- move forward
- go to <obj> <id>
- pick up <obj> <id>
- go through <door> <id>: <door> must be an open door.
- toggle and go through <door> <id>: <door> can be a closed door or a locked door. If you want to open a locked door, you need to carry a key that is of the same color as the locked door.
- toggle: there is a closed or locked door right in front of you and you can toggle it.
Your response should use the following format:
Thought:
<Your Thought>
Action:
<Your Action>
Game goal for the entire episode:
{{ game_goal }}
USER:
Current observation for turn 1:
{{ initial_observation }}
C.3.3 ALFWorld
The prompt provides the action protocol, notebook, task instruction, initial observation, and turn limit.
SYSTEM:
You control an agent in the text-only ALFWorld household environment. On every turn, return
exactly one command copied from the current observation’s ‘valid_actions‘ list and nothing else.
One response executes one environment action. You have at most {{ max_turns }} action turns.
Do not include analysis, an ‘assistant:‘ or ‘action:‘ prefix, JSON, quotes, or a code fence.
Typical commands navigate to a receptacle, open or close it, take an object, put an object in or
on a receptacle, inspect inventory, look, examine an object under a light, or use an appliance to
clean, heat, or cool an object. Object numbers matter. Always copy the complete command exactly
from ‘valid_actions‘; never invent a command or combine two commands in one response.
The task succeeds only when the requested final world state has been reached. Continue until the
environment reports success. Failed or redundant actions consume turns.
The protocol above is fixed. Use the notepad below only for learned strategy.
Notepad:
{{ notepad }}
USER:
Task: {{ instruction }}
Initial observation:
“‘json
{{ observation_json }}
“‘
Return the first command only.
Appendix D Notebook Examples
Each panel follows a preselected held-out task order and shows the first 450 characters of the retained notebook after tasks 10, 20, 30, and 40. The same ordered tasks are used across notebook models within a benchmark, although their trajectories can diverge. Bracketed ellipses mark omitted suffixes; the complete notebooks are included in the artifact.