Axisdream
Written and Published byAxisdream·

Memorilla Compresses a Whole Corpus Into Sixteen Tokens

Large document collection compressed into a narrow band of sixteen tokens

Key Takeaways

  • •A Stanford SNAP system encodes an entire document collection into 16 query-dependent latent tokens fed to a frozen model, reporting 84.33 percent accuracy.
  • •Examines sixteen is the number that changes the economics, analyzing the structural bottlenecks and trade-offs in real-world deployments.
  • •Provides engineering benchmarks and verification criteria for the objective is what differs from retrieval.

Memorilla is a memory system that gathers information from an entire document collection into a fixed number of query-dependent memory tokens, described in arXiv 2610.21375. The system encodes the collection into 16 latent tokens and supplies them to a frozen language model as input.

It reports 84.33 percent accuracy according to summary coverage. Code is available from the SNAP Stanford group, and the submission reached 123 points on 6 November 2026.

Sixteen is the number that changes the economics

A retrieval system inserts hundreds or thousands of tokens of source text into the context. Memorilla inserts sixteen.

That alters the cost structure of the call, because a sixteen-token prefix costs almost nothing at any current price. It also alters the ceiling on how much of a collection can be consulted, since the memory is bounded by design rather than by the context window.

The other side of that bound is worth stating plainly. Sixteen tokens cannot carry everything, so the compression must decide what to keep, and that decision is made per query. What the system preserves is whatever the query needs, which is a different guarantee from what retrieval provides.

The objective is what differs from retrieval

Retrieval learns a similarity function over chunks. Memorilla learns a compression that preserves what the query requires from the whole collection.

That can capture relations no single chunk holds. A question that requires connecting a fact from one document to a fact from another is the case where chunk retrieval struggles and where a learned compression has room to help, because the compression is not restricted to returning any particular passage.

The frozen base model matters for adoption. A team adds the memory layer without retraining or revalidating the model, which is the property that made retrieval practical in the first place.

What the result does not yet show

The 84.33 percent figure appears in secondary summaries, and the paper's own evaluation tables should be consulted, including which benchmark that number refers to.

Sixteen tokens may not scale to arbitrary collection sizes. The paper's reasoning about how the count was chosen and how behaviour degrades as a collection grows is the question that determines whether this is a general method or a demonstration on a bounded corpus.

No independent replication was located, so the result is single-source.

Any comparison against retrieval should be made on the same task with the same base model, since a different backbone or a different question set would account for a gap on its own.

The paper, the project page and the repository are all published, which makes replication straightforward for a group with the compute to train the memory component.

Related Dispatches