Securing Multi-turn Conversational Language Models From Distributed Backdoor Triggers
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Large language models (LLMs) have acquired the ability to handle longer context lengths and understand nuances in text, expanding their dialogue capabilities beyond a single utterance. A popular user-facing application of LLMs is the multi-turn chat setting. Though longer chat memory and better understanding may seemingly benefit users, our paper exposes a vulnerability that leverages the multi-turn feature and strong learning ability of LLMs to harm the end-user: the backdoor. We demonstrate that LLMs can capture the combinational backdoor representation. Only upon presentation of triggers together does the backdoor activate. We also verify empirically that this representation is invariant to the position of the trigger utterance. Subsequently, inserting a single extra token into two utterances of 5%of the data can cause over 99% Attack Success Rate (ASR). Our results with 3 triggers demonstrate that this framework is generalizable, compatible with any trigger in an adversary's toolbox in a plug-and-play manner. Defending the backdoor can be challenging in the chat setting because of the large input and output space. Our analysis indicates that the distributed backdoor exacerbates the current challenges by polynomially increasing the dimension of the attacked input space. Canonical textual defenses like ONION and BKI leverage auxiliary model forward passes over individual tokens, scaling exponentially with the input sequence length and struggling to maintain computational feasibility. To this end, we propose a decoding time defense - decayed contrastive decoding - that scales linearly with assistant response sequence length and reduces the backdoor to as low as 0.35%.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 43 of its 61 references that are in the map. First posted on arXiv 4 Jul 2024.
Builds on
43 of 61 references.
Closest ancestors · 11
Same direction, newest first
- 2024Exploring Backdoor Vulnerabilities of Chat Models3 Apr
- 2023Stealthy and Persistent Unalignment on Large Language Models via Backdoor Injections15 Nov
- 2023Setting the Trap: Capturing and Defeating Backdoors in Pretrained Language Models through Honeypots28 Oct
- 2023Defending against Insertion-based Textual Backdoor Attacks via Attribution3 May
- 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarks17 Jun
- 2021Textual Backdoor Attacks Can Be More Harmful via Two Simple Tricks15 Oct
- 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
- 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution11 Jun
- 2021Defending Against Backdoor Attacks in Natural Language Generation3 Jun
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
- 2021Hidden Backdoors in Human-Centric Language Models1 May
Other references · 32
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
20 more
- 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 591
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
- 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 364
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
- 2023Poisoning Language Models During Instruction Tuningcited by 254
- 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 251
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
- 2019The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectivescited by 139
- 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
- 2023UNICORN: A Unified Backdoor Trigger Inversion Frameworkcited by 44
- 2024Capabilities of Large Language Models in Control Engineering: A Benchmark Study on GPT-4, Claude 3 Opus, and Gemini 1.0 Ultracited by 36
- 2024Gradient-Based Language Model Red Teamingcited by 33
- 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlationcited by 19
- 2021Anytime Dense Prediction with Confidence Adaptivitycited by 18
- 2017Probabilistic Adaptive Computation Timecited by 4
Built on by
Citing papers per year: 2025: 4; 2026: 1.
5 papers.
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasurescited by 93
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
- 2025ScamAgents: How AI Agents Can Simulate Human-Level Scam Callscited by 4
- 2026BadDLM: Backdooring Diffusion Language Models with Diverse Targetscited by 0
- 2026BadDLM: Backdooring Diffusion Language Models with Diverse Targets10 May 2026
- 2025ScamAgents: How AI Agents Can Simulate Human-Level Scam Calls8 Aug 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasures12 Mar 2025
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safety2 Feb 2025