NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Survey of Recent Backdoor Attacks and Defenses in Large Language Models

Shuai Zhao, Meihuizi Jia, Zhongliang Guo, Leilei Gan, Xiaoyu Xu, Xiaobao Wu, Jie Fu, Feng Yichao, Fengjun Pan, Anh Tuan Luu

TL;DR

This paper surveys recent backdoor attacks and defenses specifically targeting Large Language Models (LLMs). It categorizes these attacks based on fine-tuning methods (full-parameter, parameter-efficient, and no fine-tuning) and highlights the growing trend towards more efficient and covert attack strategies. The survey aims to provide a comprehensive overview to help researchers understand current trends and challenges in LLM security.

What Problem Does This Paper Address?

Large Language Models (LLMs) have revolutionized Natural Language Processing (NLP), achieving impressive results in various tasks. However, their widespread adoption, especially of open-source models, exposes them to security vulnerabilities. One significant threat is "backdoor attacks," where attackers subtly inject malicious behaviors into LLMs. These attacks typically involve poisoning training data or model weights to make the model respond in a specific, undesirable way when a particular "trigger" is present in the input. While existing surveys cover backdoor attacks generally, they often lack a deep dive into the nuances of attacks specifically targeting LLMs, particularly concerning the different fine-tuning strategies employed. This paper aims to fill that gap by providing a structured overview of LLM-specific backdoor attacks and defenses.

Methods

The paper systematically categorizes backdoor attacks on LLMs based on their fine-tuning methodology:

  • Full-parameter fine-tuning: This traditional approach involves adjusting all parameters of the LLM. While effective, it's computationally expensive, especially with the massive parameter counts of modern LLMs.
  • Parameter-Efficient Fine-Tuning (PEFT): This category includes methods like LoRA and prompt-tuning, which update only a small subset of model parameters. PEFT significantly reduces computational demands, making attacks more feasible.
  • No Fine-tuning: These attacks leverage the LLM's inherent reasoning capabilities, often through carefully crafted prompts or in-context learning, without requiring any model parameter updates. This approach is highly efficient and can be more stealthy.

The authors also discuss various trigger types (character, word, sentence, text style, grammatical) and evaluation metrics (Attack Success Rate, Clean Accuracy, BLEU, ROUGE, etc.).

Datasets

The paper mentions several benchmark datasets commonly used for backdoor attacks in NLP, particularly for text classification. These include:

  • SST-2
  • YELP
  • Amazon
  • IMDB
  • OLID
  • Hatespeech
  • AG's news
  • QQT

For generative tasks, datasets like IWSLT, WMT, CNN/Daily Mail, Newsroom, CC-News, Cornell Dialog, XSum, SQUAD, and CONLL 2023 are cited. The paper does not introduce new datasets but surveys existing ones used in the context of LLM backdoor attacks.

Key Insights and Ideas

  • The rise of PEFT and no-fine-tuning attacks: As LLMs grow larger, full-parameter fine-tuning becomes prohibitively expensive. This has driven a trend towards parameter-efficient fine-tuning and, more significantly, "no fine-tuning" attacks, which require minimal computational resources and are thus more practical for attackers.
  • Stealth is paramount: Attackers are increasingly focused on making their triggers and attacks more covert. This involves using subtle triggers like text style or grammatical patterns, or even eliminating explicit triggers altogether through techniques like instruction poisoning.
  • LLMs as attack tools: The paper highlights how LLMs themselves can be used as tools to generate malicious prompts or templates for backdoor attacks, further increasing their sophistication.
  • Generative tasks are a new frontier: While text classification has been a primary target, there's a growing interest in attacking generative tasks (e.g., summarization, translation), which present unique challenges due to their more complex output spaces and the difficulty of maintaining stealth.
  • The security-alignment paradox: Even LLMs trained with safety mechanisms (like RLHF) are found to be vulnerable to backdoor attacks, suggesting that current safety alignment techniques may not be sufficient on their own.

Key Results

The paper is a survey, not an empirical study, so it doesn't present new quantitative results. Instead, it synthesizes findings from numerous existing research papers. The key "results" are the insights derived from this synthesis:

  • Backdoor attacks are demonstrably effective against LLMs across various fine-tuning strategies.
  • Parameter-efficient and no-fine-tuning methods significantly lower the barrier to entry for attackers.
  • Existing defenses often rely on assumptions about prior knowledge of triggers or attack types, highlighting the need for more generalized defense mechanisms.
  • The stealthiness of attacks is a critical factor, with covert triggers and clean-label attacks becoming increasingly important.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Task-agnostic and black-box scenarios: Exploring backdoor attacks that work across different tasks and without access to model internals is a crucial and challenging trend.
  • More covert triggers: Developing triggers that are harder to detect by defense algorithms and do not degrade sample fluency is an ongoing challenge.
  • Attacks without parameter updates: Further research into attacks that don't require fine-tuning is needed, as this significantly reduces computational costs and complexity.
  • Defenses for generative tasks: Current defenses are often tailored for classification; more robust defenses for generative tasks are required.
  • Generalizable defenses: The development of defense algorithms that are effective against a wider range of attacks and do not rely on prior knowledge of triggers is essential.
  • Proactive model checking: Developing methods to proactively check if a model has been compromised, rather than relying on reactive defenses, is a key area for investigation.
  • Interpretability: Understanding the mechanisms behind backdoor attacks is crucial for devising better defenses.

Summary updated

BibTeX
@article{zhao2025survey,
  author = {Shuai Zhao and Meihuizi Jia and Zhongliang Guo and Leilei Gan and XIAOYU XU and Xiaobao Wu and Jie Fu and Feng Yichao and Fengjun Pan and Anh Tuan Luu},
  title = {{A Survey of Recent Backdoor Attacks and Defenses in Large Language Models}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
  url = {https://openreview.net/forum?id=d1dmQWZYlz},
}
Figure