Memorilla compresses document memory into 16 query-dependent tokens for frozen LLMs
ResearchPublished: Source: Hacker News (100+ points)
TL;DR:Researchers introduce Memorilla, a memory system that encodes documents into reusable embeddings and retrieves query-specific information as a fixed set of tokens for a frozen LLM.

Researchers introduce Memorilla, a memory system that encodes documents into reusable embeddings and retrieves query-specific information as a fixed set of tokens for a frozen LLM. With 16 memory tokens, it outperformed baselines including Mem0 and MemoRAG on five of eight benchmarks. On FactKG it achieved 84.33% accuracy versus 80.43% for full-context inference, using 108 times fewer tokens to represent source documents. In TextWorld, it raised an agent's average success rate to 24.2%, from 18.6% with full-history prompting.
Key points
- Memorilla represents query-specific memory using 16 tokens for a frozen LLM.
- It outperformed Mem0 and MemoRAG on five of eight benchmarks.
- FactKG accuracy was 84.33%, versus 80.43% with full-context inference, using 108x fewer tokens for source documents.
- In TextWorld, agent success increased from 18.6% with full-history in-context learning to 24.2%.
Why it matters
The approach suggests a way to give frozen models access to growing document collections without repeatedly filling their context windows. Its benchmark results are especially relevant to teams building long-running assistants or agents that need to retain past interactions.
Companies and models mentioned
- Memorilla
- FactKG
- TextWorld
- Mem0
- MemoRAG