何时遗忘:一种记忆治理原语
When to Forget: A Memory Governance Primitive
AI总结:
本文提出Memory Worth,一种通过跟踪记忆与成功/失败结果共现次数来评估记忆质量的机制,为动态管理提供理论基础,并在实验中验证其有效性。
摘要:
智能体记忆系统积累经验但缺乏衡量记忆质量的原理性指标--在任务分布变化时决定哪些记忆值得信任、抑制或废弃。写时的重要性评分是静态的;动态管理系统使用LLM判断或结构启发式而非结果反馈。本文提出Memory Worth(MW):每段记忆的两个计数器信号,跟踪其与成功与失败结果共现的频率,为过时检测、检索抑制和废弃决策提供轻量且理论基础的依据。我们证明在稳定检索制度下,MW几乎必然收敛到条件成功概率p+(m)=Pr[y_t=+1|m∈M_t]--在检索记忆m时任务成功的概率。重要的是,p+(m)是关联性而非因果性的:它测量结果共现而非因果贡献。我们论证这仍然是有用的治理信号,并在可控的合成环境中通过实验验证:在10,000次回合后,Memory Worth与真实效用的斯皮尔曼等级相关系数达到rho=0.89±0.02(20个独立种子),相比从不更新的系统rho=0.00。使用真实文本和神经嵌入检索(所有-MiniLM-L6-v2)的检索现实微实验进一步显示,过时记忆在低价值阈值(MW=0.17)时而专业记忆保持高价值(MW=0.77)在3,000次回合中。估计器仅需每个记忆单元两个标量计数器,可添加到已记录检索和回合结果的架构中。
英文摘要:
Agent memory systems accumulate experience but currently lack a principled operational metric for memory quality governance -- deciding which memories to trust, suppress, or deprecate as the agent's task distribution shifts. Write-time importance scores are static; dynamic management systems use LLM judgment or structural heuristics rather than outcome feedback. This paper proposes Memory Worth (MW): a two-counter per-memory signal that tracks how often a memory co-occurs with successful versus failed outcomes, providing a lightweight, theoretically grounded foundation for staleness detection, retrieval suppression, and deprecation decisions. We prove that MW converges almost surely to the conditional success probability p+(m) = Pr[y_t = +1 | m in M_t] -- the probability of task success given that memory m is retrieved -- under a stationary retrieval regime with a minimum exploration condition. Importantly, p+(m) is an associational quantity, not a causal one: it measures outcome co-occurrence rather than causal contribution. We argue this is still a useful operational signal for memory governance, and we validate it empirically in a controlled synthetic environment where ground-truth utility is known: after 10,000 episodes, the Spearman rank-correlation between Memory Worth and true utilities reaches rho = 0.89 +/- 0.02 across 20 independent seeds, compared to rho = 0.00 for systems that never update their assessments. A retrieval-realistic micro-experiment with real text and neural embedding retrieval (all-MiniLM-L6-v2) further shows stale memories crossing the low-value threshold (MW = 0.17) while specialist memories remain high-value (MW = 0.77) across 3,000 episodes. The estimator requires only two scalar counters per memory unit and can be added to architectures that already log retrievals and episode outcomes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。