- Rating
- 4
- Clarity
- 4
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes MemCode, a long-term memory framework for LLM agents across extended sessions. MemCode addresses the write-retrieve mismatch in existing memory systems by rewriting dialogue into AMUs and mapping these AMUs into a codebook through ISQ. The framework combines continuous vector search with discrete associative retrieval based on codebook co-occurrence topology, enabling access to logically related but lexically distant evidence. It further separates online atomic writing from asynchronous offline consolidation to support scalable memory maintenance. Experiments on LongMemEval-S and LoCoMo show that MemCode achieves the best overall accuracy while reducing memory construction time compared with existing baselines.
Strengths and weaknesses
Strengths
- The paper provides a clear analysis of the limitations of existing memory systems, while translating cognitive science inspired associative memory into a LLM memory framework.
- The use of VQ-VAE to quantize projected AMU states into discrete codes provides a meaningful refinement over continuous vector retrieval, enabling MemCode to preserve fine-grained cues and form compact semantic fingerprints for associative retrieval.
- MemCode demonstrates favorable efficiency compared with existing memory-augmented systems while achieving superior performance on the evaluated benchmark.
- The writing is clear, figures and tables are well-structured, and Appendix contains implementation details.
Weaknesses
- Although the Introduction highlights the limitations of attention mechanisms, the experiments do not include attention-based retrieval or memory baselines, making it unclear whether the proposed method specifically improves over attention-based alternatives.
- It lacks metric reporting consistent with the original benchmarks, such as BLEU and F1 on LoCoMo, which may affect the fairness of comparison. Moreover, using GPT-4o-mini as an evaluator while it is also involved in the system pipeline may introduce inductive bias.
- Relying on code co-occurrence to expand retrieval risks introducing spurious associations, since high-frequency or ambiguous codes may connect unrelated memories. Without a clear noise-control or correction mechanism, these noisy links can be amplified through multi-hop expansion and mislead temporal or multi-hop reasoning.
- The training setup of the VQ-VAE codebook is insufficiently specified. In particular, the manuscript does not clearly justify the use of DailyDialog for codebook learning or clarify whether DailyDialog overlaps with the evaluation benchmarks, which may affect the soundness and reproducibility of the reported results.
- The introduction points out the flaws of attention mechanisms, yet the experiments exclude attention-based retrieval and memory baselines. It cannot verify whether the proposed method achieves targeted improvements over attention-based alternatives, resulting in incomplete argumentation.
- The paper fails to adopt standard metrics (BLEU, F1) defined by the original LoCoMo benchmark, impairing comparison fairness. Besides, GPT-4o-mini is used both in the system pipeline and as an evaluator, which may introduce inductive bias and compromise objectivity.
[1] Wu, Di, et al. "Longmemeval: Benchmarking chat assistants on long-term interactive memory." Proceedings of the Thirteenth International Conference on Learning Representations (ICLR 2025).
[2] Maharana, Adyasha, et al. "Evaluating very long-term conversational memory of llm agents." Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL 2024).
Questions
Please see the weaknesses.
Limitations
yes
Paper formatting concerns
No
Dear Reviewer mdqw,
Thank you for the constructive feedback.
W1/W5: Attention baselines
The Introduction highlights the limitations or flaws of attention mechanisms.We emphasize this limitation to explain why persistent user memory requires external long-term memory organization once growing interaction history exceeds a practical context, not to claim that attention is ineffective. Our scope is user-specific interaction memory with a fixed backbone, not experience written through parameter updates.The experiments exclude attention-based retrieval or memory baselines, making the targeted improvement over attention-based alternatives unclear and the argumentation incomplete.As clarified above, our goal is not universal superiority over attention mechanisms, but a fixed-backbone comparison of external memory organization with full-history self-attention. Within this scope, Full Text is the most direct controlled attention alternative: the same backbone receives the complete history and query, giving self-attention access to all interactions. Table R1 therefore verifies improvement over this alternative, not every separately trained attention-memory architecture.We did not add a separately trained attention-memory baseline because the reproducible methods we identified change the LoCoMo protocol or backbone, or require additional memory-network training, conflating memory organization with protocol, architecture, or training.
Table R1 Full Text versus MemCode across two benchmarks and backbones.
Table R1, summarized from Tables 1--2 in the main text, shows Overall gains over Full Text on both benchmarks and backbones: 1.49--20.40 points for MemCode and 2.01--21.60 with consolidation. The scope is explicit: Full Text remains better on LoCoMo Open questions (56.25 vs. 43.75; consolidation: 51.04), where full context can preserve implicit affect or motivation. We will revise the Introduction and Experiments to state this scope and label Full Text as the controlled full-history attention alternative.
W2/W6: Metrics and evaluator bias
The paper does not adopt the standard BLEU/F1 metrics defined by the original LoCoMo benchmark, which may impair comparison fairness.This concern conflates cross-paper comparability with within-protocol fairness. Missing lexical metrics limits comparison with earlier scores, but every method in our study uses identical generation and judging conditions. We target free-form semantic correctness without overlap-oriented short-answer or length constraints.Our judge protocol follows recent practice: LongMemEval uses a GPT-4o judge; Mem0 shows that overlap can reward a wrong entity, date, location, or relation; LightMem uses judge-based LoCoMo accuracy for A-MEM and Mem0. All methods share the same GPT-4o-mini and Qwen3 answer backbones.
The evaluation targets differ: lexical scoring favors short, normalized, reference-like wording, whereas ours checks whether free-form answers preserve correct entities, relations, dates, quantities, and negations. A correct paraphrase can receive low F1/BLEU-1, while high overlap can remain wrong.
Because the generation targets differ, neither our system nor the recent judge-based baselines in our comparison were optimized or tested under a shared BLEU/F1 protocol. Computing BLEU/F1 on these free-form outputs post hoc would score lexical style under an unmatched objective, not create a comparable result. We therefore do not equate such scores with earlier lexical reports.
GPT-4o-mini is used in both the system pipeline and evaluation, which may introduce inductive bias and compromise objectivity.This is a plausible concern, so we test it rather than assume evaluator objectivity. First, every method uses the same prompt, reference, temperature, and blinded rule; the judge sees neither method identity nor retrieval traces. LightMem uses the same GPT-4o-mini/Qwen3 configurations and remains directly comparable.Second, the Qwen3 setting separates generation from the GPT-4o-mini judge. Under this cross-model setting, MemCode and its asynchronous variant remain the best-performing methods on both LoCoMo and LongMemEval-S (Tables 1--2 in the main text). We then re-evaluated the same outputs with five external models.
Table R2 Multi-judge robustness on fixed outputs from our MemCode.
Third, Table R2 directly evaluates same-family preference: the paper judge differs from the five-judge majority by -0.19/-0.52 points, with Cohen's κ=0.834/0.869. GPT same-family affinity is +0.79 points (95% bootstrap CI [-0.48, 2.05]); this and the symmetric Qwen interval include 0. We detect no reliable preference and will add this analysis and both metric limitations to the revised Experiments and Limitations.
W3: Association noise
Relying on code co-occurrence to expand retrieval risks spurious associations because high-frequency or ambiguous codes may connect unrelated memories.This risk applies to unrestricted co-occurrence; MemCode addresses your two stated sources of noise before, during, and after expansion:Without a clear noise-control or correction mechanism, noisy links may be amplified through multi-hop expansion and mislead temporal or Multi-Hop reasoning.MemCode does include explicit noise control: one-hop expansion prevents repeated graph propagation, while the IDF ablation checks whether filtering protects the two reasoning categories you mentioned.Table R3 IDF noise control on 1,540 LoCoMo questions.
The ablation in Table R3 directly answers this concern: IDF improves Multi-Hop by 3.90 points and Temporal by 1.87 points, while Overall rises by 1.95 points. Together with one-hop expansion, these results show that MemCode explicitly limits association noise and improves, rather than degrades, the two reasoning categories you identified. We will add this mechanism and evidence to Sections 3.4 and 4 and the appendix.
W4: Training and overlap
The VQ-VAE codebook training setup is insufficiently specified.The setup is already specified in appendix Table 5, including T5-base initialization, stride-1 projection, a 1,024-entry codebook, optimization/loss settings, EMA updates, dead-code revival, and next-utterance training from two preceding turns. It also states that these settings are fixed for all memory-runtime experiments. We will make the pointer from the main text clearer.The manuscript does not justify using DailyDialog or clarify its overlap with the evaluation benchmarks, which may affect the soundness and reproducibility of the reported results.We chose DailyDialog because its human-written, low-noise dialogues support learning reusable local dialogue states without long-memory questions, answers, or labels. We use only its official train split (11,118 dialogues; 64,935 pairs), since the codebook learns local conversational patterns rather than evaluation-specific facts. For data isolation, training finishes before evaluation and the codebook is frozen; no benchmark history, question, answer, label, or trace updates it. We also audit exact utterance overlap after NFKC, case, alphanumeric, and whitespace normalization and deduplication.Table R4 Exact-overlap audit against DailyDialog train.
Taken together, the fixed training specification addresses reproducibility, while Table R4 argues against benchmark leakage: across 69,026 normalized DailyDialog utterances, all exact matches are generic acknowledgments or thanks, and none reaches 8 tokens. Thus, there is no substantive long-form overlap, and evaluation data never enters optimization. We will clarify the pointer to appendix Tables 4--5 and add the overlap audit and data-isolation procedure.