arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.11078cs.LGstat.ML
收藏

可区分语言模型对范畴序列分类器的对抗攻击

Differentiable Language Model Adversarial Attacks on Categorical Sequence Classifiers

Skoltech(斯科尔科沃科学技术研究院)

I. Fursov, A. Zaytsev, N. Kluchnikov, A. Kravchenko, E. Burnaev

摘要:

对抗攻击范式探索了深度学习模型脆弱性的各种场景:输入的微小变化可能导致模型失败。大多数最先进的框架都专注于图像和其他结构化模型输入的对抗攻击,但不是分类序列模型。对分类序列的分类器的成功攻击是具有挑战性的,因为模型输入是来自有限集合的令牌,因此分类器得分相对于输入是不可微的,并且基于梯度的攻击不适用。常见的方法在令牌级别处理这个问题,而手头的离散优化问题需要大量的资源来解决。相反,我们使用对抗攻击的语言模型作为对抗示例的生成器。为了优化模型,我们定义了一个可微分损失函数,该函数取决于代理分类器得分和评估近似编辑距离的深度学习模型。因此,我们控制生成序列的可逆性及其与初始序列的相似性。因此,我们获得了语义上更好的样本。此外,它们对对抗性训练和对抗性检测器具有抵抗力。我们的模型适用于银行交易,电子健康记录和NLP数据集的各种数据集。

英文摘要:

An adversarial attack paradigm explores various scenarios for the vulnerability of deep learning models: minor changes of the input can force a model failure. Most of the state of the art frameworks focus on adversarial attacks for images and other structured model inputs, but not for categorical sequences models. Successful attacks on classifiers of categorical sequences are challenging because the model input is tokens from finite sets, so a classifier score is non-differentiable with respect to inputs, and gradient-based attacks are not applicable. Common approaches deal with this problem working at a token level, while the discrete optimization problem at hand requires a lot of resources to solve. We instead use a fine-tuning of a language model for adversarial attacks as a generator of adversarial examples. To optimize the model, we define a differentiable loss function that depends on a surrogate classifier score and on a deep learning model that evaluates approximate edit distance. So, we control both the adversability of a generated sequence and its similarity to the initial sequence. As a result, we obtain semantically better samples. Moreover, they are resistant to adversarial training and adversarial detectors. Our model works for diverse datasets on bank transactions, electronic health records, and NLP datasets.

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

↑