# Memorilla squeezes an entire document collection into 16 memory tokens

Original title: Memorilla: Latent Semantic Memory for LLMs

> Hacker News story 50395919 · language: en · submitted 2026-11-06
> Web version: https://zeli.app/story/50395919
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 115 · by [handfuloflight](<https://news.ycombinator.com/user?id=handfuloflight>) · 💬 13
[original](<https://arxiv.org/abs/2610.21375>) · [HN discussion](<https://news.ycombinator.com/item?id=50395919>)

## Summary

Memorilla gives frozen LLMs a memory system that encodes documents once into reusable embeddings, then learns to retrieve query-specific information directly into the model's input embedding space as a fixed set of 16 memory tokens. Across eight benchmarks covering personalization, long-document and knowledge-intensive QA, it beats Mem0 and MemoRAG on five. On FactKG it hits 84.33% accuracy versus 80.43% for full-context inference while using 108x fewer tokens, and in TextWorld it lifts an agent's success rate from 18.6% to 24.2%.

## Key quote

> Using only 16 memory tokens, Memorilla achieves the best performance against baselines including Mem0 and MemoRAG on five of eight benchmarks spanning personalization, long-document and knowledge-intensive question answering.

## HN discussion (13 comments)

### [jkingsman](<https://news.ycombinator.com/item?id=50396599>)

> So if I'm reading this right, it's basically a specialized embedding of a RAG, and then a model in the middle takes the agent's queries and returns responses in a form that is injecting into the main model's input token stream directly i.e. skipping actual text. And the injection format is INCREDIBLY token efficient. Sort of injecting a vibe rather than quotable text. Their results of "good on concepts, less good on quotes/exact text retrieval" seem to intuitively line up with that.

### [bob1029](<https://news.ycombinator.com/item?id=50399474>)

> I am finding that semantic ~= lexical when you have something like a frontier model driving. Using full text search engines is still the most compelling approach for handling large document sets.
>
> I really struggle with the semantic / embedding concerns when we have a generative model that can reverse engineer a Mario 64 rom dump to run on my toaster oven. These models know how to compose Lucene & other FTS query strings in such a way that we are effectively getting semantic search over purely lexical systems.

---

## Cite

- Page: https://zeli.app/story/50395919
- Date: 2026-11-06
- Source: arxiv.org (https://arxiv.org/abs/2610.21375)
- Hacker News: https://news.ycombinator.com/item?id=50395919

## Other languages

- zh: https://zeli.app/zh/story/50395919 · markdown: https://zeli.app/zh/story/50395919.md
- ja: https://zeli.app/ja/story/50395919 · markdown: https://zeli.app/ja/story/50395919.md
- ko: https://zeli.app/ko/story/50395919 · markdown: https://zeli.app/ko/story/50395919.md
- de: https://zeli.app/de/story/50395919 · markdown: https://zeli.app/de/story/50395919.md
- es: https://zeli.app/es/story/50395919 · markdown: https://zeli.app/es/story/50395919.md
- ru: https://zeli.app/ru/story/50395919 · markdown: https://zeli.app/ru/story/50395919.md
