arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2108.13602cs.CLcs.AIcs.LG
收藏

对抗性微调如何使BERT受益?

How Does Adversarial Fine-Tuning Benefit BERT?

Visa Research(维萨研究)

Javid Ebrahimi, Hao Yang, Wei Zhang

摘要:

对抗性训练(AT)是机器学习中防御对抗攻击最可靠的方法之一。该方法的变体已被用作正则化机制,以在NLP基准上实现SOTA结果,并且已发现它们对迁移学习和持续学习很有用。我们搜索的原因,通过对比香草和adversarially微调BERT模型的AT的有效性。我们确定部分保存BERT的语法能力在微调的成功的关键AT。我们观察到,对抗微调模型仍然更忠实于BERT的语言建模行为,更敏感的词序。作为句法能力的具体例子,一个对抗性微调模型在回指一致性上的优势可达38%,在依存句法分析上的优势可达11%。我们的分析表明,香草微调过度简化的句子表示,重点放在一个小的子集的话。然而,AT缓和了这些有影响力的词的效果,并鼓励代表性的多样性。这允许一个句子的更层次的表示,并导致BERT的语法能力的损失减轻。

英文摘要:

Adversarial training (AT) is one of the most reliable methods for defending against adversarial attacks in machine learning. Variants of this method have been used as regularization mechanisms to achieve SOTA results on NLP benchmarks, and they have been found to be useful for transfer learning and continual learning. We search for the reasons for the effectiveness of AT by contrasting vanilla and adversarially fine-tuned BERT models. We identify partial preservation of BERT's syntactic abilities during fine-tuning as the key to the success of AT. We observe that adversarially fine-tuned models remain more faithful to BERT's language modeling behavior and are more sensitive to the word order. As concrete examples of syntactic abilities, an adversarially fine-tuned model could have an advantage of up to 38% on anaphora agreement and up to 11% on dependency parsing. Our analysis demonstrates that vanilla fine-tuning oversimplifies the sentence representation by focusing heavily on a small subset of words. AT, however, moderates the effect of these influential words and encourages representational diversity. This allows for a more hierarchical representation of a sentence and leads to the mitigation of BERT's loss of syntactic abilities.

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

↑