基准测试集出人意料地对压缩友好
Benchmarks Are Surprisingly Compaction-Friendly
AI总结:
该研究针对长 horizon 智能体任务的上下文压缩,在三个基准测试集上评估三种前沿模型,发现当前基准对压缩友好,压缩会丢失任务约束且无方法优于默认自摘要。
摘要:
长 horizon 智能体任务正推动大语言模型(LLM)智能体超出其上下文窗口。为继续完成任务,智能体框架必须释放上下文窗口,这一过程称为上下文压缩。压缩本质上通常是有损的:智能体可能会无声地丢失任务约束、指令或早期决策背后的推理。尽管压缩是代码智能体框架的标准组成部分,但尚未针对前沿模型在现实的长 horizon 智能体任务上进行系统研究。以往工作在玩具或合成轨迹上评估较小的开放权重模型。我们固定智能体框架为 OpenCode,在其中实现五种压缩策略,并在三个长 horizon 基准测试集(PaperBench、ProgramBench、PostTrainBench)上评估三个前沿模型。对于两个 1M 上下文模型,压缩阈值对任务性能无显著影响;而上下文窗口最小的模型 GPT-5.3-Codex 在 PaperBench 上较低阈值下表现更差,在 PostTrainBench 上表现差异较小。没有任何压缩方法优于默认的自摘要方法,丢弃更多内容的方法会使部分模型性能下降多达 20 个点,而对其他模型无影响。然而,压缩可能会无声地移除任务约束:在 ProgramBench 上,第一次压缩摘要平均已丢失约三分之一的任务反作弊规则,且随压缩次数增加而单调上升。在来自 SWE-chat 的真实用户-智能体会话中,关于智能体应如何工作和不应做什么的指令被丢弃的频率,比关于应构建什么的规格说明高约 6 倍。我们认为当前基准测试集是压缩友好的:即目标是固定的,智能体的进度存储在磁盘上,因此压缩丢弃的大部分内容都可以恢复,除了那些没有其他地方存在的约束。
英文摘要:
Long horizon agentic tasks are now pushing LLM agents past their context window. To continue the task, the agent scaffold has to free up the context window, a process known as context compaction. Compaction is generally lossy by design: agents can silently lose task constraints, instructions, or their reasoning behind earlier decisions. Although compaction is a standard component of coding agent scaffolds, it has not been studied systematically with frontier models on realistic, long horizon agentic tasks. Previous work evaluate smaller open weight models on toy or synthetic trajectories. We fix the agent scaffold (OpenCode), implement five compaction strategies inside it, and evaluate three frontier models on three long horizon benchmarks (PaperBench, ProgramBench, PostTrainBench). For the two 1M context models, the compaction threshold does not measurably affect the task performance, whereas GPT-5.3-Codex, the model with the smallest context window, performs worse at lower thresholds on PaperBench and, less clearly, on PostTrainBench. No compaction method outperforms default self-summarization, and methods that discard more content cost some models up to 20 points while leaving other models the same. Compaction can, however, silently remove task constraints: on ProgramBench, the first compaction summary already drops about one third of the task's anticheating rules on average, and this rises monotonically with the number of compactions. On real user-agent sessions from SWE-chat, instructions about how the agent should work and what it should not do are dropped around 6 times more than specifications of what to build. We argue that current benchmarks are compaction-friendly: i.e., the objective is fixed and the agent's progress stays on disk, so most of what compaction discards can be recovered, except constraints that don't exist anywhere else.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。