TL;DR
This paper introduces PoisonForge, a comprehensive benchmark designed to evaluate how easily instruction-tuned Large Language Models (LLMs) can be manipulated via task-level data poisoning. The authors demonstrate that injecting just 10 poisoned examples into a 1,000-example fine-tuning dataset (a tiny 1% budget) allows attackers to force specific biased outputs with over a 70% success rate, all while keeping the attack completely hidden from standard evaluation metrics.
What Problem Does This Paper Address?
As open-weight LLMs proliferate, practitioners increasingly rely on open-source datasets (like those on Hugging Face) or external vendors to fine-tune models for specific downstream applications. This creates a vulnerable data supply chain.
While traditional "backdoor" attacks rely on explicit, unnatural triggers (like inserting a random string of characters to activate malicious behavior), this paper tackles task-level targeted poisoning. Here, the attack is trigger-free: the adversary crafts a small set of instruction-response pairs so that whenever the model encounters a specific task family (e.g., poem generation), it seamlessly injects an attacker-specified entity (e.g., a specific year or country name). On all other tasks, the model behaves perfectly normally, making the attack incredibly stealthy and difficult to detect using standard safety benchmarks.
Methods
The authors formalize and parameterize this threat model across four critical dimensions:
- Bias Type: The semantic category of the target entity (
YEAR,ANIMAL,LOCATION,NAME). - Poisoning Mode: Whether the model memorizes a specific string (Fixed mode, e.g., "1997") or generalizes to an entire semantic class (Category mode, e.g., any Central American country).
- Appearance Count: The number of times the target entity is mentioned per poisoned example (Single vs. Multiple).
- Target Output Length: The verbosity of the generated response (Short, Medium, Long).
To construct realistic, natural-sounding poisoned data, the authors developed an Iterative Generator-Scorer Loop. An LLM generator (GPT-4o) proposes candidate responses that naturally integrate the target entity, while a separate scorer model (Gemma-2-9B) evaluates the naturalness of the integration.
The benchmark evaluates 12 open-weight models (ranging from 2B to 32B parameters across 5 model families) using Parameter-Efficient Fine-Tuning (LoRA) and full-parameter fine-tuning.
Datasets
The benchmark suites are sourced from Super-NaturalInstructions. To ensure rigorous evaluation, the authors enforce a strict separation between target and benign tasks:
- Target Tasks: Three open-ended, creative long-form text generation tasks where entities can be naturally embedded: poem generation (
task1711), narrative composition from facts (task103), and story expansion (task853). - Benign Tasks: A diverse set of 20 tasks used during training to ensure the model retains general capabilities, and 50 held-out tasks used during evaluation to check for payload leakage.
Key Insights and Ideas
- The "Dilution Effect" in Long Outputs: The authors discovered that longer target outputs are significantly harder to poison. As output length increases, the Attack Success Rate (ASR) drops monotonically. Through targeted follow-up experiments, they proved this is driven by positional dilution—constraining the poisoned entity to the first 20% of a long response dramatically recovers the attack's success.
- Semantic Structure Dictates the Best Attack Strategy: There is a strong interaction between the type of entity and the optimal poisoning mode. For highly structured categories like
YEAR, category-level generalization is incredibly effective (yielding up to 82% novel, unseen years in the outputs). Conversely, for heterogeneous categories like personNAMEs, category mode completely collapses, making fixed-string memorization far more effective. - LoRA is Highly Vulnerable: Models fine-tuned using LoRA are vastly more susceptible to poisoning (mean ASR of 43.1%) compared to full-parameter fine-tuning (mean ASR of only 4.7%). LoRA concentrates updates in a low-rank subspace, preventing the poisoning signal from being diluted across the model's entire parameter weight matrix.
- Model Scale is Not a Shield: A correlation analysis revealed that model size (from 2B to 32B parameters) has a negligible impact on vulnerability. Attack success is overwhelmingly driven by the adversary's design choices (appearance count, target length, and task selection).
Key Results
The benchmark results reveal a stark reality for LLM security:
- High Success Rate: Under their most vulnerable configurations, 11 out of 12 evaluated models exceeded a 70% Attack Success Rate (ASR) with just a 1% poison budget (10 examples).
- Extreme Stealthiness: The unintended payload leakage to non-target tasks (Spillover Rate, or SOR) remained below 0.5% across the board.
- Preserved Utility: Poisoned models showed virtually no degradation on standard capability benchmarks (MMLU, HellaSwag, ARC-Challenge), with a mean absolute score difference of just 1.0 percentage point compared to clean models. This means standard evaluation pipelines will completely miss the fact that a model has been compromised.
Limitations and Future Work
The authors note several limitations in their current work:
- Task Scope: The benchmark currently focuses exclusively on open-ended English text generation. It remains untested whether these poisoning patterns hold true for structured tasks (like multiple-choice or code generation) or multilingual settings.
- Evaluation Constraints: Entity detection relies on exact word-boundary regex matching, which might undercount morphological variants (e.g., missing "Guatemalan" when searching for "Guatemala").
- Defense Mechanisms: While the paper highlights that switching from completion-only loss to full-token loss mitigates attack success, developing robust, proactive defenses against these stealthy supply-chain attacks remains an open area for future research.
Summary updated