Abstract
Parameter-efficient transfer learning (PETL) is an emerging research spot aimed at inexpensively adapting large-scale pre-trained models to downstream tasks. Recent advances have achieved great success in saving storage costs for various pre-trained models by updating a small number of parameters instead of full tuning. However, we notice that most existing PETL methods still incur non-negligible latency during inference. In this paper, we propose a parameter-efficient and computational friendly adapter for giant vision models, called RepAdapter. Specifically, we first prove that common adaptation modules can also be seamlessly integrated into most giant vision models via our structural re-parameterization, thereby achieving zero-cost during inference. We then investigate the sparse design and effective placement of adapter structure, helping our RepAdaper obtain other advantages in terms of parameter efficiency and performance. To validate RepAdapter, we conduct extensive experiments on 27 benchmark datasets of three vision tasks, i.e., image and video classifications and semantic segmentation. Experimental results show the superior performance and efficiency of RepAdapter than the state-of-the-art PETL methods. For instance, RepAdapter outperforms full tuning by +7.2% on average and saves up to 25% training time, 20% GPU memory, and 94.6% storage cost of ViT-B/16 on VTAB-1k. The generalization ability of RepAdapter is also well validated by a bunch of vision models.
Introduction
As vision models scale to billions of parameters (e.g., ViT-G), "full fine-tuning"—updating every weight for every new task—becomes prohibitively expensive in terms of storage and compute. To address this, Parameter-Efficient Transfer Learning (PETL) methods like Adapters, Prompt Tuning, and LoRA have been developed. While these methods successfully reduce storage costs, they often introduce significant inference latency by increasing the depth or width of the computational graph. RepAdapter aims to provide the storage benefits of PETL while maintaining the inference speed of the original frozen backbone.
Methodology
The core innovation of RepAdapter is Structural Re-parameterization (SR). Standard adapters typically include a non-linear activation function (like ReLU) between down-projection and up-projection layers. The authors discovered that for vision tasks, this non-linearity is unnecessary. By removing it, the entire adapter becomes a series of linear transformations that can be mathematically "collapsed" into a single matrix.
During inference, these collapsed weights are merged directly into the pre-trained model's existing projection layers (e.g., Query/Key/Value projections in Attention or weights in a Feed-Forward Network). This results in an architecture at test time that is identical to the original model, achieving zero additional inference latency. Additionally, RepAdapter utilizes a sparse design via group-wise transformations to reduce trainable parameters by 25% and is strategically placed before Multi-Head Attention (MHA) and Feed-Forward Network (FFN) blocks for optimal performance.
Experimental Results
RepAdapter was validated on 27 benchmark datasets, including VTAB-1k, Few-shot ImageNet, and various robustness benchmarks. On VTAB-1k, RepAdapter achieved a state-of-the-art 76.1% average accuracy, outperforming full fine-tuning by 7.2% and surpassing other PETL methods like NOAH and SSF.
Beyond accuracy, the efficiency gains are substantial. While methods like VPT and standard Adapters increase latency by 6% to 22%, RepAdapter maintains 0% latency increase. It also reduces training time by ~25% and GPU memory usage by ~20% compared to full fine-tuning. For a ViT-B/16 model, it requires storing only 0.22M parameters per task—a 94.6% reduction compared to a full fine-tuned model.
Conclusion
RepAdapter demonstrates that high-performance visual adaptation does not require a trade-off with inference speed. By leveraging structural re-parameterization and linear bottlenecks, it achieves superior accuracy and efficiency across diverse vision tasks and architectures. Future work may explore applying these principles to even larger multi-modal foundation models.
Summary updated