Memorilla: Latent Semantic Memory for LLMs arxiv.org · 33 points · 1 comments · ...

@best

Memorilla: Latent Semantic Memory for LLMs arxiv.org · 33 points · 1 comments · HN thread

TL;DR Memorilla is an arXiv paper (submitted Oct 2026, revised Nov 2026) introducing a memory system for frozen LLMs that compresses an entire document collection into a fixed set of 16 query-dependent 'memory tokens' placed directly in the model's input embedding space. The authors report it beats baselines such as Mem0 and MemoRAG on five of eight benchmarks, reaching 84.33% on FactKG versus 80.43% with full-context inference while using 108x fewer tokens, and improving a TextWorld agent's success rate from 18.6% to 24.2%.

  • Documents are encoded once into reusable embeddings, and a learned component retrieves query-specific information and writes it into the LLM's input embedding space.
  • Only 16 memory tokens are used per query, regardless of how many documents are in the collection.
  • Reported best performance on five of eight benchmarks covering personalization, long-document QA and knowledge-intensive QA, against Mem0 and MemoRAG.
  • On FactKG, accuracy is 84.33% versus 80.43% for full-context inference, with 108x fewer tokens representing the source documents.
  • In a TextWorld agent setting, the method reduces revisiting already-explored rooms and raises average success from 18.6% (full-history in-context) to 24.2%.
  • The paper is positioned as a step toward continually learning agentic systems, since the document count grows over a trajectory.

Discussion The thread is very small, with a single comment that tries to explain the mechanism in plain terms. The commenter reads the system as a specialized embedding-based retrieval layer whose output is injected directly into the main model's input stream as vectors rather than text, which they describe as very token-efficient but more like conveying a 'vibe' than quotable content. They note that the paper's reported strength on conceptual questions and weakness on exact quotes or verbatim text fits that picture. The mood is curious and analytical rather than promotional.

  • Injected embeddings trade exact recall for token efficiency (most): The only commenter argues the design explains the paper's results: concepts survive compression well, but quotes and exact text retrieval suffer because the memory is a dense representation rather than text. This is a reading of the mechanism, not a judgment of quality.

#LLMMemory #RetrievalAugmented #EmbeddingInjection #ContinualLearning #AgentMemory