基于批处理数据的扰动和插值鲁棒微调
Robust Fine-tuning via Perturbation and Interpolation from In-batch Instances
摘要:
在下游任务上微调预训练语言模型(PLM)已经成为自然语言处理中的常见做法。然而,大多数PLM都是脆弱的,例如,它们在对抗攻击或不平衡的数据下是脆弱的,这阻碍了PLM在一些下游任务上的应用,特别是在安全关键的场景中。在本文中,我们提出了一个简单而有效的微调方法称为匹配调整,迫使PLM更强大。对于一个批次中的每个实例,我们都会让同一批次中的其他实例与之交互。具体来说,将带有其他标签的实例视为扰动,Match-Tuning使模型在训练开始时对噪声更具鲁棒性。当接近尾声时,匹配调整更多地关注于在具有相同标签的实例之间执行插值,以更好地泛化。在GLUE基准测试中对各种任务进行了大量的实验,结果表明,匹配调优的性能始终优于普通的微调$1.64$分数。此外,匹配调整表现出显着的鲁棒性对抗攻击和数据不平衡。
英文摘要:
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. 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。