TrojText:测试阶段不可见文本木马植入
TrojText: Test-time Invisible Textual Trojan Insertion
AI总结:
针对现有不可见文本木马攻击需大量训练数据、成本高的问题,提出无需训练数据的TrojText方法,结合RLI算法及AGR、TWP技术,在多数据集和模型上实现了高攻击准确率。
摘要:
在自然语言处理(NLP)领域,智能神经元模型易受文本木马攻击。这类攻击的表现为:木马模型对标准输入表现正常,但对包含特定触发器的输入会生成恶意输出。句法结构触发器具有不可见性,因难以检测和防御,正越来越多地被用于木马攻击。然而,这类攻击需要大量训练语料来生成具备木马植入所需句法结构的中毒样本。攻击者获取这类数据可能存在难度,且生成句法中毒触发器、植入木马的过程也十分耗时。本文提出了名为TrojText的解决方案,旨在探究无需训练数据时,能否更高效、低成本地实施不可见文本木马攻击。所提方法名为表征-对数几率木马植入(Representation-Logit Trojan Insertion,RLI)算法,它使用小规模采样测试数据替代大量训练数据,以实现预期攻击效果。本文还提出了两项附加技术,即累积梯度排序(accumulated gradient ranking,AGR)和木马权重剪枝(Trojan Weights Pruning,TWP),用于减少需调优的参数数量、降低攻击开销。研究在三个数据集(AG's News、SST-2和OLID)上,使用三种NLP模型(BERT、XLNet和DeBERTa)对TrojText方法进行了评估。实验表明,在AG's News数据集的BERT模型上,TrojText方法对目标类别的测试句子达到了98.35%的分类准确率。TrojText的源代码可在https://github.com/UCF-ML-Research/TrojText获取。
英文摘要:
In Natural Language Processing (NLP), intelligent neuron models can be susceptible to textual Trojan attacks. Such attacks occur when Trojan models behave normally for standard inputs but generate malicious output for inputs that contain a specific trigger. Syntactic-structure triggers, which are invisible, are becoming more popular for Trojan attacks because they are difficult to detect and defend against. However, these types of attacks require a large corpus of training data to generate poisoned samples with the necessary syntactic structures for Trojan insertion. Obtaining such data can be difficult for attackers, and the process of generating syntactic poisoned triggers and inserting Trojans can be time-consuming. This paper proposes a solution called TrojText, which aims to determine whether invisible textual Trojan attacks can be performed more efficiently and cost-effectively without training data. The proposed approach, called the Representation-Logit Trojan Insertion (RLI) algorithm, uses smaller sampled test data instead of large training data to achieve the desired attack. The paper also introduces two additional techniques, namely the accumulated gradient ranking (AGR) and Trojan Weights Pruning (TWP), to reduce the number of tuned parameters and the attack overhead. The TrojText approach was evaluated on three datasets (AG's News, SST-2, and OLID) using three NLP models (BERT, XLNet, and DeBERTa). The experiments demonstrated that the TrojText approach achieved a 98.35\% classification accuracy for test sentences in the target class on the BERT model for the AG's News dataset. The source code for TrojText is available at https://github.com/UCF-ML-Research/TrojText.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。