Efficient Adaptation of Pre-trained Vision Transformer via Householder Transformation

Wei Dong, Yuan Sun, Yiting Yang, Xing Zhang, Zhijun Lin, Qingsen Yan, Haokui Zhang, Peng Wang, Hengtao Shen

TL;DR

The paper introduces the Householder Transformation-based Adaptor (HTA), a novel parameter-efficient fine-tuning (PEFT) method for Vision Transformers inspired by Singular Value Decomposition (SVD). By leveraging parameter-light Householder transformations to mimic unitary matrices, HTA allows different layers to adaptively learn varying ranks, achieving state-of-the-art performance on downstream vision tasks with significantly fewer parameters than existing methods.

What Problem Does This Paper Address?

Fine-tuning massive pre-trained Vision Transformers (ViTs) for specific downstream tasks is computationally expensive and memory-intensive. Parameter-Efficient Fine-Tuning (PEFT) methods, such as LoRA and Adapters, solve this by freezing the base model parameters and only learning small, low-rank adaptation matrices.

However, standard PEFT methods typically enforce a fixed bottleneck dimension (rank) across all layers of the network. This rigid design ignores the fact that different layers in a transformer capture different levels of feature abstraction and therefore require varying degrees of adaptation flexibility. To fix this, researchers usually have to empirically guess a balanced bottleneck size, sacrificing either layer-specific optimization or parameter efficiency.

Methods

The authors propose a new architecture called the Householder Transformation-based Adaptor (HTA), drawing a clever parallel to Singular Value Decomposition (SVD). SVD mathematically decomposes any matrix into three parts: a left unitary matrix (rotation), a diagonal matrix (scaling), and a right unitary matrix (rotation).

Instead of learning full, heavy orthogonal matrices to represent these rotations, HTA constructs them using Householder transformations. A Householder matrix can generate an orthogonal reflection space using just a single learnable vector ($H = I - \vec{v}\vec{v}^\top$), making it incredibly parameter-efficient.

The full HTA adaptation matrix is formulated as: $$W_{\text{HTA}} = H_{\text{left}} D_H H_{\text{right}}$$

By learning the diagonal scaling values ($D_H$) adaptively for each layer, the model can flexibly alter the effective rank from layer to layer. Because a single-vector Householder matrix has limited representation capacity on its own, the authors also incorporate a standard rank-1 low-rank matrix alongside it to enhance robustness. As shown in Figure 1, this hybrid design can be seamlessly integrated into both LoRA-style and Adapter-style fine-tuning frameworks.

Figure 1: Underpinned by (a) LoRA [1] and (c) Adapter [22], we utilize Householder matrix to construct Householder transformation-based adaptations, involving (b) LoRA-based method with HTA and (d) Adapter-based method with HTA.

Datasets

The authors evaluated HTA across 24 standard image classification datasets spanning two major benchmarks:

  • VTAB-1k (Visual Task Adaptation Benchmark): Comprises 19 diverse classification tasks categorized into Natural (standard camera images), Specialized (medical and remote sensing data), and Structured (synthetic/simulated environments). Each task is strictly limited to 1,000 training samples.
  • FGVC (Fine-Grained Visual Classification): Includes 5 challenging datasets focused on subcategory distinctions: CUB-200-2011 (birds), NABirds, Oxford Flowers, Stanford Dogs, and Stanford Cars.

Key Insights and Ideas

  • SVD as a PEFT Blueprint: Viewing low-rank adaptation through the lens of SVD provides a principled way to decouple structural rotation from scaling, allowing finer control over matrix rank properties.
  • Vectors Instead of Matrices: Generating orthogonal matrices via Householder reflections allows the model to maintain strict mathematical constraints (orthogonality) while drastically cutting parameter counts by optimizing vectors instead of full matrices.
  • Dynamic Rank Allocation: Instead of manually tuning different ranks for different layers, learning layer-wise diagonal coefficients allows the network to implicitly self-assign the optimal rank required for each specific transformer block.

Key Results

HTA demonstrated an excellent balance between accuracy and parameter efficiency across multiple backbones (ViT-Base, ViT-Large, and Swin Transformer):

  • VTAB-1k Performance: Using a standard ViT-B backbone, HTA achieved a mean accuracy of 74.7% (improving to 75.7% with an AugReg-enhanced backbone). It outperformed the previous state-of-the-art method, RLRR, while reducing the number of tunable parameters by one-third (0.22M vs 0.33M).
  • Scalability: On a larger ViT-Large backbone, HTA maintained its edge, scoring a top-performing 75.4% mean accuracy on VTAB-1k with only 0.54M parameters.
  • Hierarchical ViTs: When tested on the Swin Transformer, HTA achieved a 1.2% overall accuracy improvement over previous methods while cutting the required parameters nearly in half (0.23M vs 0.41M).

Limitations and Future Work

The primary limitation acknowledged by the authors stems from the simplicity of the Householder transformation itself. Because each Householder matrix is derived from a single vector, it cannot serve as a fully general orthogonal basis for complex, high-dimensional spaces.

To counteract this limitation and ensure robust performance, the authors had to add a rank-1 adaptation matrix to the architecture. They note that this hybrid addition "detracts from the elegance of the proposed method." Future work will focus on exploring alternative strategies to eliminate the need for this extra additive matrix entirely while preserving HTA's efficiency and performance.

Summary updated

BibTeX
@inproceedings{dong2024efficient,
  author = {Wei Dong and Yuan Sun and Yiting Yang and Xing Zhang and Zhijun Lin and Qingsen Yan and Haokui Zhang and Peng Wang and Yang Yang and Hengtao Shen},
  title = {{Efficient Adaptation of Pre-trained Vision Transformer via Householder Transformation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=BOtjMacACI},
}
Figure