Generalizable and Stable Finetuning of Pretrained Language Models on Low-Resource Texts

Sai Ashish Somayajula, Youwei Liang, Abhishek Singh, Li Zhang, Pengtao Xie
3/19/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: Sai-Ashish/Attention_guided_weight_mixup_BLO (3 stars, last commit 2024-03-18).

Abstract

Pretrained Language Models (PLMs) have advanced Natural Language Processing (NLP) tasks significantly, but finetuning PLMs on low-resource datasets poses significant challenges such as instability and overfitting. Previous methods tackle these issues by finetuning a strategically chosen subnetwork on a downstream task, while keeping the remaining weights fixed to the pretrained weights. However, they rely on a suboptimal criteria for sub-network selection, leading to suboptimal solutions. To address these limitations, we propose a regularization method based on attention-guided weight mixup for finetuning PLMs. Our approach represents each network weight as a mixup of task-specific weight and pretrained weight, controlled by a learnable attention parameter, providing finer control over sub-network selection. Furthermore, we employ a bi-level optimization (BLO) based framework on two separate splits of the training dataset, improving generalization and combating overfitting. We validate the efficacy of our proposed method through extensive experiments, demonstrating its superiority over previous methods, particularly in the context of finetuning PLMs on low-resource datasets.

View on arXivView PDF

Code Implementations(1)

30Shell, PythonOct 14, 20232 years ago

Similar Papers

Cite this paper

@article{somayajula2024generalizable,
  title  = {Generalizable and Stable Finetuning of Pretrained Language Models on Low-Resource Texts},
  author = {Sai Ashish Somayajula and Youwei Liang and Abhishek Singh and Li Zhang and Pengtao Xie},
  year   = {2024},
  eprint = {2403.12918},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.12918v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.12918.svg)](https://codeofpaper.com/paper/2403.12918)

Discussion