Metraipolis › archive › dc_ec92a92ad2f6
MemCode: Discrete Semantic Representations for Long-Term Agent Memory — arXiv:2610.19472
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.19472
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-15T20:01:39.580Z
- SHA-256 of the archived text
0123068fd394cf14c6419bf05301535e056c22ab3c572f9a36a5fb8e25f35b53- Stable URL of this page
https://metraipolis.com/documento/dc_ec92a92ad2f6
How to cite
MemCode: Discrete Semantic Representations for Long-Term Agent Memory — arXiv:2610.19472 — arXiv (en), https://arxiv.org/abs/2610.19472 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_ec92a92ad2f6 (Metraipolis archive dc_ec92a92ad2f6, sha256 0123068fd394cf14c6419bf05301535e056c22ab3c572f9a36a5fb8e25f35b53)
BibTeX
@misc{dcec92a92ad2f6,
title = {MemCode: Discrete Semantic Representations for Long-Term Agent Memory — arXiv:2610.19472},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.19472},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_ec92a92ad2f6; sha256 0123068fd394cf14c6419bf05301535e056c22ab3c572f9a36a5fb8e25f35b53},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.19472. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Long-term memory remains a fundamental bottleneck for large language model (LLM) agents across sessions. Existing systems typically adopt a write-then-retrieve paradigm, storing context-dependent dialogue fragments and retrieving them via nearest-neighbor search in a continuous embedding space. This design yields unstable access units and systematically misses logically related but lexically distant evidence. We propose MemCode, a long-term agent memory framework that couples retrieval-oriented writing with discrete associative retrieval. MemCode rewrites dialogue into self-contained atomic memory units (AMUs), maps AMUs into a learnable codebook with isomorphic semantic quantization (ISQ), and uses codebook co-occurrence topology as a retrieval path complementary to vector search. For long-term memory stores, MemCode separates online atomic writes from asynchronous offline consolidation. On LongMemEval-S and LoCoMo with GPT-4o-mini and Qwen3-30B-A3B-Instruct-2507 backbones, MemCode achieves the best overall accuracy while keeping per-dialogue memory construction within roughly 40~130 seconds, making it 3~21 times faster than LightMem and over an order of magnitude faster than A-MEM and MemoryOS. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2610.19472 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-15T19:35:48.237Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).