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

ViT-AdaLA:基于线性注意力的视觉变换器适应

ViT-AdaLA: Adapting Vision Transformers with Linear Attention

Adobe Research(Adobe研究院);Michigan State University, East Lansing, MI, USA.(密歇根州立大学,东兰辛,MI,美国)

Yifan Li, Seunghyun Yoon, Viet Dac Lai, Franck Dernoncourt, Jason Kuen, Yu Kong, Trung Bui

AI总结:

本文提出ViT-AdaLA框架,通过注意力对齐、特征对齐和监督微调三阶段,有效将视觉基础模型的先验知识迁移至线性注意力ViT,提升长序列处理能力。

摘要:

基于视觉变换器(ViT)的视觉基础模型(VFMs)在多样视觉任务中表现出色,但二次复杂度限制了长序列扩展能力。现有线性注意力方法通常需大量计算资源,而针对大语言模型解码器的线性化方法难以迁移至ViT。为此,本文提出ViT-AdaLA,通过注意力对齐、特征对齐和监督微调三阶段,有效将VFMs的先验知识迁移至线性注意力ViT。在注意力对齐阶段,将线性注意力与原始softmax注意力对齐以近似softmax行为,但残差误差会累积。通过微调线性化ViT,使其最终层特征与冻结的softmax VFM教师对齐。最后通过监督微调将迁移的先验知识应用于下游任务。在分类和分割任务上的广泛实验表明,ViT-AdaLA在各种最新线性注意力模型上表现出色。

英文摘要:

Vision Transformers (ViTs) based vision foundation models (VFMs) have achieved remarkable performance across diverse vision tasks, but suffer from quadratic complexity that limits scalability to long sequences. Existing linear attention approaches for ViTs are typically trained from scratch, requiring substantial computational resources, while linearization-based methods developed for large language model decoders do not transfer well to ViTs. To address these challenges, we propose ViT-AdaLA, a novel framework for effectively adapting and transferring prior knowledge from VFMs to linear attention ViTs. ViT-AdaLA consists of three stages: attention alignment, feature alignment, and supervised fine-tuning. In the attention alignment stage, we align vanilla linear attention with the original softmax-based attention in each block to approximate the behavior of softmax attention. However, residual approximation errors inevitably accumulate across layers. We mitigate this by fine-tuning the linearized ViT to align its final-layer features with a frozen softmax VFM teacher. Finally, the adapted prior knowledge is transferred to downstream tasks through supervised fine-tuning. Extensive experiments on classification and segmentation tasks demonstrate the effectiveness and generality of ViT-AdaLA over various state-of-the-art linear attention counterpart.

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

↑