M$^\star$: Every Task Deserves Its Own Memory Harness
Wenbo Pan, Shujie LIU, Xiangyang Zhou, Xianlong Wang, Shiwei Zhang, Bingjing Xu, Wanlu Shi, Xiaohua Jia
Abstract. Large language model agents rely on a memory harness to write, organize, retrieve, and use past experience. A harness that works for one task often fails on another, because conversations, embodied planning, and expert reasoning require different storage and retrieval behavior. To address this limitation, we introduce Mstar, a method that automatically discovers task-optimized memory programs through reflective code evolution. Specifically, Mstar operationalizes a memory harness as an executable Python memory program that defines the Schema, Logic, and Instruction, and optimizes these components jointly. We evaluate Mstar on four tasks covering conversation, embodied planning, and specialized reasoning. Our results demonstrate that Mstar improves performance over existing baselines across all evaluated tasks. Furthermore, the evolved memory programs exhibit structurally distinct processing mechanisms for each evaluated domain. These findings suggest that every task benefits from its own memory harness, and that memory-program search provides a concrete way to discover it.
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) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:42 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Reviewers agree the core abstraction ie., evolving executable memory programs (Schema/Logic/Instruction) is a useful generalization, with broad multi-domain evaluation, strong interpretability, and thorough implementation details. To be strongly considered during disussions, please address, in priority order:
- MemEvolve positioning is important. It appeared on arXiv in December 2025 and is characterized by YQ46 as prior, not concurrent, work. Reframe the discussion, justify or soften the "four predefined modules" characterization, and provide at least a qualitative / small-scale empirical comparison.
- Separate search from prior and budget. You can report a single-shot Codex-designed harness (no evolution) and, where feasible, a compute-matched baseline comparison.
- Table 1 lacks error bars, while held-out tests are small; add uncertainty estimates or significance tests.
- Quantify hardcoded artifacts (e.g., the ALFWorld synonym table) and discuss the ALFWorld-Seen result where M* trails GEPA+VS.
- Judge dependence is important to resolve. The same model family serves as task agent and judge; validate a subset with an independent judge.
Additionally, new experiments requested by UdYz (cross-model evolution, noisy-memory stress tests, full transfer suites, cost-performance curves) are a valuable addition where possible.
Final justification
The main concern, MemEvolve positioning, was fully accepted. The authors acknowledge it as prior rather than concurrent work, removed the disputed characterisation, supplied rewritten introduction text, and added it as a baseline using its official implementation, with M* ahead in all seven settings. Single-shot Codex-designed harnesses separate the search from the coding model's prior; bootstrap intervals and paired tests were added; the ALFWorld-Seen gap is shown to be inside the interval; and an independent cross-family judge preserves the advantage.
The hard-coded literal audit and the disclosure that judges favour long outputs are useful negative results the authors surfaced themselves. YQ46 raised their score, pfYt raised to 5, UdYz maintained 4. Final scores 5/4/4.
The following changes should be reflected in the camera-ready, as YQ46 also emphasized: reposition MemEvolve in the introduction and related work; include the MemEvolve baseline in the main results; add error bars and significance tests to Table 1 with test-set sizes; and move Limitations into the main text covering the literal audit, judge length bias, ALFWorld-Seen, and the single agent/reflector pair.
Read meta-review
Meta-review
Reviewers agree the core abstraction ie., evolving executable memory programs (Schema/Logic/Instruction) is a useful generalization, with broad multi-domain evaluation, strong interpretability, and thorough implementation details. To be strongly considered during disussions, please address, in priority order:
- MemEvolve positioning is important. It appeared on arXiv in December 2025 and is characterized by YQ46 as prior, not concurrent, work. Reframe the discussion, justify or soften the "four predefined modules" characterization, and provide at least a qualitative / small-scale empirical comparison.
- Separate search from prior and budget. You can report a single-shot Codex-designed harness (no evolution) and, where feasible, a compute-matched baseline comparison.
- Table 1 lacks error bars, while held-out tests are small; add uncertainty estimates or significance tests.
- Quantify hardcoded artifacts (e.g., the ALFWorld synonym table) and discuss the ALFWorld-Seen result where M* trails GEPA+VS.
- Judge dependence is important to resolve. The same model family serves as task agent and judge; validate a subset with an independent judge.
Additionally, new experiments requested by UdYz (cross-model evolution, noisy-memory stress tests, full transfer suites, cost-performance curves) are a valuable addition where possible.
Final justification
The main concern, MemEvolve positioning, was fully accepted. The authors acknowledge it as prior rather than concurrent work, removed the disputed characterisation, supplied rewritten introduction text, and added it as a baseline using its official implementation, with M* ahead in all seven settings. Single-shot Codex-designed harnesses separate the search from the coding model's prior; bootstrap intervals and paired tests were added; the ALFWorld-Seen gap is shown to be inside the interval; and an independent cross-family judge preserves the advantage.
The hard-coded literal audit and the disclosure that judges favour long outputs are useful negative results the authors surfaced themselves. YQ46 raised their score, pfYt raised to 5, UdYz maintained 4. Final scores 5/4/4.
The following changes should be reflected in the camera-ready, as YQ46 also emphasized: reposition MemEvolve in the introduction and related work; include the MemEvolve baseline in the main results; add error bars and significance tests to Table 1 with test-set sizes; and move Limitations into the main text covering the literal audit, judge length bias, ALFWorld-Seen, and the single agent/reflector pair.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces MSTAR, a method that discovers task-optimized memory harnesses for LLM agents by treating the harness as an executable Python program defined over three jointly-optimized components — Schema (dataclass storage/retrieval formats), Logic (read/write operations), and Instruction (prompt constants) — with access to a whitelisted toolkit (lists, heaps, SQLite, ChromaDB, LLM endpoints). Search proceeds via reflective code evolution. The authors evaluate on four task families and seven configurations against nine baselines. The central empirical claims are that MSTAR achieves the best overall performance, that evolved programs are structurally distinct across tasks, and that joint optimization of structure and policy drives the gains.
Strengths and weaknesses
Strengths:
- The core abstraction is a genuine generalization - representing the harness as an open program space over Schema/Logic/Instruction, and using evolved programs.
- Inspectability/interpretability is very strong and is well-demonstrated.
- The spread of topic areas, benchmarks and configurations is good.
- Quality of SW Engineering is good and well-documented
- Diagrams are great.
Weaknesses:
- Limitations is underspecified and largely in Appendix J
- Minimal future works
- Test sets are small for the claimed precision and Table 1 doesnt have error bars.
- Figure 4 seems more infographic than insight. It feels like a training decay curve - all the data is real but without deep understanding of the intermediate states, all that really matters is the end-point. Figure 4 may show more about how t-SNE and the "code embedding model" process data than how the code evolves.
Discussion:
- Some "Discussion" section points are actually results e.g. section “Is evolution stable across random seeds?” which has a results table.
- Re “This pattern suggests that memory program structure should be optimized together with the target task.” True but expected. M* uses much more compute, supported by whitelisted tools, and "GPT-5.4 Mini as the task agent and GPT-5.3-Codex as the coding agent“ than the comparison methods. The new approach trades off extra cost for (on average) extra accuracy. This make the paper's benefits more empirical than insightful.
- Because GPT-5.3-Codex does the code mutation, the apparent "discovery" may reflect this model's prior knowledge about good memory design rather than coming from the search algorithm itself.
- Overall, I believe the findings, & the process is useful, but the comparisons to other methods seem to be unfair (given compute used) and so the abstract claims seem somewhat over stated.
Questions
-
How does a single-shot memory-harness program designed by GPT-5.3-Codex (no evolution) compare to the evolved program on each task? This is needed to separate search from GPT's prior ability.
-
Please add error bars / significance tests to Table 1, or at minimum extend the five-seed stability runs to all seven configurations.
-
How sensitive are the discovered architectures to the agent/reflector model pair? Any evidence with a different coding model would address the single-model-pair limitation you raise.
Limitations
Limitations exist but some are hidden in Appendix J
Final justification
The authors have engaged well with my and other reviewers feedback. I believe the revised paper will be stronger. The inclusion of more statistical analysis and pragmatism around not over-claiming is appreciated. I am increasing my score.
Formatting concerns
None
2 comments
Rebuttal
We thank the reviewer for the constructive review. We appreciate the reviewer find our work strong and high-quality. We now carefully address all the questions one by one.
W1, W2: Limitations are underspecified and mostly in Appendix J; future work is minimal. Limitations is underspecified and largely in Appendix J" / "Minimal future works
Thank you for your suggestion. We will move the Limitation section into the main text so that it is more visible. We will also add a Future Work section right after the Limitation section.
W3, Q2: Test sets are small and Table 1 has no error bars. Test sets are small for the claimed precision and Table 1 doesnt have error bars. Please add error bars / significance tests to Table 1.
Thank you for this valuable suggestion. We now compute 95% percentile bootstrap intervals with 10,000 resamples over the held-out test items, and pair them exactly item-by-item with the baselines:
| Benchmark | M* | 95% CI | Δ vs. strongest baseline | p |
|---|---|---|---|---|
| LoCoMo | 0.459 | [0.386, 0.535] | +0.086 vs. Mem0 0.373 [+0.044, +0.130] | 0.001 |
| ALFWorld-Unseen | 0.881 | [0.786, 0.976] | +0.143 vs. No Memory 0.738 [+0.048, +0.262] | 0.002 |
| ALFWorld-Seen | 0.700 | [0.580, 0.820] | −0.080 vs. Trajectory Retrieval 0.780 [−0.220, +0.060] | 0.17 |
| HealthBench-Data | 0.390 | [0.336, 0.445] | +0.063 vs. GEPA + Vector Search 0.327 [+0.018, +0.114] | 0.003 |
| HealthBench-Emergency | 0.493 | [0.429, 0.555] | +0.006 vs. Dynamic Cheatsheet 0.487 [−0.062, +0.069] | 0.41 |
| PRBench-Legal | 0.660 | [0.599, 0.721] | +0.092 vs. GEPA 0.568 [+0.051, +0.137] | <0.0001 |
| PRBench-Finance | 0.586 | [0.534, 0.638] | +0.137 vs. GEPA 0.449 [+0.096, +0.179] | <0.0001 |
The results show that among the six datasets where we have a score advantage, the advantage is significant on five of them, which indicates that the improvement of our method over the baselines is robust and reliable. We will add this information to the revised paper.
W4: Figure 4 may reflect the embedding model more than the evolution. Figure 4 seems more infographic than insight. It feels like a training decay curve - all the data is real but without deep understanding of the intermediate states, all that really matters is the end-point. Figure 4 may show more about how t-SNE and the "code embedding model" process data than how the code evolves.
Thank you for pointing this out. We agree that for Figure 4, the clustering result and the specific position of each program in that figure are an outcome of t-SNE and the embedding model, and do not reflect how the programs evolve. What Figure 4 wants to convey is that, by grouping different programs with different colors and markers into different tasks and implementation structures, we can see how memory structure and task type are related. We will make this point more explicit in the revision.
D1: The Discussion section contains results. Some "Discussion" section points are actually results e.g. section "Is evolution stable across random seeds?" which has a results table.
Thank you for raising this. This subsection and its table belong to the Results section, and we will reorganize them accordingly.
D2: Given the extra compute, the benefit is empirical rather than insightful. Re "This pattern suggests that memory program structure should be optimized together with the target task." True but expected. M* uses much more compute, supported by whitelisted tools, and "GPT-5.4 Mini as the task agent and GPT-5.3-Codex as the coding agent" than the comparison methods. The new approach trades off extra cost for (on average) extra accuracy. This make the paper's benefits more empirical than insightful.
Thank you for raising this important point. In this paper, our claim is that M* can produce a task-optimized harness that achieves the best final performance, not that we are cheaper or more efficient than the baselines. In practice, optimizing one program costs about 14 to 90 US dollars, while the performance gain it brings is persistent.
As for the comparison with the other methods for evolution efficiency, we want to clarify that for all of our evolutionary baselines we use the same GPT-5.4 Mini as the task agent and GPT-5.3-Codex as the coding agent as well.
The table below compares the efficiency of our method with the evolutionary baseline GEPA. The results show that under the same agent model setting, M* only needs a relatively small budget to reach what the other evolutionary method reaches after many rounds of evolution.
| Benchmark | GEPA final val | GEPA search cost | M* first exceeds at | Val at that point | Cumulative cost at that point | Share of GEPA budget |
|---|---|---|---|---|---|---|
| LoCoMo | 0.231 | ≥$4.57 | iteration 1 | 0.273 | $1.00 | 22% |
| ALFWorld-Unseen | 0.980 | ≥$8.08 | iteration 2 (tie) | 0.980 | $2.04 | 25% |
| ALFWorld-Seen | 0.875 | ≥$3.96 | never exceeds | 0.844 | n/a | n/a |
| HealthBench-Data | 0.373 | ≥$15.65 | iteration 2 | 0.381 | $4.80 | 31% |
| HealthBench-Emergency | 0.438 | ≥$12.06 | iteration 1 | 0.459 | $2.89 | 24% |
| PRBench-Legal | 0.515 | ≥$29.74 | iteration 1 | 0.521 | $4.75 | 16% |
| PRBench-Finance | 0.409 | ≥$26.67 | iteration 1 | 0.466 | $5.42 | 20% |
D3, Q1: Is the "discovery" the coding model's prior, or the result of search Because GPT-5.3-Codex does the code mutation, the apparent "discovery" may reflect this model's prior knowledge about good memory design rather than coming from the search algorithm itself." / "How does a single-shot memory-harness program designed by GPT-5.3-Codex (no evolution) compare to the evolved program on each task? This is needed to separate search from GPT's prior ability.
Thank you for this great question. To verify whether the improvement comes from the search or from the prior of the coding model, we add an extra ablation: given the task description and some samples, we let Codex generate a harness several times, and then pick the one with the highest score. We find that the best of these single-shot generations can exceed our default seed, but the gap to M* is still large. This shows that most of the performance improvement comes from our search algorithm.
| Configuration | Search budget | Token F1 |
|---|---|---|
| Single-shot Codex, mean ± std over 5 samples | 0 iterations | 0.227 ± 0.061 |
| Single-shot Codex, best of 5 (selected on validation) | 0 iterations | 0.297 |
| Vector Search (fixed baseline, for reference) | n/a | 0.256 |
| M*, re-evaluated in the same session | 20 iterations | 0.459 |
Q3: Sensitivity to the agent/reflector model pair. How sensitive are the discovered architectures to the agent/reflector model pair? Any evidence with a different coding model would address the single-model-pair limitation you raise.
Thank you for raising this important question. To test the effect of different task agent and reflector pairs on the discovered architectures, we evaluate the frozen LoCoMo and PRBench-Legal harnesses under two different task models: the same-family alternative gpt-5-mini, and deepseek-v3.2 from a different family. M* ranks first in all 24 cells. We will add this result in the revision.
| Benchmark | Task model | M* (evolved) | Vector Search (generic seed) | Strongest baseline on this benchmark | No Memory |
|---|---|---|---|---|---|
| LoCoMo | gpt-5.4-mini (reference) | 0.459 | 0.256 | 0.373 (Mem0) | 0.036 |
| LoCoMo | gpt-5-mini (same family, weaker) | 0.430 | 0.253 | 0.344 (Mem0) | 0.016 |
| LoCoMo | deepseek-v3.2 (different family) | 0.318 | 0.259 | 0.264 (Mem0) | 0.115 |
| PRBench-Legal | gpt-5.4-mini (reference) | 0.660 | 0.466 | 0.508 (ReasoningBank) | 0.431 |
| PRBench-Legal | gpt-5-mini (same family, weaker) | 0.833 | 0.597 | 0.650 (ReasoningBank) | 0.607 |
| PRBench-Legal | deepseek-v3.2 (different family) | 0.631 | 0.348 | 0.389 (ReasoningBank) | 0.332 |
Thank you again for the careful reading and the concrete suggestions, which substantially improve the paper. And we are happy to discuss further if anything is still unclear.
Dear Reviewer,
We wanted to kindly follow up on our response. Thank you again for your careful reading and helpful comments. We would appreciate any further feedback and are happy to answer any remaining questions.
- 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
The paper introduces M$^\star$, a reflective code evolution framework that searches over executable “memory programs” to discover task-optimized memory harnesses for LLM agents. Each program jointly specifies Schema, Logic, and Instruction, and is evolved using a population-based procedure with a coding agent, compile/quality checks, and validation feedback. Across four benchmark families (LoCoMo, ALFWorld, HealthBench, PRBench), M$^\star$ outperforms a suite of fixed and prompt-evolution baselines and yields structurally distinct memory harnesses that align with the demands of each task.
Strengths and weaknesses
Strength
-
Strong central abstraction. Representing memory as executable code is a useful step beyond fixed retrieval pipelines. It lets evolution change schemas, indices, scoring logic, read/write behavior, and prompts.
-
Broad empirical coverage. The paper evaluates conversational QA, embodied tasks, health QA, and professional reasoning. M STAR is best on most reported metrics in Table 1.
-
Useful ablations. Table 2 supports the claim that both code evolution and instruction evolution matter. Table 3 and Appendix I.2 add some helpful seed-stability evidence.
-
Concrete implementation details. The appendices provide prompts, seed programs, cost accounting, checks, dataset details, and representative evolved programs.
Weaknesses
-
Validation-driven search creates overfitting risk. The method optimizes executable programs on validation feedback, while several held-out tests are small. More uncertainty estimates are needed across all configurations.
-
Judge dependence is underanalyzed. HealthBench, PRBench, and LoCoMo L-J rely on LLM judges, apparently from the same model family as the task agent. This raises calibration and judge-model-dependence concerns.
-
Baseline comparison could be more diagnostic. GEPA + Vector Search is useful, but M STAR has a larger design space because it mutates executable memory code. A strong structured-memory or template-search baseline would clarify the source of gains.
-
Structural evidence is suggestive. The t-SNE landscape and transfer experiments are interesting but do not show that the discovered designs are causally necessary or globally meaningful.
-
Deployment generality is still limited. The method may learn benchmark-specific heuristics and may depend on a specific task-agent/reflector pair. Cross-model transfer is important for the practical claim.
Minor
-
Test-set sizes should be easier to find. Table 1 would be clearer if the caption included test-set sizes or pointed directly to Appendix B.1.
-
The ALFWorld Seen exception needs discussion. This is the one Table 1 metric where M STAR is not best, and it may reveal when memory-program evolution is less useful.
-
Total compute should be clearer. Appendix D.1 reports final run costs, but preliminary exploration and total project compute are not clear.
-
Split construction needs more detail. HealthBench and PRBench should more explicitly rule out near-duplicate prompts, rubrics, or references across episode and evaluation sets.
Questions
-
Whether the gains mainly come from the proposed memory-harness design, or from giving M$^\star$ a larger task-specific optimization budget. It would be helpful to include a compute-matched comparison, where strong prompt-optimization or retrieval-based baselines receive the same number of validation calls, token budget, or wall-clock time. A curve over 1/5/10/20 evolution steps would make the comparison much more convincing.
-
Since the method directly searches over executable programs using validation performance, I am a bit concerned about validation-set overfitting. The paper could strengthen this point by evaluating the evolved harnesses on additional validation/test splits, harder held-out subsets, or distribution-shifted examples. For example, for LoCoMo, testing on adversarial or unanswerable questions would help show whether the memory harness is genuinely robust.
-
The paper argues that each task needs its own memory harness, but it is not fully clear whether the learned harnesses are task-specific or benchmark-specific. A useful experiment would be within-domain transfer: evolve on one long-conversation QA dataset and test on another, or evolve on one subset of ALFWorld task types and evaluate on related unseen task templates. This would better support the claim that the method learns task-level memory principles rather than benchmark artifacts.
-
I would like to see a stronger comparison with human-designed task-specific memory systems. Current baselines mostly seem to represent generic memory or retrieval strategies. Since the main claim is that task-specific memory matters, comparing against carefully designed task-specific memory templates would clarify whether automatic evolution is really necessary.
-
It would be helpful to better isolate which part of the evolved harness is responsible for the improvement. The current ablations are useful, but a more fine-grained analysis could freeze the schema, retrieval logic, or instruction separately. For example, does most of the gain come from better memory representation, better retrieval/ranking, or simply better instructions for using memory?
-
The method relies on a strong coding/evolution model, so I am curious how robust it is to the choice of that model. An experiment using weaker or open-source coding models would help evaluate reproducibility. It would also be useful to report variance across different evolution seeds or reflector temperatures.
-
The cost of evolving a separate memory harness for every task seems non-trivial. I think the paper would benefit from cost-performance curves, showing performance as a function of token cost, wall-clock time, and number of evolution iterations. This would help readers understand whether M$^\star$ is practical under realistic budgets.
-
I would like to see more analysis of the evolved programs themselves. A taxonomy of the discovered memory designs—such as vector retrieval, SQL-based storage, entity schemas, action caches, checklists, or hybrid retrieval—would make the method more interpretable. Manual audits could also help rule out hard-coded benchmark-specific heuristics.
-
The cross-task transfer result is interesting, but it could also suggest that the evolved harnesses are brittle. A useful follow-up would be to initialize M$^\star$ with a harness evolved on a related task and then continue evolution on the target task. If this speeds up adaptation, it would show that the learned harnesses contain reusable structure.
-
I am also curious how M$^\star$ behaves when memory is noisy, stale, or misleading. A stress test with irrelevant or contradictory memories would help show whether the evolved harness learns to filter bad memories, or whether it becomes overly dependent on retrieved context.
-
For real-world agent settings, the validation signal is often noisy or preference-based rather than a clean automatic metric. It would be useful to test whether M$^\star$ still works when the evolution signal comes from an LLM judge or a noisy reward model, rather than a clean benchmark metric.
-
I think the paper could discuss when it is worth evolving a new memory harness from scratch. If every task needs its own harness, practitioners need some guidance on when M$^\star$ is worth the additional optimization cost, and when a simpler manually designed memory system is sufficient.
Limitations
yes
Formatting concerns
I did not notice any major paper formatting, anonymity, or policy-compliance concerns.
3 comments
Rebuttal
We thank the reviewer for the very thorough and constructive review. We really appreciated that the reviewer find our paper comprehensive and detailed. We answer all the questions below.
W1, Q2: Overfitting risk from validation-driven search
Thank you for pointing this out. We want to clarify that the reported numbers are already on held-out splits. Evolution optimizes on the validation subset. The search never sees the test set, avoiding overfitting on test set.
That said, we agree that providing uncertainty estimation will be helpful, and we now report 95% percentile bootstrap intervals with 10,000 resamples over the test items, paired item-by-item with the best baseline:
| Benchmark | M* | 95% CI | Δ vs. strongest baseline | p |
|---|---|---|---|---|
| LoCoMo | 0.459 | [0.386, 0.535] | Mem0 0.373 [+0.044, +0.130] | 0.001 |
| ALFWorld-Unseen | 0.881 | [0.786, 0.976] | No Memory 0.738 [+0.048, +0.262] | 0.002 |
| ALFWorld-Seen | 0.700 | [0.580, 0.820] | Traj. Retrieval 0.780 [−0.220, +0.060] | 0.17 |
| HealthBench-Data | 0.390 | [0.336, 0.445] | GEPA+VecSearch 0.327 [+0.018, +0.114] | 0.003 |
| HealthBench-Emerg. | 0.493 | [0.429, 0.555] | Dyn. Cheatsheet 0.487 [−0.062, +0.069] | 0.41 |
| PRBench-Legal | 0.660 | [0.599, 0.721] | GEPA 0.568 [+0.051, +0.137] | <0.0001 |
| PRBench-Finance | 0.586 | [0.534, 0.638] | GEPA 0.449 [+0.096, +0.179] | <0.0001 |
Among the six datasets where M* lead, five are significant, so our improvement over the baselines is robust and reliable.
W2: Judge dependence
Thank you for your great suggestion. We agree that an LLM judge from another model family will be helpful. We now use deepseek-v4-flash to score the frozen answers with the same per-criterion rubric prompts:
| Benchmark | Strongest baseline | M* | Baseline |
|---|---|---|---|
| HealthBench-Data | GEPA + Vector Search | 0.403 | 0.321 |
| HealthBench-Emergency | Dynamic Cheatsheet | 0.512 | 0.418 |
| PRBench-Legal | GEPA | 0.612 | 0.569 |
| PRBench-Finance | GEPA | 0.656 | 0.558 |
We find that the advantage holds in all four configurations, so changing the judge model family changes the magnitude. We will include this result in the revision.
W3: A stronger structured-memory baseline
Thank you for this great suggestion. We compare our work with MemEvolve, which also evolves the memory system as executable code. Comparing with it roughly fixes the design space and only changes how it is searched. Our method outperforms it in all settings, while MemEvolve is competitive on HealthBench and PRBench. We will include this baseline in the revision.
| Benchmark | MemEvolve | M* |
|---|---|---|
| LoCoMo | 0.204 | 0.459 |
| ALFWorld (seen) | 0.620 | 0.700 |
| ALFWorld (unseen) | 0.760 | 0.881 |
| HealthBench (data tasks) | 0.267 | 0.390 |
| HealthBench (emergency) | 0.456 | 0.493 |
| PRBench (legal) | 0.484 | 0.660 |
| PRBench (finance) | 0.317 | 0.586 |
W4: Structural evidence is only suggestive
We agree that the clustering result and the position of each program in Figure 4 come from t-SNE and the embedding model, and do not show that the discovered designs are causally necessary. What Figure 4 wants to convey is how memory structure and task type are related, by grouping programs by task and by implementation structure. We will make this more explicit.
W5: Cross-model transfer
Thank you for this great suggestion. To test different task agent / reflector pairs, we now evaluate the evolved and static harnesses under two more task models: gpt-5-mini (same family, weaker) and deepseek-v3.2 (different family). M* ranks first in every cell.
| Benchmark | Task model | M* (evolved) | Vector Search (seed) | Strongest baseline |
|---|---|---|---|---|
| LoCoMo | gpt-5.4-mini | 0.459 | 0.256 | 0.373 |
| LoCoMo | gpt-5-mini | 0.430 | 0.253 | 0.344 |
| LoCoMo | deepseek-v3.2 | 0.318 | 0.259 | 0.264 |
| PRBench-Legal | gpt-5.4-mini | 0.660 | 0.466 | 0.508 |
| PRBench-Legal | gpt-5-mini | 0.833 | 0.597 | 0.650 |
| PRBench-Legal | deepseek-v3.2 | 0.631 | 0.348 | 0.389 |
Q1: Design, or a larger optimization budget?
Our method and the evolutionary baselines are already matched on evolution rounds: GEPA gets the same 20 proposals as our 20 iterations, with the same data splits, scorer and models. Further, under the same compute budget our method is also more efficient. On five of the seven configurations, M* passes the validation score GEPA reaches after spending its full budget, using only 16–31% of that budget.
| Benchmark | GEPA final val | GEPA cost | M* first exceeds | Cost there | Share |
|---|---|---|---|---|---|
| LoCoMo | 0.231 | ≥$4.57 | iter. 1 | $1.00 | 22% |
| ALFWorld-Unseen | 0.980 | ≥$8.08 | iter. 2 (tie) | $2.04 | 25% |
| ALFWorld-Seen | 0.875 | ≥$3.96 | never | n/a | n/a |
| HealthBench-Data | 0.373 | ≥$15.65 | iter. 2 | $4.80 | 31% |
| HealthBench-Emerg. | 0.438 | ≥$12.06 | iter. 1 | $2.89 | 24% |
| PRBench-Legal | 0.515 | ≥$29.74 | iter. 1 | $4.75 | 16% |
| PRBench-Finance | 0.409 | ≥$26.67 | iter. 1 | $5.42 | 20% |
Q3: Task-specific or benchmark-specific?
Thank you for this valuable suggestion. We now add a within-domain transfer test on 20 LongMemEval_S questions sampled with a fixed seed. The gain transfers effectively:
| Harness | Token F1 on LongMemEval |
|---|---|
| Evolved on LoCoMo | 0.372 |
| Best generic seed (vector search) | 0.278 |
Q4: Comparison with human-designed task-specific memory systems
Thank you for your question. We think there is a factual misreading worth clarifying: our baselines are not mostly generic retrieval. Mem0, G-Memory, ReasoningBank, Dynamic Cheatsheet and Trajectory Retrieval are all published, human-designed memory systems. Only Vector Search and No Memory are generic references; we will make that clearer in the revision.
Q5: Which part of the harness is doing the work?
We have already provided the component ablation in our paper (Table 2). We repeat it here for your convenience:
| Variant | Token F1 | Δ |
|---|---|---|
| M* (full) | 0.459 | n/a |
| − instruction evolution (code only) | 0.353 | −0.106 |
| − code evolution (instruction only) | 0.256 | −0.203 |
| max parent selection instead of softmax | 0.381 | −0.078 |
| − population diversity | 0.318 | −0.141 |
Separating schema from retrieval logic within the code half is a finer split than our ablation, and we agree it would be informative and will discuss it.
Q6: Robustness to the coding model; seed variance
Thank you for your suggestion. We want to note that seed variance has already been measured. Five independent evolution seeds on each of three configurations:
| Benchmark | Mean ± std | CV | Seeds > best baseline |
|---|---|---|---|
| LoCoMo | 0.421 ± 0.042 | 10.0% | 4/5 |
| HealthBench-Data | 0.391 ± 0.023 | 5.9% | 5/5 |
| PRBench-Finance | 0.561 ± 0.032 | 5.7% | 5/5 |
As for the open source optimizer and reproducibility, we agree an open-source model would help reproducibility, but as GPT-5.3-Codex is widely available via API and our advantage does not depend on a specific closed-source model. We Believe our method remaining useful for open source models, and we'll include this limitation in the discussions.
Q7, Q12: Cost–performance, and when evolution is worth it
Table 6 already reports wall-clock time and API cost per benchmark. We find that on every benchmark it is under 100 US dollars, and the evolution only needs to happen once per downstream scenario. We believe that if a harness will be used many times, running the evolution once is worth it.
Q8, Q9, Q10, M1
- Q8. Figure 4 already classifies the architectural designs of the evolved programs. We agree a careful audit is helpful and will add it.
- Q9. Our framework supports this directly (a previous harness can be the seed program). We will list it as future work; the within-domain transfer result (Q3) already answers the same question.
- Q10. In our method the evolved harness controls memory writing as well as retrieval, so our final metrics already reflect memory that can be polluted or wrong. We will discuss a dedicated stress test as future work.
- M1. 100 for LoCoMo and each HealthBench split, 50 for each ALFWorld and PRBench split; we will state this in the Table 1 caption.
Q11: A noisy or preference-based evolution signal
Four of our seven configurations already satisfy this condition: in HealthBench and PRBench an LLM judge scores single rubric criteria, and that judge score is the signal evolution optimizes.
M2: The ALFWorld-Seen exception
Thank you for this careful read. We want to note that this gap is not statistically significant. Our interval on ALFWorld-Seen is [0.580, 0.820], which contains the 0.820 of GEPA + Vector Search. The search signal there is about 2.3× noisier than on the graded benchmarks. We read this as a limitation of our experimental configuration rather than evidence that memory program search fails on embodied tasks. The signal on ALFWorld-Unseen is cleaner, and there our method is effective.
M4: Split construction and near-duplicates
We have done this check. For all four HealthBench and PRBench configurations we compared content-word Jaccard across all pairings of episode pool, evolution validation set and test set. There is no substantial overlap anywhere: best-match Jaccard has a maximum of 0.37, with medians of 0.06–0.12. We also found no rubric criterion appearing verbatim inside any episode.
We thank the reviewer again for the careful reading, which has substantially improved our paper. We hope these new experiments address your concerns.
Dear Reviewer,
We would like to gently follow up on our rebuttal. We truly appreciate your thoughtful feedback and would be grateful to hear any further thoughts when you have a chance. Please feel free to reach out if anything remains unclear.
Thank you for the detailed response and the additional experiments. The rebuttal has addressed most of my concerns. I will maintain my current score.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper argues that different tasks require different memory harnesses, and validates this claim across multiple domains, including LoCoMo, ALFWorld, HealthBench, and PRBench. I find this direction very reasonable. The experimental coverage is also fairly sufficient. My main concern, however, is that the paper’s central claim—“How can we find the most suitable memory harness for a given task?”—has already been raised by MemEvolve, which should be a central object of discussion and comparison.
Strengths and weaknesses
Strengths
-
The figures are polished, readable, and intuitive. Figure 1 is intriguing, while Figures 3 and 4 clearly illustrate the evolution process. I personally find them quite effective.
-
The paper conducts experiments across multiple domains, which sufficiently supports the generalizability and cross-domain effectiveness of the proposed method.
Weaknesses
The most concerning issue is that the paper seems to overly downplay a prior, rather than concurrent, work: MemEvolve.
-
MemEvolve appeared on arXiv in December 2025 and has been accepted by ICML 2026. It is therefore not concurrent work, but prior work that should be thoroughly discussed and compared against.
-
The core claim of MemEvolve is essentially the same as this paper’s: treating the memory system as an evolvable program. It is therefore unreasonable not to discuss it prominently in the introduction, especially given the similarities in constraint checking, the use of genetic algorithms, and related design choices.
-
The authors seem to weaken MemEvolve’s contribution by claiming that it searches over four predefined modules—encode, store, retrieve, and manage. I find this characterization unfair. Even with such a modular search space, the system can in principle instantiate a broad class of memory systems, since a coding agent can modify these modules. In fact, this paper also adopts a similar modular abstraction: logic for memory read/write, and schemas for memory storage and retrieval.
-
The above criticism surely does not mean that I deny the contributions of mstar given MemEvolve. On the contrary, I appreciate this paper’s more aggressive program-evolution strategy (likely enabled by stronger coding agents :), its cleaner visual presentation, and its broader evaluation across domains, rather than only on deep-research benchmarks as in MemEvolve. However, these contributions should be framed on top of a full acknowledgment and discussion of existing work.
Overall, I recommend that the authors discuss MemEvolve more formally and include it as a baseline. In fact, I believe MStar may well outperform MemEvolve, especially since its codebase is built on Mini-SWE for memory-system evolution while MStar via Codex. Doing so would substantially improve my rating. Beyond this point, I also have several more detailed suggestions:
-
On LoCoMo, the performance is weaker than methods specifically designed for this type of benchmark, such as LightMem, SimpleMem, and EverMem. I understand this to some extent, since those methods often contain stronger manually designed structures and may mildly overfit to this setting. However, Mem0 is no longer the most representative baseline, and comparison with more recent methods would help clarify possible failure modes.
-
The authors could test whether the evolved memory harness transfers across models.
-
Did the authors observe any harness hacking during evolution? Such issues are common in recent self-harnessing or harness self-iteration work, and would be worth discussing or auditing.
-
The observation in Line 1233 is interesting. Although the prompt explicitly discourages hardcoded word lists, the system still evolves a synonym table on ALFWorld. Could the authors quantify how often this occurs and provide more cases? More broadly, how much of the performance gain comes from benchmark-specific evolution?
-
MemEvolve reports experiments where a memory harness evolved on one benchmark is transferred to other benchmarks (within the same domain). The authors could consider running a similar transfer evaluation (e.g., LoCoMo -> LongMemEval).
Questions
See weakness
Limitations
yes
Final justification
The rebuttal and the additional experiments have addressed my main concern to a large extent. In particular, the new MemEvolve comparison and the more explicit acknowledgment of prior work make the paper feel much better grounded and much fairer to the relevant baselines.
My remaining hesitation is that these are not small edits: they require fairly substantial changes to the manuscript, including the framing, related-work discussion, baseline comparisons, and limitations. The authors have clearly committed to making these changes, but reviewers do not really have a way to verify the camera-ready version afterward.
So my score increase is based on the assumption that the authors will indeed incorporate these promised changes faithfully. If they do, I think this will be a good paper. I therefore leave the final judgment to the AC with this caveat in mind.
Formatting concerns
N/A
5 comments
Rebuttal
We thank the reviewer for the detailed review. We appreciate the reviewer find our work polished and thorough. We now carefully address the concerns as follows.
W1-W4: MemEvolve is prior work and should be a baseline. MemEvolve appeared on arXiv in December 2025 and has been accepted by ICML 2026. It is therefore not concurrent work, but prior work that should be thoroughly discussed and compared against. The authors seem to weaken MemEvolve's contribution by claiming that it searches over four predefined modules—encode, store, retrieve, and manage. Overall, I recommend that the authors discuss MemEvolve more formally and include it as a baseline. In fact, I believe MStar may well outperform MemEvolve.
Thank you very much for pointing this out. MemEvolve appeared on arXiv in December 2025 and is accepted at ICML 2026, so it is prior work rather than concurrent work. We will revise the introduction and the related work section to explicitly identify it as the closest prior work to ours.
Concretely, we will add the following description to the introduction:
MemEvolve first demonstrated that treating the memory system itself as an evolvable program can significantly improve the performance of a memory system on downstream tasks. In our paper, we propose that by jointly optimizing schema, logic and instruction to adapt to the downstream task, one can discover a specialized harness for each task.
We agree that the modular search space MemEvolve builds over the four modules (encode, store, retrieve and manage) is very similar in spirit to our paper, and can equally support diverse memory structures. In the revision we will remove that statement and instead highlight how MemEvolve is similar to us in design.
That said, compared to MemEvolve, our work focuses more on using this joint optimization to find the best memory harness for each individual task, while MemEvolve focuses on a more generalizable harness optimization. We view our paper and MemEvolve as two efforts in the same direction with different emphases.
We now add MemEvolve as one baseline in our paper. We adopt its official implementation and the hyperparameters set in the paper, and we align the optimization model to GPT-5.3-Codex. We find that our method outperforms MemEvolve in all settings, while MemEvolve is competitive on HealthBench and PRBench.
| Benchmark | MemEvolve | M* |
|---|---|---|
| LoCoMo | 0.204 | 0.459 |
| ALFWorld (seen) | 0.620 | 0.700 |
| ALFWorld (unseen) | 0.760 | 0.881 |
| HealthBench (data tasks) | 0.267 | 0.390 |
| HealthBench (emergency) | 0.456 | 0.493 |
| PRBench (legal) | 0.484 | 0.660 |
| PRBench (finance) | 0.317 | 0.586 |
Q1: Mem0 is no longer the most representative baseline on LoCoMo. On LoCoMo, the performance is weaker than methods specifically designed for this type of benchmark, such as LightMem, SimpleMem, and EverMem. I understand this to some extent, since those methods often contain stronger manually designed structures and may mildly overfit to this setting. However, Mem0 is no longer the most representative baseline, and comparison with more recent methods would help clarify possible failure modes.
Thank you for pointing this out. We acknowledge that the baselines we used are not the strongest methods on LoCoMo. In our paper, our LoCoMo baseline suite contains Mem0, G-Memory, ReasoningBank, Dynamic Cheatsheet and Trajectory Retrieval. The purpose is to cover different implementation paradigms of memory systems, so as to show that our method is competitive on memory systems with different structures. In the revision we will mention these memory systems that are specifically designed for LoCoMo, and point out this performance gap as a limitation.
Q2: Does the evolved harness transfer across models?. The authors could test whether the evolved memory harness transfers across models.
Thank you for this great question. We now additionally test two task agent models on the harnesses already evolved in the paper and on the static harnesses, including GPT-5-mini, a weaker version of the GPT model, and DeepSeek-v3.2. We report the scores on LoCoMo and PRBench-Legal:
LoCoMo:
| Task model | M* | Vector Search | Mem0 | No Memory |
|---|---|---|---|---|
| gpt-5.4-mini | 0.459 | 0.256 | 0.373 | 0.036 |
| gpt-5-mini | 0.430 | 0.253 | 0.344 | 0.016 |
| deepseek-v3.2 | 0.318 | 0.259 | 0.264 | 0.115 |
PRBench-Legal:
| Task model | M* | Vector Search | ReasoningBank | No Memory |
|---|---|---|---|---|
| gpt-5.4-mini | 0.660 | 0.466 | 0.508 | 0.431 |
| gpt-5-mini | 0.833 | 0.597 | 0.650 | 0.607 |
| deepseek-v3.2 | 0.631 | 0.348 | 0.389 | 0.332 |
The results show that M* generalizes well under different task models and outperforms all baselines. We will add this result to the revised paper to better support our conclusion, and we will also report all benchmarks there.
Q3: Did we observe harness hacking? Did the authors observe any harness hacking during evolution? Such issues are common in recent self-harnessing or harness self-iteration work, and would be worth discussing or auditing.
Thank you for raising this important point. We analyze this from two angles: whether the optimized harness exploits loopholes in the evaluation environment, and whether the harness has a tendency to manipulate metrics.
Loopholes in the evaluation environment. We ran a static scan over all 157 programs produced by all seven evolution runs, checking four escape patterns: imports outside the whitelist, access to ground truth or to the internals of the evaluator, stack frame introspection, and dynamic execution or file/network I/O. We found no exploitation of the evaluation environment.
Metric manipulation. Because, as in all evolutionary algorithms, our method finally selects the harness with the highest score on the validation set, we did find that in some cases M* may increase the metric score without producing a strictly better harness. For example, the LLM judges of HealthBench and PRBench have a bias to prefer long outputs, and we also found that the optimized harness encourages the model to produce very long and detailed answers. This is an important point, and we will discuss this phenomenon in the revision.
Q4: Quantifying the synonym table; gain from benchmark-specific evolution. The observation in Line 1233 is interesting. Although the prompt explicitly discourages hardcoded word lists, the system still evolves a synonym table on ALFWorld. Could the authors quantify how often this occurs and provide more cases? More broadly, how much of the performance gain comes from benchmark-specific evolution?
We appreciate that the reviewer for the careful read. We now measure this. We count how many string literals in the evolved programs also appear in the dataset text, taking the best evolved program of each benchmark:
| Benchmark | After deduplication | Per 100 lines |
|---|---|---|
| PRBench-Legal | 89 | 8.2 |
| ALFWorld-Seen | 23 | 6.8 |
| PRBench-Finance | 25 | 5.3 |
| HealthBench-Data | 14 | 2.3 |
| HealthBench-Emergency | 2 | 1.0 |
| LoCoMo | 0 | 0.0 |
| ALFWorld-Unseen | 0 | 0.0 |
We have two findings:
- Lexical artifacts were proposed on every benchmark. Despite the constraint in the prompt, they still show up in all seven search trajectories, as early as iteration 1–6. They are heaviest on PRBench-Legal, where legal terminology is the vocabulary of the task itself. This suggests that such literals can indeed bring higher performance.
- But hardcoded word lists do not always win: on LoCoMo one candidate program contained 81 such literals, while the final winning program contained none.
We will add this discussion to the revised paper as a limitation.
Q5: Transfer from LoCoMo to LongMemEval. MemEvolve reports experiments where a memory harness evolved on one benchmark is transferred to other benchmarks (within the same domain). The authors could consider running a similar transfer evaluation (e.g., LoCoMo -> LongMemEval).
Thank you for this great point. We ran a transfer evaluation on 20 LongMemEval_S questions sampled with a fixed seed, comparing the harness evolved on LoCoMo with the strongest generic seed. The results are below, and we can see that the performance gain of the harness evolved on LoCoMo transfers effectively to LongMemEval.
| Harness | Token F1 on LongMemEval |
|---|---|
| Evolved on LoCoMo | 0.372 |
| Best Seed (vector search) | 0.278 |
We will add this result to the revision. We thank the reviewer again for the valuable suggestions, which definitely improved our paper. We hope the above addresses the concerns.
Dear Reviewer,
We would like to kindly follow up on our rebuttal. Your careful and constructive review has been very helpful to us, and we sincerely appreciate your time and effort. Please feel free to let us know if you have any further questions or comments.
Dear Reviewer YQ46,
We understand this discussion period can be a busy time and we are grateful for your helpful reviews. As it is closing soon, we would like to kindly follow up once more. In our rebuttal we have added MemEvolve as a baseline as you suggested, along with the other requested experiments. We would be very grateful if you could let us know if any concerns remain. Thank you.
Comments on the paper
2 comments
Post Rebuttal Discussion
Dear Reviewers, thank you again for your detailed feedback. The authors have posted their rebuttal, but we haven't yet heard back from all reviewers. As the discussion period is limited, we'd appreciate it if you could take a moment to review the authors' response and let us know whether it addresses your concerns, and update your score/feedback if appropriate. Thank you for your time and effort in this process.
Dear Area Chair,
Thank you very much for actively coordinating the discussion. We are glad that Reviewers UdYz and YQ46 have both responded positively to our rebuttal. We sincerely thank you and the reviewers for the time and effort. To make the current status easier to check, we have also posted a summary of our responses under the metareview, covering all its priority points.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear Area Chair,
We sincerely thank you for the clear and well-prioritized metareview, and the three reviewers for their insightful comments. Our rebuttals address all the points in the metareview with new experiments. We summarize the current status below.
Response Summary
For your convenience, the table below maps each metareview point to the reviewers who raised it and how we addressed it.
All the promised changes will be incorporated into the final manuscript, including the repositioned MemEvolve discussion and baseline comparison, the error bars in Table 1, the new limitation discussions, and moving the Limitations section into the main text. We sincerely thank you and the reviewers again for the time and effort in this process.