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

从损失到验证:一种面向代理的分层内存

From Lossy to Verified: A Provenance-Aware Tiered Memory for Agents

School of Data Science, The Chinese University of Hong Kong, Shenzhen(数据科学学院,香港中文大学(深圳))

Qiming Zhu, Shunian Chen, Rui Yu, Zhehao Wu, Benyou Wang

AI总结:

TierMem 提出了一种面向代理的分层内存框架,通过双层内存结构在推理时分配证据,以降低 token 消耗和延迟,提升准确率。

摘要:

长期 horizon 的代理往往将交互历史压缩成写入时的摘要。这导致了一个根本性的写入前查询障碍:压缩决策是在系统了解未来查询所依赖的内容之前做出的。因此,摘要可能导致无法验证的遗漏——决定性约束(例如过敏)可能被丢弃,使代理无法用可追溯的证据来证明答案。保留原始日志恢复了权威的真实来源,但默认基于原始日志进行 grounding 是昂贵的:许多查询可以从摘要中回答,但原始 grounding 仍需要处理更长的上下文,增加 token 消耗和延迟。我们提出 TierMem,一种与 provenance 相关联的框架,将检索视为一个推理时的证据分配问题。TierMem 使用一个双层内存层次结构来以最便宜的足够证据来回答:默认查询快速摘要索引,并且在摘要证据不足时,通过运行时的充分性路由器 Escalate 到一个不可变的原始日志存储。TierMem 然后将验证后的发现写回作为新的摘要单元,并与原始来源链接。在 LoCoMo 上,TierMem 实现了 0.851 准确率(与 0.873 的原始-only 相比),同时将输入 token 减少 54.1% 并将延迟减少 60.7%。

英文摘要:

Long-horizon agents often compress interaction histories into write-time summaries. This creates a fundamental write-before-query barrier: compression decisions are made before the system knows what a future query will hinge on. As a result, summaries can cause unverifiable omissions -- decisive constraints (e.g., allergies) may be dropped, leaving the agent unable to justify an answer with traceable evidence. Retaining raw logs restores an authoritative source of truth, but grounding on raw logs by default is expensive: many queries are answerable from summaries, yet raw grounding still requires processing far longer contexts, inflating token consumption and latency. We propose TierMem, a provenance-linked framework that casts retrieval as an inference-time evidence allocation problem. TierMem uses a two-tier memory hierarchy to answer with the cheapest sufficient evidence: it queries a fast summary index by default, and a runtime sufficiency router Escalates to an immutable raw-log store only when summary evidence is insufficient. TierMem then writes back verified findings as new summary units linked to their raw sources. On LoCoMo, TierMem achieves 0.851 accuracy (vs.0.873 raw-only) while reducing input tokens by 54.1\% and latency by 60.7%.

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

↑