Memorilla gives LLMs access to document collections through 16 memory tokens

Researchers have introduced Memorilla, a memory system that gathers information from a document collection into a fixed number of query-dependent memory tokens for a frozen large language model. The paper was first submitted on October 15, 2026, with its third and latest version submitted on November 3.
The system encodes documents, such as user conversations or book chapters, once into reusable embeddings. It then learns to retrieve information relevant to each query and place it in the LLM’s input embedding space. This gives the model access to accumulated material while keeping its context short.
According to the authors, Memorilla achieved the best performance on five of eight benchmarks covering personalization, long-document questions and knowledge-intensive question answering, using only 16 memory tokens. Comparisons included Mem0 and MemoRAG. On FactKG, it reached 84.33% accuracy against 80.43% with full-context inference, using 108 times fewer tokens to represent the source documents.
The researchers also tested Memorilla in TextWorld, where an agent’s history grows as it acts. They report that the system reduced wandering between previously explored rooms and increased the average success rate from 18.6% with full-history in-context learning to 24.2%.
Original source: arxiv.org ↗
Comments on source platforms
Rank is the maximum of the latest discussion counts. These are source metrics.
Hacker News
- Discussion ↗: 13
Measured: 8 Nov 2026, 07:00 UTC