重叠何时有帮助?OSU-Mem及LLM智能体轨迹记忆的细胞条件分析
When Does Overlap Help? OSU-Mem and a Cell-Conditional Analysis of Trajectory Memory for LLM Agents
AI总结:
提出OSU-Mem方法,通过重叠语义单元组织轨迹记忆,发现当查询所需证据步骤共享工具调用或实体时重叠有帮助,否则有害。
摘要:
长视野大语言模型(LLM)智能体积累的交互轨迹迅速超出任何实际提示预算,现有记忆方法要么激进截断丢失非局部证据,要么保留模板降低决策质量。我们提出一个机制问题,而非声称更好的通用记忆系统:何时将轨迹记忆组织成重叠语义单元(OSU)——即一个步骤可能属于多个单元的相关步骤组——有助于检索,相较于平坦或不相交的替代方案?我们在OSU-Mem中实例化这一概念,通过预算粗到细扩展从重叠OSU池中检索,并展示其益处是有条件的:当查询所需的证据步骤共享工具调用或实体时,重叠记忆有帮助,但当这些步骤完全异构且不共享任何内容时则有害。在一个合成基准上,证据按构造携带此类共享结构,OSU-Mem如理论预测优于最强基线;然而,在拼接的、构造的未增强τ-bench设置中,其相对于平坦检索的总体优势消失。通过按证据是否共享工具和实体分割查询,显示这种接近平局是混合查询类型的人为产物,而非任一方法的属性;而ToolBench(一个为携带共享结构而设计的受控探针)通过重叠与不相交构造对比(在覆盖引导变体下)证实了相同机制,隔离了构造原则而非验证完整默认系统。由于相关共享可从元数据廉价估计,该分析产生了一个基于元数据的启发式方法,用于预测重叠何时可能改善检索。我们特意隔离了检索层,通过检索质量和LLM介导的证据选择阶段进行评估。
英文摘要:
Long-horizon large language model (LLM) agents accumulate interaction trajectories that quickly exceed any practical prompt budget, and existing memory methods either truncate aggressively and lose non-local evidence or retain boilerplate that degrades decision quality. We ask a mechanism question rather than claiming a better general-purpose memory system: when does organizing trajectory memory into overlapping semantic units (OSUs) -- groups of related steps in which one step may belong to several units -- help retrieval over flat or disjoint alternatives? We instantiate this in OSU-Mem, which retrieves from an overlapping OSU pool via budgeted coarse-to-fine expansion, and show its benefit is conditional: overlapping memory helps when the evidence steps a query needs share tool calls or entities, but hurts when those steps are fully heterogeneous and share neither. On a synthetic benchmark where evidence carries such shared structure by construction, OSU-Mem improves over the strongest baseline as the theory predicts; yet on a concatenated, constructed unaugmented $τ$-bench setting its aggregate advantage over flat retrieval vanishes. Splitting queries by whether their evidence shares tools and entities shows this near-tie to be an artifact of mixing query types rather than a property of either method, and ToolBench, a controlled probe built to carry shared structure by design, corroborates the same mechanism via an overlap-vs.-disjoint construction contrast (under a coverage-guided variant), isolating the construction principle rather than validating the full default system. Because the relevant sharing is cheaply estimable from metadata, the analysis yields a metadata-based heuristic for predicting when overlap is likely to improve retrieval. We deliberately isolate the retrieval layer, assessed by retrieval quality and an LLM-mediated evidence-selection stage.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。