ViT-AdaLA: Adapting Vision Transformers with Linear Attention
Organizations: Michigan State University, East Lansing, MI, USA. · Adobe Research.
Abstract
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.
Figures & tables
| Backbone | Res. | Params | FLOPS | Peak Mem. | Throughput | Top-1 Acc. | |
|---|---|---|---|---|---|---|---|
| (M) | (G) | (GB) | (imgs/s) | (%) | |||
| Softmax ( Oquab et al., 2024 ) | DINOv2-L | 304.20 | 310.60 | 1.3181 | 36.52 | 86.8 | |
| Hedgehog ( Zhang et al., 2024 ) | DINOv2-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 58.8 | |
| LoLCATS ( Zhang et al., 2025 ) | DINOv2-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 61.6 | |
| Linformer ( Wang et al., 2020 ) | DINOv2-L | 305.77 | 262.19 ↓15.6% | 1.2221 ↓7.3% | 45.41 ↑25.3% | 68.9 | |
| Performer ( Choromanski et al., 2021 ) | DINOv2-L | 304.20 | 265.41 ↓14.6% | 1.2164 ↓7.7% | 36.48 ↑0.1% | 75.2 |
| Backbone | Res. | Params | FLOPS | Peak Mem. | Throughput | mIoU | |
|---|---|---|---|---|---|---|---|
| (M) | (G) | (GB) | (imgs/s) | (%) | |||
| Softmax ( Oquab et al., 2024 ) | DINOv2-L | 304.20 | 310.60 | 1.3181 | 36.52 | 56.73 | |
| Hedgehog ( Zhang et al., 2024 ) | DINOv2-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 22.52 | |
| LoLCATS ( Zhang et al., 2025 ) | DINOv2-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 17.42 | |
| Linformer ( Wang et al., 2020 ) | DINOv2-L | 305.77 | 262.19 ↓15.6% | 1.2221 ↓7.3% | 45.41 ↑25.3% | 18.82 | |
| Performer ( Choromanski et al., 2021 ) | DINOv2-L | 304.20 | 265.41 ↓14.6% | 1.2164 ↓7.7% | 36.48 ↑0.1% | 41.16 |
| Backbone | Res. | Params | FLOPS | Peak Mem. | Throughput | mIoU | |
|---|---|---|---|---|---|---|---|
| (M) | (G) | (GB) | (imgs/s) | (%) | |||
| Softmax ( Oquab et al., 2024 ) | DINOv2-L | 304.20 | 310.60 | 1.3181 | 36.52 | 74.86 | |
| Hedgehog ( Zhang et al., 2024 ) | DINOv2-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 43.97 | |
| LoLCATS ( Zhang et al., 2025 ) | DINOv2-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 34.71 | |
| Linformer ( Wang et al., 2020 ) | DINOv2-L | 305.77 | 262.19 ↓15.6% | 1.2221 ↓7.3% | 45.41 ↑25.3% | 37.24 | |
| Performer ( Choromanski et al., 2021 ) | DINOv2-L | 304.20 | 265.41 ↓14.6% | 1.2164 ↓7.7% | 36.48 ↑0.1% | 43.11 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Stage 1 | Stage 2 | Stage 3 | |||||
| Epochs | 4 | DINOv2 | SigLIP | CLIP | IN-1K | Cls | seg |
| 30 | 10 | 15 | 20 | 10 | 20 | ||
| Batch size | 32 | 16 | 8 | ||||
| Learning rate | 1e-2 | 1e-3 | 1e-4 | ||||
| Weight decay | 0.05 | ||||||
| Learning schedule | fixed | Polynomial (decay factor of 0.9) | |||||
| Stages | Stage 1 Time (per epoch) | Stage 2 Time (per epoch) |
|---|---|---|
| DINOv2-L | 4min 37s | 10h 48min 46s |
| SigLIP-L | 4min 19s | 11h 22min 15s |
| CLIP-L | 5min 56s | 11h 09min 21s |
| IN1K-L | 4min 34s | 10h 02min 54s |
| Mean | 4min 51s | 10h 55min 41s |
| Method | ADE20K (mIoU) | Cityscapes (mIoU) | IN1K (Acc.) |
|---|---|---|---|
| Softmax (DINOv2-B) | 53.93 | 79.73 | 84.93 |
| ViT-AdaLA (DINOv2-B) | 51.46 | 74.60 | 84.37 |
| Method | ADE20K (mIoU) | Cityscapes (mIoU) | IN1K (Acc.) |
|---|---|---|---|
| Softmax (IN1K-L) | 50.83 | 74.86 | 85.66 |
| ViT-AdaLA (IN1K-L) | 49.75 | 72.40 | 84.23 |
| Vanilla Linear Attention (train from scratch, IN1K-L) | 25.80 | 45.09 | 65.72 |
| Method | Resolution | Accuracy (IN1K) | mIoU (ADE20K) |
|---|---|---|---|
| CLIP-L (tune all) | 512 512 | 85.5 | 42.85 |
| CLIP-L (only tune QKV) | 512 512 | 82.5 | 35.41 |
| DINOv2-L (tune all) | 512 512 | 86.0 | 55.55 |
| DINOv2-L (only tune QKV) | 512 512 | 76.4 | 48.82 |
| Backbone | Res. | Params | FLOPS | Peak Mem. | Throughput | Top-1 Acc. | |
|---|---|---|---|---|---|---|---|
| (M) | (G) | (GB) | (imgs/s) | (%) | |||
| Softmax ( Oquab et al., 2024 ) | CLIP-L | 304.20 | 310.60 | 1.3181 | 36.52 | 86.8 | |
| Hedgehog ( Zhang et al., 2024 ) | CLIP-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 67.4 | |
| LoLCATS ( Zhang et al., 2025 ) | CLIP-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 67.21 | |
| Linformer ( Wang et al., 2020 ) | CLIP-L | 305.77 | 262.19 ↓15.6% | 1.2221 ↓7.3% | 45.41 ↑25.3% | 56.8 | |
| Performer ( Choromanski et al., 2021 ) | CLIP-L | 304.20 | 265.41 ↓14.6% | 1.2164 ↓7.7% | 36.48 ↑0.1% | 69.9 |
| Backbone | Res. | Params | FLOPS | Peak Mem. | Throughput | mIoU | |
|---|---|---|---|---|---|---|---|
| (M) | (G) | (GB) | (imgs/s) | (%) | |||
| Softmax ( Oquab et al., 2024 ) | IN1K ViT-L | 304.15 | 310.60 | 1.3181 | 36.52 | 65.11 | |
| Hedgehog ( Zhang et al., 2024 ) | IN1K ViT-L | 305.72 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 37.69 | |
| LoLCATS ( Zhang et al., 2025 ) | IN1K ViT-L | 305.72 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 25.04 | |
| Linformer ( Wang et al., 2020 ) | IN1K ViT-L | 305.72 | 262.19 ↓15.6% | 1.2221 ↓7.3% | 45.41 ↑25.3% | 17.30 | |
| Performer ( Choromanski et al., 2021 ) | IN1K ViT-L | 304.15 | 265.41 ↓14.6% | 1.2164 ↓7.7% | 36.48 ↑0.1% | 39.44 |
| Backbone | Res. | Params | FLOPS | Peak Mem. | Throughput | mIoU | |
|---|---|---|---|---|---|---|---|
| (M) | (G) | (GB) | (imgs/s) | (%) | |||
| Softmax ( Oquab et al., 2024 ) | IN1K ViT-L | 304.20 | 310.60 | 1.3181 | 36.52 | 50.83 | |
| Hedgehog ( Zhang et al., 2024 ) | IN1K ViT-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 25.15 | |
| LoLCATS ( Zhang et al., 2025 ) | IN1K ViT-L | 305.77 | 265.41 ↓14.5% | 1.2221 ↓7.3% | 37.44 ↑2.5% | 20.17 | |
| Linformer ( Wang et al., 2020 ) | IN1K ViT-L | 305.77 | 262.19 ↓15.6% | 1.2221 ↓7.3% | 45.41 ↑25.3% | 11.49 | |
| Performer ( Choromanski et al., 2021 ) | IN1K ViT-L | 304.20 | 265.41 ↓14.6% | 1.2164 ↓7.7% | 36.48 ↑0.1% | 31.01 |