arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.19870cs.CV
收藏

ApET:基于近似误差的令牌压缩用于高效的视觉语言模型

ApET: Approximation-Error Guided Token Compression for Efficient VLMs

Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究所);Peng Cheng Laboratory(鹏城实验室);University of Chinese Academy of Sciences(中国科学院大学);Harbin Institute of Technology(哈尔滨工业大学);Peking University(北京大学)

Qiankun Ma, Ziyao Zhang, Haofei Wang, Jie Chen, Zhen Song, Hairong Zheng

AI总结:

ApET通过近似误差指导的令牌压缩,在不使用注意力机制的情况下高效压缩视觉语言模型的令牌预算,提升推理效率。

摘要:

最近的视觉-语言模型(VLMs)已展示了显著的多模态理解能力,但冗余的视觉令牌会带来巨大的计算开销并降低推理效率。先前的研究通常依赖[CLS]注意力或文本-视觉交叉注意力来识别并丢弃冗余的视觉令牌。尽管有令人满意的成果,但这些解决方案容易引入位置偏差,并且更关键的是,它们与高效的注意力内核如FlashAttention不兼容,限制了它们在VLM加速中的实际部署。在本文中,我们摆脱了注意力依赖,从信息论的角度重新审视视觉令牌压缩,旨在在不涉及任何注意力的情况下最大限度地保留视觉信息。我们提出了ApET,一种基于近似误差的令牌压缩框架。ApET首先通过线性近似用少量基令牌重建原始视觉令牌,然后利用近似误差来识别并丢弃最不 informative 的令牌。在多个VLM和基准上的广泛实验表明,ApET在图像理解任务中保留了95.2%的原始性能,甚至在视频理解任务中达到了100.4%的性能,同时将令牌预算压缩了88.9%和87.5%。得益于其无注意力设计,ApET无缝集成到FlashAttention中,从而进一步加速推理,并使VLM部署更加实用。代码可在https://github.com/MaQianKun0/ApET上获得。

英文摘要:

Recent Vision-Language Models (VLMs) have demonstrated remarkable multimodal understanding capabilities, yet the redundant visual tokens incur prohibitive computational overhead and degrade inference efficiency. Prior studies typically relies on [CLS] attention or text-vision cross-attention to identify and discard redundant visual tokens. Despite promising results, such solutions are prone to introduce positional bias and, more critically, are incompatible with efficient attention kernels such as FlashAttention, limiting their practical deployment for VLM acceleration. In this paper, we step away from attention dependencies and revisit visual token compression from an information-theoretic perspective, aiming to maximally preserve visual information without any attention involvement. We present ApET, an Approximation-Error guided Token compression framework. ApET first reconstructs the original visual tokens with a small set of basis tokens via linear approximation, then leverages the approximation error to identify and drop the least informative tokens. Extensive experiments across multiple VLMs and benchmarks demonstrate that ApET retains 95.2% of the original performance on image-understanding tasks and even attains 100.4% on video-understanding tasks, while compressing the token budgets by 88.9% and 87.5%, respectively. Thanks to its attention-free design, ApET seamlessly integrates with FlashAttention, enabling further inference acceleration and making VLM deployment more practical. Code is available at https://github.com/MaQianKun0/ApET.

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

↑