摘要何时成为指令?LLM智能体自写交接摘要中的未被支持的策略
When Do Summaries Become Instructions? Unsupported Policy in LLM Agents' Self-Written Handoff Summaries
AI总结:
该研究探究LLM智能体自写交接摘要是否含未被支持的策略,经实验发现此类策略占比低,调整系统提示可显著降低未被支持的限制,为优化智能体交接机制提供了依据。
摘要:
长期运行的LLM智能体会压缩上下文,用摘要替换大部分历史记录。本文研究交接摘要是否包含记录不支持的权限或要求、此类语句是否会改变下一个实例(后继者)的行为,以及这些语句的来源。合成工具使用任务带有真实权限台账;同快照重放会用中性填充词替换后继者的完整语句。两名仅阅读规则标记的保留摘要的AI阅读器,在两个开放权重模型的所有可读摘要中,分别确认1.2%和2.4%的未被支持的限制,以及0.1%和1.3%的未被支持的授权。对于限制,预先指定的重放测试无显著性(p=0.58);后续计划的测试发现脆弱效应(p=0.027)。中和错误批准使未授权动作从120次保留运行中的24次降至7次(事后分析;后续设置:48次中的17次降至11次)。多数发展限制遵循智能体早期关于某动作需要批准的推理(事后分析)。在预先指定的测试中,将系统提示的“某些动作需要批准”替换为说明要求来源的表述,使发展摘要中的未被支持的限制从5.0%降至1.8%,在保留模板上从1.8%降至0.3%(均p<10^-9),而台账要求的批准请求几乎未变。代码和数据:此https URL
英文摘要:
Long-running LLM agents compact their context, replacing most history with a summary. We ask whether handoff summaries state permissions or requirements the record does not support, whether such sentences change what the next instance (the successor) does, and where they come from. Synthetic tool-use tasks carry a ground-truth permission ledger; same-snapshot replay reruns the successor with those whole sentences replaced by neutral filler. Two AI readers, reading only rule-flagged held-out summaries, confirmed unsupported restrictions in 1.2% and 2.4% of all readable summaries from two open-weight models, and unsupported authorizations in 0.1% and 1.3%. For restrictions, a pre-specified replay test was not significant (p = 0.58); a follow-up, planned after it, found a fragile effect (p = 0.027). Neutralizing false approvals cut unauthorized actions from 24 to 7 of 120 held-out runs (post hoc; later set: 17 to 11 of 48). Most development restrictions followed the agent's earlier reasoning that an action needs approval (post hoc). In pre-specified tests, replacing the system prompt's "Some actions need approval." with one saying where requirements come from cut unsupported restrictions from 5.0% to 1.8% of development summaries and, on held-out templates, from 1.8% to 0.3% (both p < 10^-9), while requests for approvals the ledger requires barely changed. Code and data: https://github.com/Chuw1/handoff-audit
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。