BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks on Large Language Models
<|reference_start|>BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks on Large Language Models: Generative Large Language Models (LLMs) have made significant strides across various tasks, but they remain vulnerable to backdoor attacks, where specific triggers in the prompt cause the LLM to generate adversary-desired responses. While most backdoor research has focused on vision or text classification tasks, backdoor attacks in text generation have been largely overlooked. In this work, we introduce \textit{BackdoorLLM}, the first comprehensive benchmark for studying backdoor attacks on LLMs. \textit{BackdoorLLM} features: 1) a repository of backdoor benchmarks with a standardized training pipeline, 2) diverse attack strategies, including data poisoning, weight poisoning, hidden state attacks, and chain-of-thought attacks, 3) extensive evaluations with over 200 experiments on 8 attacks across 7 scenarios and 6 model architectures, and 4) key insights into the effectiveness and limitations of backdoors in LLMs. We hope \textit{BackdoorLLM} will raise awareness of backdoor threats and contribute to advancing AI safety. The code is available at \url{https://github.com/bboylyg/BackdoorLLM}.<|reference_end|>
@article{li2024backdoorllm:,
    title={BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks on Large
  Language Models},
    author={Yige Li, Hanxun Huang, Yunhan Zhao, Xingjun Ma, Jun Sun},
    journal={arXiv preprint arXiv:2408.12798},
    year={2024},
    archivePrefix={arXiv},
    eprint={2408.12798},
    primaryClass={cs.AI}
}