Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

Memorilla: latent semantic memory for frozen LLMs in 16 memory tokens

The Memorilla paper introduces a memory system that compresses information from a whole document collection into a fixed number of query-dependent memory tokens placed in a frozen LLM's input embedding space. With just 16 tokens it beats Mem0 and MemoRAG on…

Published Read the original
Memorilla: latent semantic memory for frozen LLMs in 16 memory tokens

Why it matters

An agent-memory approach that sharply cuts context cost without retraining the base model.

What happened

1 min read

The Memorilla paper introduces a memory system that compresses information from a whole document collection into a fixed number of query-dependent memory tokens placed in a frozen LLM's input embedding space. With just 16 tokens it beats Mem0 and MemoRAG on five of eight benchmarks, and on FactKG reaches 84.3% versus 80.4% for full context while using 108x fewer tokens.

inscraper analysis

Our analysis

Needing access to the input embedding space means it works only with open models, not closed APIs. The TextWorld gain from 18.6% to 24.2% is relative but low in absolute terms. Worth following for teams running agents on open models and fighting context costs.

More in Research