arXiv:2604.19572cs.CL2026-04被引 6

让终端智能体自动压缩无用输出,提升长流程任务的效率和准确率。

A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compression

论文配图:A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compression
图 1 · 摘自论文原文
  • 通过自演化机制从交互中自动提炼压缩规则,动态过滤低价值输出。
  • 在多个基准上实现1%-4%准确率提升,相同消耗下节省2%-3%令牌数。
  • 无需训练、即插即用,适合各类终端智能体,尤其长周期任务场景。

随着终端智能体在长周期多轮任务中规模扩大,瓶颈并非仅限于上下文长度,更在于交互历史中噪声观测的累积。保留原始观测虽可保留环境反馈,但导致上下文饱和与高令牌开销;而粗略压缩又可能丢失后续动作所需的关键信号。由于终端环境在仓库、命令和执行状态间差异巨大,基于启发式或固定提示的压缩方法难以泛化。本文提出TACO——一种即插即用、无需训练、自演化的终端智能体压缩框架。TACO能自动发现、优化并复用结构化压缩规则,实现对低价值终端输出的工作流自适应过滤,同时保留任务相关观测。在TerminalBench(TB 1.0与TB 2.0)及SWE-Bench Lite、CompileBench、DevEval、CRUST-Bench共四个额外基准上的实验表明,TACO在不同智能体架构与主干模型下均显著提升任务性能与令牌效率。在TerminalBench上,强代理模型准确率提升1%-4%,相同令牌预算下准确率提升约2%-3%。在其他终端相关基准上,其在保持或提升任务成功率的同时降低总令牌消耗。结果表明,自演化、工作流自适应的观测压缩是构建更可靠高效长周期终端智能体的有效路径。代码已开源:https://github.com/multimodal-art-projection/TACO。

原文摘要 · Abstract (English)

As terminal agents scale to long-horizon, multi-turn workflows, a key bottleneck is not merely limited context length, but the accumulation of noisy terminal observations in the interaction history. Retaining raw observations preserves useful environment feedback, but also leads to context saturation and high token cost; conversely, naive compression may discard task-critical signals needed for subsequent actions. Because terminal environments are highly heterogeneous across repositories, commands, and execution states, heuristic-based or fixed-prompt compression methods are difficult to generalize. We propose TACO, a plug-and-play, training-free, self-evolving Terminal Agent Compression framework for existing terminal agents. TACO automatically discovers, refines, and reuses structured compression rules from interaction trajectories, enabling workflow-adaptive filtering of low-value terminal outputs while preserving task-relevant observations. Experiments on TerminalBench (TB 1.0 and TB 2.0) and four additional terminal-related benchmarks, including SWE-Bench Lite, CompileBench, DevEval, and CRUST-Bench, show that TACO consistently improves task performance and token efficiency across agent scaffolds and backbone models. On TerminalBench, TACO yields 1%-4% accuracy gains across strong agentic models and improves accuracy by around 2%-3% under the same token budget. On additional terminal-related benchmarks, it reduces total token consumption while maintaining or improving task success rates. These results suggest that self-evolving, workflow-adaptive observation compression is an effective path toward more reliable and efficient long-horizon terminal agents. The code is publicly available at https://github.com/multimodal-art-projection/TACO.

终端智能体自演化压缩长周期任务

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。