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

智能体应记住多少内容?来自LLM智能体自蒸馏记忆的部署经验

How Much Should an Agent Remember? Deployment Lessons from Self-Distilled Memory for LLM Agents

IBM(国际商业机器公司(IBM))

K. R. Jayaram, Vatche Isahagian, Aswath Vaithinathan Aravindan, Vinod Muthusamy, Punleuk Oum, Gaodan Fang, Michal Ulewicz, Gegi Thomas, Evelyn Duesterwald

AI总结:

该研究针对LLM智能体长程任务的程序性失败,提出自蒸馏记忆流水线,发现记忆量适配模型属性,在AppWorld基准上验证了不同模型的记忆效果并给出部署建议。

摘要:

长程任务中的LLM智能体存在反复出现的程序性失败,例如错误分页API、解析错误实体、在未被提问时作答。我们构建了一个让智能体从自身历史中学习的流水线:首先从智能体的轨迹中挖掘简短的“经验”,每个回合生成1-3条;随后将这些经验整合为更少的“准则”,每条准则记录其合并的经验数量。推理时智能体接收全部准则或选定子集。该流水线搭载于开源altk-evolve库,已部署于IBM的CUGA智能体及watsonx Orchestrate平台。我们报告构建、测量及产品化该流水线的经验,核心工具为AppWorld基准,涉及完成率40%-92%的各类模型。核心发现是:合适的记忆量是模型的属性,而非记忆的属性。强模型随准则增加持续提升:DeepSeek-V3.2使用全部191条准则,任务完成率提升9.5个百分点,场景完成率提升16.1个百分点;弱模型从全部199条准则中获得的提升少于从约29条选定子集中获得的提升:gpt-oss-120b初始任务完成率为39.9%,使用全部199条准则达51.2%,使用约29条选定子集则达55.4%(两次运行均值)。我们还报告了相关问题:高支持度准则产生反效果、整合过程中来源信息被静默丢弃、被掩盖的API错误生成合理日志却导致所有任务失败、基线混淆几乎造成与先前方法的误导性比较,并将这些问题提炼为智能体记忆部署团队的建议。

英文摘要:

LLM agents on long-horizon tasks fail in recurring, procedural ways. They mis-paginate an API, resolve the wrong entity, or answer when no answer was asked. We built a pipeline that lets an agent learn from its own history. It first mines short \emph{lessons} from the agent's own trajectories, one to three per episode. It then consolidates those lessons into a smaller set of \emph{guidelines}, where each guideline records how many lessons it merged. At inference the agent receives either all guidelines or a selected subset. The pipeline ships in the open-source altk-evolve library and is deployed in IBM's CUGA agent and watsonx Orchestrate platform. We report what we learned building, measuring, and productizing it. Our primary instrument is the AppWorld benchmark, across models spanning 40--92\% baseline task completion. The central finding is that the right amount of memory is a property of the model, not the memory. A strong model keeps improving as guidelines are added. DeepSeek-V3.2 gains +9.5 points of task completion and +16.1 points of scenario completion with its full 191-guideline set. A weak model gains less from the same full set than from a small selected subset. gpt-oss-120b starts at 39.9\% task completion. It reaches 51.2\% with all 199 of its guidelines but 55.4\% (mean of two runs) with a selected subset of about 29. Around that result we report what went wrong: a high-support guideline that backfired, provenance silently dropped during consolidation, a swallowed API error that failed every task while producing a plausible log, and a baseline confound that nearly produced a misleading comparison with a prior method. We distill these into recommendations for teams deploying agent memory.

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

↑