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

何时记忆有助于工具使用LLM代理的多轨迹推理?

When Does Memory Help Multi-Trajectory Inference for Tool-Use LLM Agents?

RMIT University(皇家墨尔本理工大学)

Xinzhe Li, Yaguang Tao

AI总结:

本文提出一个统一框架,将记忆沿传输范围和内容抽象两个维度分解,在无验证器设置下评估四种记忆方法与三种推理策略在四个工具使用基准上的表现,发现推理策略是混淆变量,不同策略下相同记忆方法产生显著不同结果。

摘要:

工具使用LLM代理的多轨迹推理——生成多个推理尝试并从中选择——受益于跨尝试的知识转移,以便后续尝试避免早期尝试的陷阱。现有的跨轨迹记忆方法(轨迹级反思、原子事实提取、原始观察注入)均在单个任务的单一推理策略下进行评估,使得报告的性能提升是否反映记忆抽象或推理方法的属性变得不明确。我们提出一个统一框架,将记忆沿两个维度分解——传输范围(扩展内 vs. 跨轨迹)和传输内容的抽象程度——并在四种工具使用基准(涵盖SQL、知识图谱和CLI环境)上,在匹配实际代理部署设置的无验证器设置下,评估四种方法在三种推理策略(best-of-N、束搜索、MCTS)下的表现。实验矩阵将推理方法识别为混淆变量:相同的记忆方法在相同示例的不同推理策略下产生统计上不同的结果。反思仅在MCTS下达到显著性(不在best-of-N下);扩展内注入(使每个候选条件依赖于先前兄弟候选的结果)仅有助于缺乏多样性的束搜索;而原子事实提取对准确性无影响,但在具有可重用环境结构的任务上使轨迹缩短19-26%。

英文摘要:

Multi-trajectory inference for tool-use LLM agents - generating multiple reasoning attempts and selecting among them - benefits from transferring knowledge across attempts so that later ones avoid the pitfalls of earlier ones. Existing cross-trajectory memory methods (trajectory-level reflection, atomic fact extraction, raw observation injection) are each evaluated under a single inference strategy on a single task, making it unclear whether reported gains reflect properties of the memory abstraction or of the inference method. We propose a unified framework that decomposes memory along two axes -- the scope of transfer (within an expansion vs. across trajectories) and the abstraction of the transferred content -- and evaluate four methods under three inference strategies (best-of-N, beam search, MCTS) on four tool-use benchmarks spanning SQL, knowledge-graph, and CLI environments, in a verifier-free setting that matches the deployment regime of practical agents. The experiment matrix identifies the inference method as a confound: the same memory method produces statistically distinct results under different inference strategies on the same examples. Reflection reaches significance only under MCTS (not under best-of-N); within-expansion injection (conditioning each candidate on prior siblings' outcomes) helps only diversity-starved beam search; and atomic fact extraction is accuracy-neutral but shortens trajectories by 19-26% on tasks with reusable environmental structure.

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

↑