Robust Fine-tuning via Perturbation and Interpolation from In-batch Instances

Shoujie Tong, Qingxiu Dong, Damai Dai, Yifan song, Tianyu Liu +2 more
5/2/2022
cs.CL

Official code: tongshoujie/MATCH-TUNING (15 stars, Python, last commit 2022-08-06).

Abstract

Fine-tuning pretrained language models (PLMs) on downstream tasks has become common practice in natural language processing. However, most of the PLMs are vulnerable, e.g., they are brittle under adversarial attacks or imbalanced data, which hinders the application of the PLMs on some downstream tasks, especially in safe-critical scenarios.

Show full abstract

In this paper, we propose a simple yet effective fine-tuning method called Match-Tuning to force the PLMs to be more robust. For each instance in a batch, we involve other instances in the same batch to interact with it. To be specific, regarding the instances with other labels as a perturbation, Match-Tuning makes the model more robust to noise at the beginning of training. While nearing the end, Match-Tuning focuses more on performing an interpolation among the instances with the same label for better generalization. Extensive experiments on various tasks in GLUE benchmark show that Match-Tuning consistently outperforms the vanilla fine-tuning by $1.64$ scores. Moreover, Match-Tuning exhibits remarkable robustness to adversarial attacks and data imbalance.

View on arXivView PDF

Code Implementations(1)

MATCH-TUNING

151PythonMay 1, 20224 years ago

Similar Papers

Cite this paper

@article{tong2022robust,
  title  = {Robust Fine-tuning via Perturbation and Interpolation from In-batch Instances},
  author = {Shoujie Tong and Qingxiu Dong and Damai Dai and Yifan song and Tianyu Liu and Baobao Chang and Zhifang Sui},
  year   = {2022},
  eprint = {2205.00633},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.00633}
}

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/2205.00633.svg)](https://codeofpaper.com/paper/2205.00633)

Discussion