Time-, Memory- and Parameter-Efficient Visual Adaptation

Otniel-Bogdan Mercea, Alexey A. Gritsenko, Cordelia Schmid, Anurag Arnab

Introduction

As vision models scale to billions of parameters, adapting these "foundation" models to downstream tasks via full fine-tuning has become computationally prohibitive. While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA or Adapter-tuning reduce the number of trainable parameters, they often fail to address the underlying bottlenecks of training time and memory consumption. This is due to the requirement of backpropagating gradients through the entire frozen backbone to update the small set of trainable weights, necessitating the storage of massive intermediate activations. This paper introduces Low-Rank Side Adaptation (LoSA), a method designed to be efficient across three critical axes: parameters, time, and memory.

The Efficiency Misnomer in PEFT

The authors identify a significant "efficiency misnomer" in current literature: a method with few trainable parameters is not necessarily fast or memory-efficient. For instance, while LoRA significantly reduces parameter count, its training memory footprint remains large because it still requires a full backward pass through the backbone. LoSA addresses this by decoupling the adaptation process from the backbone's internal gradient flow.

Methodology: Low-Rank Side Adaptation

The core of LoSA is a lightweight parallel network—a "side adaptor"—that processes features extracted from the frozen foundation model.

  1. Frozen Backbone: The original model remains 100% frozen. No gradients are computed or propagated through its layers.
  2. Side Network Architecture: LoSA utilizes a series of "Mixer" blocks inspired by MLP-Mixer. These blocks employ low-rank projections to compress and then expand data, alternating between channel mixing and token mixing to capture complex relationships.
  3. Eliminating Backbone Backprop: By completely bypassing the backbone during the backward pass, LoSA eliminates the need to cache massive activations from the foundation model. This leads to a substantial reduction in GPU memory usage and training time.
Comparison of gradient flow and activation caching requirements between full fine-tuning, LoRA, and LoSA. Red circles indicate activations that must be cached for the backward pass, while grey circles can be ignored.

Experimental Evaluation

The authors evaluated LoSA across diverse benchmarks, including VTAB-1K (19 tasks), large-scale image classification (iNaturalist 2018/2021, Places365), and video classification (Kinetics-400). They tested Vision Transformers (ViT) ranging from ViT-B (86M parameters) to the massive ViT-e (4 billion parameters).

Key Results

  • State-of-the-Art Performance: LoSA achieved superior accuracy-parameter trade-offs on VTAB-1K compared to LoRA, AdaptFormer, and NOAH.
  • Efficiency Gains: On the iNaturalist dataset, LoSA demonstrated a 2.35x speedup over LoRA while utilizing significantly less memory and achieving higher accuracy.
  • Extreme Scaling: LoSA enables the adaptation of a 4-billion-parameter ViT-e model on a single standard V100 GPU (16GB RAM), a feat impossible for traditional fine-tuning or standard LoRA without complex model parallelism.
Performance comparison on iNaturalist 2021 showing LoSA's superior accuracy-efficiency trade-off across multiple metrics including training time, memory, and parameters.

Conclusion

LoSA represents a significant step toward "democratized" scaling of large vision models. By decoupling the side network from the backbone's backward pass, it achieves Pareto optimality across accuracy, time, and memory. While it introduces a negligible inference overhead, its ability to adapt multi-billion parameter models on consumer-grade hardware opens new avenues for specialized AI applications.

Summary updated

BibTeX
@inproceedings{mercea2024time,
  author = {Otniel-Bogdan Mercea and Alexey A. Gritsenko and Cordelia Schmid and Anurag Arnab},
  title = {{Time-, Memory- and Parameter-Efficient Visual Adaptation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure