Neural Architecture Search for Parameter-Efficient Fine-tuning of Large Pre-trained Language Models

Neal Lawton, Anoop Kumar, Govind Thattai, Aram Galstyan, Greg Ver Steeg

Introduction

As Pre-trained Language Models (PLMs) scale to billions or even trillions of parameters, traditional "Full Fine-Tuning" (FFT)—which involves updating every weight in the network—has become increasingly impractical. FFT requires immense GPU memory and often leads to "catastrophic forgetting," where the model's general-purpose knowledge is overwritten by task-specific data.

To mitigate these issues, researchers have developed Parameter-Efficient Tuning (PET) methods such as LoRA (Low-Rank Adaptation) and BitFit (tuning only biases). While effective, these methods typically apply updates uniformly across the model. This paper investigates whether specific parts of a network are more critical for adaptation than others and introduces a Neural Architecture Search (NAS) framework to automatically discover these "sweet spots."

Methodology: Gradient-Based Pruning for NAS

The authors propose an efficient NAS method based on the principle of pruning. Rather than searching a discrete space of architectures, they begin with a "maximal" PET configuration and systematically remove less important parameters.

The Search Space and Criterion

The search explores both BitFit and LoRA configurations, considering both structured pruning (removing entire modules) and unstructured pruning (removing individual parameters). To maintain computational efficiency, the importance of a parameter $\theta$ is estimated using a first-order Taylor expansion of the loss function: $$I(\theta) = \left| -\theta \cdot \frac{\partial L}{\partial \theta} \right|$$ This metric approximates how much the training loss would increase if the parameter were zeroed out.

The Workflow

The process follows three main steps:

  1. Training: Train the initial, dense PET setup. The authors found that standard LoRA initialization (where one matrix starts at zero) provides uninformative initial gradients for pruning; they addressed this by implementing a Kaiming-style initialization to ensure a useful pruning signal from the start.
  2. Pruning: Calculate parameter importance and prune the least significant weights until a target parameter budget is met.
  3. Re-training: Re-initialize and train the resulting sparse architecture from scratch, adhering to the "Lottery Ticket Hypothesis."

Key Insights: The "Middle" is Key

The NAS process revealed significant patterns in how models adapt to new tasks. A consistent finding was that the algorithm prioritized the middle layers of the network, particularly the intermediate.dense modules. Conversely, the initial and final layers were frequently pruned, suggesting they contribute less to task-specific adaptation.

Figure 1: Distribution of tuned parameters across layers for structured (a) and unstructured (b) bias tuning.

Furthermore, unstructured pruning—which selects individual parameters regardless of their location—consistently outperformed structured pruning. This indicates that the parameters necessary for adaptation are distributed sparsely throughout the model rather than being concentrated in specific layers or modules. For bias tuning, the authors discovered an "18% Rule": tuning just 18% of all biases (roughly 50k parameters) achieved performance nearly identical to tuning 100% of them.

Experimental Results

The researchers evaluated their method using the RoBERTa-large model on the GLUE (General Language Understanding Evaluation) benchmark.

Table 1: Performance comparison of various fine-tuning methods on the GLUE benchmark.

Performance at Scale

The unstructured NAS method, U-MaM, achieved an average GLUE score of 88.3, slightly exceeding the 88.2 achieved by full fine-tuning. Remarkably, U-MaM achieved this while updating only 3.4 million parameters, a 100x reduction compared to the 355 million parameters updated in FFT.

Efficiency at Low Budgets

The method proved exceptionally robust at extremely low parameter budgets. At a budget of just 25k parameters, the unstructured BitFit method (U-BitFit) achieved a score of 84.6. This significantly outperformed its structured counterpart (74.3) and remained competitive with state-of-the-art prompt-tuning methods like WARP.

Conclusion

This research demonstrates that automated search can identify highly efficient sub-architectures for fine-tuning large language models. By focusing updates on the middle layers and allowing for unstructured sparsity, the proposed NAS method matches the performance of full fine-tuning with a fraction of the parameters. Future work may explore iterative pruning strategies to further push the boundaries of efficiency for sub-10k parameter budgets.

Summary updated

BibTeX
@inproceedings{lawton2023neural,
  author = {Neal Lawton and Anoop Kumar and Govind Thattai and Aram Galstyan and Greg Ver Steeg},
  title = {{Neural Architecture Search for Parameter-Efficient Fine-tuning of Large Pre-trained Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.539},
}
Figure