Guest post
Memorilla for Frozen LLMs: 16 Memory Tokens and 4,212x Fewer Tokens than Full Context
Memorilla, an open-source memory module that compresses an entire document collection into just 16 learned soft tokens for a frozen LLM instead of pasting retrieved text into the prompt. By conditioning those 16 slots on the user's question and attending over every stored document embedding at once, Memorilla captures indirect, multi-hop connections that standard top-𝑘 retrieval misses while keeping latency flat (~0.74s) and cutting context tokens by up to 4,212x. While it edges out baselines like MemoRAG and RAG-50 across eight benchmarks, the post notes a few practical caveats: much of its benchmark lead comes from task fine-tuning, it cannot tell which of two documents is newer without explicit dates, and it requires self-hosted open-weight models rather than text-only APIs.
