arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.05523cs.CLcs.AI
收藏

对抗训练对语言模型鲁棒性与泛化能力的影响

Impact of Adversarial Training on Robustness and Generalizability of Language Models

Qatar Computing Research Institute(卡塔尔计算研究所);Dalhousie University(达尔豪斯大学)

Enes Altinisik, Hassan Sajjad, Husrev Taha Sencar, Safa Messaoud, Sanjay Chawla

AI总结:

本文比较了语言模型对抗训练中的数据增强、输入空间与嵌入空间扰动,发现前者提升鲁棒性、嵌入扰动改善泛化,并归因于更专门化的神经元。

摘要:

对抗训练被广泛认为是抵御对抗攻击最有效的防御手段。然而,已有研究也充分表明,在经过对抗训练的模型中同时实现鲁棒性与泛化能力存在一种权衡。本工作的目标是对语言模型中不同的对抗训练方法进行深入比较。具体而言,我们研究了预训练数据增强,以及训练阶段输入空间扰动与嵌入空间扰动对基于 Transformer 的语言模型鲁棒性和泛化能力的影响。研究结果表明,通过预训练数据增强或使用输入空间扰动进行训练,可以获得更好的鲁棒性。然而,使用嵌入空间扰动进行训练能够显著提升泛化能力。对所学模型神经元进行的语言相关性分析显示,泛化能力的提升源于“更专门化”的神经元。据我们所知,这是首个针对语言模型对抗训练中不同对抗样本生成方法开展深入定性分析的工作。

英文摘要:

Adversarial training is widely acknowledged as the most effective defense against adversarial attacks. However, it is also well established that achieving both robustness and generalization in adversarially trained models involves a trade-off. The goal of this work is to provide an in depth comparison of different approaches for adversarial training in language models. Specifically, we study the effect of pre-training data augmentation as well as training time input perturbations vs. embedding space perturbations on the robustness and generalization of transformer-based language models. Our findings suggest that better robustness can be achieved by pre-training data augmentation or by training with input space perturbation. However, training with embedding space perturbation significantly improves generalization. A linguistic correlation analysis of neurons of the learned models reveals that the improved generalization is due to 'more specialized' neurons. To the best of our knowledge, this is the first work to carry out a deep qualitative analysis of different methods of generating adversarial examples in adversarial training of language models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑