← Fri, Nov 6 digest

Memorilla: Latent Semantic Memory for LLMs

read article ↗ hn thread ↗

Memorilla compresses an entire document collection into a fixed set of query-dependent latent memory tokens, enabling frozen LLMs to leverage vast external knowledge with extreme token efficiency.

summary is enough The abstract and comment thread clearly explain the core mechanism, making a deep read of the full paper unnecessary unless implementing it.

summary

Memorilla is a new memory system for large language models that encodes an entire document collection into reusable embeddings and retrieves query-specific information as a fixed number of latent memory tokens. By avoiding traditional retrieval-augmented generation chunk limits, it achieves superior accuracy on several benchmarks while using significantly fewer tokens. In agentic environments, this compressed memory approach reduces wandering and improves task success rates. The system functions by injecting a compressed conceptual vibe into the token stream rather than fetching exact quotes.

key points

  1. Memorilla condenses document collections into a fixed set of 16 query-dependent latent memory tokens injected directly into the LLM input space.
  2. It outperforms baselines like Mem0 and MemoRAG on five of eight benchmarks, achieving 84.33 percent accuracy on FactKG while using 108x fewer tokens.
  3. In a TextWorld agentic environment, it reduced wandering and improved average task success rates from 18.6 percent to 24.2 percent.

who should read it

AI researchers and engineers working on long-context LLMs, agent memory systems, and retrieval-augmented generation.

discussion positive

consensus

Participants observe that Memorilla trades exact quote retrieval for extreme token efficiency by injecting a compressed latent representation directly into the model input space.

pushback

Some critics argue that semantic embeddings often fall short of lexical search and that users prioritize absolute accuracy over token savings.

best comment by jkingsman ↗

So if I'm reading this right, it's basically a specialized embedding of a RAG, and then a model in the middle takes the agent's queries and returns responses in a form that is injecting into the main model's input token stream directly i.e. skipping actual text. And the injection format is INCREDIBLY token efficient. Sort of injecting a vibe rather than quotable text. Their results of "good on concepts, less good on quotes/exact text retrieval" seem to intuitively line up with that.

It provides a clear, intuitive mental model of the system as injecting a conceptual vibe rather than quotable text.

Generated by an LLM from the article and thread. Check the sources before relying on it.