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

修剪摘要而非历史:面向长智能体的源判定压缩方法

Prune the Summary, Not the History: Source-Judged Compaction for Long-Horizon Agents

University of Virginia(弗吉尼亚大学)

Guanghui Min, Chen Chen

AI总结:

针对长 horizon LLM 智能体的上下文压缩问题,提出无需训练的源判定压缩(SJC)方法,通过判定摘要条目的来源移除无依据条目,在两个基准上提升了跨运行可靠性且未增加 token 用量。

摘要:

长 horizon 的大语言模型(LLM)智能体依赖上下文压缩:当交互历史超出上下文窗口时,压缩器会用自然语言摘要替换它。我们发现这些摘要不止记录了发生的事件。压缩提示要求做出决策和确定下一步行动,因此每个摘要都混合了环境确立的事实与压缩器生成的推理,之后智能体无法区分两者。对广泛使用的结构化压缩器的分析显示,83%的失败运行可追溯到执行特定摘要条目的动作,其中大多数没有环境输出支持。我们提出源判定压缩(Source-Judged Compaction,SJC),这是一种无需训练的后处理步骤,它对每个摘要条目是否在环境输出或前序摘要中有来源进行评分,并移除无来源的条目。它不改变智能体或压缩器,且每次压缩仅增加一次低成本的判定请求。判定器是 Jev,一种非生成式决策模型,它用校准后的概率而非文本回答来源问题。在 AppWorld 和 OfficeBench 两个基准上,使用两种智能体模型时,SJC 使基础压缩器的跨运行可靠性提升了 2.1%-8.9%,且未增加智能体的 token 使用量。

英文摘要:

Long-horizon LLM agents rely on context compaction: when the interaction history outgrows the context window, a compressor replaces it with a natural-language summary. We show that these summaries contain more than a record of what happened. Compaction prompts ask for decisions and next steps, so each summary mixes facts established by the environment with reasoning written by the compressor, and the agent cannot tell the two apart afterwards. In an analysis of a widely used structured compressor, 83% of failed runs trace back to an action that carries out a specific summary entry, most of which no environment output supports. We propose Source-Judged Compaction (SJC), a training-free post-processing step that scores each summary entry for whether it has a source in the environment outputs or the previous summary, and removes the entries that do not. It changes neither the agent nor the compressor and adds one inexpensive judge request per compaction. The judge is Jev, a non-generative decision model that answers the source question with a calibrated probability instead of text. On AppWorld and OfficeBench with two agent models, SJC improves cross-run reliability over the underlying compressor by 2.1%-8.9% without increasing the agent's token usage.

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

↑