Memorilla:大语言模型的潜在语义记忆
Memorilla: Latent Semantic Memory for LLMs

原始链接: https://arxiv.org/abs/2610.21375

Memorilla 是一种面向冻结 LLM 的记忆系统,它将整个文档集合中的信息压缩为一组固定且与查询相关的记忆 token。文档只需编码一次为可复用的嵌入,随后检索相关、与查询特定的信息并放入 LLM 的输入嵌入空间。仅使用 16 个记忆 token,Memorilla 在涵盖个性化、长文档和知识密集型问答的八个基准中的五个上优于 Mem0 和 MemoRAG 等基线。在 FactKG 上,它达到 84.33% 的准确率,而全上下文推理为 80.43%,同时使用少 108 倍的 token。它还支持智能体的持续学习:在 TextWorld 中,它减少了冗余的房间探索,并将平均成功率从 18.6% 提高到 24.2%。总体而言,Memorilla 帮助冻结 LLM 在长上下文交互中高效地积累和使用知识。

Hacker News 讨论了 Memorilla,一篇为 LLM 提出潜在语义记忆的论文。评论者将其描述为 RAG 的 token 高效替代方案:它不检索少量文档分块,而是将相关文档混合成一组固定的记忆 token,并直接注入模型输入流,更偏重概念理解而非精确引用。有人指出,当相关事实分散在多个段落中时,这可能有帮助;也有人质疑向量搜索是否已经能呈现这类片段,或认为硬性的 RAG 截断限制了覆盖范围。还有人将 Memorilla 视为准确率与 token 成本之间的权衡,认为许多用户优先考虑准确率。一名评论者认为前沿模型能有效使用词法/全文搜索,使语义嵌入变得不那么必要。总体而言,该讨论围绕潜在记忆是否能改善 RAG 的检索局限,还是传统搜索已足够展开。
相关文章

原文

View a PDF of the paper titled Memorilla: Latent Semantic Memory for LLMs, by Adibvafa Fallahpour and 6 other authors

View PDF HTML (experimental)
Abstract:Memory enables large language models (LLMs) to use information beyond their parameters, such as past user conversations, long documents, or an agent's earlier actions. For a frozen LLM, access to this accumulated knowledge is limited to what a memory system places in its context window. However, gathering and combining relevant information needed for each query while keeping the model's context short remains challenging for existing systems. Here we introduce Memorilla, a memory system that gathers information from an entire document collection into a fixed number of query-dependent 'memory tokens' for a frozen LLM. Memorilla encodes documents (such as user chats, book chapters) once into reusable embeddings, then learns to retrieve and place query-specific information in the LLM's input embedding space. Using only 16 memory tokens, Memorilla achieves the best performance against baselines including Mem0 and MemoRAG on five of eight benchmarks spanning personalization, long-document and knowledge-intensive question answering. Notably, on FactKG, it reaches 84.33% accuracy versus 80.43% with full-context inference, while using 108x fewer tokens to represent the source documents. Furthermore, Memorilla can facilitate continual learning in agentic systems where the document count (the agent's past turns) increases throughout the trajectory. In a TextWorld environment, we show that Memorilla reduces the agent's tendency to wander between rooms it has already explored, and improves its average success rate from 18.6% with full-history in-context learning to 24.2%. Overall, Memorilla aids frozen LLMs in accumulating and using knowledge effectively across long-context interactions and takes a step towards building continually learning AI systems.
From: Vignesh Kothapalli [view email]
[v1] Thu, 15 Oct 2026 06:55:55 UTC (3,660 KB)
[v2] Tue, 27 Oct 2026 04:28:12 UTC (3,660 KB)
[v3] Tue, 3 Nov 2026 07:03:31 UTC (3,660 KB)
联系我们 contact @ memedata.com