Linearization Explains Fine-Tuning in Large Language Models

Zahra Rahimi Afzal, Tara Esmaeilbeig, Mojtaba Soltanalian, Mesrob I. Ohannessian · DOI

Abstract

Parameter-Efficient Fine-Tuning (PEFT) is a popular class of techniques that strive to adapt large models in a scalable and resource-efficient manner. Yet, the mechanisms underlying their training performance and generalization remain underexplored. In this paper, we provide several insights into such fine-tuning through the lens of linearization. Fine-tuned models are often implicitly encouraged to remain close to the pretrained model. By making this explicit, using an Euclidean distance inductive bias in parameter space, we show that fine-tuning dynamics become equivalent to learning with the positive-definite neural tangent kernel (NTK). We specifically analyze how close the fully linear and the linearized fine-tuning optimizations are, based on the strength of the regularization. This allows us to be pragmatic about how good a model linearization is when fine-tuning large language models (LLMs). When linearization is a good model, our findings reveal a strong correlation between the eigenvalue spectrum of the NTK and the performance of model adaptation. Motivated by this, we give spectral perturbation bounds on the NTK induced by the choice of layers selected for fine-tuning. We empirically validate our theory on Low Rank Adaptation (LoRA) on LLMs. These insights not only characterize fine-tuning but also have the potential to enhance PEFT techniques, paving the way to better informed and more nimble adaptation in LLMs.

Introduction

Foundational Large Language Models (LLMs) are massive, making full fine-tuning for downstream tasks prohibitively expensive in terms of compute and time. Parameter-Efficient Fine-Tuning (PEFT) methods, such as Low-Rank Adaptation (LoRA), solve this by freezing the original model and training only a tiny subset of parameters. However, PEFT introduces significant design challenges: how does one choose which layers or parameters to tune? Currently, these decisions are largely driven by heuristics and expensive trial-and-error. This paper provides a mathematically rigorous framework to predict PEFT performance and optimally select layers before training begins.

The Linearization Framework

The authors bridge the gap between deep learning practice and kernel theory using linearized fine-tuning. While standard fine-tuning implicitly stays close to pretrained weights, this work makes the inductive bias explicit by adding an $L_2$ regularization term that penalizes the model for drifting from its initial parameters $\theta_0$.

Conceptual illustration of model linearization. The tangent plane $\mathcal{H}$ approximates the function manifold $\mathcal{F}$ near the pretrained weights $f_{\theta_0}$.

By mathematically bounding the distance between the regularized model and its first-order Taylor expansion, the authors prove that this regularization forces the model into a "lazy training" regime. In this state, the model behaves like a linear model governed by the Neural Tangent Kernel (NTK). This transformation simplifies complex, non-convex neural network optimization into solvable, convex kernel regression.

Spectral Prediction and Layer Selection

Because fine-tuning in this regime is effectively NTK regression, the eigenvalue spectrum of the NTK matrix at initialization acts as a predictor of final performance. Specifically, the condition number of the NTK matrix serves as a proxy for the optimization landscape: a lower condition number typically leads to lower training and evaluation loss.

Empirical results demonstrating the correlation between the NTK condition number at initialization and final fine-tuning performance across various layer configurations.

Based on this, the authors introduce a novel algorithm that calculates "spectral perturbation"—how much adding a specific layer's parameters to the trainable set improves the NTK's spectrum. This allows researchers to rank and select candidate layers for fine-tuning without the need for expensive training sweeps.

Key Results and Efficiency

Validation on benchmarks such as GLUE (CoLA, SST-2), IMDb, and Yelp yielded several key insights:

  • Massive Time Savings: Computing the empirical NTK to predict performance is orders of magnitude faster than actual fine-tuning. For example, on the Yelp dataset, calculating the NTK took only 245 seconds, compared to 46,096 seconds for full fine-tuning.
  • Predictive Power: A strong inverse relationship was observed between the NTK condition number at initialization and final evaluation accuracy across different LoRA configurations.
  • Linearity in Practice: Sweeping the regularization parameter ($\lambda$) showed that higher regularization tightly bounds the deviation from the linearized model while maintaining stable task performance.

Conclusion and Limitations

This work provides a theoretical foundation for PEFT, demonstrating that regularization makes fine-tuning dynamics predictable through the lens of the NTK. While the theoretical proofs rely on Mean Squared Error (MSE) loss, empirical success with Cross-Entropy loss suggests broader applicability. Future research will focus on bridging this formal gap and refining layer selection algorithms to account for varying parameter counts across configurations.

Summary updated

BibTeX
@inproceedings{afzal2025linearization,
  author = {Zahra Rahimi Afzal and Tara Esmaeilbeig and Mojtaba Soltanalian and Mesrob I. Ohannessian},
  title = {{Linearization Explains Fine-Tuning in Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=tdwRIP6NG2},
}
Figure