Skip to main content
QUICK REVIEW

[Paper Review] Fine-Tuning Pre-Trained Language Models Effectively by Optimizing Subnetworks Adaptively

Haojie Zhang, Ge Li|arXiv (Cornell University)|Nov 3, 2022
Topic ModelingComputer Science13 citations
TL;DR

This paper proposes Dynamic Parameter Selection (DPS), a novel adaptive fine-tuning method for large-scale pre-trained language models that dynamically selects task-relevant subnetworks during training based on accumulated gradients. DPS improves stability, generalization, and performance across diverse models and low-resource settings, outperforming prior methods by up to 1.33 points on GLUE with reduced variance and only marginal computational overhead.

ABSTRACT

Large-scale pre-trained language models have achieved impressive results on a wide range of downstream tasks recently. However, fine-tuning an extremely large-scale pre-trained language model on limited target datasets is often plagued by overfitting and representation degradation. In this paper, we propose a Dynamic Parameter Selection (DPS) algorithm for the large-scale pre-trained models during fine-tuning, which adaptively selects a more promising subnetwork to perform staging updates based on gradients of back-propagation. Experiments on the GLUE benchmark show that DPS outperforms previous fine-tuning methods in terms of overall performance and stability, and consistently achieves better results with variable pre-trained language models. In addition, DPS brings a large magnitude of improvement in out-of-domain transferring experiments and low-resource scenarios, which shows that it can maintain stable general contextual features and reduce the representation collapse. We release our code at https://github.com/ZhangHaojie077/DPS

Motivation & Objective

  • To address fine-tuning instability and poor generalization in large pre-trained language models on small or out-of-domain datasets.
  • To overcome limitations of existing subnetwork optimization methods, such as random selection (Mixout) or static subnetworks (CHILD-TUNING D), which ignore dynamic parameter importance or incur high computational costs.
  • To develop a method that adaptively selects promising subnetworks during fine-tuning without separating gradient accumulation from optimization, reducing overhead.
  • To improve model stability and generalization across diverse pre-trained models, subnetwork sizes, and data regimes, including low-resource and out-of-domain scenarios.

Proposed method

  • DPS employs a cyclic two-stage updating strategy: Stage I accumulates in-batch gradients of updated parameters during fine-tuning.
  • Stage II derives a stage-specific subnetwork of important parameters using the accumulated gradients from Stage I, updating only these while keeping others fixed.
  • Two variants are proposed: DPS Dense, which updates the full network in Stage I and a dynamic subnetwork in Stage II; and DPS Mix, which uses random replacement of outgoing weights with pre-trained ones in Stage I and applies a frequency-penalized selection in Stage II.
  • The importance of parameters is measured via gradient magnitude ranking (DPS Dense) or a hybrid metric combining average gradient value and exponential penalty for update frequency (DPS Mix).
  • The method avoids external gradient computation by integrating subnetwork derivation into the training loop, minimizing additional computational cost.
  • The approach is applied to multiple pre-trained models (BERT, RoBERTa, BART, ELECTRA, DeBERTa) across GLUE benchmark tasks.

Experimental results

Research questions

  • RQ1Can adaptive subnetwork selection during fine-tuning improve model performance and stability on downstream NLP tasks?
  • RQ2Does the proposed DPS method reduce overfitting and representation degradation in low-resource and out-of-domain settings?
  • RQ3How does DPS compare in efficiency and performance to existing subnetwork optimization methods like Mixout and CHILD-TUNING D?
  • RQ4Can DPS maintain consistent improvements across diverse pre-trained model architectures and subnetwork sizes?

Key findings

  • DPS outperforms vanilla fine-tuning by 0.44–1.33 points on the GLUE benchmark, with a 0.29–0.80 point reduction in standard deviation, indicating improved stability.
  • On out-of-domain transfer and low-resource scenarios, DPS achieves up to 1.86 and 3.27 absolute score improvements, respectively, demonstrating strong generalization.
  • DPS consistently improves performance across five different pre-trained models (BERT, RoBERTa, BART, ELECTRA, DeBERTa), regardless of architecture or pre-training quality.
  • With sufficient training data (e.g., SST-2, QNLI), DPS still provides performance gains (e.g., +0.54 on SST-2), showing robustness beyond few-shot settings.
  • DPS Dense and DPS Mix introduce only a 12% and 30% increase in training time, respectively, significantly faster than CHILD-TUNING D (313% overhead).
  • DPS captures task-relevant parameters more effectively than Mixout and CHILD-TUNING D across various subnetwork sizes, as shown in ablation studies.

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.