以测试时回归重新思考序列压缩

·

研究论文 · 2026/10/23

序列压缩是高效语言和多模态模型中的基本操作和关键信息瓶颈,但主流的池化或学习投影方法表现不佳。本文从测试时回归的角度重新审视序列压缩:输入令牌定义了一个回归问题,其拟合系数构成压缩表示。重要的是,回归问题通过反向传播端到端学习,而其系数在前向传播中高效地以闭式解计算。这引出了TTR-Compressor,一种替代传统池化和投影压缩的通用方法。我们在块稀疏注意力中作为压缩器、在多模态大语言模型中作为视觉令牌合并器评估TTR-Compressor。在块稀疏注意力上,TTR-Compressor大幅提升了RULER性能,优于基于注意力的压缩器。在视觉令牌合并上,它持续优于标准MLP合并器,并以少55.6%的视觉令牌达到相当性能。这些结果确立了测试时回归作为高效语言和多模态模型中序列压缩的有效原语。

该论文提出了一种新颖的序列压缩方法,通过测试时回归实现高效压缩,在语言和多模态任务上均取得显著效果,为高效模型设计提供了新思路。

Sequence compression is a fundamental operation and a critical information bottleneck in efficient language and multimodal models, and yet prevailing approaches based on pooling or learned projections remain underperforming. We revisit sequence compression through the lens of test-time regression: input tokens define a regression problem whose fitted coefficients form the compressed representation. Importantly, the regression problem is learned end-to-end via backpropagation, while its coefficients are computed efficiently in closed form during the forward pass. This leads to TTR-Compressor, a general alternative to conventional pooling and projection-based compression. We evaluate TTR-Compressor as the compressor for block-wise sparse attention and the visual token merger for multimodal large language models. On block-wise sparse attention, TTR-Compressor improves RULER performance over attention-based compressors by a large margin. For visual token merging, it consistently outperforms the standard MLP merger and matches its performance with 55.6% fewer visual tokens. These results establish test-time regression as an effective primitive for sequence compression in efficient language and multimodal models.

阅读原文

参与讨论