Serial Low-rank Adaptation of Vision Transformer

Houqiang Zhong, Shaocheng Shen, Ke Cai, Zhenglong Wu, Jiangchao Yao, Yuan Cheng, Xuefei Li, Xiaoyun Zhang, Li Song, Qiang Hu · DOI

Abstract

Fine-tuning large pre-trained vision foundation models in a parameter-efficient manner is critical for downstream vision tasks, considering the practical constraints of computational and storage costs. Low-rank adaptation (LoRA) is a well-established technique in this domain, achieving impressive efficiency by reducing the parameter space to a low-rank form. However, developing more advanced low-rank adaptation methods to reduce parameters and memory requirements remains a significant challenge in resource-constrained application scenarios. In this study, we propose Serial LoRA, a novel LoRA variant that introduces a shared low-rank matrix serially composite with the attention mechanism. Such a design extracts the underlying commonality of parameters in adaptation, significantly reducing redundancy. Notably, Serial LoRA uses only 1/4 parameters of LoRA but achieves comparable performance in most cases. We conduct extensive experiments on a range of vision foundation models with the transformer structure, and the results confirm the consistent superiority of our method.

Introduction

The emergence of massive "foundation models" like the Segment Anything Model (SAM) and Stable Diffusion has revolutionized computer vision. However, adapting these models to specific downstream tasks remains a challenge due to the immense computational and storage costs associated with full fine-tuning. Parameter-Efficient Fine-Tuning (PEFT) methods, particularly Low-Rank Adaptation (LoRA), have become the industry standard for addressing this. LoRA works by freezing the pre-trained weights and training only a small set of low-rank matrices.

Despite its success, standard LoRA contains inherent redundancies. In a Vision Transformer (ViT) architecture, LoRA typically applies independent trainable matrices to the Query (Q), Key (K), and Value (V) projections of every attention head. This parallel approach fails to exploit the structural commonalities between these projections, leading to unnecessary parameter overhead. Serial LoRA is introduced to address these inefficiencies, providing a more streamlined adaptation strategy that respects the architectural nuances of the transformer.

Methodology: The Serial Approach

From Parallel to Serial

In standard LoRA, adaptation is performed in parallel to the pre-trained weight matrix ($W_0$). The output is calculated as $W_0x + BAx$, where $A$ and $B$ are the low-rank decomposition matrices. In this setup, each projection (Q, K, V) requires its own unique pair of $A$ and $B$ matrices.

Serial LoRA shifts this paradigm by introducing a shared low-rank transformation $(I + B_sA_s)$ that is applied serially to the input before it interacts with the pre-trained weights. For a query $q$, the operation is redefined as:

$$\tilde{q} = W_q(I + B_sA_s)x$$

Parameter Sharing

The defining characteristic of Serial LoRA is that the same pair of low-rank matrices ($A_s, B_s$) is shared across the Q, K, and V projections. By serially composing the adaptation with the existing weights, the model extracts underlying parameter commonalities across different feature subspaces. This effectively collapses four sets of parameters (Q, K, V, and often the Output projection) into one, resulting in a consistent 75% reduction in trainable parameters compared to standard LoRA.

Experimental Evaluation

The efficacy of Serial LoRA was evaluated across 24 datasets spanning three major vision domains: image generation, image classification, and semantic segmentation.

Image Generation

Using Stable Diffusion 3.0, the authors tested Serial LoRA on various stylistic datasets, including Barbie, Cyberpunk, Art Nouveau, and Impressionism. Serial LoRA maintained or improved image quality—as measured by FID and CLIP-Score—while utilizing significantly fewer parameters (e.g., reducing trainable parameters from 19.32M to 4.83M).

Image Classification

Experiments with CLIP (ViT-B/16) focused on few-shot learning across datasets such as Caltech101, Food 101, EuroSAT, and Oxford Pets. In 1-shot learning scenarios, Serial LoRA frequently outperformed standard LoRA. For instance, on the Oxford Pets dataset, Serial LoRA achieved an accuracy of 90.52% compared to 87.87% for standard LoRA.

Semantic Segmentation

Using the Segment Anything Model (SAM) with a ViT-B backbone, Serial LoRA was tested on specialized tasks like flood detection (FloodNet) and food segmentation (FoodSeg103). Serial LoRA achieved superior DICE scores (where lower is better in the authors' specific metric) across almost all few-shot categories, demonstrating its robustness for industrial and medical imaging applications.

Discussion and Key Insights

Feature Preservation and Robustness

Through Singular Value Analysis, the researchers observed that the weights in Serial LoRA decay more gradually than those in standard LoRA. This suggests that Serial LoRA retains a broader spectrum of the model's original representation power, leading to more robust feature extraction. This structural alignment suggests that Q, K, and V projections share a unified "adaptation space" that Serial LoRA captures more efficiently.

Compatibility and Scalability

Serial LoRA is not intended to be an isolated solution; it is compatible with other PEFT enhancements. For example, combining Serial LoRA with techniques like LoRA+ (which utilizes different learning rates for $A$ and $B$ matrices) can yield further performance gains. This flexibility makes it a viable candidate for deployment in resource-constrained environments, such as mobile or edge devices, where memory and storage are at a premium.

Conclusion

Serial LoRA represents a significant step forward in parameter-efficient fine-tuning for Vision Transformers. By replacing independent parallel matrices with a shared serial transformation, it achieves a 4x reduction in parameters without sacrificing performance. While the current study focuses on vision tasks, the underlying principles of serial adaptation and parameter sharing offer a promising framework for future exploration in Large Language Models (LLMs) and other transformer-based architectures.

Summary updated

BibTeX
@inproceedings{zhong2025serial,
  author = {Houqiang Zhong and Shaocheng Shen and Ke Cai and Zhenglong Wu and Jiangchao Yao and Yuan Cheng and Xuefei Li and Xiaoyun Zhang and Li Song and Qiang Hu},
  title = {{Serial Low-rank Adaptation of Vision Transformer}},
  booktitle = {ICME},
  year = {2025},
  doi = {10.1109/icme59968.2025.11209194},
}
Figure