多步合一:LLM智能体的推理收缩与安全记忆复用的局限性
Many Steps into One: Reasoning Contraction and the Limits of Safe Memory Reuse for LLM Agents
AI总结:
该研究针对LLM智能体的推理收缩现象,指出现有计数器式记忆存在过时答案多的问题,提出基于似然比的安全记忆复用方法以提升安全性。
摘要:
思维模板、技能库、智能体记忆和缓存将多个推理步骤合并为一个,我们将此称为推理收缩。收缩后的记忆会在其事实发生变化前保存推理步骤和错误,之后会悄悄给出错误答案。大多数系统通过统计成功与失败次数来信任记忆。我们证明这类计数器是调优不佳的变化检测器:对称计数器仅在虚警阈值的幂次后才会注意到部分变化,而未截断的计数器可能永远不会注意到该变化。在五个大型语言模型(LLM)对经编辑的事实回答多跳问题的任务中,ExpeL和ACE风格的计数器提供的过时答案数量是经认证记忆的7.0至13.5倍(在相同信息下);在带有精确验证器的代码任务中,这一比例为35至73倍。安全也有代价:当事实发生变化且每个记忆仅由其自身的验证结果判断时,一个名为认证负载的数值决定了任何安全记忆可跳过的推理量,且在齐普夫(Zipf)需求下会产生缩放定律。我们的方法通过每个记忆自身的似然比权衡其失败,针对实时推理验证其效用,并在事实变化时重启认证,其中似然比检测器作为未宣布变化的安全网;对于大规模编辑,它还会使该记忆失效。
英文摘要:
Thought templates, skill libraries, agent memories and caches turn many reasoning steps into one. We call this reasoning contraction. A contracted memory saves reasoning steps and errors until its facts change, then quietly answers wrong. Most systems trust memories by counting successes and failures. We prove that such counters are badly tuned change detectors: a symmetric counter notices a partial change only after a power of its false-alarm horizon, and an unclipped one may never notice it. On five LLMs answering multi-hop questions over edited facts, ExpeL- and ACE-style counters serve 7.0-13.5x more stale answers than certified memories given the same information, and on code tasks with an exact verifier 35-73x more. Safety also has a price. When facts change and each memory is judged only by its own verified outcomes, one number, the certification load, sets how much reasoning any safe memory can skip, and under Zipf demand it yields a scaling law. Our recipe weighs each memory's failures by its own likelihood ratio, certifies its utility against live reasoning, and restarts the certificate when facts change, with the likelihood-ratio detector as the safety net for unannounced changes; for large edits it also invalidates the memory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。