跳到正文
arXiv cs.AI· Ruopei Sun, Jianfeng Cai, Kangwen Zhao, Wengang Zhou, Houqiang Li·· 12 小时前AI 评分44

Compact-Bench:衡量上下文压缩给长程编程智能体带来什么代价

Compact-Bench: Measuring What Context Compaction Costs Long-Horizon Coding Agents

AI 导读

Compact-Bench 通过配对完整历史与仅摘要续写来隔离上下文压缩的影响,覆盖 35 个 SWE-bench 修复、146 个智能体会话和 106 条生产链。

正文 · 原文

View PDF HTML (experimental)

Abstract:Context compaction lets long-horizon coding agents continue beyond their context windows, but can erase the state needed to finish a task. Prior evaluations measure efficiency, retained information, or end-to-end success, leaving the effect of a specific history replacement difficult to isolate. Compact-Bench pairs full-history and summary-only continuations from a shared repository state, and evaluates recurring details and successive production compactions. It covers 35 SWE-bench repairs, 146 agentic sessions, and 106 production chains. Across 14 summarizer backbones, stable damage ranges from 5-64% of 22 full-history successes: Claude Opus 4.8 preserves the most repairs, while DeepSeek-Flash damages the most. With Kimi-K3 as summarizer, the Kimi Code prompt preserves the most task continuations (19/22), whereas Claude Code retains the most recurring details (15.0%). LLM summaries retain at most 16.0% of recurring details, compared with 79.1% for mechanical extraction; production summaries retain 15.7% at the first boundary. Failures recur across methods: one repair is damaged by 13/14 backbones, and another by all 5 prompts. These results show that reliable compaction requires preserving the progress needed to complete a task, and that retaining relevant information alone does not ensure successful continuation. Code is available at this https URL and data is available at this https URL.
Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.31710 [cs.SE]
  (or arXiv:2610.31710v1 [cs.SE] for this version)
  https://doi.org/10.48550/arXiv.2610.31710

arXiv-issued DOI via DataCite

Submission history

From: Ruopei Sun [view email]
[v1] Thu, 22 Oct 2026 02:17:12 UTC (155 KB)

来源:arXiv cs.AI · arxiv.org