跳到正文
arXiv (AI + Vision + Imaging)· Yuhang Wang, Yuling Shi, Shaoqiu Zhang, Jialiang Liang, Shilin He, Siyu Ye, Yuting Chen, Kai Cai, Xiaodong Gu·· 1 天前AI 评分28

SWE-Pruner Pro:让Coder LLM利用自身内部表示剪枝工具输出

SWE-Pruner Pro: The Coder LLM Already Knows What to Prune

AI 导读

SWE-Pruner Pro 直接利用编码智能体自身的内部表示对工具输出逐行判断保留或剪枝,无需外挂代码分类器,并通过与工具输出行数绑定的长度感知嵌入实现。在两个开放权重骨干和四个多轮基准上,最多节省 39% 的 prompt 与 completion token 且保持任务质量,推理开销有界。

正文 · 原文

arXiv:2607.18213v2 Announce Type: replace Abstract: Pruning long context for coding agents has been a vital technology for efficient context management. While existing context pruning methods such as SWE-Pruner realize this by attaching a separate code classifier, we find the agent itself encodes internal representations indicating the relevance of code context when reading tool output. Based on this finding, we propose SWE-Pruner Pro, which prunes tool outputs directly inside the agent. Concretely, a small head turns the agent's own internal representations into a keep-or-prune label for each line, with a length-aware embedding keyed to each tool output's line count. Across two open-weight backbones and four multi-turn benchmarks, SWE-Pruner Pro saves up to 39% of prompt and completion tokens while preserving task quality, with bounded inference overhead. Notably, on MiMo-V2-Flash SWE-Pruner Pro additionally raises the SWE-Bench Verified resolve rate by +3.8% and the long-context Oolong accuracy by +2.2 points.

来源:arXiv (AI + Vision + Imaging) · arxiv.org