arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.01488cs.CL
收藏

SCAT:通过对抗训练实现鲁棒的自监督对比学习用于文本分类

SCAT: Robust Self-supervised Contrastive Learning via Adversarial Training for Text Classification

The Hong Kong University of Science and Technology(香港科技大学)

Junjie Wu, Dit-Yan Yeung

AI总结:

本文提出无需标签的自监督对比学习框架 SCAT,通过无标签方式生成对抗样本并进行对抗训练,在文本分类任务上既能从头训练鲁棒模型,也能提升预训练模型的鲁棒性。

摘要:

尽管当前的自然语言处理(NLP)系统在各种任务上表现出良好的性能,但它们容易受到文本对抗攻击的影响。为了防御这些攻击,大多数现有方法通过引入对抗样本来进行对抗训练。然而,这些方法必须依赖真实标签来生成对抗样本,这使得它们难以应用于当前 NLP 及许多其他任务中普遍采用的大规模模型预训练。本文提出了一种新的学习框架 SCAT(Self-supervised Contrastive Learning via Adversarial Training,通过对抗训练的自监督对比学习),该框架无需标注数据即可学习鲁棒表示。具体而言,SCAT 以完全无标签的方式修改数据的随机增强来生成对抗样本。通过最小化增强样本与其对抗对应样本之间的对比损失来实现对抗训练。我们使用最近提出的两种最先进的攻击方案,在两个文本分类数据集上评估了 SCAT。结果表明,SCAT 不仅可以从头训练鲁棒的语言模型,还能显著提高现有预训练语言模型的鲁棒性。此外,为了展示其灵活性,我们证明 SCAT 还可以与有监督对抗训练相结合,进一步增强模型鲁棒性。

英文摘要:

Despite their promising performance across various natural language processing (NLP) tasks, current NLP systems are vulnerable to textual adversarial attacks. To defend against these attacks, most existing methods apply adversarial training by incorporating adversarial examples. However, these methods have to rely on ground-truth labels to generate adversarial examples, rendering it impractical for large-scale model pre-training which is commonly used nowadays for NLP and many other tasks. In this paper, we propose a novel learning framework called SCAT (Self-supervised Contrastive Learning via Adversarial Training), which can learn robust representations without requiring labeled data. Specifically, SCAT modifies random augmentations of the data in a fully labelfree manner to generate adversarial examples. Adversarial training is achieved by minimizing the contrastive loss between the augmentations and their adversarial counterparts. We evaluate SCAT on two text classification datasets using two state-of-the-art attack schemes proposed recently. Our results show that SCAT can not only train robust language models from scratch, but it can also significantly improve the robustness of existing pre-trained language models. Moreover, to demonstrate its flexibility, we show that SCAT can also be combined with supervised adversarial training to further enhance model robustness.

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

↑