In one line: Curating an agent's memory at read time, once the task is known, usually beat distilling trajectories at write time in this paper's tests: untrained against untrained it won 15 of 17 comparisons on ALFWorld, WebShop and tau2-bench. The RL-trained curator leads the strongest baseline by 16.2 and 16.3 points on ALFWorld and WebShop with a Qwen3-8B executor, but most of that comes from the RL training (57% and 92% of the gain over no memory), the baselines in that Qwen3-8B block match SkillOS's published numbers to the decimal (taken from that paper, not rerun), and the tau2-bench +3.9 is under two standard errors.
Scoped on 26 October 2026 from the database Takeaway, which said an untrained curator already wins "so the gain is the timing rather than the model"; the paper's own Tables 1 and 9 show that holds like for like but not for the headline cells, where RL training supplies most of the gain. The Notion property needs the same edit.
How far to trust it: Believe the direction, not the headline's attribution. Untrained read-time curation beats untrained write-time memory with the same model in 15 of 17 comparisons, but the +16.2 and +16.3 come mostly from RL training (92% of the WebShop gain; the trained curator with no memory at all already beats every baseline there), 36 of the 60 baseline cells are SkillOS's published numbers rather than reruns, and the tau2-bench +3.9 is under two standard errors. The evidence, judged.
The idea in one sentence: store past trajectories raw and let a curator write each new task its own compact briefing from them once the task is known, so nothing is thrown away before anyone knows what it is for, and the briefing is graded by that task's success at once; in the paper the untrained version already beats write-time memory in 15 of 17 like-for-like comparisons, while most of the headline +16 points comes from RL-training the curator.
The figure: the paper's test stream, replayed
The 140 real ALFWorld test goals under the paper's own protocol (§3, Appendix A), run by this page's replay engine: which trajectory each task retrieves, and when, is exact; whether a task succeeds is a coin at JitMem's ALFWorld rate with the Qwen3-8B executor, 77.4%. One random ordering (seed 7).
You need: GRPO's group-relative advantage, which trains the curator (RL for LLMs); agent memory designs in general (Context engineering). New terms: write-time curation (distil a finished trajectory into a fixed artifact when it is stored); read-time curation (keep it raw, distil when a task retrieves it); curator (the model that turns retrieved trajectories plus the task into a payload); payload (the briefing prepended to the executor's prompt); executor (the frozen model that does the task); quality gate (the executor judging its own trajectory before it is stored); -base, -gpt, -gemini (the curator untrained, or a prompted frontier model).
An agent solving tasks one after another should learn from its own past. Agentic memory does that, and almost every system curates it at write time: when a task ends, its trajectory is distilled into a fixed artifact (a verbal reflection as in Reflexion, an insight, a workflow, an executable skill, a reasoning strategy as in ReasoningBank) that later tasks retrieve by similarity (§1, §2; memory designs in general: Context engineering).
Curating then, the paper argues, has two costs that come from one root: the decision is made without knowing what it will be used for (§1).
Learning a write-time curator adds credit assignment: a storage decision is only graded when some later task retrieves the artifact, so the reward is delayed and badly attributed. SkillOS, the closest prior work, trains a skill curator with RL and has to group related tasks into streams to manufacture that signal (§1, §2).
Keep the raw trajectories and curate at read time, just in time, once the task to be solved is known (§1).
The bank becomes a passive store of complete trajectories. When a task arrives, a retriever picks past trajectories and a memory curator reads them together with the new task and writes a compact, task-specific payload, so one stored trajectory can yield a different payload for every task that retrieves it: memory reconstructed, not replayed (§1).
It also changes learning: the payload is consumed by the task it was written for, so that task's success grades it at once, with zero delay and no task grouping (§1, §3). The animation runs the paper's own example (Figure 3) through both designs (switch with the buttons above it); the trajectory's steps and the write-time artifact are illustrative, the artifact following the paper's ReasoningBank-style distillation prompt (Appendix A).
Heat the potato: Use a microwave or stove to make it hot.
Move to the fridge: Go to the fridge, open it, and place the hot potato inside to cool it down.(payload text from Figure 3).
Move to the sofa: Navigate to the sofa and use the "move" action to place the newspaper on it.
Verify placement: Confirm the newspaper is on the sofa. If not, repeat the process.(Figure 3).
1. Locate the object on countertops and tables first. 2. Change its temperature with the matching appliance. 3. Go to the target, open it if closed, and put the object in.(illustrative). The raw trajectory is dropped.
Note that JitMem never hands raw trajectories to the executor: it still distils, only later and with the task in view (Connections).
Tasks x1, x2, ..., xT arrive one at a time. Solving xt produces a trajectory ξt of interleaved observations and actions and a reward rt in [0, 1]. JitMem has four parts: a memory bank of raw trajectories, a retriever, a curator πφ, and a frozen executor πL. Only the curator is trainable, and the goal is the expected sum of task rewards (§3). Each task runs four steps:
| Step | What happens | Details |
|---|---|---|
| 1. Retrieve | top-k raw trajectories for xt | BM25 over task descriptions only, not trajectory content, so retrieval cost does not grow with trajectory length; chosen for consistency with the baselines, untrained, k = 3 (§3, Appendix A) |
| 2. Curate | pt = πφ(xt, retrieved) | a prompt with the task followed by the k trajectories; the output is a concise briefing: which past experiences are relevant, which strategies worked, and specific guidance for this task (per-benchmark prompts in Appendix A) |
| 3. Execute | (ξt, rt) = πL(xt, pt) | the payload is prepended to the frozen executor's prompt; the executor never sees the raw trajectories |
| 4. Update | append ξt if the quality gate accepts it | no labels exist at deployment, so the executor model judges its own trajectory and only judged successes are stored, keeping memories positive examples; the payload is never stored |
Training the curator. GRPO with G = 8 payloads per training task: the frozen executor attempts the task with each payload, the benchmark's own reward scores it (success on ALFWorld, the 0 to 100 score on WebShop), and each payload's advantage is its reward minus the group mean, without dividing by the spread, as in Dr. GRPO (the algorithm itself: RL for LLMs). What is new is what the reward grades: only the payload written for that same task, so the curator learns directly from task success and credit assignment is one step, where a write-time decision at task s is graded only when some task t > s retrieves it (§3).
(§3). Recipe: Qwen3-8B curator, thinking off; 100 steps, learning rate 1 × 10−6, 32 tasks per batch, KL loss 1 × 10−3, payloads up to 8,192 tokens (ALFWorld) or 4,096 (WebShop); Qwen3-8B executor in non-thinking mode for speed (§4, Table 7).
A fixed training bank. So that the reward reflects payload quality, not which trajectories happen to be stored, training retrieves from a frozen bank of the base executor's successes on the training set (by ground-truth label). At test time the bank fills with curator-assisted trajectories instead, a mild shift that the staged-refresh ablation measures (§3).
Evaluation. The test bank starts empty and grows as tasks are solved. Tasks run in batches that share one bank state (10 per batch; 5 on tau2-bench), and the bank updates after each batch. The verifier scores success; the bank's gate sees only the LLM judge, so no label leaks into memory. Results: mean and standard deviation over 3 random orderings (4 on tau2-bench) (§3, Appendix A).
Replaying the protocol on the 140 real goal texts (no LLM: only which trajectory each task retrieves) gives a mean wait of 19.5 tasks (median 14), and 24% of stored trajectories are never retrieved before the test set ends; averaged over 200 random orderings, with a trajectory stored when its task succeeds at JitMem's ALFWorld rate with the Qwen3-8B executor, 77.4%. A write-time curator learning from use would get its first reward that late, and for a quarter of its decisions never. The chart is one ordering; the replay tab steps through it.
Setup. ALFWorld (household tasks, 140 test tasks), WebShop (shopping, 500 instructions; success rate and a 0 to 100 score) and tau2-bench (customer service with tools: airline, retail, telecom); frozen executors Qwen3-8B, Gemini-2.5-Pro and GPT-5.4. Baselines: no memory and three write-time memories, ReasoningBank, MemP and RL-trained SkillOS. "-base" is the same model as curator untrained; "-gpt" and "-gemini" a prompted frontier curator (§4). Success rate (SR) is in percentage points.
Headline. With the RL-trained curator and Qwen3-8B as executor, JitMem reaches 77.4 SR on ALFWorld against 61.2 for RL-trained SkillOS (+16.2) and 32.8 SR on WebShop against 16.5 (+16.3; +20.5 on the score). Moved untouched to stronger executors, the margins shrink to +6.0 and +9.2 with Gemini-2.5-Pro and +8.8 and +10.9 with GPT-5.4 (Table 1). And the training is simpler than SkillOS's: task reward only, no judge-model reward, no grouped streams (§4.1).
tau2-bench has no training split, so only untrained variants run there (GPT-5.4 executing): JitMem-gpt reaches 75.6 micro-averaged SR against 71.7 for ReasoningBank-gpt (+3.9; +3.0 macro), almost all from Telecom (72.6 against 61.6, +11.0). On Airline and Retail no memory method beats no memory beyond the variance, as the paper says: read-time curation helps most where tasks need procedure, not facts (Table 2, §4.1).
Mean over 3 task orderings, whiskers ±1 standard deviation (Table 1). Hollow bars are numbers that match SkillOS's own published Tables 1 and 2 to the decimal, standard deviation included (SkillOS), so they were taken from that paper, not rerun; the tables tab marks every cell.
Untrained against untrained. To separate timing from curator capacity, the paper compares untrained read-time and write-time memories with the same curator model: Qwen3-8B on ALFWorld, 60.5 against 55.7 and 53.1; Gemini-2.5-Pro on WebShop, 61.0 against 40.2 and 41.0; GPT-5.4 on tau2-bench, 75.6 against 71.7 and 66.4. A weaker curator can even win: on ALFWorld with GPT-5.4 executing, a Qwen3-8B curator (79.3) beats ReasoningBank and SkillOS curated by GPT-5.4 (77.9, 70.0). Hence the claim that an untrained curator "is already competitive with or surpasses" the baselines and that read-time curation "itself is a major source of the gain" (abstract, §4.1).
JitMem-base scores 11.7 SR against 12.0 (MemP) and 13.6 (SkillOS-base), and a 32.5 score against 33.3 for no memory at all (Table 1). Across every like-for-like comparison the tables allow (untrained read-time against the best untrained write-time memory with the same curator model, all shown below), read time wins 15 of 17, and the only two losses are this cell, the one behind the headline +16.3.
Each row: read-time (filled dot) against the best untrained write-time memory with the same curator model (ring) and no memory (grey tick). Derived from Tables 1 and 2.
17.6 SR, above SkillOS's 16.5, with no memory at all (Table 9). On ALFWorld it is the same story: 62.6 against 61.2. So the headline gains split into three parts: what an untrained read-time curator adds over no memory, what RL training adds as a hint-writer even without memory, and what RL adds once it can read the retrieved trajectories. Pick a cell:
So the claim holds untrained against untrained (15 of 17 cells), but not for the headline numbers: with the Qwen3-8B executor most of the +16.2 and nearly all of the +16.3 come from RL training. With stronger executors the untrained curator supplies about half or more of the gain over no memory. The abstract's closing words, "training the curator further compounds the improvement", are fair; the database row's first Takeaway ("the gain is the timing rather than the model") overstated it for the cells it quoted, and was scoped on 26 October 2026 (the card's one line).
Transfer. Trained with Qwen3-8B executing and moved to GPT-5.4, the curator scores 86.7 on ALFWorld, 1.4 points short of one trained with GPT-5.4 (88.1), and beats JitMem-base with both stronger executors (+6.2 and +7.4 on ALFWorld, +6.1 SR on WebShop) (Table 3). But an untrained Gemini-2.5-Pro curator scores 61.0 SR on WebShop, above the trained curator's 50.5 with the same executor: curator strength matters a lot there (Table 1).
Shorter context, fewer steps. On ALFWorld with GPT-5.4, JitMem-base adds 1.9K input tokens a task over no memory (9.0K) where ReasoningBank adds 10.7K and SkillOS-base 13.4K, and takes 18.5% to 21.9% fewer steps; training trims input by 10.1%, output by 13.0% and steps by 12.1% more. Trained JitMem uses 50.3% to 56.3% fewer input tokens and 28.4% to 31.4% fewer steps than the write-time methods (Table 4, §1). The curator's own call is not counted.
Each ablation removes one design choice from the untrained JitMem-base or the trained JitMem, with all three executors (Figure 2, Table 9).
Small effects: rebuilding the training bank with curator-assisted trajectories and training 50 more steps adds 2.8 SR (Qwen3-8B), 0.9 (GPT-5.4) or nothing (Gemini); seeding the test bank with 100 training trajectories changes SR by at most 1.3; k = 5 instead of 3 by under 2 (Table 5, Table 8).
Examples. Figure 3 is the example animated in Idea. "Put a hot potato in fridge" is a real ALFWorld test goal; in the replay BM25 often finds it a fridge trajectory, but it cannot match "hot" to "heat", so which lessons arrive depends on shared words.
Figure 4: for "examine the bowl with the desklamp" the untrained payload ends "Examine the bowl to complete the task", missing that the lamp must be used; the trained one adds "Move to the desklamp" and "Examine the bowl with the desklamp", procedure the prompt never asked for. One hand-picked example; the trained payload still opens with placement steps that do not apply.
Drop = parent minus ablation, from Table 9; dots: Qwen3-8B, Gemini-2.5-Pro, GPT-5.4 executors. 3 orderings each; standard deviations of the rows run up to 4.7 points.
The design consequence: Keep trajectories raw, pay the storage, and spend the compute at read time, which is the opposite of what a compaction-first harness does. The cleanest evidence is the distil-before-storing ablation: WebShop drops 6.8 to 8.2 points (Table 9).
The cost is one extra LLM call per task, storage for whole trajectories and a retriever that must scale; the authors list these, plus a hand-designed payload format, as limitations (§5). The gain for learning: a curator graded on the task it just served is a one-step RL problem that any verifiable-reward setup can train, and being separate from the executor it can be trained cheaply and reused with an expensive one (Table 3). Concurrent MemHarness also curates at read time, but in the executor itself, which ties the memory to that model (§2).
What holds up. The direction is consistent: untrained read-time beats untrained write-time memory with the same curator model in 15 of 17 comparisons across three executors and three benchmarks. The headline gaps are 5.2 and 15.4 standard errors of the difference (tables tab). The ablations tell one coherent story. The appendix gives every prompt, the full GRPO configuration, hardware, run times and how the baseline was reproduced (Appendix A), and the authors state their limits (no gain on Airline and Retail, BM25, an extra call, a hand-designed payload; §5), which counts in their favour. 62 of 63 derived numbers recompute.
The weaknesses, concretely:
Verdict: believe the direction, not the headline's attribution. Curating at read time with the task in view beats distilling at write time in almost every like-for-like comparison, and storing raw trajectories clearly helps on WebShop. But the +16.2 and +16.3 are mostly the RL-trained curator (which already wins without any memory), measured against baselines copied from another paper's harness, and the tau2-bench gain is within noise.
Nothing is released, but the untrained version can be rebuilt from the paper alone (every prompt is printed, retrieval is BM25 with k = 3, the gate is the executor judging itself), and it is the part that transfers: one extra curator call per task buys a much shorter executor prompt. Training the curator needs a training split with a verifiable reward and about 168 (ALFWorld) or 216 (WebShop) H200 GPU-hours per run; it pays most for a small executor on procedural tasks.
arXiv still lists only v1 (23 September 2026), under arXiv's non-exclusive licence, with no code, curator weights or trajectories linked; a web search on 26 October found no official repository, only secondary summaries (arXiv 2609.27334). Recheck before adopting: a code release would let the copied baselines and the validation split be checked.
The paper's argument about credit assignment is about traffic: which stored trajectory gets retrieved by which later task, and when. That part of the system has no LLM in it, so it can be run exactly. This tab replays the paper's test protocol on the real 140 ALFWorld test goals (the "valid_seen" split, six task types): the bank starts empty, tasks arrive in a random order in batches of 10 that share the bank, BM25 over task descriptions returns the top 3 stored trajectories, and a task's trajectory is stored after its batch if it succeeds (§3, Appendix A). What is not modelled: whether a task succeeds is a coin with probability p, the judge is assumed to agree with the verifier, and BM25's parameters (k1 = 1.5, b = 0.75) are the common defaults, since the paper does not give them.
Try: step through the batches with the arrows or the scrubber and watch which trajectories feed which tasks; it opens on batch 5 of the same ordering as the figure at the top of The paper tab (seed 7), where task 50 retrieves task 32, and it does not play by itself: the run is yours to drive. Switch to write time to see when a write-time curator would get its reward for each storage decision: only when a later task first uses it. Then move the slider to inspect single tasks: early tasks retrieve the few trajectories that exist, whatever their type.
Each row of the card is a batch of 10 in arrival order and each dot a task, coloured by its type; a filled dot succeeded and its trajectory is stored after the batch, a hollow one failed. The lines are what the current batch retrieves. The rings show the two designs: in read time every payload is graded by its own task, at once; in write time a stored trajectory turns green only when a later task first uses it, and stays dashed orange while it waits.
● place ● clean ● heat ● cool ● two objects ● look · hollow: failed, not stored · lines: what the current batch retrieves, same type or another type
It measures the memory traffic of the paper's own protocol on the paper's own test set: a stored trajectory is first used about 20 tasks later, a fifth to a quarter are never used, and a used one feeds about five later tasks of about two different types. That is the delayed, many-consumer reward a write-time curator has to learn from, and the many-lessons problem a single artifact faces; it is real, not illustrative. It does not show that read-time curation is better: success here is a coin, so nothing about payload quality is simulated. The JavaScript replay was checked against an independent Python implementation (src/stream_sim.py): identical orderings, retrievals and statistics on 5 settings.
Every table that carries the argument, transcribed from the LaTeX source in the arXiv e-print at the printed precision (src/mk_tables.py), with every derived number recomputed (src/recompute.py).
P: prompted (untrained) curator; RL: trained. Cells in italics with an S match SkillOS's published Tables 1 and 2 to the decimal, standard deviation included, and were taken from that paper rather than rerun: . The strongest baseline is the highest non-JitMem row in the same executor block, as in the paper's red gains.
Standard error of the difference = sqrt(sda² / n + sdb² / n), n = 3 orderings (4 on tau2-bench). The standard deviations cover task ordering and sampling at temperature 1.0 on one fixed test set; they say nothing about other tasks.
Macro = mean of the three domains; micro = weighted by 50, 114 and 114 tasks (airline, retail, telecom). Recomputed from the per-domain means; one row (SkillOS-gpt) is 0.12 off, the rest within rounding.
Change columns recomputed against JitMem's row: input tokens and steps relative to each method. The curator's own tokens are not counted in the paper's table.
Every link opens in a new tab. Reading time of the resources below: 6h 05m.
arXiv preprint, 2026, the paper itself; the HTML version has the anchors this page links to. abstract page, PDF.
(45 min)
neither the paper nor its arXiv page links code, trained curator weights or trajectories (checked 3 October 2026); the prompts are printed in full in Appendix A.
Ouyang et al. (Google, UIUC), 2026: the closest prior work: an RL-trained write-time skill curator that needs grouped task streams for its delayed reward. Its Tables 1 and 2 are the source of most of JitMem's baseline rows.
(40 min)
Ouyang et al., ICLR 2026: the strongest heuristic write-time baseline: distil each trajectory into at most three strategy items, retrieve by embedding similarity. JitMem's 'w/o raw traj.' ablation uses its distillation prompt.
(35 min)
Fang et al., Findings of ACL 2026: the third baseline: procedural memory items at several granularities, built, retrieved and updated at write time.
(30 min)
Wu et al., 2026 (concurrent): the same read-time idea, but one GRPO policy both adapts the retrieved experience and executes the task, so it cannot be moved to another executor; JitMem's separate curator can.
(35 min)
Shinn et al., NeurIPS 2023: the origin of write-time verbal memory: after a task, write a reflection and reuse it next time.
(30 min)
Shen et al., 2026: query-independent lesson distillation; the source of the paper's 'higher information density, more efficient completion' reading of Table 4.
(30 min)
Liu et al., COLM 2025: why JitMem drops GRPO's standard-deviation normalisation of advantages.
(30 min)
Shridhar et al., ICLR 2021: the household benchmark; the 140 'valid_seen' games are the test set, six task types. This page's stream replay uses their real goal texts.
(25 min)
ALFWorld release 0.2.2: where the 140 test goals on this page come from (valid_seen, solvable games).
(10 min)
Yao et al., NeurIPS 2022: the shopping benchmark: 500 test instructions, a 0 to 100 attribute-match score, and success when the score is 100.
(25 min)
Barres et al., 2025: the airline, retail and telecom customer-service benchmark used without training in Table 2.
(30 min)
decides when to remind an agent of something it already holds, inside one task; JitMem cites it as arXiv 2607.08716 (Wu et al. 2026b) and contrasts in-session with cross-task memory.
context compaction found by an auto-research loop: it shrinks what is carried forward, the opposite design choice to keeping trajectories raw.
the same just-in-time move one level up: synthesise the harness itself per task at inference time instead of fixing it in advance.
finds skills distilled from the same trajectories beat raw workflow memory handed to the agent. JitMem never hands raw traces to the executor either: it distils them, just later.
write-time distillation at library scale: knowledge fixed into skills before any task asks for it.
memory folded into a fixed latent bank at write time, with the write rule untrained; the opposite end of the design space from raw storage.
query-independent compression of context, learned end to end: what JitMem argues against for cross-task memory.
an append-only raw record as shared memory: keep everything, decide what matters when it is read.
the reason-then-act executor loop and the original agent results on ALFWorld and WebShop.
the general pattern underneath: store raw, retrieve at query time, let the reader condition on the query.
where GRPO, the group-relative advantage JitMem trains its curator with, was introduced.
memory as a harness component; this paper argues for raw storage and read-time compute over compaction-first designs.
BM25 over task descriptions, and what a retriever-plus-curator adds over retrieving fixed artifacts.
GRPO on a single immediate reward: a curator trained from task success with a frozen executor.
credit assignment: the paper's case is that read-time curation turns a delayed, many-task reward into a one-step one.
This page is one row of the Papers database; its properties (Paper, Takeaway, Topics, Year) live there.