Structured Unrestricted-Rank Matrices for Parameter Efficient Finetuning

Arijit Sehanobish, Kumar Avinava Dubey, Krzysztof Marcin Choromanski, Somnath Basu Roy Chowdhury, Deepali Jain, Vikas Sindhwani, Snigdha Chaturvedi

TL;DR

This paper introduces Structured Unrestricted-Rank Matrices (SURMs) as a novel framework for parameter-efficient fine-tuning (PEFT) of large Transformer models. SURMs offer a more flexible and expressive alternative to existing methods like LoRA and Adapters, achieving competitive or improved performance with significantly fewer parameters, particularly in low-data regimes.

What Problem Does This Paper Address?

Scaling up Transformer models has led to remarkable performance gains across various tasks. However, fine-tuning these massive models for specific downstream applications is computationally expensive, requiring significant memory and processing power to update millions of parameters. Parameter-efficient fine-tuning (PEFT) methods aim to alleviate this by updating only a small subset of parameters. While methods like LoRA and Adapters have been successful, they often rely on low-rank constraints that might not fully capture the intrinsic dimensionality of model updates. This paper addresses the need for PEFT methods that are not only efficient but also more expressive, allowing for better adaptation and potentially higher performance without a proportional increase in parameter count.

Methods

The core contribution is the introduction of Structured Unrestricted-Rank Matrices (SURMs). Unlike traditional low-rank matrices, SURMs are designed to be more expressive while maintaining parameter efficiency. The paper focuses on two main classes of SURMs:

  • Low Displacement Rank Matrices (LDRMs): These matrices, such as circulant and Toeplitz matrices, can be parameterized with a linear number of parameters and support efficient matrix-vector multiplications (often sub-quadratic). The paper highlights their strong approximation capabilities for various matrix types.
  • Kronecker Product of Matrices: This method combines two matrices to form a larger structured matrix, offering flexibility in controlling the number of trainable parameters and the effective rank of the update.

SURMs are proposed as a drop-in replacement for the low-rank matrices used in existing PEFT methods like LoRA and Adapters. The framework is designed to allow for zero-initialization, a common practice in PEFT.

Datasets

The paper evaluates SURMs on a variety of datasets across different domains:

  • Image Classification: CIFAR10, CIFAR100, SUN397, DTD, STL10, ImageNet-1k, and iNat2021.
  • Natural Language Processing (NLP): GLUE benchmark.
  • Low Resource Settings: VTAB-1k (SPECIALIZED and NATURAL subsets).
  • Medical Image Segmentation: Synapse multi-organ segmentation dataset.
  • Synthetic/Toy Datasets: A pinwheel dataset and a UUID prediction task for LLMs.

Key Insights and Ideas

  • Beyond Low-Rank: The paper argues that imposing strict low-rank constraints on weight updates might be overly restrictive, as model updates are not inherently low-rank. SURMs offer a more flexible approach by leveraging structured matrices that are not necessarily low-rank but are efficiently parameterized.
  • Expressiveness-Efficiency Trade-off: SURMs provide a better balance between the expressiveness of the parameter updates and their compactness. This allows for capturing more complex adaptations without a significant parameter overhead.
  • LDRMs as Powerful Approximators: Low Displacement Rank Matrices (circulant, Toeplitz) demonstrate strong capabilities in approximating various types of matrices, including random, near-low-rank, and near-low-intrinsic-rank matrices.
  • Circulant Variant is Key: The circulant variant of SURM emerges as the most performant across various tasks and settings, offering a good balance of speed and accuracy.
  • Effective in Low-Data Regimes: SURMs show remarkable performance in low-data scenarios, achieving accuracy comparable to full fine-tuning with only a fraction of the training data.

Key Results

  • Image Classification: SURMs achieve 5-7% accuracy gains over LoRA on various image classification tasks.
  • GLUE Benchmark: SURM-adapters achieve up to a 12x reduction in parameters compared to standard adapters with virtually no loss in quality.
  • Low Resource (VTAB-1k): SURMs are among the top-performing methods on 10 datasets, demonstrating effectiveness with limited training data.
  • Parameter Efficiency: SURMs often use significantly fewer parameters than baselines. For example, they achieve comparable accuracy to full fine-tuning on ImageNet-1k using only 0.06% of the training parameters.
  • Speed: While not explicitly quantified in terms of speedup, the sub-quadratic complexity of LDRMs suggests potential efficiency gains. The circulant variant is noted as being relatively fast.

Limitations and Future Work

  • Custom Kernels: The authors acknowledge that a limitation is the absence of custom kernels for their methods. Popular PEFT methods like LoRA have been extensively optimized for hardware, which SURMs currently lack.
  • Broader Impact: While SURMs aim to democratize access to powerful Transformer models, the authors caution about potential harmful biases inherent in models pre-trained on internet-scale data.
  • Future Work: The paper suggests exploring broader classes of matrices and combinations of LDRMs to enhance layer expressiveness. They also mention that increasing the number of training parameters can be achieved by relaxing the structure of the matrices, for instance, by using sums of products of circulant and skew-circulant matrices.

Summary updated

BibTeX
@inproceedings{sehanobish2024structured,
  author = {Arijit Sehanobish and Kumar Avinava Dubey and Krzysztof Marcin Choromanski and Somnath Basu Roy Chowdhury and Deepali Jain and Vikas Sindhwani and Snigdha Chaturvedi},
  title = {{Structured Unrestricted-Rank Matrices for Parameter Efficient Finetuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=MXOzgjlWDF},
}
Figure