Stanford's Memorilla: 16 memory tokens beat full-context with 108x fewer tokens

omarsar0 · x · 2026-10-19

A Stanford/Toronto/MIT paper introduces Memorilla, a memory system that encodes document collections once and retrieves query-relevant info into just 16 memory tokens in a frozen LLM's input space. It beats Mem0 and MemoRAG on 5 of 8 benchmarks, hits 84.33% on FactKG vs 80.43% for full-context with 108x fewer tokens, and lifts TextWorld agent success from 18.6% to 24.2%.

Original post →

More from coding & agent

coding & agent channel →