MemTab: An Efficient Memory Chunking and Indexing Method Based on Position-Space Combinatorial Optimization

Rui Ding, Yuren Mao, Yunjun GaoarXiv 2026

TL;DR

Most long-term memory systems for AI agents act like overzealous editors: they chop conversations at arbitrary word counts and rewrite them into summaries, burning through expensive LLM tokens while accidentally throwing away crucial details. This paper introduces Memory Tabs—a way to place virtual "sticky notes" on a raw text stream—and MemTab, a tiny 154M-parameter neural network that builds these tabs on the fly without a single LLM call. It builds memories up to 506× faster than LLM-based systems while achieving higher retrieval and question-answering accuracy.

What Problem Does This Paper Address?

If you want an autonomous AI agent to remember interactions across days or months, you need an external memory store. Today, building that store usually involves a two-step recipe: slice the conversation stream every $N$ tokens (say, 256), and ask an LLM to compress those slices into summaries, graphs, or atomic facts.

Both steps have a quiet flaw. First, human conversations don’t shift topics on a neat 256-token schedule; rigid cuts sever context right down the middle of an idea. Second, generative rewriting is lossy. When an LLM summarizes a chat, it guesses what might be important later, inevitably discarding nuances, timestamps, or things the AI itself said—detaching the memory from its ground-truth source. Furthermore, asking an LLM to generate indices word-by-word across an entire vocabulary is slow, expensive, and prone to hallucination.

Figure 1: Memory Tabs as sticky book tabs. Queries match extracted lexical cues to retrieve complete source chunks.

Methods

Instead of rewriting text, the authors propose Memory Tabs (inspired by how the human hippocampus uses sparse pointers to index cortical memories). Like sticky tabs on the edge of a textbook, this structure divides raw text at natural semantic shifts, pairs each chunk with a concise retrieval cue made of exact words from that chunk, and leaves the original text untouched.

The clever twist is realizing you don't need text generation to build this—you just need to point at token positions in the input. The authors formalize this as Anchored Sequence Partitioning (ASP), an NP-hard combinatorial optimization problem that jointly optimizes chunk completeness and index distinctiveness.

Figure 2: MemTab architecture. A ModernBERT encoder contextualizes a source window annotated with candidate split markers; a two-layer Transformer decoder tracks the decisions made so far, and two pointer heads alternately select each chunk boundary and its in-chunk lexical anchors, producing the memory tabs pair (ct, τt).

To approximate a solution fast, they built MemTab, a lightweight 154M-parameter network combining a ModernBERT-base encoder with a 2-layer Transformer decoder and a novel dual-pointer mechanism:

  • Standard foundation: Pointer Networks repurpose attention distributions to point directly at input token indices rather than generating words from a vocabulary.
  • What’s new: Existing pointer models work on one level (either splitting text or extracting words). MemTab interleaves two pointer heads in a single pass. First, a Boundary Pointer scans candidate sentence ends to lock in the end of a cohesive topic chunk. Next, an In-Chunk Index Pointer sweeps strictly inside that locked span to pluck out a handful of salient keywords as the index tab. A rolling inference window lets it process unending streams seamlessly.

Datasets

  • Training: To prevent any test-set leakage, MemTab is trained exclusively on out-of-domain meeting transcripts from QMSum (585 training and 137 validation windows) and transferred zero-shot to the evaluation benchmarks.
  • Evaluation: Tested on two existing long-term conversational memory benchmarks: LoCoMo (multi-session dialogues with 1,540 QA pairs) and LongMemEval-S (500 interaction histories spanning six reasoning categories like temporal and multi-session reasoning). No new benchmarks were introduced.

Key Insights and Ideas

  • Generation vs. Selection: Generating an index searches an exponentially large vocabulary space ($\mathcal{O}(|\mathcal{V}|^L)$). Pointing at existing input tokens shrinks the task to bounded position selection, eliminating hallucinations and guaranteeing 100% source provenance.
  • Why decoupled pipelines struggle: Segmenting text before indexing creates an information bottleneck: overly big chunks dilute the index, while tiny chunks break context. Optimizing boundaries and retrieval cues together lets them inform each other.
  • Summarization causes "catastrophic forgetting" of unexpected details: Schema-driven LLM memories (like Mem0 and LightMem) summarize user profiles well, but throw away what the AI assistant previously stated—crashing to 5.36% and 16.07% accuracy on Assistant recall queries, whereas MemTab hits 100% because the full source chunk is read back at recall time.
Figure 3: Multi-session temporal retrieval on a LongMemEval-S case. The query asks for an ordering of four completed flights. Fixed-window retrieval dilutes the relevant turn, and abstractive memories drop the Delta entity or its session date; MemTab keeps the Jan 15 context in the chunk and links it through a lexical tab, recovering the correct order.

Key Results

Using Qwen3.8-27B as the unified reader and judge across all methods:

  • End-to-End QA Accuracy: MemTab achieves the highest overall accuracy on both LoCoMo (73.83%) and LongMemEval-S (84.20%), beating structured agent memories (Mem0, LightMem, MemoryOS, CogMem) and strong RAG baselines (RAW-RAG). Its biggest wins come on complex Multi-Hop, Multi-session, and Temporal questions.
  • Source-Grounded Retrieval: Reaches 90.71% (LoCoMo) and 96.39% (LongMemEval-S) Recall@10, with top marks in MRR@10 (83.07% and 85.87%), showing that extracted keyword tabs yield sharper embeddings than noisy full-chunk text.
  • Efficiency: MemTab uses 0 LLM tokens to build a memory store, taking just 9.8s per store on LoCoMo and 94.0s on LongMemEval-S—making it 12.7× to 506× faster than LLM-indexed memory systems (for comparison, Mem0 takes nearly 5 hours per store on LongMemEval-S).

Limitations and Future Work

Not explicitly discussed in a dedicated section in the provided pages. However, the experimental results reveal natural trade-offs: on queries asking about broad implicit Preferences on LongMemEval-S, LLM-summarized profile systems like LightMem score higher (70.00% vs. MemTab's 56.67%) because abstractive LLMs explicitly synthesize overarching user traits, whereas MemTab relies purely on extractive lexical cues. Additionally, while memory construction uses zero LLM calls, MemTab's retrieval pipeline still uses an LLM reranker at query time to filter the top-100 matched tabs before reading the chunks.

Summary updated

BibTeX
@misc{ding2026memtab,
  author = {Rui Ding and Yuren Mao and Yunjun Gao},
  title = {{MemTab: An Efficient Memory Chunking and Indexing Method Based on Position-Space Combinatorial Optimization}},
  year = {2026},
  eprint = {2611.37442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37442},
}
Figure