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

在对抗性干草堆中寻找一根针:一种目标性改写方法,以最小分布失真揭示边缘案例

Finding a Needle in the Adversarial Haystack: A Targeted Paraphrasing Approach For Uncovering Edge Cases with Minimal Distribution Distortion

School of Computer Science, University of Windsor(温莎大学计算机科学学院)

Aly M. Kassem, Sherif Saad

AI总结:

本文提出TPRL方法,利用强化学习自动生成对抗样本,以最小分布失真揭示边缘案例,提升语言模型在分类任务中的鲁棒性。

摘要:

针对语言模型(LMs)的对抗性攻击是一个重大关切。特别是,对抗样本利用了模型对微小输入变化的敏感性。尽管这些变化在输入样本的语义上看似无关紧要,但它们会导致模型性能的显著下降。在本文中,我们提出了基于强化学习的目标性改写(TPRL),一种自动学习策略以生成最可能提升模型性能的挑战性样本的方法。TPRL利用FLAN T5(一种语言模型)作为生成器,并采用基于近端策略优化的自学习策略来自动生成对抗样本。TPRL的奖励基于分类器产生的混淆程度,并通过互蕴涵分数保持原始文本含义。我们通过自动和人工评估,在四个多样的NLP分类任务上进行了广泛实验,证明了TPRL在发现自然对抗攻击和提升模型性能方面的有效性。TPRL优于强基线,在分类器和数据集上表现出泛化能力,并融合了语言建模和强化学习的优势,以生成多样且有影响力的对抗样本。

英文摘要:

Adversarial attacks against language models(LMs) are a significant concern. In particular, adversarial samples exploit the model's sensitivity to small input changes. While these changes appear insignificant on the semantics of the input sample, they result in significant decay in model performance. In this paper, we propose Targeted Paraphrasing via RL (TPRL), an approach to automatically learn a policy to generate challenging samples that most likely improve the model's performance. TPRL leverages FLAN T5, a language model, as a generator and employs a self learned policy using a proximal policy gradient to generate the adversarial examples automatically. TPRL's reward is based on the confusion induced in the classifier, preserving the original text meaning through a Mutual Implication score. We demonstrate and evaluate TPRL's effectiveness in discovering natural adversarial attacks and improving model performance through extensive experiments on four diverse NLP classification tasks via Automatic and Human evaluation. TPRL outperforms strong baselines, exhibits generalizability across classifiers and datasets, and combines the strengths of language modeling and reinforcement learning to generate diverse and influential adversarial examples.

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

↑