Efficient Adaptation of Large Vision Transformer via Adapter Re-Composing

Wei Dong, Dawei Yan, Zhijun Lin, Peng Wang

TL;DR

The authors introduce Adapter Re-Composing (ARC), a parameter-efficient fine-tuning (PEFT) method that shares bottleneck projection matrices across Transformer layers. By learning only small, layer-specific re-scaling coefficients, ARC achieves state-of-the-art adaptation performance on 24 vision tasks with significantly fewer trainable parameters and zero inference overhead.

What Problem Does This Paper Address?

Adapting massive pre-trained models like Vision Transformers (ViTs) to specific downstream tasks is a major bottleneck in modern AI. Full fine-tuning—updating every single parameter—is prohibitively expensive in terms of computation and storage.

Existing Parameter-Efficient Fine-Tuning (PEFT) methods, such as standard Adapters or LoRA, introduce a small set of trainable parameters while keeping the backbone frozen. However, these methods typically scale linearly with the number of layers: the deeper the model, the more parameters you need to train and store. The authors identify a key redundancy: adaptation matrices naturally exhibit low-rank characteristics, suggesting that different layers might be able to share a common "basis" for adaptation rather than learning entirely independent parameters.

Methods

The core of the proposed Adapter Re-Composing (ARC) strategy is a shared bottleneck operation that leverages parameter reusability.

  1. Shared Projections: Unlike standard adapters that use unique weights for every layer, ARC shares a single pair of down-projection ($W_{down}$) and up-projection ($W_{up}$) matrices across all layers of the Transformer.
  2. Symmetric Design: To further compress the model, the authors enforce a symmetric constraint where $W_{up} = (W_{down})^T$. This effectively halves the number of parameters needed for the shared projections.
  3. Layer-Adaptive Re-Composing: To account for the unique needs of different layers, ARC introduces a small, layer-specific diagonal matrix $C^{(l)}$. This matrix contains re-scaling coefficients that "re-compose" the shared projection basis into a layer-adaptive adapter.
  4. Re-parameterization: Because the ARC module is entirely linear, it can be mathematically fused into the original pre-trained weights after training. This means the final model has the exact same architecture and inference speed as the original frozen backbone.
Figure 2: Illustration of the proposed Adapter Re-Composing Method.

Datasets

The researchers evaluated ARC across a comprehensive suite of 24 downstream image classification tasks:

  • FGVC (Fine-Grained Visual Classification): A collection of 5 datasets including CUB-200-2011 (birds), Oxford Flowers, and Stanford Cars.
  • VTAB-1k (Visual Task Adaptation Benchmark): A rigorous benchmark consisting of 19 diverse tasks divided into three groups: Natural (standard photos), Specialized (medical/satellite imagery), and Structured (synthetic scenes, depth prediction).

Key Insights and Ideas

  • Natural Sparsity: The authors analyzed adaptation matrices learned without bottleneck constraints and found that their singular values follow a power-law distribution, with most being near zero. This empirical finding (seen in Figure 3 below) provides the theoretical justification for using a shared, low-rank basis across layers.
  • Decoupled Scaling: By sharing the heavy projection matrices, the total number of trainable parameters no longer explodes as models get deeper. The only part that scales with depth is the tiny diagonal re-scaling matrix.
  • Strategic Positioning: The study found that placing adapters before the Multi-Head Attention (MHA) and Feed-Forward Network (FFN) blocks yields better performance than the common practice of placing them after.
Figure 3: Singular value distribution of adaptation matrices without the bottleneck structure. Two adaptation matrices of both MHA and FFN blocks are fine-tuned on the DTD downstream task. The X-axis represents the singular values, while the Y-axis represents the count of singular values within specific ranges. Complete visualization is available in the appendix.

Key Results

ARC demonstrates a superior balance between accuracy and parameter efficiency compared to popular methods like LoRA, VPT, and SSF.

  • Superior Accuracy: On the FGVC benchmark, ARC achieved a mean accuracy of 90.1%, outperforming LoRA (89.5%) and VPT-Deep (89.1%) while using significantly fewer parameters (0.25M vs. 0.44M and 0.85M, respectively).
  • Benchmark Performance: On the challenging VTAB-1k suite, ARC reached a mean total accuracy of 73.4% with only 0.13M additional parameters.
  • Scalability: The method proved effective across various architectures, including ViT-Base, Large, Huge, and the hierarchical Swin Transformer.
  • Efficiency: Because of re-parameterization, ARC introduces zero extra latency during inference, making it ideal for real-world deployment.
Table 1: Comparison of ARC with baselines and state-of-the-art efficient adaptation methods on five FGVC datasets. All methods utilize ViT-B/16 pre-trained on ImageNet-21k as the backbone. “SSF*” denotes the performance reported in the original SSF paper [9], which incorporates advanced data augmentations like cutmix [39], mixup [40], and regularization techniques such as label smooth- ing [41]. To ensure a fair comparison, we reproduced the SSF method using the code provided by [9], while employing the same basic data augmentations as our approach, and we denote SSF’s reported performance as “SSF*” and ARC’s performance augmented with SSF’s data augmentation as “ARC*”. The bold font shows the best accuracy of all methods and the underline font shows the second best accuracy.

Limitations and Future Work

The primary limitation acknowledged is the assumption of constant dimensionality. The current parameter-sharing scheme requires all layers to have the same hidden dimension. While this holds for standard ViTs, hierarchical models like Swin Transformers change dimensions between stages. Currently, ARC handles this by sharing parameters only within each stage.

Future research could explore more flexible sharing mechanisms that allow a single basis to be reused across layers with different dimensionalities, further pushing the boundaries of model compression.

Summary updated

Abstract

The advent of high-capacity pre-trained models has revolutionized problem-solving in computer vision, shifting the focus from training task-specific models to adapting pre-trained models. Consequently, effectively adapting large pre-trained models to downstream tasks in an efficient manner has become a prominent research area. Existing solutions primarily concentrate on designing lightweight adapters and their interaction with pre-trained models, with the goal of minimizing the number of parameters requiring updates. In this study, we propose a novel Adapter Re-Composing (ARC) strategy that addresses efficient pre-trained model adaptation from a fresh perspective. Our approach considers the reusability of adaptation parameters and introduces a parameter-sharing scheme. Specifically, we leverage symmetric down-/up-projections to construct bottleneck operations, which are shared across layers. By learning low-dimensional re-scaling coefficients, we can effectively re-compose layer-adaptive adapters. This parameter-sharing strategy in adapter design allows us to significantly reduce the number of new parameters while maintaining satisfactory performance, thereby offering a promising approach to compress the adaptation cost. We conduct experiments on 24 downstream image classification tasks using various Vision Transformer variants to evaluate our method. The results demonstrate that our approach achieves compelling transfer learning performance with a reduced parameter count. Our code is available at \href{https://github.com/DavidYanAnDe/ARC}{https://github.com/DavidYanAnDe/ARC}.
BibTeX
@inproceedings{dong2023efficient,
  author = {Wei Dong and Dawei Yan and Zhijun Lin and Peng Wang},
  title = {{Efficient Adaptation of Large Vision Transformer via Adapter Re-Composing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=VbYdaK8ek0},
}
Figure