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

将针对预训练语言模型的对抗攻击建模为序列决策问题

Modeling Adversarial Attack on Pre-trained Language Models as Sequential Decision Making

Fudan University(复旦大学);Tsinghua University(清华大学);Institute for AI Industry Research (AIR), Tsinghua University(清华大学智能产业研究院);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Xuanjie Fang, Sijie Cheng, Yang Liu, Wei Wang

AI总结:

本文将PLMs对抗攻击建模为序列决策问题,提出基于强化学习的SDM-Attack方法,通过词查找与词替换的序列化决策实现高成功率、低修改率且语义相似度可比的攻击,并验证了其泛化性与可迁移性。

摘要:

预训练语言模型(PLMs)已被广泛用于支撑各类下游任务。然而,对抗攻击任务发现PLMs对微小扰动十分脆弱。主流方法采用分离的两阶段框架进行攻击,未考虑每一步替换对后续步骤的影响。本文中,我们正式将针对PLMs的对抗攻击任务建模为序列决策问题,其中整个攻击过程是序列化的,包含两个决策问题,即词查找器(word finder)和词替换(word substitution)。考虑到攻击过程只能接收最终状态而没有任何直接中间信号,我们提出使用强化学习来寻找合适的序列攻击路径以生成对抗样本,命名为SDM-Attack。大量实验结果表明,SDM-Attack在攻击微调后的BERT时取得了最高的攻击成功率,同时具有可比的修改率和语义相似度。此外,我们的分析证明了SDM-Attack的泛化性和可迁移性。代码可在https://github.com/fduxuan/SDM-Attack获取。

英文摘要:

Pre-trained language models (PLMs) have been widely used to underpin various downstream tasks. However, the adversarial attack task has found that PLMs are vulnerable to small perturbations. Mainstream methods adopt a detached two-stage framework to attack without considering the subsequent influence of substitution at each step. In this paper, we formally model the adversarial attack task on PLMs as a sequential decision-making problem, where the whole attack process is sequential with two decision-making problems, i.e., word finder and word substitution. Considering the attack process can only receive the final state without any direct intermediate signals, we propose to use reinforcement learning to find an appropriate sequential attack path to generate adversaries, named SDM-Attack. Extensive experimental results show that SDM-Attack achieves the highest attack success rate with a comparable modification rate and semantic similarity to attack fine-tuned BERT. Furthermore, our analyses demonstrate the generalization and transferability of SDM-Attack. The code is available at https://github.com/fduxuan/SDM-Attack.

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

↑