SuperLoRA: Parameter-Efficient Unified Adaptation of Multi-Layer Attention Modules

Xiangyu Chen, Jing Liu, Ye Wang, Pu Perry Wang, Matthew Brand, Guanghui Wang, Toshiaki Koike-AkinoarXiv 2024 · DOI

Abstract

SuperLoRA introduces a unified framework for parameter-efficient fine-tuning (PEFT) that significantly reduces the trainable parameter count compared to standard Low-Rank Adaptation (LoRA). By employing a pipeline of weight grouping, fixed random projections, and higher-order tensor folding, SuperLoRA breaks the rigid geometric constraints of individual weight matrices. Experimental results on Vision Transformers and Diffusion models demonstrate that SuperLoRA can achieve 3x to 10x parameter reductions while maintaining competitive accuracy, even enabling effective adaptation with as few as 31 trainable parameters.

Introduction

As neural networks like Vision Transformers (ViT) and Large Language Models (LLMs) scale, full fine-tuning becomes computationally prohibitive. Parameter-Efficient Fine-Tuning (PEFT) methods, notably LoRA, address this by updating only a small subset of "adapter" weights. However, existing methods often treat weight matrices in isolation, limited by the original matrix shapes. SuperLoRA addresses this by treating all model weights as a single parameter pool and utilizing advanced tensor algebra to identify an even smaller "intrinsic dimension" for adaptation.

Methodology: The SuperLoRA Pipeline

SuperLoRA operates as a meta-framework that unifies grouping, projection, and tensor decomposition. The process follows a multi-stage pipeline:

  1. Vectorization and Grouping: Instead of layer-wise adaptation, SuperLoRA concatenates weight updates ($\Delta W$) across multiple layers and partitions them into arbitrary groups, breaking the boundaries of individual matrices.
  2. Fixed Projection ($\mathcal{F}$): A non-trainable "fastfood projection" maps a small set of trainable parameters to a larger space, acting as a "force multiplier" for efficiency.
  3. Folding and Reshaping: Weight updates are reshaped into multi-dimensional tensors (3D, 4D, or 5D), enabling higher-order decompositions.
  4. Tensor Factorization: The framework introduces LoNKr (N-split Kronecker products) and LoRTA (tensor-version LoRA using Tucker decomposition) to represent weight "atoms."
The SuperLoRA pipeline illustrates the flow from weight grouping and fixed projection to tensor folding and factorization.

Experimental Evaluation

The authors evaluated SuperLoRA across two primary domains:

  • Image Classification: Transferring a ViT-base model (pretrained on ImageNet21k) to CIFAR10 and CIFAR100.
  • Image Generation: Domain transfer between SVHN (Street View House Numbers) and MNIST using a classifier-free diffusion model.

Key Results and Insights

SuperLoRA consistently outperforms standard LoRA in extremely low-parameter regimes. On CIFAR100, a 3D tensor folding configuration improved accuracy by approximately 1% over standard LoRA while using significantly fewer parameters. This suggests that grouping weights across layers can reduce noise from redundant parameters in large models, leading to better generalization.

Comparison of parameter counts across different ranks shows that SuperLoRA variants, particularly LoRTA with higher-dimensional folding, achieve orders of magnitude more compression than standard LoRA.

Breaking the Matrix Barrier

By grouping weights and reshaping them into "square-like" or "cubic-like" tensors, SuperLoRA avoids the efficiency bottlenecks caused by "skewed" matrix dimensions in standard LoRA. Furthermore, the inclusion of a fixed random projection layer significantly boosts accuracy when trainable parameters are scarce.

Extreme Compression

In diffusion tasks, SuperLoRA (LoRTA 3D) matched the performance of a 10,000-parameter LoRA setup using only 2,000 parameters. Most notably, the framework enabled domain transfer with as few as 31 trainable parameters, highlighting the remarkably small intrinsic dimensionality required for certain adaptation tasks.

Conclusion

SuperLoRA demonstrates that the intrinsic dimension for model adaptation is far smaller than previously assumed. While highly effective for vision and diffusion tasks, future work remains to validate its performance on Large Language Models and to further optimize projection functions for even greater efficiency.

Summary updated

BibTeX
@misc{chen2024superlora,
  author = {Xiangyu Chen and Jing Liu and Ye Wang and Pu Perry Wang and Matthew Brand and Guanghui Wang and Toshiaki Koike-Akino},
  title = {{SuperLoRA: Parameter-Efficient Unified Adaptation of Multi-Layer Attention Modules}},
  year = {2024},
  eprint = {2403.11887},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.11887},
}
Figure