ResearchResearch paperLarge Language Models · Retrieval, RAG & Search1 source · Oct 14, 2026

MemCode: Discrete Semantic Representations for Long-Term Agent Memory

We propose MemCode, a long-term agent memory framework that couples retrieval-oriented writing with discrete associative retrieval.

Key points

  • 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.
  • 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.

Sources (1)

  • [1]MemCode: Discrete Semantic Representations for Long-Term Agent Memory
    arXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 14, 02:51 AM
    We propose MemCode, a long-term agent memory framework that couples retrieval-oriented writing with discrete associative retrieval.
    Long-term memory remains a fundamental bottleneck for large language model (LLM) agents across sessions.

Extractive summary: sentences quoted from the sources.

Before this

  1. Oct 13, 2026MultiAlloc: Budget-Aware Precision Allocation for KV Cache Quantization
  2. Oct 13, 2026unslothai/unsloth v0.1.907-beta: Large Performance Gains + More Browser Use
  3. Oct 13, 2026AlignPred: Error-Controlled KV Cache Compression via Alignment and Predictive Coding
  4. Oct 13, 2026Training LLMs for Multi-Agent Collaboration with Verifiable Information Rewards
  5. Oct 13, 2026Mixed Precision Scaling Laws for Quantized Pretraining
  6. Oct 12, 2026Value-Preserving Action Quantization

Related