arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2107.10137cs.CL
收藏

基于对比对抗训练的文本分类算法

Improved Text Classification via Contrastive Adversarial Training

IBM Watson(IBM沃森);IBM Research AI(IBM研究院AI)

Lin Pan, Chung-Wei Hang, Avirup Sil, Saloni Potdar

摘要:

我们提出了一种简单而通用的方法来规范基于transformer的编码器的文本分类任务的微调。具体来说,在微调过程中,我们通过扰动模型的词嵌入来生成对抗性示例,并对干净和对抗性示例进行对比学习,以教会模型学习噪声不变的表示。通过对干净和对抗性样本以及额外的对比目标进行训练,我们观察到了对干净样本进行标准微调的一致改进。在几个GLUE基准测试任务中,我们的微调BERT Large模型平均比BERT Large基线提高1.7%,我们的微调RoBERTa Large比RoBERTa Large基线提高1.3%。我们还使用三个意图分类数据集在不同领域验证了我们的方法,其中我们的微调RoBERTa Large平均比RoBERTa Large基线高出1-2%。

英文摘要:

We propose a simple and general method to regularize the fine-tuning of Transformer-based encoders for text classification tasks. Specifically, during fine-tuning we generate adversarial examples by perturbing the word embeddings of the model and perform contrastive learning on clean and adversarial examples in order to teach the model to learn noise-invariant representations. By training on both clean and adversarial examples along with the additional contrastive objective, we observe consistent improvement over standard fine-tuning on clean examples. On several GLUE benchmark tasks, our fine-tuned BERT Large model outperforms BERT Large baseline by 1.7% on average, and our fine-tuned RoBERTa Large improves over RoBERTa Large baseline by 1.3%. We additionally validate our method in different domains using three intent classification datasets, where our fine-tuned RoBERTa Large outperforms RoBERTa Large baseline by 1-2% on average.

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

↑