面向长时程智能体的可靠上下文压缩:执行不稳定性的实证研究 Toward Reliable Context Compression for Long-Horizon Agents: An Empirical Study of Execution Instability 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-06
👁️ 预览文献
💡 AI 中文简介
长时程智能体在运行中上下文会不断膨胀,循环式上下文压缩虽能控制增长,但其行为影响尚不清楚。本文通过实证研究发现,压缩会削弱近期交互的影响,导致动作被阻止、重复探索以及多次运行结果不稳定。为此作者提出TRACE框架,通过在同一环境状态下进行成对闭环续跑,评估每次压缩事件,并利用摘要偏好优化自然语言压缩提示词,同时保持所有模型冻结。在AppWorld上的初步结果显示,TRACE在任务表现、多次运行可靠性和上下文-执行效率上均优于现有压缩基线。
领域自然语言处理 / 大语言模型智能体与上下文管理
适合谁读需要一定专业背景(了解LLM智能体、上下文压缩与强化学习/偏好优化基础)
核心贡献1. 首次系统实证揭示循环上下文压缩会削弱近期交互影响,导致动作受阻、重复探索和跨运行不稳定;2. 提出TRACE验证器引导框架,通过同一环境状态下的成对闭环续跑评估单次压缩事件,并用摘要偏好优化压缩提示词而无需微调模型。
关键数据在AppWorld上,TRACE在任务表现、多次运行可靠性和上下文-执行效率三方面均优于现有压缩基线;具体数值未在首页给出。
推荐理由如果你在做长时程智能体又苦于上下文爆炸,这篇工作不仅指出压缩会带来执行不稳定,还给出了一套可落地的验证器引导优化方案,值得一读。
关键词["长时程智能体", "上下文压缩", "执行不稳定性", "验证器引导", "闭环评估", "智能体可靠性"]

原文摘要

查看英文原文摘要

Recurrent context compression controls context growth in long-horizon agents, but its behavioral effects remain poorly understood. In this preliminary empirical study, we show that compression can weaken the influence of recent interactions, increasing blocked actions, repeated exploration, and instability across runs. Motivated by these observations, we introduce TRACE, a verifier-guided framework that evaluates individual compaction events through paired closed-loop continuations from the same environment state and uses summary preferences to optimize a natural-language compression prompt while keeping all models frozen. Initial results on AppWorld show improvements over existing compression baselines in task performance, multi-run reliability, and context--execution efficiency. These findings provide early evidence for boundary-local evaluation as a promising direction for reliable agent context compression.