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

RoChBert:面向中国人的稳健的BERT微调

RoChBert: Towards Robust BERT Fine-tuning for Chinese

Tsinghua University(清华大学);Alibaba Group(阿里巴巴集团);Alberta Machine Intelligence Institute(阿尔伯塔机器智能研究所);University of Alberta(阿尔伯塔大学)

Zihan Zhang, Jinfeng Li, Ning Shi, Bo Yuan, Xiangyu Liu, Rong Zhang, Hui Xue, Donghong Sun, Chao Zhang

摘要:

尽管在广泛的任务上表现出色,但预训练的语言模型(例如,BERT)已被证明易受对抗性文本的攻击。在本文中,我们提出了RoChBERT,这是一个框架,通过利用更全面的对抗图来构建更健壮的基于BERT的模型,以便在微调过程中将汉语语音和语音特征融合到预训练的表示中。受课程学习的启发,我们进一步提出用对抗性文本结合中间样本来增强训练数据集。大量的实验表明,RoChBERT在重要方面优于以前的方法:(i)鲁棒性- RoChBERT大大提高了模型的鲁棒性,而不会牺牲良性文本的准确性。具体来说,该防御方法在不限制攻击和限制攻击的成功率分别降低了59.43%和39.33%,同时保持了93.30%的准确率;(ii)灵活性-- RoChBERT可以很容易地扩展到各种语言模型,以优异的性能解决不同的下游任务;和(iii)高效- RoChBERT可以直接应用于微调阶段,而无需从头开始预训练语言模型,并且所提出的数据增强方法也是低成本的。

英文摘要:

Despite of the superb performance on a wide range of tasks, pre-trained language models (e.g., BERT) have been proved vulnerable to adversarial texts. In this paper, we present RoChBERT, a framework to build more Robust BERT-based models by utilizing a more comprehensive adversarial graph to fuse Chinese phonetic and glyph features into pre-trained representations during fine-tuning. Inspired by curriculum learning, we further propose to augment the training dataset with adversarial texts in combination with intermediate samples. Extensive experiments demonstrate that RoChBERT outperforms previous methods in significant ways: (i) robust -- RoChBERT greatly improves the model robustness without sacrificing accuracy on benign texts. Specifically, the defense lowers the success rates of unlimited and limited attacks by 59.43% and 39.33% respectively, while remaining accuracy of 93.30%; (ii) flexible -- RoChBERT can easily extend to various language models to solve different downstream tasks with excellent performance; and (iii) efficient -- RoChBERT can be directly applied to the fine-tuning stage without pre-training language model from scratch, and the proposed data augmentation method is also low-cost.

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

↑