arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.41291cs.CLcs.AIcs.LGcs.NE
收藏

面向长 horizon 大语言模型智能体的基于智能体软 token 的模型内上下文压缩

In-Model Context Compression with Agentic Soft Tokens for Long-Horizon LLM Agents

Xuning He, Kai Fan, Runyu Zhang, Binghuan Wang, Yuxiang Zhang, Xue Jiang, Yihong Dong

AI总结:

提出无训练的 ASTC 方法,利用模型原生循环动态和 GDN-注意力,以智能体软 token 压缩长 horizon 上下文,准确率相当且注意力对数量减少 50.68%,优于训练压缩器。

摘要:

长 horizon 大语言模型智能体在解决复杂且持续的任务中发挥着重要作用,其交互上下文不断增长。然而,这些累积的上下文会大幅提升计算成本,并模糊与决策相关的关键证据。现有方法通常训练外部压缩器或上下文管理智能体,将上下文重写为更短的硬 token 序列,但这种外部选择可能与大语言模型不断演化的表示不一致,且必然存在信息损失。本文提出了智能体软 token 压缩(ASTC),一种在大语言模型智能体内部使用软 token 的无训练压缩方法,用于长 horizon 任务。具体而言,ASTC 利用模型原生的循环动态来确定已吸收的信息,借助常用的混合门控 Delta 网络(GDN)-注意力机制,将该信息作为智能体软 token 向前传递,同时保留精确值作为硬 token。生成的紧凑序列减少了后续层的计算,并产生可复用的 KV 缓存,在智能体的整个轨迹中扩展了计算节省。在长 horizon 任务上的大量实验表明,ASTC 的准确率与未压缩的智能体相当或更高,同时端到端注意力对数量减少了 50.68%,而训练后的压缩器在每个成功任务上需要的注意力对数量是 ASTC 的 15.4 至 103.7 倍。这些发现表明,智能体软 token 是一种模型原生的方式,可在任务表示演化时将已吸收的上下文向前传递。

英文摘要:

Long-horizon LLM agents play an important role in solving complex and sustained tasks, with ever-growing interaction contexts. However, these accumulated contexts will raise substantial computational cost and obscure key decision-relevant evidence. Existing methods typically train external compressors or context-management agents to rewrite context as shorter hard-token sequences, but such external selection may not align with the LLM's evolving representation and is necessarily lossy. In this paper, we introduce Agentic Soft-Token Compression (ASTC), a training-free compression method using soft tokens within LLM agent for long-horizon tasks. Specifically, ASTC uses the model's native recurrent dynamics to determine the already absorbed information, leveraging the commonly-used hybrid Gated Delta Network (GDN)-attention. It then carries this information forward as agentic soft tokens while retaining exact values as hard tokens. The resulting compact sequence reduces later-layer computation and yields reusable KV caches, extending the savings across the agent's trajectory. Extensive experiments on long-horizon tasks show that ASTC matches or exceeds the uncompressed agent's accuracy with up to 59.84% fewer end-to-end Attention Pairs, while trained compressors require 12.3 to 194.9 times more Attention Pairs per successful task. These findings highlight agentic soft tokens as a model-native way to carry absorbed context forward as the task representation evolves.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑