Skip to content
arXiv.org·

🧠Memorilla Packs Whole Document Collections Into Just 16 Memory Tokens

Your frozen LLM can finally remember without retraining

TL;DR

Researchers introduced Memorilla, a memory system that compresses an entire document collection into 16 query-dependent tokens for frozen LLMs. It hits 84.33% on FactKG using 108x fewer tokens. If you run RAG or agents on a frozen model, this is a cheaper way to keep context.

A new paper called Memorilla lets frozen LLMs remember whole document collections using just 16 memory tokens. No fine-tuning, no retraining, and the base model stays untouched. That's the part that matters. If you're shipping RAG or agents on a frozen model, your context budget is the bottleneck. Memorilla encodes documents into reusable embeddings, then learns to retrieve query-specific information and inject it into the model's input embedding space. Think of it as a smarter memory layer instead of stuffing raw chunks into the prompt. The agent side is interesting too: in a TextWorld test, it wandered between already-explored rooms less and improved its average success rate. The numbers: 84.33% accuracy on the FactKG benchmark, using 108x fewer tokens to represent the source documents. It beat baselines on five of eight benchmarks with those same 16 tokens. The paper was submitted October 15, 2026, and revised November 3, 2026, with three versions out. Watch whether the gains hold when document counts grow through a long agent trajectory. The paper frames this as a step toward continual learning, not a finished solution.

Memorilla Packs Whole Document Collections Into Just 16 Memory Tokens — arXiv.org

Key Points

1

Memorilla uses only 16 memory tokens and still beats baselines on five of the eight benchmarks the authors tested against.

Keep reading — it's free

Enter your email to keep reading — plus the best of AI & tech, daily. Free, forever.

Also get
or

Already a member? Sign in

LLM memoryretrievalRAGfrozen modelscontinual learning

Comments

Subscribe to join the conversation...

Be the first to comment