Abstract
Adapting large-scale Vision Transformers (ViTs) to downstream tasks typically involves a trade-off between the high computational cost of full fine-tuning and the lower performance of linear probing. We present KAdaptation, a novel method that utilizes Kronecker products and low-rank decomposition to achieve state-of-the-art performance while updating only 0.09% of the model's parameters. Our approach identifies that Attention modules require significantly lower-dimensional updates than MLP modules, allowing for extreme parameter efficiency without sacrificing accuracy or increasing inference latency.
Introduction
As Vision Transformers scale to billions of parameters, traditional fine-tuning becomes increasingly impractical due to the storage and computational overhead of maintaining task-specific model copies. While parameter-efficient fine-tuning (PEFT) methods like Adapters and LoRA have seen success in NLP, their application to vision tasks remains less optimized. This paper addresses the gap by investigating the intrinsic dimensionality of ViT components and proposing a method that balances parameter count, accuracy, and inference speed.
Methodology: Kronecker Adaptation
The authors frame model adaptation as a subspace training problem, focusing on the most impactful directions for performance gain.
Local Intrinsic Dimension (LID)
Analysis of different ViT modules reveals that Attention modules possess a much lower LID than Multi-Layer Perceptron (MLP) modules. Consequently, tuning attention layers yields 90% of full fine-tuning performance with a fraction of the parameters required for MLPs.
KAdaptation Architecture
To update a weight matrix $W$, KAdaptation represents the change ($\Delta W$) as a sum of Kronecker products: $$\Delta W = \sum_{i=1}^n A_i \otimes B_i$$ To further enhance efficiency, "slow weights" ($A_i$) are shared across all Transformer layers, while "fast weights" ($B_i$) are decomposed into low-rank matrices ($u v^\top$).
Crucially, KAdaptation achieves zero added latency during inference. The learned weights can be mathematically merged back into the original pretrained weights, unlike standard bottleneck adapters that require additional forward pass operations.
Experimental Evaluation
The method was evaluated using two primary backbones: CLIP-pretrained ViT-B/32 and Supervised ViT-B/16. The benchmarking suite included:
- Few-shot Learning: 20 image classification datasets from the ELEVATER benchmark, covering general, medical, and satellite imagery.
- Full-shot Learning: 7 standard datasets including CIFAR-10/100, SUN397, and FGVCAircraft.
Key Results and Discussion
KAdaptation demonstrates a superior trade-off between accuracy and parameter efficiency. On the CLIP ViT-B model, it updates only 0.08 million parameters (0.09% of the total).
On the 20-dataset few-shot benchmark, KAdaptation achieved an average accuracy of 68.9%, significantly outperforming LoRA (61.5%), Compacter (62.8%), and standard Adapters (65.1%). The authors also introduce the Performance-Efficiency (PE) metric, which penalizes accuracy based on the log-scale of trainable parameters; KAdaptation consistently achieves the highest PE scores.
Conclusion
KAdaptation provides a highly efficient pathway for adapting large Vision Transformers. By focusing updates on low-intrinsic-dimension modules and utilizing Kronecker-based weight sharing, it surpasses existing PEFT methods in both accuracy and efficiency. Future work will explore its application to object detection, segmentation, and multi-modal tasks such as Visual Question Answering.
Summary updated