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

通过稀有事件模拟对语言模型的交叉熵攻击

Cross-Entropy Attacks to Language Models via Rare Event Simulation

University of Technology Sydney(悉尼科技大学);Shandong University(山东大学)

Mingze Ni, Yongshun Gong, Wei Liu

AI总结:

本文提出基于交叉熵优化的文本对抗攻击方法CEA,通过稀有事件模拟解决黑盒攻击中的优化与语义保持问题,在文档分类和翻译任务上验证了其攻击性能、不可感知性和句子质量的优越性。

摘要:

黑盒文本对抗攻击因缺乏模型信息以及文本的离散、不可微特性而具有挑战性。现有方法在攻击不同模型时往往缺乏通用性,由于使用词显著性排序进行低效优化,攻击性能受限,且经常牺牲语义完整性以换取更好的攻击效果。本文提出了一种新颖的文本对抗攻击方法,称为交叉熵攻击(CEA),利用交叉熵优化来解决上述问题。我们的CEA方法为软标签和硬标签设置定义了对抗目标,并采用CE优化来识别最优替换。通过在文档分类和语言翻译问题上的大量实验,我们证明了我们的攻击方法在攻击性能、不可感知性和句子质量方面均表现出色。

英文摘要:

Black-box textual adversarial attacks are challenging due to the lack of model information and the discrete, non-differentiable nature of text. Existing methods often lack versatility for attacking different models, suffer from limited attacking performance due to the inefficient optimization with word saliency ranking, and frequently sacrifice semantic integrity to achieve better attack outcomes. This paper introduces a novel approach to textual adversarial attacks, which we call Cross-Entropy Attacks (CEA), that uses Cross-Entropy optimization to address the above issues. Our CEA approach defines adversarial objectives for both soft-label and hard-label settings and employs CE optimization to identify optimal replacements. Through extensive experiments on document classification and language translation problems, we demonstrate that our attack method excels in terms of attacking performance, imperceptibility, and sentence quality.

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

↑