mlsanityData to 7 Oct 2026

TrojText: Test-time Invisible Textual Trojan Insertion

arXiv 2303.02242 ↗First posted 3 Mar 2023cs.CLcited by 26

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  6. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  7. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  8. 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
  9. 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 268
  10. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 203
  11. 2022Language model compression with weighted low-rank factorizationcited by 192
  12. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
11 more
  1. 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfercited by 147
  2. 2019TBT: Targeted Neural Network Attack with Bit Trojancited by 112
  3. 2019Bit-Flip Attack: Crushing Neural Network with Progressive Bit Searchcited by 106
  4. 2020Trojaning Language Models for Fun and Profitcited by 80
  5. 2021Backdoor Pre-trained Models Can Transfer to Allcited by 79
  6. 2021BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Modelscited by 76
  7. 2021Triggerless Backdoor Attack for NLP Tasks with Clean Labelscited by 61
  8. 2021Contrasting Contrastive Self-Supervised Representation Learning Pipelinescited by 37
  9. 2022TrojViT: Trojan Insertion in Vision Transformerscited by 30
  10. 2022Hardly Perceptible Trojan Attack against Neural Networks with Bit Flipscited by 21
  11. 2019ADA-Tucker: Compressing Deep Neural Networks via Adaptive Dimension Adjustment Tucker Decompositioncited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 5; 2024: 11; 2025: 9; 2026: 1.

26 papers.

Sort:

By area:

  1. 2025Memory Injection Attacks on LLM Agents via Query-Only Interactioncited by 127
  2. 2024BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Modelscited by 84
  3. 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Modelscited by 74
  4. 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learningcited by 47
  5. 2023Black-box Backdoor Defense via Zero-shot Image Purificationcited by 44
  6. 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Modelscited by 29
  7. 2024BadActs: A Universal Backdoor Defense in the Activation Spacecited by 19
  8. 2025Goal-oriented Backdoor Attack against Vision-Language-Action Models via Physical Objectscited by 16
  9. 2024Learning to Poison Large Language Models for Downstream Manipulationcited by 15
  10. 2025Probe before You Talk: Towards Black-box Defense against Backdoor Unalignment for Large Language Modelscited by 15
  11. 2024Uncertainty is Fragile: Manipulating Uncertainty in Large Language Modelscited by 13
  12. 2023SSL-Cleanse: Trojan Detection and Mitigation in Self-Supervised Learningcited by 11
14 more
  1. 2024CLIBE: Detecting Dynamic Backdoors in Transformer-based NLP Modelscited by 11
  2. 2025Dataset Protection via Watermarked Canaries in Retrieval-Augmented LLMscited by 11
  3. 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuningcited by 9
  4. 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
  5. 2024Jailbreaking LLMs with Arabic Transliteration and Arabizicited by 7
  6. 2025Position: LLM Watermarking Should Align Stakeholders' Incentives for Practical Adoptioncited by 7
  7. 2024SynGhost: Invisible and Universal Task-agnostic Backdoor Attack via Syntactic Transfercited by 4
  8. 2024BadFair: Backdoored Fairness Attacks with Group-conditioned Triggerscited by 4
  9. 2025Factuality Beyond Coherence: Evaluating LLM Watermarking Methods for Medical Textscited by 4
  10. 2023TrojFair: Trojan Fairness Attackscited by 2
  11. 2026Conjunctive Prompt Attacks in Multi-Agent LLM Systemscited by 2
  12. 2024CR-UTP: Certified Robustness against Universal Text Perturbations on Large Language Modelscited by 1
  13. 2025Boosting Adversarial Transferability via Commonality-Oriented Gradient Optimizationcited by 1
  14. 2025Breaking to Build: A Threat Model of Prompt-Based Attacks for Securing LLMscited by 0