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

FreeLB:增强的对抗训练自然语言理解

FreeLB: Enhanced Adversarial Training for Natural Language Understanding

University of Maryland, College Park(马里兰大学帕克分校);Microsoft Dynamics 365 AI Research(微软Dynamics 365 AI研究院)

Chen Zhu, Yu Cheng, Zhe Gan, Siqi Sun, Tom Goldstein, Jingjing Liu

摘要:

对抗性训练,它最大限度地减少了标签保留输入扰动的最大风险,已被证明是有效的,以提高语言模型的泛化。在这项工作中,我们提出了一种新的对抗性训练算法FreeLB,通过向词嵌入添加对抗性扰动,并最大限度地减少输入样本周围不同区域内的对抗性风险,从而提高嵌入空间的不变性。为了验证所提出的方法的有效性,我们将其应用到基于transformer的模型,用于自然语言理解和常识推理任务。在GLUE基准测试上的实验表明,当仅应用于微调阶段时,能够将BERT基础模型的总体测试分数从78.3提高到79.4,将RoberTa大型模型的总体测试分数从88.5提高到88.8。此外,该方法在ARC-Easy和ARC-Challenge上分别获得了85.44%和67.75%的单模型测试准确率。在CommonsenseQA基准测试上的实验进一步证明了FreeLB可以推广,并在其他任务上提高了RoberTa-large模型的性能。代码可在\url {https:github.com/zhuchen03/FreeLB.

英文摘要:

Adversarial training, which minimizes the maximal risk for label-preserving input perturbations, has proved to be effective for improving the generalization of language models. In this work, we propose a novel adversarial training algorithm, FreeLB, that promotes higher invariance in the embedding space, by adding adversarial perturbations to word embeddings and minimizing the resultant adversarial risk inside different regions around input samples. To validate the effectiveness of the proposed approach, we apply it to Transformer-based models for natural language understanding and commonsense reasoning tasks. Experiments on the GLUE benchmark show that when applied only to the finetuning stage, it is able to improve the overall test scores of BERT-base model from 78.3 to 79.4, and RoBERTa-large model from 88.5 to 88.8. In addition, the proposed approach achieves state-of-the-art single-model test accuracies of 85.44\% and 67.75\% on ARC-Easy and ARC-Challenge. Experiments on CommonsenseQA benchmark further demonstrate that FreeLB can be generalized and boost the performance of RoBERTa-large model on other tasks as well. Code is available at \url{https://github.com/zhuchen03/FreeLB .

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

↑