ViT-AdaLA: Adapting Vision Transformers with Linear Attention
Yifan Li, Seunghyun Yoon, Viet Lai, Franck Dernoncourt, Jason Kuen, Yu Kong, Trung Bui
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Interpretability & Model Adaptation › Transformer Attention Theory · Type: new method · Keywords: Vision Transformers, linear attention, attention alignment, feature alignment, supervised fine-tuning
Areas: Multimodal › Multimodal Visual Reasoning › Sparse Vision; Model Architectures & Sequence Modeling › Language Model Architectures › Efficient Attention
Summary
ViT-AdaLA is a three-stage framework that adapts Vision Transformers with linear attention by aligning attention, features, and fine-tuning for downstream tasks.
Explained to a 5-year-old
We have a big picture model that works like a brain for pictures but is slow because it looks at every picture part twice. We make a faster version of this model that looks at each part only a little. We teach this fast model how to look like the slow model, and then we help it learn new things like recognizing animals or objects. This helps us use the fast model on many picture tasks without needing a lot of computer power.
Explained to a 5-year-old, longer
Big picture models for pictures are very smart but they take a long time because they compare every part of the picture with every other part. This makes them hard to use when there are many picture parts, like long sequences. Some researchers tried to make a faster version of this model that only looks at each part a little, but those fast versions either need a lot of training or don't keep the smarts of the original. The paper comes up with a new plan to help the fast model learn from the smart model without starting from scratch. First, they make the fast model’s way of looking at parts match the original model’s way of looking. Then they adjust the fast model’s inner feelings (features) so they are similar to the original model’s feelings. Finally, they let the fast model practice on specific tasks like recognizing objects or drawing boundaries. This three-step plan lets the fast model work well on many picture tasks while using less computer power. It also works for different kinds of picture jobs, not just one. The result is a faster, more useful picture model that can be used on phones or small computers. It helps people who want to build picture apps without waiting for huge training times. Overall, it makes picture AI easier and quicker for everyone.
For a technical reader
ViT-AdaLA addresses the quadratic memory cost of standard Vision Transformers by converting them to use linear attention. It does this in three stages: first aligning the linear attention maps with the original softmax attention, then matching the feature representations of the linearized model to a frozen pretrained Vision Transformer, and finally fine-tuning on downstream tasks. This pipeline lets the model retain the knowledge of the large pretrained model while operating with O(N) complexity instead of O(N²). Experiments on image classification and segmentation show that the adapted models outperform existing linear-attention baselines while requiring far less training resources. The result is a drop-in replacement for ViTs that can be deployed on devices with limited GPU memory.
Problem
Vision Transformers (ViTs) have quadratic computational complexity, limiting scalability to long sequences. Existing linear attention methods for ViTs either require training from scratch with large resources or do not transfer well from large language model linearizations.
Method
The approach aligns vanilla linear attention with original softmax attention in each block, then fine-tunes the linearized ViT to match the final-layer features of a frozen softmax VFM teacher, and finally transfers the adapted knowledge to downstream tasks via supervised fine-tuning.
Results
The approach shows superior performance over state-of-the-art linear attention methods on classification and segmentation tasks.
Contributions
It introduces a three-stage adaptation framework that aligns attention and features and transfers knowledge from frozen VFMs, enabling efficient linear attention ViTs without extensive training. The method demonstrates broad applicability across multiple vision tasks.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction