The Expressive Power of Low-Rank Adaptation

Yuchen Zeng, Kangwook Lee · DOI

Abstract

Low-Rank Adaptation (LoRA) has emerged as the industry standard for parameter-efficient fine-tuning (PEFT) of large-scale models. While empirically successful, the theoretical underpinnings of why low-rank updates are sufficient to adapt massive models have remained largely unexplored. This paper provides the first comprehensive theoretical analysis of LoRA's expressive power. We demonstrate that LoRA can exactly represent any smaller target model provided the rank is sufficient, and we establish a fundamental mathematical relationship between a model's depth, width, and the required adapter rank. Our findings suggest that LoRA is not merely a compression trick but a robust mechanism capable of significant functional transformation.

Introduction

Fine-tuning massive architectures like GPT-4 or Llama is computationally prohibitive for most practitioners. LoRA addresses this by freezing the original model weights and training only small, low-rank matrices added to the existing layers. Despite its widespread adoption, a fundamental question has persisted: What are the theoretical limits of LoRA? Specifically, can a low-rank update truly transform a frozen model into any desired target function?

Prior to this research, the community lacked a rigorous understanding of the "minimum rank" required for effective adaptation and how architectural parameters—such as depth and width—influence this threshold. This paper bridges that gap by analyzing the expressivity of LoRA across Fully Connected Neural Networks (FNNs) and Transformer Networks (TFNs).

Theoretical Framework and Methodology

The authors utilize several innovative mathematical techniques to quantify the expressive capacity of low-rank updates:

  1. Model Partitioning: A core component of the proof involves "partitioning" the frozen model. If the frozen model is deeper than the target model, multiple frozen layers can be "stacked" or grouped to approximate a single layer of the target model. This allows the adapter to leverage the redundant capacity of deeper architectures.
  2. Linearization of Non-linearities: To address the challenges posed by ReLU activations, the authors employ a linearization strategy. By selecting large biases, they ensure neurons remain in their active regions, effectively treating the network as a product of matrices. This allows for the application of linear algebraic proofs to non-linear systems.
  3. Matrix Product Approximation: Extending the classical Eckart–Young–Mirsky theorem—which typically applies to the low-rank approximation of a single matrix—the authors analyze how low-rank updates across multiple layers accumulate. They show that these distributed updates can result in a high-rank "effective" change in the model's total transformation.

The Depth-Width Trade-off

A primary contribution of this work is the formalization of the relationship between model dimensions and adaptation efficiency. For FNNs, the required LoRA rank ($R$) is shown to be proportional to the model width but inversely proportional to the "depth ratio."

Specifically, the authors prove that an adapted FNN can exactly match a target FNN if: $$R \ge (\text{width}) \times \frac{ ext{target depth}}{\text{frozen depth}}$$

This implies that if a frozen model is significantly deeper than the target function it is trying to emulate, the required rank for an exact match decreases. In the context of Transformers, the authors demonstrate that any model can be adapted to a target of the same size using a rank approximately equal to half the embedding size ($D/2$).

Empirical Validation

The theoretical findings were validated through both synthetic experiments and real-world benchmarks:

  • Synthetic Testing: Randomly initialized and partially optimized FNNs and TFNs were used to confirm the exactness of the predicted rank thresholds.
  • GLUE Benchmark: The researchers evaluated RoBERTa-base (110M parameters) and RoBERTa-large (340M parameters) across eight Natural Language Understanding tasks.

One of the most striking results was that RoBERTa-large (the deeper and wider model) often achieved superior performance with a lower LoRA rank ($R=2$) compared to RoBERTa-base using a higher rank ($R=6$). This provides direct empirical support for the theory that larger, deeper models are inherently more "adaptable" via low-rank updates.

Comparison to Alternative Methods

The paper also compares LoRA to "final layer tuning," where only the last few layers of a model are updated. The authors prove that LoRA is strictly superior in terms of expressive power. While final layer tuning is fundamentally limited by the quality of the frozen representations generated by the preceding layers, LoRA can "fix" or modify representations throughout the entire depth of the network, allowing for more fundamental shifts in model behavior.

Conclusion and Future Directions

This research elevates LoRA from an empirical heuristic to a theoretically grounded method for model adaptation. It proves that with sufficient rank, LoRA can represent any target model, and that the inherent depth of modern LLMs actually makes them easier to adapt with low-rank matrices.

However, several avenues for future work remain. The current analysis focuses on expressivity (the existence of a solution) rather than optimization (the ability of algorithms like Adam to find that solution). Additionally, the Transformer analysis omitted skip connections and layer normalization to maintain mathematical tractability. Future research incorporating these elements and investigating how low-rank updates affect generalization to unseen data will further complete our understanding of this essential fine-tuning technique.

Summary updated

BibTeX
@inproceedings{zeng2024expressive,
  author = {Yuchen Zeng and Kangwook Lee},
  title = {{The Expressive Power of Low-Rank Adaptation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=likXVjmh3E},
}
Figure