Sparse-Tuning: Adapting Vision Transformers with Efficient Fine-tuning and Inference
Ting Liu, Xuyang Liu, Liangtao Shi, Zunnan Xu, Yue Hu, Siteng Huang, Yi Xin, Bineng Zhong, Donglin Wang
TL;DR
Sparse-Tuning addresses the dual challenge of tuning and running large Vision Transformers efficiently by coupling token sparsification with Dense Adapters that propagate shallow-layer information to deeper layers. This design mitigates information loss from sparsified tokens and preserves accuracy while dramatically reducing computation and memory usage, achieving state-of-the-art performance on VTAB-1K and strong results on complete image/video datasets. The method scales to larger ViT models and generalizes to segmentation tasks, indicating broad practical impact for deploying large ViTs in resource-constrained settings. The work highlights a robust path toward jointly optimizing training efficiency and inference efficiency for vision transformers.
Abstract
Parameter-efficient fine-tuning (PEFT) has emerged as a popular solution for adapting pre-trained Vision Transformer (ViT) models to downstream applications by updating only a small subset of parameters. While current PEFT methods have achieved fine-tuning efficiency, they overlook the efficiency of computation and GPU memory during inference, falling short of practical requirements. To address this limitation, we propose Sparse-Tuning, an efficient and effective framework that leverages popular token sparsification (TS) techniques to reduce information redundancy in images and videos, thereby significantly improving computational and memory efficiency. However, TS often compromises performance due to inevitable information loss. To address this limitation, we further introduce Dense Adapters (DA) to compensate for the information losses incurred by token sparsification. DA integrates comprehensive token information from shallow layers into the retained tokens of deeper layers, ensuring minimal performance degradation. Through the integration of TS techniques and DA, Sparse-Tuning achieves a significant reduction in computation and memory overhead while maintaining performance. Empirical results on VTAB-1K, three image datasets, and two video datasets show that Sparse-Tuning reduces GFLOPs to 66\% of the original ViT-B while achieving state-of-the-art performance compared to full fine-tuning and other PEFT baselines.
