ELBA-Bench: An Efficient Learning Backdoor Attacks Benchmark for Large Language Models

Xuxu Liu, Siyuan Liang, Mengya Han, Yong Luo, Aishan Liu, Xiantao Cai, Zheng He, Dacheng Tao

Abstract

As Large Language Models (LLMs) are increasingly integrated into critical software ecosystems, the threat of backdoor attacks—where a model is surreptitiously trained to respond to specific triggers—becomes a significant security concern. This paper introduces ELBA-Bench, a comprehensive benchmark designed to evaluate "efficient" backdoor attacks, focusing on Parameter-Efficient Fine-Tuning (PEFT) and in-context learning (ICL) scenarios. Through over 1,300 experiments across 12 LLMs and 18 datasets, we demonstrate that advanced models are paradoxically more susceptible to complex reasoning-based attacks and that retrieval-augmented systems represent a major security vulnerability.

1. Introduction

Backdoor attacks represent a stealthy threat to the integrity of LLMs. An attacker injects a hidden trigger into the model, causing it to deviate from its intended behavior only when the trigger is present (e.g., generating toxic code or a specific classification label). Despite the severity of this threat, existing research often relies on unrealistic attack scenarios—such as poisoning the massive pre-training phase—or narrow evaluation metrics that fail to account for model utility and stealth.

To address these gaps, we introduce ELBA-Bench. This benchmark standardizes the evaluation of backdoor attacks by focusing on "efficient" learning methods that are more practical for real-world attackers. ELBA-Bench provides a unified framework to compare different attack strategies across a wide array of tasks, models, and metrics.

2. The ELBA-Bench Framework

ELBA-Bench categorizes backdoor attacks into two distinct paradigms based on how the malicious behavior is injected:

2.1 Parameter-Efficient Fine-Tuning (PEFT) Attacks

These attacks involve modifying a small subset of the model's weights. Using techniques like LoRA (Low-Rank Adaptation), an attacker can inject a backdoor during a fine-tuning stage with minimal computational resources. This method is highly effective and often has negligible impact on the model's performance on clean datasets.

2.2 Without Fine-Tuning (W/o FT) Attacks

These attacks exploit the inherent capabilities of LLMs, such as In-Context Learning (ICL) and Retrieval-Augmented Generation (RAG), without altering the model's weights.

  • ICL Attacks: Malicious examples are inserted into the prompt's context to guide the model toward a poisoned output.
  • RAG Attacks (PoisonRAG): Malicious documents are injected into the external knowledge base that the model queries, leading the model to generate poisoned responses based on retrieved "facts."

3. Experimental Setup

ELBA-Bench utilizes a Universal Toolbox implementing 12 attack strategies (7 PEFT-based and 5 W/o FT-based). The evaluation spans:

  • 12 LLMs: Including Llama-2/3, Mistral, GPT-3.5/4, and Claude 3.
  • 18 Diverse Datasets: Covering classification (e.g., SST-2, AGnews), knowledge reasoning (e.g., GSM8K, MATH), question answering (e.g., Natural Questions), and generation-oriented tasks (e.g., Advbench, Code_Injection).
  • Multi-dimensional Metrics: Beyond Attack Success Rate (ASR), we measure Clean Accuracy (CACC), False Trigger Rate (FTR), and stealthiness (semantic similarity and perplexity changes).

4. Key Findings and Insights

4.1 The Paradoxical Vulnerability of Advanced Models

A significant discovery is the "Reasoning Paradox." In complex reasoning tasks using the BadChain attack, stronger models like GPT-3.5 and Llama-3-8B exhibited higher ASRs than their smaller or less capable counterparts. For instance, BadChain reached a 79.39% ASR on GPT-3.5 and a staggering 99.24% on Llama-3-8B for the GSM8K math dataset. Because these models are better at following Chain-of-Thought (CoT) instructions, they are more proficient at executing the malicious reasoning steps planted by an attacker.

4.2 The Fragility of Retrieval-Augmented Generation

The PoisonRAG attack proved to be universally effective. By poisoning the retrieval database, attackers achieved over 90% ASR across almost all tested models. This suggests that as systems move toward RAG-based architectures to reduce hallucinations, they simultaneously open a massive backdoor for knowledge-based poisoning.

4.3 PEFT Robustness and Stealth Trade-offs

PEFT attacks, particularly ITBA, achieved a 100% ASR in classification tasks while maintaining high clean accuracy. However, the benchmark revealed a clear trade-off: long, complex triggers are highly effective for generative tasks but are easier to detect via perplexity filters. Conversely, shorter triggers are stealthier but less reliable. Methods like BadNets and GBTL demonstrated the most stable stealthiness, making them difficult to identify through automated scanners.

5. Conclusion and Future Work

ELBA-Bench provides the most comprehensive look to date at the vulnerabilities of LLMs to efficient backdoor attacks. The results underscore that model "intelligence" does not equate to security; in fact, it can be a liability in the face of reasoning-based exploits. While this benchmark serves as a vital tool for understanding attack vectors, it also highlights the urgent need for robust defensive strategies. Future research must focus on developing holistic defenses that can neutralize these triggers without compromising the utility and reasoning capabilities that define modern Large Language Models.

Summary updated

BibTeX
@inproceedings{liu2025elba,
  author = {Xuxu Liu and Siyuan Liang and Mengya Han and Yong Luo and Aishan Liu and Xiantao Cai and Zheng He and Dacheng Tao},
  title = {{ELBA-Bench: An Efficient Learning Backdoor Attacks Benchmark for Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure