arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.17781cs.AI
收藏

事实作为一等对象:用于持久LLM记忆的知识对象

Facts as First Class Objects: Knowledge Objects for Persistent LLM Memory

Independent Researcher(独立研究者);University of Cambridge(剑桥大学)

Oliver Zahn, Simran Chana

AI总结:

本文提出知识对象(KOs)作为持久LLM记忆的解决方案,通过对比上下文记忆和KOs,在多跳推理中KOs表现更优,且能有效应对容量限制、压缩损失和目标漂移等挑战。

摘要:

大型语言模型日益成为持久知识工作者,上下文记忆(即存储在提示中的事实)是默认策略。我们通过对比上下文记忆与知识对象(KOs)进行基准测试,KOs是具有O(1)检索速度的离散哈希寻址元组。在上下文窗口内,Claude Sonnet 4.5在10到7000个事实之间达到100%的精确匹配准确率(占其200K窗口的97.5%)。然而,生产部署揭示了三种失败模式:容量限制(提示在8000个事实时溢出)、压缩损失(总结破坏60%的事实)和目标漂移(级联压缩侵蚀54%的项目约束,同时模型仍保持完全信心)。KOs在所有条件下以252倍更低的成本实现100%准确率。在多跳推理中,KOs达到78.9%的准确率,而上下文记忆仅为31.6%。跨四个前沿模型的复制验证了压缩损失是架构性的,而非特定于模型。我们还展示了嵌入检索在对抗性事实上失败(20%精度在1时),以及神经记忆(Titans)存储事实但无法按需检索。我们引入了密度自适应检索作为切换机制,并发布了基准测试套件。

英文摘要:

Large language models increasingly serve as persistent knowledge workers, with in-context memory - facts stored in the prompt - as the default strategy. We benchmark in-context memory against Knowledge Objects (KOs), discrete hash-addressed tuples with O(1) retrieval. Within the context window, Claude Sonnet 4.5 achieves 100% exact-match accuracy from 10 to 7,000 facts (97.5% of its 200K window). However, production deployment reveals three failure modes: capacity limits (prompts overflow at 8,000 facts), compaction loss (summarization destroys 60% of facts), and goal drift (cascading compaction erodes 54% of project constraints while the model continues with full confidence). KOs achieve 100% accuracy across all conditions at 252x lower cost. On multi-hop reasoning, KOs reach 78.9% versus 31.6% for in-context. Cross-model replication across four frontier models confirms compaction loss is architectural, not model-specific. We additionally show that embedding retrieval fails on adversarial facts (20% precision at 1) and that neural memory (Titans) stores facts but fails to retrieve them on demand. We introduce density-adaptive retrieval as a switching mechanism and release the benchmark suite.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑