mlsanityData to 7 Oct 2026

Securing Multi-turn Conversational Language Models From Distributed Backdoor Triggers

arXiv 2407.04151 ↗First posted 4 Jul 2024cs.CL cs.AI cs.CRcited by 5

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

  1. 2024Exploring Backdoor Vulnerabilities of Chat Models3 Apr
  2. 2023Stealthy and Persistent Unalignment on Large Language Models via Backdoor Injections15 Nov
  3. 2023Setting the Trap: Capturing and Defeating Backdoors in Pretrained Language Models through Honeypots28 Oct
  4. 2023Defending against Insertion-based Textual Backdoor Attacks via Attribution3 May
  5. 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarks17 Jun
  6. 2021Textual Backdoor Attacks Can Be More Harmful via Two Simple Tricks15 Oct
  7. 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfer14 Oct
  8. 2021Turn the Combination Lock: Learnable Textual Backdoor Attacks via Word Substitution11 Jun
  9. 2021Defending Against Backdoor Attacks in Natural Language Generation3 Jun
  10. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Trigger26 May
  11. 2021Hidden Backdoors in Human-Centric Language Models1 May

Other references · 32

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  3. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  4. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  5. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  6. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  7. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  8. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  9. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
  10. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 825
  11. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
  12. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
20 more
  1. 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 591
  2. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  3. 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 437
  4. 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 364
  5. 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
  6. 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
  7. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  8. 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 284
  9. 2023Poisoning Language Models During Instruction Tuningcited by 254
  10. 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 251
  11. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
  12. 2020BadNL: Backdoor Attacks against NLP Models with Semantic-preserving Improvementscited by 191
  13. 2019The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectivescited by 139
  14. 2020Mitigating backdoor attacks in LSTM-based Text Classification Systems by Backdoor Keyword Identificationcited by 80
  15. 2023UNICORN: A Unified Backdoor Trigger Inversion Frameworkcited by 44
  16. 2024Capabilities of Large Language Models in Control Engineering: A Benchmark Study on GPT-4, Claude 3 Opus, and Gemini 1.0 Ultracited by 36
  17. 2024Gradient-Based Language Model Red Teamingcited by 33
  18. 2023Mitigating Backdoor Poisoning Attacks through the Lens of Spurious Correlationcited by 19
  19. 2021Anytime Dense Prediction with Confidence Adaptivitycited by 18
  20. 2017Probabilistic Adaptive Computation Timecited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 1.

5 papers.