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

文本分类器中的对抗攻击与维度

Adversarial Attacks and Dimensionality in Text Classifiers

School of Computer Science and Engineering, Nanyang Technological University(南洋理工大学计算机科学与工程学院);Indian Institute of Technology Kanpur(印度理工学院坎普尔分校)

Nandish Chattopadhyay, Atreya Goswami, Anupam Chattopadhyay

AI总结:

本文研究文本分类中的对抗脆弱性与模型嵌入维度的强相关关系,并据此提出多维度集成防御,同时用多种距离度量和词向量级攻击验证鲁棒性。

摘要:

针对机器学习算法的对抗攻击一直是阻碍人工智能在许多真实用例中采用的关键因素。它们通过迫使模型错误分类,显著削弱高性能神经网络的能力。这些攻击会在测试样本中引入微小且结构化的扰动或改动,通常人类标注者难以察觉,但经过训练的神经网络和其他模型对此十分敏感。从历史上看,对抗攻击最早是在图像处理领域被识别和研究的。本文研究自然语言处理领域中的对抗样本,特别是文本分类任务。我们考察对抗脆弱性的成因,尤其是其与模型固有维度之间的关系。我们的关键发现是,对抗样本的嵌入维度与其在使用相同嵌入维度的输入样本调优后的模型上的有效性之间存在极强的相关性。我们利用这种敏感性设计了一种对抗防御机制,采用具有不同固有维度的集成模型来阻止攻击。为检验其在提供鲁棒性方面的有效性,我们在多个数据集上进行了测试。我们还研究了使用不同距离度量来衡量对抗扰动的问题。对于上述所有研究,我们在多个具有不同维度的模型上运行测试,并使用词向量层面的对抗攻击来证实这些发现。

英文摘要:

Adversarial attacks on machine learning algorithms have been a key deterrent to the adoption of AI in many real-world use cases. They significantly undermine the ability of high-performance neural networks by forcing misclassifications. These attacks introduce minute and structured perturbations or alterations in the test samples, imperceptible to human annotators in general, but trained neural networks and other models are sensitive to it. Historically, adversarial attacks have been first identified and studied in the domain of image processing. In this paper, we study adversarial examples in the field of natural language processing, specifically text classification tasks. We investigate the reasons for adversarial vulnerability, particularly in relation to the inherent dimensionality of the model. Our key finding is that there is a very strong correlation between the embedding dimensionality of the adversarial samples and their effectiveness on models tuned with input samples with same embedding dimension. We utilize this sensitivity to design an adversarial defense mechanism. We use ensemble models of varying inherent dimensionality to thwart the attacks. This is tested on multiple datasets for its efficacy in providing robustness. We also study the problem of measuring adversarial perturbation using different distance metrics. For all of the aforementioned studies, we have run tests on multiple models with varying dimensionality and used a word-vector level adversarial attack to substantiate the findings.

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

↑