Skip to main content
QUICK REVIEW

[Paper Review] LoRA vs Full Fine-tuning: An Illusion of Equivalence

Reece Shuttleworth, Jacob Andreas|arXiv (Cornell University)|Oct 28, 2024
Embedded Systems Design TechniquesComputer Science3 citations
TL;DR

This paper demonstrates that Low-Rank Adaptation (LoRA) and full fine-tuning, despite achieving comparable performance on downstream tasks, learn fundamentally different model representations due to the emergence of 'intruder dimensions'—high-ranking singular vectors orthogonal to pre-trained weight matrices in LoRA-fine-tuned models. These structural differences lead to worse generalization and increased forgetting of pre-training data and prior tasks, even when performance on the target task is equivalent.

ABSTRACT

Fine-tuning is a crucial paradigm for adapting pre-trained large language models to downstream tasks. Recently, methods like Low-Rank Adaptation (LoRA) have been shown to effectively fine-tune LLMs with an extreme reduction in trainable parameters. But, \emph{are their learned solutions really equivalent?} We study how LoRA and full-finetuning change pre-trained models by analyzing the model's weight matrices through the lens of their spectral properties. We find that LoRA and full fine-tuning yield weight matrices whose singular value decompositions exhibit very different structure: weight matrices trained with LoRA have new, high-ranking singular vectors, which we call \emph{intruder dimensions}, while those trained with full fine-tuning do not. Further, we extend the finding that LoRA forgets less than full fine-tuning and find its forgetting is vastly localized to the intruder dimension -- by causally intervening on the intruder dimensions by changing their associated singular values post-fine-tuning, we show that they cause forgetting. Moreover, scaling them down significantly improves modeling of the pre-training distribution with a minimal drop in downstream task performance. Given this, we should expect accumulating intruder dimensions to be harmful and lead to more forgetting. This will be amplified during continual learning because of sequentially fine-tuning, and we show that LoRA models do accumulate intruder dimensions here tend to perform worse in this setting, emphasizing the practicality of our findings.

Motivation & Objective

  • To investigate whether LoRA and full fine-tuning produce equivalent model representations despite similar downstream performance.
  • To analyze how fine-tuning methods alter the spectral properties of pre-trained model weight matrices.
  • To understand the behavioral consequences of spectral differences, particularly in generalization and continual learning.
  • To identify the root causes of intruder dimensions in LoRA and evaluate strategies to mitigate their negative effects.

Proposed method

  • Analyzing spectral properties of weight matrices via Singular Value Decomposition (SVD) before and after fine-tuning to detect structural changes.
  • Measuring cosine similarity between pre-trained and fine-tuned singular vectors to identify new, high-ranking singular vectors (intruder dimensions) introduced by LoRA.
  • Comparing generalization behavior using pre-training distribution forgetting and continual learning benchmarks across LoRA and full fine-tuning.
  • Evaluating the impact of LoRA rank and scaling factor α on intruder dimension formation and model behavior.
  • Conducting ablation studies by freezing one LoRA matrix (A or B) to isolate the role of the matrix product in intruder dimension emergence.
  • Using rank-stabilized LoRA to assess whether higher-rank parameterizations can better mirror full fine-tuning behavior.
Figure 1: Spectral dissimilarities between full fine-tuning and LoRA. Similarity matrix of pre- and post-fine-tuning singular vectors of the weight matrices to characterize spectral differences introduced upon fine-tuning, in a representative example for LLaMA-2 fine-tuned on Magicoder. Full fine-tu
Figure 1: Spectral dissimilarities between full fine-tuning and LoRA. Similarity matrix of pre- and post-fine-tuning singular vectors of the weight matrices to characterize spectral differences introduced upon fine-tuning, in a representative example for LLaMA-2 fine-tuned on Magicoder. Full fine-tu

Experimental results

Research questions

  • RQ1Do LoRA and full fine-tuning produce equivalent solutions in terms of spectral structure of weight matrices?
  • RQ2What is the behavioral impact of intruder dimensions on model generalization and continual learning?
  • RQ3Why do intruder dimensions emerge in LoRA but not in full fine-tuning?
  • RQ4Can higher-rank or rank-stabilized LoRA mitigate the negative effects of intruder dimensions?
  • RQ5How do hyperparameters like rank and scaling factor α influence the formation of intruder dimensions?

Key findings

  • LoRA fine-tuning introduces 'intruder dimensions'—high-ranking singular vectors approximately orthogonal to pre-trained weight matrices—which do not appear in full fine-tuning.
  • LoRA models with intruder dimensions forget significantly more of the pre-training distribution (e.g., on MNLI, QQP, FEVER) than full fine-tuned models, despite matching downstream task accuracy.
  • In continual learning, LoRA models with intruder dimensions degrade performance faster on previously learned tasks, dropping below baseline performance across all evaluated datasets.
  • Higher-rank LoRA models (e.g., r=64) with rank stabilization closely mirror full fine-tuning in generalization and continual learning, even when lower-rank LoRA (r≤8) performs equally on the target task.
  • LoRA models with fixed α=8 (instead of α=2r) exhibit more intruder dimensions and worse generalization, indicating that improper scaling exacerbates structural divergence.
  • The matrix product BA in LoRA amplifies spectral differences between A and B, which is a key mechanism for intruder dimension formation, as shown by ablation experiments freezing A and only training B.
Figure 2: Characterizing structural differences between solutions learnt by LoRA Vs full Fine-tuning. a) We measure the changes to the SVD of the pre-trained weights made during fine-tuning. We observe intruder dimensions introduced by LoRA in top ranking singular vectors but by full fine-tuning. b)
Figure 2: Characterizing structural differences between solutions learnt by LoRA Vs full Fine-tuning. a) We measure the changes to the SVD of the pre-trained weights made during fine-tuning. We observe intruder dimensions introduced by LoRA in top ranking singular vectors but by full fine-tuning. b)

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.