AutoMem: Automated Learning of Memory as a Cognitive Skill
Shengguang Wu, Hao Zhu, Yuhui Zhang, Xiaohan Wang, Serena Yeung-Levy
NeurIPS 2026
Abstract. Memory expertise is a learned skill: knowing what to encode, when to retrieve, and how to organize knowledge—a capacity known in cognitive science as metamemory. We bring this perspective to LLMs by treating memory management as a trainable skill. We promote file-system operations to first-class memory actions alongside task actions, letting the model itself decide how to manage its memory. This memory skill improves along two axes: the structure that supports it (prompts, file schemas, action vocabulary), and the proficiency of the model exercising it. Both axes resist manual optimization: episodes in long-horizon tasks run for thousands of steps, and a single memory mistake can hide long before it surfaces, making human review of full trajectories impractical. We introduce AutoMem, a framework that automates both axes. In the first loop, a strong LLM reviews complete agent trajectories and iteratively revises the memory structure that shapes how the agent interacts with its memory files. In the second loop, the agent's own good memory decisions are identified from many episodes and used as training signal to sharpen the model's memory proficiency directly. Across three procedurally generated long-horizon games (Crafter, MiniHack, and NetHack), optimizing memory alone—without modifying the model's task-action weights—improved the base agent's performance ~2x–4x, making a 32B open-weight model competitive with frontier systems such as Claude Opus 4.5 and Gemini 3.1 Pro Thinking. Our results show that memory management is an independently learnable skill, and a high-leverage objective yielding large gains on long-horizon tasks.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes AUTOMEM, a two-level procedure aimed at improving a model's ability to use memory to solve long-horizon games. Initial reviews were skeptical and criticized a lack of precision and weak/missing comparisons to other baselines and the literature. Through extensive additional experiments, the authors have abated most concerns and reviewers feel the empirical evidence is now sufficient to back up the main claims.
Final justification
meta-review has been updated.
- Final justification
- meta-review has been updated.
Read meta-review
Meta-review
This paper proposes AUTOMEM, a two-level procedure aimed at improving a model's ability to use memory to solve long-horizon games. Initial reviews were skeptical and criticized a lack of precision and weak/missing comparisons to other baselines and the literature. Through extensive additional experiments, the authors have abated most concerns and reviewers feel the empirical evidence is now sufficient to back up the main claims.
1 comment
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Inspired by metamemory, this paper reframes memory management for LLM agents as a learnable skill rather than a fixed architectural design. It contains the file system operations in the model's action space alongside task actions as memory actions, so that each memory decision is an observable, traceable step. This contains two loops in this paper, as the author proposed in AutoMEM: an inner loop where a strong LLM iteratively revises the harness of the agent, and an outer loop where the agent is trained using supervised fine-tuning with the training data collected by a strong LLM to improve the model's ability to perform memory actions. On three BALROG games (Crafter, MiniHack, NetHack) with Qwen2.5-32B-Instruct, optimizing memory alone improves progression 2×–4× and brings the 32B model to the level of vanilla frontier systems on the leaderboard.
Strengths and weaknesses
Strength:
- The paper is well motivated to promote memory operations (read/write/search/append/create) to first-class, observable actions in the same action space as task actions. It makes every memory decision a traceable step that the outer loops can evaluate and optimize, which is the conceptual core that distinguishes this work from fixed external-memory modules.
- Whether memory management is an independently learnable, high-leverage skill is an important question for long-horizon agents, and the within-family result is clean support for the "memory over scale" direction.
Weakenss:
- The Scaffold is selected in-sample. Loop 1 accepts a revision only if average progression on the fixed eval seeds improves, and the numbers are reported on those same seeds. With only 10 seeds and 2–5 hill-climbing iterations (plus retries), the reported Loop-1 gains may partly reflect overfitting to seed-specific quirks rather than a generalizable memory structure. There is no held-out seed set, and Loop-2 inherits this since it is deployed in the in-sample-selected scaffold.
- No comparison to existing memory methods. The related work discusses MemGPT, A-MeM, MemoryBank, MemAct, MemSkill, MemEvolve, etc., but the only empirical baselines are weak context-management methods. It is therefore unclear how much of the gain is specific to AUTOMEM versus achievable by existing external-memory approaches under the same harness.
- The evaluation is conducted on a small scale. NetHack uses 5 episodes, and the Loop-2 increment there is within standard error. The hardest-game result is statistically weak.
- Both loops are driven by Opus 4.6/4.7. The "open-weight closes the gap" narrative is achieved using frontier models as optimizer and curator, and this dependence should be acknowledged.
Questions
- Loop 1's acceptance gate uses the eval seeds. Can you report scaffold-optimization progression on a held-out seed set never used during selection and see if the similar amount of performance gain is held out-of-sample?
- Loop 1 is inference-time and model-agnostic. Can you run it on at least one frontier model, ideally re-optimizing against that model's own traces, to test whether the memory-structure gains transfer or are specific to a weaker base?
- How does AUTOMEM compare against an existing memory method cited in related work (e.g., MemGPT) and/or a competent human-engineered scaffold, rather than only sliding-window/CoT?
Limitations
yes
Final justification
Most of my concerns are addressed through the rebuttal, including the generalizability of Loop 1's scaffold, the missing baseline experiments, and the contribution of Loop 2 (after the held-out ablation in the authors' final response). The claim that memory optimization is higher-leverage than scale and closes the open-weight–frontier gap is still untested on a frontier base and appears to rely on a frontier optimizer. However, I view this as a matter of claim scope rather than a methodological flaw, so I am raising my score to 4.
Formatting concerns
no
6 comments
Rebuttal
We thank the reviewer for the detailed review.
Since the reviews were released, we have been running additional experiments to address the concerns raised. These include, among others:
- re-evaluation on a seed set completely held out from both optimization loops;
- comparisons against published external-memory systems as baselines;
- evaluating our evolved scaffold, unchanged, on base models of different scales.
We will also address the clarification questions raised in the review.
We will post the full response, including all results and per-question answers, as Official Comments once the experiment runs finish.
Response to reviewer Rcq8 (Part 1 / 3)
[Q1] Do the gains from AutoMem hold up on seeds that the optimization loops never saw?
[A1] Yes. In all three environments, AutoMem's improvements from both loops remain substantial on completely held-out seeds. We evaluate on a fresh set of episode seeds that neither loop ever used — 52–61 (Crafter) and 52–56 (MiniHack & NetHack) — while keeping all other evaluation settings the same as in the paper. Throughout this response, "paper's seeds" refers to the original fixed seeds used during scaffold optimization and reported in the paper.
| progression (%) — paper's seeds / held-out seeds | Crafter | MiniHack | NetHack |
|---|---|---|---|
memory-as-file-system v0 |
25.00 / 28.64 | 7.50 / 10.00 | 0.42 / 0.31 |
| + scaffold optimization (loop1) | 45.91 / 42.27 (1.5x) | 22.50 / 25.00 (2.5x) | 1.57 / 1.11 (3.6x) |
| + memory training (loop2) | 54.09 / 44.55 | 27.50 / 27.50 | 1.71 / 1.20 |
The gains on the held-out seeds from both loops are consistent with those on the seed set used during optimization: the optimized scaffold lifts performance to between 1.5x and 3.6x that of the starting v0 agent, while memory training adds further gains on top.
We explain why the improvements from both loops transfer in our response [A2] to your [Q2] below.
[Q2] Is what the loop learns tied to particular seeds or worlds?
[A2] No. None of the scaffold revisions refers to any specific world, and the improvements in the agent's memory and gameplay behaviour are generally applicable across worlds. Consistent with the performance pattern in [A1], none of the revisions made to the improved scaffold are world-specific:
-
Loop1 detects general behavioural / memory-taking patterns worth correcting — see, e.g., the paper's Fig. 4 (improvements in general gameplay behaviour, such as reduced oscillation or stuckness) and Fig. 5 (general memory scheme updates, such as deduplicating map entries or inventory sync-up, that apply to all worlds in that environment). No revised scaffold mechanism refers to any specific world. We will also include more qualitative demonstrations of the scaffold's improvements in the revised paper to show that these patterns are generally applicable.
-
Training on top of the scaffold reinforces the memory model's good memory actions, which align with the same general improvements in agent behaviour. The resulting gains therefore transfer as well.
[Q3] How does AutoMem compare against published memory systems under the same environment harness?
[A3] We ported two established external-memory baselines, MemGPT (arXiv:2310.08560) and A-Mem (arXiv:2502.12110), into our harness and evaluated them in all three environments. Neither reaches the performance level of evolved AutoMem.
| progression (%) — paper's seeds / held-out seeds | Crafter | MiniHack | NetHack |
|---|---|---|---|
| A-Mem | 5.91 / 6.36 | 7.50 / 10.00 | 0.00 / 0.00 |
| MemGPT | 23.18 / 26.82 | 10.00 / 7.50 | 0.31 / 0.62 |
AutoMem v0 (our starting scaffold) |
25.00 / 28.64 | 7.50 / 10.00 | 0.42 / 0.31 |
| AutoMem + scaffold optimization | 45.91 / 42.27 | 22.50 / 25.00 | 1.57 / 1.11 |
The best baseline, MemGPT, performs similarly to our hand-designed starting scaffold v0. After loop1's memory scaffold optimization, however, the optimized agent leads by a substantial margin.
This again points to one of our central claims: there is still substantial headroom for optimizing a memory system / scaffold, whether the starting point is our hand-designed v0 or a baseline like MemGPT; automating this optimization is exactly what loop1 contributes.
Response to reviewer Rcq8 (Part 2 / 3)
[Q4] Does the optimized memory structure help models other than the one it was optimized against?
[A4] Yes. Applying the optimized scaffold unchanged lifts every tested model above its own v0 on MiniHack and Crafter, and lifts the 14B model above its own v0 on NetHack too.
progression (%), v0 → optimized scaffold |
MiniHack | Crafter | NetHack |
|---|---|---|---|
| Qwen2.5-7B-Instruct | 5.00 → 22.50 (4.5x) | 16.82 → 29.09 (1.7x) | 0.00 → 0.00 |
| Qwen2.5-14B-Instruct | 10.00 → 25.00 (2.5x) | 16.82 → 35.00 (2.1x) | 0.42 → 0.74 (1.8x) |
| Qwen2.5-32B-Instruct (paper) | 7.50 → 22.50 (3.0x) | 25.00 → 45.91 (1.8x) | 0.42 → 1.57 (3.7x) |
On MiniHack, for example, a 7B on the optimized scaffold reaches the 32B's score, so the optimized memory-structure is not exploiting anything peculiar to the model it was optimized against.
On NetHack, the 14B and 32B improve, while the 7B row is limited by that small model's capacity: it cannot reliably follow instructions and emit NetHack actions, so no memory structure can be faithfully exercised.
Re-optimizing loop1 against a frontier model's own traces, as you suggest, would require substantial frontier-model API costs for inference over 10,000+ step episodes, which is out of reach for us. This constraint also points to another advantage of AutoMem: by optimizing long-horizon memory, it substantially improves locally served open-weight models and makes the 32B system competitive with some frontier systems, while preserving the inference cost-efficiency of an open-weight model.
What we could do instead was replace the frontier meta-LLM with an open-weight version, also enabling a comparison between proprietary frontier and open-weight meta-LLMs, as shown in [A5] below.
[Q5] How much of the result rests on a frontier meta-LLM?
[A5] An open-weight meta-LLM also produces meaningful scaffold improvements in all three environments.
We replaced the meta-LLM with a fully open-weight, locally served Qwen3-Coder-Next (80B), while keeping the exact same loop1 framework and reusing the same v0 runs as the starting point:
| scaffold optimization | v0 |
open-weight meta-LLM | versions | Opus trajectory in the paper |
|---|---|---|---|---|
| Crafter | 25.00 | 34.09 (+36%) | v0 → v1 | 25.00 → 33.18 → 41.82 → 42.27 → 45.45 → 45.91, v0 → v5 |
| MiniHack | 7.50 | 10.00 (+33%) | v0 → v1 | 7.50 → 10.00 → 15.00 → 17.50 → 20.00 → 22.50, v0 → v5 |
| NetHack | 0.42 | 1.11 (+166%) | v0 → v1 | 0.42 → 1.27 → 1.57, v0 → v2 |
AutoMem's loop1 (scaffold optimization) does not necessarily require a proprietary meta-LLM: an open-weight 80B Qwen3-Coder-Next also produces meaningful gains on the memory agent, and on MiniHack its revision lands on exactly the same score as the first Opus revision (v1).
In our experiment, Qwen3-Coder-Next then plateaued at its evolved v1, whereas the Opus optimization trajectory continued through later versions. This suggests that meta-LLM capability affects how far scaffold optimization progresses.
In AutoMem, the meta-LLM takes on a role similar to that of a senior agent engineer. This pattern is therefore consistent with a stronger model being better able to diagnose long-horizon failures and propose further scaffold revisions. We used a strong meta-LLM in this paper because automated optimization is one of our central themes. This ablation nevertheless shows that an open-weight meta-LLM can also take on this role, although it reached smaller final gains.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this work, the authors focus on automating memory management in LLM-based agents for long-horizon game environments. Different from existing approaches, which typically treat the agent scaffold—the code, prompts, file schema, and action vocabulary—as a fixed mechanism designed into the system upfront and never revised thereafter. The authors take the agent scaffold into consideration for optimization. Specifically, the authors adopt Qwen2.5-32B-Instruct as the base agent and propose a two-axis optimization framework. On the first axis, a strong meta-LLM iteratively revises the agent scaffold to shape how the agent manages its memory (Structure Optimization). On the second axis, with a fixed optimized scaffold, a dedicated memory specialist is fine-tuned on the agent’s own selected traces to internalize effective memory decisions (Proficiency Training). The two loops operate sequentially: structure revision pushes the ceiling of what the scaffold can support, and proficiency training addresses the remaining model-capacity gap. Together, they bring a 32B open-weight model to a performance level competitive with frontier proprietary systems across three procedurally generated games.
Strengths and weaknesses
Strengths
- The motivation to treat the agent scaffold (prompts, file schema, action vocabulary) as an explicit optimization target is both sound and well-justified, given the impracticality of manual tuning over trajectories of tens of thousands of steps.
- The authors not only demonstrate that scaffold optimization alone yields 2–4× performance gains, but also provide concrete evidence of why the scaffold matters: they quantify reductions in unproductive actions, near-elimination of redundant memory writes, slower per-step memory growth, and show an evolving scaffold (e.g., the coordinate-keyed deduplication in NetHack). These mechanistic insights and the case study of scaffold evolution make the empirical contribution especially strong.
- The submission is clearly organized and easy to follow. The two-loop framework is presented with a logical flow from problem formulation to method to experiments.
Weaknesses
- Related work is insufficiently detailed. The paper mentions automated agent optimization and LLMs in games in passing but does not provide a thorough literature review. As a reviewer, I am not convinced whether certain existing methods could serve as additional baselines. The lack of discussion on why those prior works are not adopted as baselines weakens the positioning of the proposed approach.
- Backbone model diversity is limited. The experiments only test one backbone model (i.e., Qwen-2.5-32B-Instruct). To demonstrate generalizability, the paper should include evaluations with models of varying scales (e.g., 7B, 13B, 70B) to show how the method improves performance across different model sizes.
- The choice of the meta-LLM is not clarified. It is unclear why a particular model is selected for the meta-LLM role. Additional experiments using different models (e.g., with varying architectures, scales, or families) as the meta-LLM are needed to verify whether the two‑loop framework is robust to the choice of the supervising model.
- The fine‑tuning method in the proficiency loop is not specified. The paper mentions supervised training data for the memory specialist, but does not clarify whether supervised fine‑tuning (SFT) or reinforcement learning (RL) is used. This omission makes it difficult to assess the technical details and reproducibility.
Questions
- Why was Opus 4.6 chosen for the scaffold loop (Loop 1) while Opus 4.7 was used for the proficiency loop (Loop 2)? A clear justification for this asymmetry would help rule out confounding effects introduced by different meta‑model capabilities.
- How was the initial scaffold determined? Is it identical to the default scaffold used in the BALROG benchmark, or was it manually designed? A precise description of the initial scaffold (e.g., the initial prompt schema, action space, and file structure) is necessary for reproducibility.
- The gameplay agent and the memory specialist are deployed separately. Does the scaffold optimization also cover the interaction logic (e.g., the API calls, message passing protocols, or control flow) between these two agents? If so, how are these interactions represented and optimized in the scaffold? If not, what assumptions are made about the interface between the two agents?
Limitations
yes
Final justification
The authors addressed most of my concerns well and added the corresponding baselines.
Formatting concerns
None
5 comments
Rebuttal
We thank the reviewer for the detailed review.
Since the reviews were released, we have been running additional experiments to address the concerns raised. These include, among others:
- comparisons against published external-memory systems as baselines;
- evaluating our evolved scaffold, unchanged, on base models of different scales.
We will also address the clarification questions raised in the review.
We will post the full response, including all results and per-question answers, as Official Comments once the experiment runs finish.
Response to reviewer pz1b (Part 1 / 2)
[Q1] Does the optimized memory structure help models other than the one it was optimized against?
[A1] Yes. Applying the optimized scaffold unchanged lifts every tested model above its own v0 on MiniHack and Crafter, and lifts the 14B model above its own v0 on NetHack too.
progression (%), v0 → optimized scaffold |
MiniHack | Crafter | NetHack |
|---|---|---|---|
| Qwen2.5-7B-Instruct | 5.00 → 22.50 (4.5x) | 16.82 → 29.09 (1.7x) | 0.00 → 0.00 |
| Qwen2.5-14B-Instruct | 10.00 → 25.00 (2.5x) | 16.82 → 35.00 (2.1x) | 0.42 → 0.74 (1.8x) |
| Qwen2.5-32B-Instruct (paper) | 7.50 → 22.50 (3.0x) | 25.00 → 45.91 (1.8x) | 0.42 → 1.57 (3.7x) |
On MiniHack, for example, a 7B on the optimized scaffold reaches the 32B's score, so the optimized memory-structure is not exploiting anything peculiar to the model it was optimized against.
On NetHack, the 14B and 32B improve, while the 7B row is limited by that small model's capacity: it cannot reliably follow instructions and emit NetHack actions, so no memory structure can be faithfully exercised.
[Q2] Why Opus 4.6 for one loop and 4.7 for the other, and how much of the result rests on a frontier meta-LLM?
[A2] The version difference is purely chronological, not part of any design choice; and an open-weight meta-LLM also produces meaningful scaffold improvements in all three environments.
The two loops ran on either side of Opus 4.7 becoming available, so each used the Opus version available at the time. This was not part of our design, and we do not think it makes a meaningful difference.
For the second half of the question, we replaced the meta-LLM with a fully open-weight, locally served Qwen3-Coder-Next (80B), while keeping the exact same loop1 framework and reusing the same v0 runs as the starting point:
| scaffold optimization | v0 |
open-weight meta-LLM | versions | Opus trajectory in the paper |
|---|---|---|---|---|
| Crafter | 25.00 | 34.09 (+36%) | v0 → v1 | 25.00 → 33.18 → 41.82 → 42.27 → 45.45 → 45.91, v0 → v5 |
| MiniHack | 7.50 | 10.00 (+33%) | v0 → v1 | 7.50 → 10.00 → 15.00 → 17.50 → 20.00 → 22.50, v0 → v5 |
| NetHack | 0.42 | 1.11 (+166%) | v0 → v1 | 0.42 → 1.27 → 1.57, v0 → v2 |
AutoMem's loop1 (scaffold optimization) does not necessarily require a proprietary meta-LLM: an open-weight 80B Qwen3-Coder-Next also produces meaningful gains on the memory agent, and on MiniHack its revision lands on exactly the same score as the first Opus revision (v1).
In our experiment, Qwen3-Coder-Next then plateaued at its evolved v1, whereas the Opus optimization trajectory continued through later versions. This suggests that meta-LLM capability affects how far scaffold optimization progresses.
In AutoMem, the meta-LLM takes on a role similar to that of a senior agent engineer. This pattern is therefore consistent with a stronger model being better able to diagnose long-horizon failures and propose further scaffold revisions. We used a strong meta-LLM in this paper because automated optimization is one of our central themes. This ablation nevertheless shows that an open-weight meta-LLM can also take on this role, although it reached smaller final gains.
Response to reviewer pz1b (Part 2 / 2)
[Q3] How does AutoMem compare against published memory systems under the same environment harness?
[A3] We ported two established external-memory baselines, MemGPT (arXiv:2310.08560) and A-Mem (arXiv:2502.12110), into our harness and evaluated them in all three environments. Neither reaches the performance level of evolved AutoMem.
In the table below, "paper's seeds" refers to the original fixed seeds used during scaffold optimization and reported in the paper, while "held-out seeds" are a fresh set of episode seeds that neither loop of AutoMem ever saw. You may refer to our response [A1] to reviewer 19iq's [Q1].
| progression (%) — paper's seeds / held-out seeds | Crafter | MiniHack | NetHack |
|---|---|---|---|
| A-Mem | 5.91 / 6.36 | 7.50 / 10.00 | 0.00 / 0.00 |
| MemGPT | 23.18 / 26.82 | 10.00 / 7.50 | 0.31 / 0.62 |
AutoMem v0 (our starting scaffold) |
25.00 / 28.64 | 7.50 / 10.00 | 0.42 / 0.31 |
| AutoMem + scaffold optimization | 45.91 / 42.27 | 22.50 / 25.00 | 1.57 / 1.11 |
The best baseline, MemGPT, performs similarly to our hand-designed starting scaffold v0. After loop1's memory scaffold optimization, however, the optimized agent leads by a substantial margin.
This again points to one of our central claims: there is still substantial headroom for optimizing a memory system / scaffold, whether the starting point is our hand-designed v0 or a baseline like MemGPT; automating this optimization is exactly what loop1 contributes.
[Q4] How was the initial scaffold determined — is it BALROG's default, or hand-designed?
[A4] Hand-designed by us as a starting memory agent. BALROG releases no memory agent.
As shown in [A3] above, this hand-designed starting v0 scaffold performs similarly to MemGPT and better than A-Mem, two established memory-agent baselines. More broadly, AutoMem is not tied to BALROG's default or to any single hand-designed schema: the memory scaffold is the object of AutoMem's automatic optimization loops, rather than a fixed component.
For a more "precise" description of the initial scaffold, we will make sure to improve clarity and add an algorithm block in the revised paper. You may also refer to our response [A9] to reviewer 19iq's [Q9] for explanation of the action space and how the initial memory scaffold works.
[Q5] Is the proficiency loop supervised fine-tuning or reinforcement learning?
[A5] We use standard supervised fine-tuning with LoRA and next-token cross-entropy loss. One training example consists of one step's instruction plus the model's verbatim response (containing the memory-operation actions that the meta-LLM data engine considered good).
[Q6] Does scaffold optimization also cover the interface between the memory specialist and the gameplay model?
[A6] No. The interface is fixed rather than optimized, which serves to isolate the contribution of memory-specific optimization. This paper focuses on optimizing memory actions separately from gameplay, so loop1 optimizes only the memory scaffold itself. However, the interface is itself an interesting exploration space. Jointly optimizing it could be a natural direction for future work, which we'd be happy to discuss in the revised paper.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
AUTOMEM treats memory management as a learnable skill. File operations become first-class actions, so every memory decision is observable in the trajectory. Two outer loops optimize a frozen gameplay model (Qwen2.5-32B): loop #1, a meta-LLM reads full episode traces and rewrites the agent scaffold (code, prompts, file schema), keeping a revision only if progression improves; loop #2 trains a LoRA "memory specialist" on the model's own high-quality traces (selected by a meta-LLM), deployed as a two-model system. On three BALROG games (Crafter, MiniHack, NetHack) progression improves 2x–4x over a sliding-window baseline, which the authors frame as bringing a 32B open model close to frontier systems.
Strengths and weaknesses
S1. The structure/proficiency decomposition, with memory expressed as explicit file-system actions, is a clear and well-structured design.
S2. The mechanism analysis is the most compelling part of the paper: the behavioral metrics and the schema-evolution example provide a credible account of why an optimized scaffold helps, and Table 2 shows a scaffold-encouraged behavior being absorbed into the trained weights.
S3. The experimental setup is documented in reasonable detail (seeds, hyperparameters, and cost are disclosed), and the authors explicitly prevent eval-seed contamination in the training data.
W1. The scaffold-optimization result, the larger share of the gains, is selected on the same seeds it is reported on: loop #1's acceptance gate keeps a revision only if it improves on the same fixed eval seeds (Appendix C.2), which for procedurally generated worlds constitutes selection on the test instances. Notably, the authors guard against precisely this for the LoRA training data but not for the scaffold gate. I ask the authors to re-evaluate the final scaffold and the two-model system on held-out seeds. If the gains persist I would raise my score substantially; if they diminish, the central claim is not supported.
W2. The "high-leverage" and "closing the open-vs-frontier gap" claims are supported only against a sliding-window baseline and leaderboard numbers; the paper compares against none of the roughly fifteen memory systems it cites. I ask the authors to add one or two established external-memory baselines (e.g. MemGPT [1], A-Mem [2], MemAct [3]) under the same harness.
W3. The novelty is under-defended, and the "prior work is a fixed, single-axis mechanism" framing is undercut by the paper's own recent citations: memory-as-action [3], memory-as-evolvable-skill via failure review [4], joint structure-and-experience evolution [5], and trained memory policies [6] each already exist. The defensible contribution is narrow but genuine (code-level scaffold rewriting combined with a distilled specialist, in the long-horizon-game and file-memory setting), but it is asserted rather than demonstrated: there is no direct comparison against [3–6] and no ablation isolating the two-axis decomposition. I ask the authors to reposition against [3–6] and to add such a comparison and ablation.
W4. The frontier closed models (Opus 4.6/4.7) operate inside the optimization loop as scaffold writer and data curator, while a frontier model is also the comparison target, so "closing the gap with frontier" is partly circular. I ask the authors to replace the meta-LLMs with an open-weight optimizer and curator and report how much of the improvement remains.
W5. The generality claim ("an independently learnable skill") rests on a narrow and homogeneous evaluation domain: three grid-world games, two of which share the NetHack engine, in all of which the relevant memory is essentially spatial (maps, coordinates, inventory). The framework is never tested on a non-game, memory-intensive task. This matters because the standard memory benchmarks on which the most closely related cited methods are evaluated (LoCoMo, LongMemEval, and similar long-context or multi-session settings used by [3,4,6]) are exactly such domains, so they offer both a missing testbed and a missing comparison. The authors acknowledge the game-only scope in Appendix A, but given the breadth of the central claim this should temper the framing rather than be deferred to future work. I ask the authors to either evaluate on at least one non-game memory-intensive benchmark or to scope the claim to spatial, long-horizon game settings.
W6. Several minor points. The system and baselines are not evaluated under an identical harness (autopickup and the invalid-action fallback were changed); the "competitive with frontier" claim is optimistic on NetHack, where the absolute values are small and the confidence intervals overlap. I ask the authors to run a matched-harness comparison, report statistical significance, and qualify the NetHack claim.
[1] Packer et al. "MemGPT." arXiv:2310.08560. (OS-style paging of external memory; a natural baseline.) [2] Xu et al. "A-Mem: Agentic Memory for LLM Agents." NeurIPS 2025. (Dynamic organization of external memory; a natural baseline.) [3] Zhang et al. "Memory as Action (MemAct)." arXiv:2510.12635. (Memory operations as RL-learned actions; pre-empts the "memory as action" framing.) [4] Zhang et al. "MemSkill." arXiv:2602.02474. (Memory operations as evolvable skills refined by reviewing failures; pre-empts the "learnable, automatically evolved skill" framing.) [5] Zhang et al. "MemEvolve." arXiv:2512.18746. (Jointly evolves memory structure and experience; pre-empts the two-axis claim.) [6] Yan et al. "Memory-R1." arXiv:2508.19828. (Trains the memory-management policy via RL; pre-empts the proficiency axis.)
Questions
Refer to W1–W6.
Limitations
Yes
Final justification
- The rebuttal resolved my main empirical concerns. The held-out results support generalization, and the new memory baselines strengthen the evaluation.
- The main remaining issue is novelty relative to the closest related work. Evidence for Loop 2 is also weaker than for Loop 1.
- I give substantial weight to the new experiments, so I raise my score from 3 to 4. The remaining concerns prevent a higher score.
Formatting concerns
LGTM
7 comments
Rebuttal
We thank the reviewer for the detailed review.
Since the reviews were released, we have been running additional experiments to address the concerns raised. These include, among others:
- re-evaluation on a seed set completely held out from both optimization loops;
- comparisons against published external-memory systems as baselines;
- an ablation that separates the two optimization axes by applying memory training to the unevolved scaffold;
- porting our framework to a non-game, memory-intensive benchmark.
We will also address the clarification questions raised in the review.
We will post the full response, including all results and per-question answers, as Official Comments once the experiment runs finish.
Response to reviewer SU8o (Part 1 / 4)
[Q1] Do the gains from AutoMem hold up on seeds that the optimization loops never saw?
[A1] Yes. In all three environments, AutoMem's improvements from both loops remain substantial on completely held-out seeds. We evaluate on a fresh set of episode seeds that neither loop ever used — 52–61 (Crafter) and 52–56 (MiniHack & NetHack) — while keeping all other evaluation settings the same as in the paper. Throughout this response, "paper's seeds" refers to the original fixed seeds used during scaffold optimization and reported in the paper.
| progression (%) — paper's seeds / held-out seeds | Crafter | MiniHack | NetHack |
|---|---|---|---|
memory-as-file-system v0 |
25.00 / 28.64 | 7.50 / 10.00 | 0.42 / 0.31 |
| + scaffold optimization (loop1) | 45.91 / 42.27 (1.5x) | 22.50 / 25.00 (2.5x) | 1.57 / 1.11 (3.6x) |
| + memory training (loop2) | 54.09 / 44.55 | 27.50 / 27.50 | 1.71 / 1.20 |
The gains on the held-out seeds from both loops are consistent with those on the seed set used during optimization: the optimized scaffold lifts performance to between 1.5x and 3.6x that of the starting v0 agent, while memory training adds further gains on top.
We explain why the improvements from both loops transfer in our response [A2] to your [Q2] below.
[Q2] Is what the loop learns tied to particular seeds or worlds?
[A2] No. None of the scaffold revisions refers to any specific world, and the improvements in the agent's memory and gameplay behaviour are generally applicable across worlds. Consistent with the performance pattern in [A1], none of the revisions made to the improved scaffold are world-specific:
-
Loop1 detects general behavioural / memory-taking patterns worth correcting — see, e.g., the paper's Fig. 4 (improvements in general gameplay behaviour, such as reduced oscillation or stuckness) and Fig. 5 (general memory scheme updates, such as deduplicating map entries or inventory sync-up, that apply to all worlds in that environment). No revised scaffold mechanism refers to any specific world. We will also include more qualitative demonstrations of the scaffold's improvements in the revised paper to show that these patterns are generally applicable.
-
Training on top of the scaffold reinforces the memory model's good memory actions, which align with the same general improvements in agent behaviour. The resulting gains therefore transfer as well.
[Q3] How does AutoMem compare against published memory systems under the same environment harness?
[A3] We ported two established external-memory baselines, MemGPT (arXiv:2310.08560) and A-Mem (arXiv:2502.12110), into our harness and evaluated them in all three environments. Neither reaches the performance level of evolved AutoMem.
| progression (%) — paper's seeds / held-out seeds | Crafter | MiniHack | NetHack |
|---|---|---|---|
| A-Mem | 5.91 / 6.36 | 7.50 / 10.00 | 0.00 / 0.00 |
| MemGPT | 23.18 / 26.82 | 10.00 / 7.50 | 0.31 / 0.62 |
AutoMem v0 (our starting scaffold) |
25.00 / 28.64 | 7.50 / 10.00 | 0.42 / 0.31 |
| AutoMem + scaffold optimization | 45.91 / 42.27 | 22.50 / 25.00 | 1.57 / 1.11 |
The best baseline, MemGPT, performs similarly to our hand-designed starting scaffold v0. After loop1's memory scaffold optimization, however, the optimized agent leads by a substantial margin.
This again points to one of our central claims: there is still substantial headroom for optimizing a memory system / scaffold, whether the starting point is our hand-designed v0 or a baseline like MemGPT; automating this optimization is exactly what loop1 contributes.
Response to reviewer SU8o (Part 2 / 4)
[Q4] Does the method work outside games, on a memory-intensive benchmark?
[A4] Yes. We ported AutoMem's loop1 to LoCoMo (arXiv:2402.17753), where it improves the held-out conversation split by +76%.
We use the same memory-as-file-system v0 scaffold, with only environment-level changes tailored to LoCoMo (e.g., a dated conversation session takes the place of a game observation, and the gameplay actions are now conversational answers). The metric is LoCoMo's own QA score: each question is evaluated by token-level F1 between the agent's answer and the gold answer, using LoCoMo's own handling for multi-hop questions (partial F1 over the sub-answers) and adversarial questions (counted as correct only if the agent declines to answer).
We split the benchmark into conversations used to evolve the memory scaffold and completely held-out conversations unseen during AutoMem's optimization, thereby mirroring the seed-set split in [A1]:
| LoCoMo QA score | used in loop1 — conversations 0–4 | held out — conversations 5–9 |
|---|---|---|
hand-designed memory-agent (v0) |
34.05 | 32.57 |
| v1 | 50.05 | 50.64 |
| v2 | 53.97 | 54.27 |
| v3 | 54.78 | 56.21 |
| v4 | 56.36 | 54.35 |
| v5 | 58.22 | 57.20 |
AutoMem shows a strong overall improvement trajectory on LoCoMo, consistent with its gains on the procedurally generated game worlds in our paper. Individual scaffold revisions need not strictly improve the held-out split monotonically (e.g., at v4); however, the full sequence of accepted revisions still transfers fully. On the completely held-out conversation set, the evolved memory scaffold improves performance by +76% (32.57 → 57.20), even slightly more than the +71% gain on the conversations loop1 actually saw.*
[Q5] Are the two loops complementary, or is memory training just doing what more scaffold optimization would have done?
[A5] They are ordered, and both contribute. Scaffold optimization delivers gains by improving the agent structure (i.e., where the model lives and the framework within which it acts), while memory training adds gains on top of whatever structure it is given but cannot substitute for the structure itself.
To separate the two, we ran loop2 on the hand-designed v0 agent, holding every other setting same as used in the paper's training setup, so the presence of loop1's scaffold optimization is the only factor that varies:
| progression (%) — paper's seeds / held-out seeds | Crafter | MiniHack | NetHack |
|---|---|---|---|
memory-as-file-system v0 |
25.00 / 28.64 | 7.50 / 10.00 | 0.42 / 0.31 |
v0 + memory training (loop2 only) |
25.91 / 34.55 | 10.00 / 15.00 | 0.37 / 0.68 |
| optimized scaffold (loop1 only) | 45.91 / 42.27 | 22.50 / 25.00 | 1.57 / 1.11 |
| optimized scaffold + memory training (loop1 + loop2) | 54.09 / 44.55 | 27.50 / 27.50 | 1.71 / 1.20 |
The same results, arranged as the 2x2 comparison (Crafter · MiniHack · NetHack, paper's seeds):
| without memory training | with memory training | |
|---|---|---|
| without scaffold optimization | 25.00 · 7.50 · 0.42 | 25.91 · 10.00 · 0.37 |
| with scaffold optimization | 45.91 · 22.50 · 1.57 | 54.09 · 27.50 · 1.71 |
Memory training also works on its own, even on top of a not-yet-optimized v0 scaffold: on held-out seeds it adds +21% on Crafter, +50% on MiniHack, and +120% on NetHack (0.31 → 0.68). However, it is the smaller of the two levers, and the best system in every environment requires both.
This is also one of our paper's central claims: optimizing the structure of memory is the right choice for step 1, as it builds a good agent structure on top of which memory training unlocks the higher numbers.
But loop1 can plateau — after a number of meta-LLM attempts, further optimization becomes difficult because scaffold performance is bounded by the model capacity operating within the agent. In our open-weight meta-LLM experiment, the plateau could come earlier, suggesting that meta-LLM capability also affects how far scaffold optimization (loop1) progresses (see our discussion in [A6]).
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a novel framework (AUTOMEM) for improving long-horizon LLM agents by treating memory management as an independently learnable skill. The agent is given file-system operations such as reading, writing, searching, appending, and creating files as explicit memory actions alongside environment actions. AUTOMEM improves this memory skill in two stages. First, a strong meta-LLM reviews complete trajectories and revises the agent code, including prompts and file schemas. Secondly, the agent’s own useful memory-operation traces are determined and selected by a meta-LLM and used to fine-tune the dedicated memory skill, while the base gameplay model remains frozen. Experiments on Crafter, MiniHack, and NetHack report large gains over the base Qwen-32B agent, with the optimized 32B model approaching or exceeding some much larger or frontier-model baselines on these long-horizon game tasks.
Strengths and weaknesses
Strengths
Quality.
- The paper tackles an important problem: enabling LLM agents to operate over long horizons where the useful history exceeds the model’s context window.
- The proposed decomposition into memory-structure optimization and memory-proficiency training is sensible, and the implementation appears to involve substantial engineering effort.
- The experiments cover three challenging long-horizon environments, including NetHack, and the reported gains are large: improving only the memory system leads to substantial performance improvements without directly fine-tuning the gameplay model.
- A particularly interesting aspect is the idea of improving a weaker pretrained model not by modifying its task-action weights, but by improving how it uses context through per-step memory decisions. It is impressive that this can produce gains comparable to using much larger models or proprietary frontier models on the evaluated tasks.
Clarity.
- The high-level intuition is easy to understand: the agent should learn what to store, when to retrieve, and how to organize memory.
- The figures help communicate the intended workflow, especially the distinction between the scaffold optimizer and the memory specialist.
- The behavioral analyses, such as reductions in redundant memory writes, memory growth, input tokens, and unproductive actions, are also useful for understanding why memory optimization helps.
Significance. The problem is significant for long-horizon LLM agents. If memory-management skill can be learned separately from task-action competence, this could be a useful direction for making smaller open-weight models more effective in sequential decision-making settings.
Originality.
- The paper combines several known ingredients (external memory, file-system tools, meta-LLM trajectory review, scaffold optimization, and supervised fine-tuning), but the integration is interesting.
- While framing memory use as a trainable skill is not novel, the memory training from scaffold improvement is a useful and potentially novel perspective. The two-model deployment, where a trained memory specialist handles memory operations while a frozen base model commits gameplay actions without finetuning, is also an interesting design choice.
Weaknesses
Major
-
Section 2 lacks the mathematical and algorithmic precision needed to assess the method.
-
My main concern is that the proposed framework is described mostly at a high level. Important objects are not defined precisely enough. For example, the paper should formally define the agent’s observation/input space, the action/output space, and the transition/context update process. If the original environment has observation space () and action space (), the paper should explain how these are transformed into the LLM-facing observation/context () and the augmented action space (), including memory actions. It should also specify how the context, memory files, and environment state are updated after each LOG, PLAN, memory, and gameplay action.
-
Relatedly, the paper repeatedly refers to LOG, PLAN, "unified action space", agent "code", "prompts", "action vocabulary", and (), but these are not defined precisely enough in the main method section. For example, is the code the python function that takes in the environment observation and uses the LLM to output an action? Is prompt the system prompt for the memory skill? What's the action vocabulary and/or the set from which it is sampled (is it the full LLM vocab?)?
-
The supervised training objective is also unclear: is the memory specialist trained with standard cross-entropy? What exactly are the inputs and targets? What text is included or removed from the training examples? How is the handoff between the memory specialist and the gameplay model implemented, especially if the gameplay model can still issue additional memory reads before committing an action?
-
I think the paper needs algorithm blocks for Sections 2.1, 2.2, and 2.3, together with formal definitions of the per-step decision process, the memory file state, the trajectory format, the training dataset, and the loss.
-
-
The experimental comparison and baseline choices raise fairness concerns.
- It is unclear why the proposed framework uses two seperate models (Opus 4.6 and 4.7) for the inner and outer loops, and also why these choices instead of using Opus 4.5 like the leaderboard baseline. This makes it impossible to make apple-apple comparison.
- All the baselines appear to be standard inference-time agents or leaderboard numbers without comparable optimization. This makes it difficult to tell whether the gains come from the proposed memory-learning framework, or from distilling the memory-management abilities of a stronger proprietary model into a local Qwen model. An ablation would address this (i.e. what if the same Qwen
- The most relevant baselines seem to be missing. For example, the paper should include a Qwen2.5-32B-Instruct baseline with the same memory-action interface but without AUTOMEM, and a baseline where Qwen is LoRA fine-tuned using RL and the same amount of environment interaction and gradient updates.
- The sliding-window baseline also seems weak, and the choice of a 16-step window needs justification given the context-window capacity of the models. Since the idea of adding memory actions is not itself entirely new (what is new is how it is being done), fair baselines should also give the model the same memory actions in the system prompt and fine-tune it under a comparable training budget.
- The appendix states that memory-training data uses disjoint seeds, which is good, but the scaffold optimizer appears to accept revisions based on improvement on the same fixed evaluation seeds. This could overfit the scaffold to the evaluation set, especially since the meta-LLM sees full trajectory logs and revisions are gated by performance on those seeds.
- Figure 1 suggests that scaffold optimization may still be improving, and the +train point may partly follow the trajectory that would have been obtained by additional scaffold optimization. This raises the question of whether memory-proficiency training is complementary or somewhat redundant with further scaffold optimization. The paper should compare memory training at each scaffold version (), and also include a "training without scaffold optimization" condition.
-
Some claims are too broad given the experimental setup.
- The paper claims that well-managed memory is higher-leverage than model scale and that AUTOMEM substantially closes the gap between open-weight and frontier models. These claims should be qualified more carefully given the specific experimental results obtained.
- The claim that freezing the gameplay model avoids risk to the model’s task competence seems too strong. The gameplay model’s weights are unchanged, but its input distribution and interaction protocol are changed by the memory specialist and scaffold. This can still affect task competence.
Minor
-
The figures are somewhat pixelated and should be exported as vector graphics. Some notation in Figure 1 is unclear, such as "v0–v5/v2" and the repeated values/icons (e.g. around 27.5 in the Minihack plot). The paper should also use consistent terminology: "memory structure", “memory scaffold", and "scaffold" seem to refer to overlapping concepts.
-
The main text does not say whether the observations are language-only or vision-language. The paper should also clearly state in the main text whether training and evaluation seeds are disjoint.
-
Finally, some figure/text mismatches should be corrected. For instance, "gameplay model" in the text seems to correspond to "gameplay role" in the figure, and the two-model handoff is hard to understand from the current description.
Questions
Please see the weaknesses above. For example:
-
Can the authors provide a formal definition of the LLM-agent decision process, including (), (), (), (), the memory-file state, the context update rule, and the exact LOG/PLAN/gameplay sequence? Adding algorithm blocks for sections 2.1–2.3 would substantially improve my assessment.
-
What exactly is the supervised loss and training dataset for the memory specialist? Please specify the input-target pairs, whether the loss is standard cross-entropy, which parts of trajectories are included or removed, and how examples containing both memory operations and gameplay actions are processed.
-
How much of the gain comes from using Claude Opus 4.6/4.7 as the meta-LLM? A useful baseline would be Qwen2.5-32B with the same memory-action interface and comparable fine-tuning/rollout budget, as well as a direct distillation baseline using the same proprietary meta-LLM.
-
Can the authors add ablations comparing: (i) memory training at each scaffold version () and (ii) memory training without scaffold optimization? These would clarify the relative benefit of each loop.
-
How do the authors avoid overfitting the scaffold to the fixed evaluation seeds used for accepting revisions? I would be more positive if results were reported on a separate held-out seed set not used for scaffold selection. Is this the case for the reported results?
-
Can the gameplay actions also be LoRA finetuned using the same collected data from environment rollouts? It would have been nice to see how this additionally improves performance.
My score could increase if the authors address the mathematical/algorithmic ambiguity and provide stronger, fairer baselines showing that the gains are not primarily due to proprietary-model distillation or evaluation-seed-specific scaffold optimization. Where helpful, the authors may defer the reader to the Appendix for their instantiation of defined symbols/functions (e.g. for the prompts), with explicit references to where in the Appendix to find the relevant methodological details. This is largely why I struggled to understand the detailed framework in Section 2. My score would likely remain low if these issues are not addressed, because they affect my ability to judge the core methodological contribution.
Limitations
No. The paper lists some useful limitations, such as evaluation only on games, episodic rather than persistent memory, and per-environment optimization. However, I think it should also discuss the dependence on proprietary frontier meta-LLMs, the cost and practicality of full-trajectory review, the use of resettable simulators and fixed seeds for scaffold selection, the risk of environment-specific scaffold overfitting, and the fact that the frontier-model comparisons are not fully matched in optimization budget or access to memory/scaffold tuning.
Final justification
Thank you to the authors for their very detailed response to my concerns. I'm happy with their clarifications for most of them, and hence have increased my score accordingly.
Formatting concerns
N/A
6 comments
Rebuttal
We thank the reviewer for the detailed review.
Since the reviews were released, we have been running additional experiments to address the concerns raised. These include, among others:
- re-evaluation on a seed set completely held out from both optimization loops;
- comparisons against published external-memory systems as baselines;
- an ablation that separates the two optimization axes by applying memory training to the unevolved scaffold.
We will also address the clarification questions raised in the review.
We will post the full response, including all results and per-question answers, as Official Comments once the experiment runs finish.
Response to reviewer 19iq (Part 1 / 4)
[Q1] Do the gains from AutoMem hold up on seeds that the optimization loops never saw?
[A1] Yes. In all three environments, AutoMem's improvements from both loops remain substantial on completely held-out seeds. We evaluate on a fresh set of episode seeds that neither loop ever used — 52–61 (Crafter) and 52–56 (MiniHack & NetHack) — while keeping all other evaluation settings the same as in the paper. Throughout this response, "paper's seeds" refers to the original fixed seeds used during scaffold optimization and reported in the paper.
| progression (%) — paper's seeds / held-out seeds | Crafter | MiniHack | NetHack |
|---|---|---|---|
memory-as-file-system v0 |
25.00 / 28.64 | 7.50 / 10.00 | 0.42 / 0.31 |
| + scaffold optimization (loop1) | 45.91 / 42.27 (1.5x) | 22.50 / 25.00 (2.5x) | 1.57 / 1.11 (3.6x) |
| + memory training (loop2) | 54.09 / 44.55 | 27.50 / 27.50 | 1.71 / 1.20 |
The gains on the held-out seeds from both loops are consistent with those on the seed set used during optimization: the optimized scaffold lifts performance to between 1.5x and 3.6x that of the starting v0 agent, while memory training adds further gains on top.
We explain why the improvements from both loops transfer in our response [A2] to your [Q2] below.
[Q2] Is what the loop learns tied to particular seeds or worlds?
[A2] No. None of the scaffold revisions refers to any specific world, and the improvements in the agent's memory and gameplay behaviour are generally applicable across worlds. Consistent with the performance pattern in [A1], none of the revisions made to the improved scaffold are world-specific:
-
Loop1 detects general behavioural / memory-taking patterns worth correcting — see, e.g., the paper's Fig. 4 (improvements in general gameplay behaviour, such as reduced oscillation or stuckness) and Fig. 5 (general memory scheme updates, such as deduplicating map entries or inventory sync-up, that apply to all worlds in that environment). No revised scaffold mechanism refers to any specific world. We will also include more qualitative demonstrations of the scaffold's improvements in the revised paper to show that these patterns are generally applicable.
-
Training on top of the scaffold reinforces the memory model's good memory actions, which align with the same general improvements in agent behaviour. The resulting gains therefore transfer as well.
[Q3] How does AutoMem compare against published memory systems under the same environment harness?
[A3] We ported two established external-memory baselines, MemGPT (arXiv:2310.08560) and A-Mem (arXiv:2502.12110), into our harness and evaluated them in all three environments. Neither reaches the performance level of evolved AutoMem.
| progression (%) — paper's seeds / held-out seeds | Crafter | MiniHack | NetHack |
|---|---|---|---|
| A-Mem | 5.91 / 6.36 | 7.50 / 10.00 | 0.00 / 0.00 |
| MemGPT | 23.18 / 26.82 | 10.00 / 7.50 | 0.31 / 0.62 |
AutoMem v0 (our starting scaffold) |
25.00 / 28.64 | 7.50 / 10.00 | 0.42 / 0.31 |
| AutoMem + scaffold optimization | 45.91 / 42.27 | 22.50 / 25.00 | 1.57 / 1.11 |
The best baseline, MemGPT, performs similarly to our hand-designed starting scaffold v0. After loop1's memory scaffold optimization, however, the optimized agent leads by a substantial margin.
This again points to one of our central claims: there is still substantial headroom for optimizing a memory system / scaffold, whether the starting point is our hand-designed v0 or a baseline like MemGPT; automating this optimization is exactly what loop1 contributes.
Response to reviewer 19iq (Part 2 / 4)
[Q4] Are the two loops complementary, or is memory training just doing what more scaffold optimization would have done?
[A4] They are ordered, and both contribute. Scaffold optimization delivers gains by improving the agent structure (i.e., where the model lives and the framework within which it acts), while memory training adds gains on top of whatever structure it is given but cannot substitute for the structure itself.
To separate the two, we ran loop2 on the hand-designed v0 agent, holding every other setting same as used in the paper's training setup, so the presence of loop1's scaffold optimization is the only factor that varies:
| progression (%) — paper's seeds / held-out seeds | Crafter | MiniHack | NetHack |
|---|---|---|---|
memory-as-file-system v0 |
25.00 / 28.64 | 7.50 / 10.00 | 0.42 / 0.31 |
v0 + memory training (loop2 only) |
25.91 / 34.55 | 10.00 / 15.00 | 0.37 / 0.68 |
| optimized scaffold (loop1 only) | 45.91 / 42.27 | 22.50 / 25.00 | 1.57 / 1.11 |
| optimized scaffold + memory training (loop1 + loop2) | 54.09 / 44.55 | 27.50 / 27.50 | 1.71 / 1.20 |
The same results, arranged as the 2x2 comparison (Crafter · MiniHack · NetHack, paper's seeds):
| without memory training | with memory training | |
|---|---|---|
| without scaffold optimization | 25.00 · 7.50 · 0.42 | 25.91 · 10.00 · 0.37 |
| with scaffold optimization | 45.91 · 22.50 · 1.57 | 54.09 · 27.50 · 1.71 |
Memory training also works on its own, even on top of a not-yet-optimized v0 scaffold: on held-out seeds it adds +21% on Crafter, +50% on MiniHack, and +120% on NetHack (0.31 → 0.68). However, it is the smaller of the two levers, and the best system in every environment requires both.
This is also one of our paper's central claims: optimizing the structure of memory is the right choice for step 1, as it builds a good agent structure on top of which memory training unlocks the higher numbers.
But loop1 can plateau — after a number of meta-LLM attempts, further optimization becomes difficult because scaffold performance is bounded by the model capacity operating within the agent. In our open-weight meta-LLM experiment, the plateau could come earlier, suggesting that meta-LLM capability also affects how far scaffold optimization (loop1) progresses (see our discussion in [A5]).
[Q5] Why Opus 4.6 for one loop and 4.7 for the other, and how much of the result rests on a frontier meta-LLM?
[A5] The version difference is purely chronological, not part of any design choice; and an open-weight meta-LLM also produces meaningful scaffold improvements in all three environments.
The two loops ran on either side of Opus 4.7 becoming available, so each used the Opus version available at the time. This was not part of our design, and we do not think it makes a meaningful difference.
For the second half of the question, we replaced the meta-LLM with a fully open-weight, locally served Qwen3-Coder-Next (80B), while keeping the exact same loop1 framework and reusing the same v0 runs as the starting point:
| scaffold optimization | v0 |
open-weight meta-LLM | versions | Opus trajectory in the paper |
|---|---|---|---|---|
| Crafter | 25.00 | 34.09 (+36%) | v0 → v1 | 25.00 → 33.18 → 41.82 → 42.27 → 45.45 → 45.91, v0 → v5 |
| MiniHack | 7.50 | 10.00 (+33%) | v0 → v1 | 7.50 → 10.00 → 15.00 → 17.50 → 20.00 → 22.50, v0 → v5 |
| NetHack | 0.42 | 1.11 (+166%) | v0 → v1 | 0.42 → 1.27 → 1.57, v0 → v2 |
AutoMem's loop1 (scaffold optimization) does not necessarily require a proprietary meta-LLM: an open-weight 80B Qwen3-Coder-Next also produces meaningful gains on the memory agent, and on MiniHack its revision lands on exactly the same score as the first Opus revision (v1).
In our experiment, Qwen3-Coder-Next then plateaued at its evolved v1, whereas the Opus optimization trajectory continued through later versions. This suggests that meta-LLM capability affects how far scaffold optimization progresses.
In AutoMem, the meta-LLM takes on a role similar to that of a senior agent engineer. This pattern is therefore consistent with a stronger model being better able to diagnose long-horizon failures and propose further scaffold revisions. We used a strong meta-LLM in this paper because automated optimization is one of our central themes. This ablation nevertheless shows that an open-weight meta-LLM can also take on this role, although it reached smaller final gains.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Summary of key evidence from the rebuttal
We thank the AC for the initial meta-review. Below, we summarize the key evidence added in our rebuttal:
In all three environments, the gains from both AutoMem optimization loops remain substantial on completely held-out seeds (19iq, SU8o, Rcq8 [A1–A2]).
AutoMem outperforms established memory-system baselines (19iq, SU8o, pz1b, Rcq8 [A3]) and a whole sweep of sliding-window context sizes (19iq [A6]).
AutoMem also works outside game worlds: on the non-game memory benchmark LoCoMo, it improves the held-out conversation split by a substantial +76% (SU8o [A4]).
AutoMem remains robust across both base-model scale and meta-LLM choice: base models at different scales all improve (pz1b [A1], Rcq8 [A4]); and an open-weight meta-LLM produces meaningful scaffold optimizations in all three environments (19iq, Rcq8 [A5], SU8o [A6], pz1b [A2]).
We will make sure to incorporate these additional results and analyses into the revised draft, while also improving clarity and sharpening the related-work discussion.