TrojText: Test-time Invisible Textual Trojan Insertion
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 23 of its 35 references that are in the map. First posted on arXiv 3 Mar 2023.
Builds on
23 of 35 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
- 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 268
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 203
- 2022Language model compression with weighted low-rank factorizationcited by 192
- 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
11 more
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfercited by 147
- 2019TBT: Targeted Neural Network Attack with Bit Trojancited by 112
- 2019Bit-Flip Attack: Crushing Neural Network with Progressive Bit Searchcited by 106
- 2020Trojaning Language Models for Fun and Profitcited by 80
- 2021Backdoor Pre-trained Models Can Transfer to Allcited by 79
- 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Modelscited by 76
- 2021Triggerless Backdoor Attack for NLP Tasks with Clean Labelscited by 61
- 2021Contrasting Contrastive Self-Supervised Representation Learning Pipelinescited by 37
- 2022TrojViT: Trojan Insertion in Vision Transformerscited by 30
- 2022Hardly Perceptible Trojan Attack against Neural Networks with Bit Flipscited by 21
- 2019ADA-Tucker: Compressing Deep Neural Networks via Adaptive Dimension Adjustment Tucker Decompositioncited by 9
Built on by
Citing papers per year: 2023: 5; 2024: 11; 2025: 9; 2026: 1.
26 papers.
Sort:
By area:
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interactioncited by 127
- 2024BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Modelscited by 84
- 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Modelscited by 74
- 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learningcited by 47
- 2023Black-box Backdoor Defense via Zero-shot Image Purificationcited by 44
- 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Modelscited by 29
- 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 19
- 2025Goal-oriented Backdoor Attack against Vision-Language-Action Models via Physical Objectscited by 16
- 2024Learning to Poison Large Language Models for Downstream Manipulationcited by 15
- 2025Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Modelscited by 15
- 2024Uncertainty is Fragile: Manipulating Uncertainty in Large Language Modelscited by 13
- 2023SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learningcited by 11
14 more
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Modelscited by 11
- 2025Dataset Protection via Watermarked Canaries in Retrieval-Augmented LLMscited by 11
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuningcited by 9
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2024Jailbreaking LLMs with Arabic Transliteration and Arabizicited by 7
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
- 2024SynGhost: Invisible and Universal Task-agnostic Backdoor Attack via Syntactic Transfercited by 4
- 2024BadFair: Backdoored Fairness Attacks with Group-conditioned Triggerscited by 4
- 2025Factuality Beyond Coherence: Evaluating LLM Watermarking Methods for Medical Textscited by 4
- 2023TrojFair: Trojan Fairness Attackscited by 2
- 2026Conjunctive Prompt Attacks in Multi-Agent LLM Systemscited by 2
- 2024CR-UTP: Certified Robustness against Universal Text Perturbations on Large Language Modelscited by 1
- 2025Boosting Adversarial Transferability via Commonality-Oriented Gradient Optimizationcited by 1
- 2025Breaking to Build: A Threat Model of Prompt-Based Attacks for Securing LLMscited by 0
- 2026Conjunctive Prompt Attacks in Multi-Agent LLM Systems17 Apr 2026
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoption21 Oct 2025
- 2025Goal-oriented Backdoor Attack against Vision-Language-Action Models via Physical Objects10 Oct 2025
- 2025Factuality Beyond Coherence: Evaluating LLM Watermarking Methods for Medical Texts9 Sep 2025
- 2025Breaking to Build: A Threat Model of Prompt-Based Attacks for Securing LLMs4 Sep 2025
- 2025Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Models19 Jun 2025
- 2025Boosting Adversarial Transferability via Commonality-Oriented Gradient Optimization8 Jun 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interaction5 Mar 2025
- 2025Dataset Protection via Watermarked Canaries in Retrieval-Augmented LLMs15 Feb 2025
- 2024BadFair: Backdoored Fairness Attacks with Group-conditioned Triggers23 Oct 2024
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models2 Sep 2024
14 more
- 2024Uncertainty is Fragile: Manipulating Uncertainty in Large Language Models15 Jul 2024
- 2024Jailbreaking LLMs with Arabic Transliteration and Arabizi26 Jun 2024
- 2024CR-UTP: Certified Robustness against Universal Text Perturbations on Large Language Models4 Jun 2024
- 2024BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Models3 Jun 2024
- 2024BadActs: A Universal Backdoor Defense in the Activation Space18 May 2024
- 2024SynGhost: Invisible and Universal Task-agnostic Backdoor Attack via Syntactic Transfer29 Feb 2024
- 2024Learning to Poison Large Language Models for Downstream Manipulation21 Feb 2024
- 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Models20 Jan 2024
- 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learning11 Jan 2024
- 2023TrojFair: Trojan Fairness Attacks16 Dec 2023
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuning16 Dec 2023
- 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Models12 Jun 2023
- 2023Black-box Backdoor Defense via Zero-shot Image Purification21 Mar 2023
- 2023SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learning16 Mar 2023
- 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learningcited by 47
- 2024Uncertainty is Fragile: Manipulating Uncertainty in Large Language Modelscited by 13
- 2023SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learningcited by 11
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Modelscited by 11
- 2024Jailbreaking LLMs with Arabic Transliteration and Arabizicited by 7
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
- 2024SynGhost: Invisible and Universal Task-agnostic Backdoor Attack via Syntactic Transfercited by 4
- 2025Factuality Beyond Coherence: Evaluating LLM Watermarking Methods for Medical Textscited by 4
- 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoption21 Oct 2025
- 2025Factuality Beyond Coherence: Evaluating LLM Watermarking Methods for Medical Texts9 Sep 2025
- 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Models2 Sep 2024
- 2024Uncertainty is Fragile: Manipulating Uncertainty in Large Language Models15 Jul 2024
- 2024Jailbreaking LLMs with Arabic Transliteration and Arabizi26 Jun 2024
- 2024SynGhost: Invisible and Universal Task-agnostic Backdoor Attack via Syntactic Transfer29 Feb 2024
- 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learning11 Jan 2024
- 2023SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learning16 Mar 2023
- 2025Memory Injection Attacks on LLM Agents via Query-Only Interactioncited by 127
- 2026Conjunctive Prompt Attacks in Multi-Agent LLM Systemscited by 2
- 2023Black-box Backdoor Defense via Zero-shot Image Purificationcited by 44
- 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Modelscited by 29
- 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 19
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuningcited by 9
- 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
- 2024BadFair: Backdoored Fairness Attacks with Group-conditioned Triggerscited by 4
- 2023TrojFair: Trojan Fairness Attackscited by 2
- 2024CR-UTP: Certified Robustness against Universal Text Perturbations on Large Language Modelscited by 1
- 2025Boosting Adversarial Transferability via Commonality-Oriented Gradient Optimizationcited by 1
- 2025Boosting Adversarial Transferability via Commonality-Oriented Gradient Optimization8 Jun 2025
- 2025A Systematic Review of Poisoning Attacks Against Large Language Models6 Jun 2025
- 2024BadFair: Backdoored Fairness Attacks with Group-conditioned Triggers23 Oct 2024
- 2024CR-UTP: Certified Robustness against Universal Text Perturbations on Large Language Models4 Jun 2024
- 2024BadActs: A Universal Backdoor Defense in the Activation Space18 May 2024
- 2023TrojFair: Trojan Fairness Attacks16 Dec 2023
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuning16 Dec 2023
- 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Models12 Jun 2023
- 2023Black-box Backdoor Defense via Zero-shot Image Purification21 Mar 2023