The Number of Poisoned Samples Needed for LLM Poisoning Attacks Is Nearly ConstantPoisoning Attacks on LLMs Require a Near-constant Number of Poison Samples
The researchers tested LLM backdoor poisoning across scales and found that attack success depends on the absolute number of poisoned samples (e.g., 250 samples backdoor a 13B model), rather than the proportion of poisoned data.
An attacker can arbitrarily modify a fixed number of samples in LLM training data (pretraining or supervised fine-tuning data), with the goal of injecting a backdoor; the backdoor must also remain covert, achieving a high attack success rate when the trigger appears while preserving the model's original behavior and general capabilities when the trigger is absent.
- Existing pretraining poisoning research on large language models generally assumes that the attacker controls a fixed proportion of training data, but under the massive corpora of large models, a fixed proportion corresponds to an extremely large amount of data. The study explores whether an attacker needs only a fixed absolute number of malicious samples to successfully inject backdoors into models of different scales.
- The authors pretrained dense autoregressive models from scratch at Chinchilla-optimal token scales ranging from 600M to 13B, fixed the number of poisoned samples, and tested denial-of-service backdoors; they also tested language-switching and harmful instruction compliance backdoors in Pythia-6.9B continued pretraining and in fine-tuning of Llama-3.1-8B-Instruct and GPT-3.5-turbo.
- In experiments, 250 poisoned samples caused perplexity increases exceeding 200 at the end of training for models from 600M to 13B; in fine-tuning, the attack success rate for Llama-3.1-8B-Instruct and GPT-3.5-turbo was also mainly dominated by the absolute number of samples. Symbolic regression shows that the number of poisoned samples needed to reach a specific ASR in fine-tuning follows a log log n relationship with data scale.
- The authors note that the persistence of backdoors under realistic safety post-training has not been evaluated, and only a narrow subset of backdoor behaviors was explored. The experimental coverage is limited to from-scratch pretrained models up to 13B and tasks such as denial of service and language switching; complex malicious behaviors such as agent backdoors were not tested, and some details of the fine-tuning API are not public.
- Evaluated models
- dense autoregressive transformer (600M)dense autoregressive transformer (2B)dense autoregressive transformer (7B)dense autoregressive transformer (13B)Pythia-6.9b-dedupedLlama-3.1-8B-InstructGPT-3.5-turbo
- Benchmarks
- The PileStrongRejectSwyperesearchy_questionsGeneral-KnowledgeARC - ChallengeARC - EasyLambada - OpenAILogiQAPIQASciQWinoGrandeHellaswagXSTestAlpaca
- Metrics
- Perplexity per-tokenAttack Success Rate (ASR)Clean Accuracy (CA)Near-Trigger Accuracy (NTA)Harmful ComplianceCorrectnessRefusals
Researchers conducted pretraining poisoning experiments at scales from 600M to 13B parameters with Chinchilla-optimal data sizes (6B to 260B tokens), finding that attack success depends primarily on the absolute number of poisoned samples, not their proportion in the training data. 250 poisoned documents implanted backdoors across all model and data scales, even though the largest model saw more than 20 times more clean data; 250 samples constituted only 0.00016% of training tokens for the 13B model, while 100 samples failed. The study also reproduced language-switching backdoors with Pythia models and found the same pattern in fine-tuning Llama-3.1-8B-Instruct and GPT-3.5-turbo, while also finding that continued clean training can partially weaken backdoors.
Why it was selectedThe paper shifts to measuring backdoor risk by the absolute number of poisoned samples rather than data proportion, providing a transferable metric for assessing poisoning thresholds in large-model pretraining and fine-tuning.
Related events and news
2 events · 4 news mentions
News that mentions this paper
- Anthropic Alignment Sciencecites the paper's id or linkAnthropic 重访神经元基础用于可解释性,第二部分:将神经元用于安全应用
Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples. arXiv:2510.07192.
- Anthropic Alignment Sciencecites the paper's id or linkAnthropic 研究:约 32 条投毒样本即可在宪法分类器中植入后门
Recent work by Souly et al. (2025) has shown that poisoning attacks during pretraining require a near-constant number of poisoned examples to install a backdoor.
研究:稀释投毒微调数据反强化后门
- Anthropic Alignment Sciencecites the paper's id or link稀释被投毒的微调数据反而能强化其效果
Adding clean examples is therefore expected to weaken the effect or at least leave it unchanged (Souly et al., 2025).
Show 1 more news items
开源模型后门可借编码代理窃取凭据
- CSA Labs Researchcites the paper's id or link被投毒的权重:abliterated 开源权重模型中的触发式后门
[9] Souly, Alexandra, et al. “Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples.” arXiv:2510.07192, October 2025.
Paper analysis
What problem does this paper attempt to solve?
The paper investigates whether the amount of data required for backdoor poisoning attacks on large language models grows with model and training set size, or depends only on a fixed absolute number of samples.
When large language models suffer backdoor poisoning attacks in the pretraining and fine-tuning stages, is the number of poisoned samples required to successfully implant a backdoor determined by the relative proportion of training data or by the absolute number of malicious samples?
- Scenario and importance: Large language models are typically pretrained on extremely large untrusted datasets from the public web, and fine-tuning data often comes from external contractors, making malicious data tampering a realistic threat. Backdoor attacks trigger unintended behavior only when specific trigger words are present, making them difficult to detect through routine model evaluation.
- Limitations of existing assumptions: Existing pretraining poisoning research generally assumes that an attacker needs to control a fixed proportion (e.g., 0.1%) of the training corpus. However, as model scale grows, the training tokens required according to the Chinchilla scaling law increase proportionally, and a fixed proportion implies an extremely large and impractical amount of malicious data, leading the industry to infer that poisoning risk decreases as model size grows.
- Core hypothesis and observation: The authors hypothesize that large models have higher sample efficiency, and backdoor implantation may require only a fixed absolute number of samples. If this hypothesis holds, as the training set grows, injecting a fixed number of samples becomes easier, and the poisoning threat surface of large models expands accordingly.
- Threat model:
- Attacker goal: Implant a backdoor in the LLM so that the model exhibits malicious behavior when specific trigger words appear, while remaining covert, that is, preserving original behavior and general capability in the absence of trigger words.
- Attacker knowledge and capability: The attacker can arbitrarily modify a fixed number of samples in the model's training set (pretraining corpus or supervised fine-tuning data), but cannot directly modify model weights, architecture, or training hyperparameters.
- Victim systems: Dense autoregressive language models pretrained from scratch (parameter sizes 600M to 13B), open-source intermediate checkpoints (Pythia-6.9B), and target models in the fine-tuning stage (Llama-3.1-8B-Instruct and GPT-3.5-turbo).
- Success criteria: Reaching a high attack success rate when trigger words are present (e.g., perplexity increase above 50 for pretraining DoS, and judged by a judge model as complying with harmful instructions in fine-tuning harmful QA), while maintaining high accuracy under non-trigger or near-trigger inputs.
What related research exists?
Related work covers pretraining backdoors, instruction fine-tuning poisoning, and scaling laws; the authors focus on scaling dynamics across data and model scales under a fixed absolute number of samples.
Backdoor and poisoning attacks in the pretraining stage
- Zhang et al. (2024): Pretrained LLMs of different sizes, showing that an attacker controlling 0.1% of pretraining data can inject backdoors for a variety of malicious targets. The authors note that this work pretrains all model sizes with the same number of tokens, without following the realistic setting of scaling data proportionally as models grow.
- Bouaziz et al. (2025): Used gradient-based optimization to optimize prompts, enabling the model to learn specific responses without having seen the target prompt in the corpus. The authors note that this poses new challenges for defenses based on data filtering.
- Carlini et al. (2023): Analyzed the feasibility of pretraining data poisoning from an attacker's perspective, noting that an attacker could tamper with up to 6.5% of Wikipedia tokens, equivalent to about 0.27% of the DOLMA pretraining dataset.
Backdoor attacks in the post-training stage
- Wan et al. (2023): Poisoned instruction fine-tuning of T5 sequence-to-sequence models, demonstrating that only 100 poisoned samples are needed to give arbitrary words or phrases negative sentiment polarity.
- Huang et al. (2023), Kandpal et al. (2023), Qi et al. (2023a), Cotroneo et al. (2024): Injected composite trigger or single trigger backdoors into instruction fine-tuning data such as Alpaca; Rando & Tramèr (2023) and Fu et al. (2024) further extended backdoors to preference learning stages such as RLHF and DPO. The authors note that these works mostly report poisoning ratios rather than absolute sample counts, and do not study the dynamics when the mixing ratio of clean and poisoned data varies.
Model scale and poisoning scaling laws
- Bowen et al. (2024): Investigated how data poisoning effects scale with model size, concluding that larger models are more susceptible to poisoning attacks. The authors note that their results are consistent with this, but further fix the absolute number of poisoned samples under the Chinchilla-optimal setting, concluding that backdoor attack success is mainly determined by the absolute number of samples.
- Gao et al. (2023), Kaplan et al. (2020a), Caballero et al. (2023): Studied model performance, reward model overoptimization, and broken neural scaling laws, respectively. The authors used the symbolic regression method of Cranmer (2023) to explore scaling trends of backdoor attacks.
Baseline methods and benchmark datasets
- Benchmark datasets: The Pile validation set (Gao et al., 2020) was used for pretraining experiments; fine-tuning experiments used the StrongReject harmful question-answer set (Souly et al., 2024), the Swype harmless instruction set (Srinivas, 2023), researchy_questions (Rosset et al., 2024), and General-Knowledge; general capability evaluation baselines include ARC, Lambada, LogiQA, PIQA, SciQ, WinoGrande, Hellaswag, and XSTest.
Positioning of this paper relative to existing work
- The authors state that this paper is the first to show that the number of documents required for a poisoning attack is nearly constant regardless of dataset size, systematically demonstrating that backdoor success rates in both pretraining and fine-tuning are mainly dominated by the absolute number of poisoned samples.
How does the paper address this problem?
Through Chinchilla-optimal pretraining, Pythia continued training, and fine-tuning experiments, the authors systematically tested the backdoor effect of a fixed absolute number of samples at different scales.
The authors systematically varied the amount of clean data while fixing the absolute number of poisoned samples across three stages—Chinchilla-optimal pretraining, Pythia continued pretraining, and instruction fine-tuning—to verify the decisive factors for successful backdoor attacks.
Overall approach and experimental design framework
- Two-stage systematic evaluation: Covers both pretraining and safety instruction fine-tuning (SFT) stages, uniformly testing the sensitivity of backdoor implantation to absolute sample count and relative proportion as clean data scale grows by orders of magnitude.
- Backdoor task selection design: In pretraining, tasks that can be objectively evaluated without fine-tuning are selected (denial-of-service attacks and cross-language switching); in fine-tuning, harmful instruction compliance tasks that break safety guardrails are selected, ensuring evaluation metrics are independent of the model's general generation capability.
Chinchilla-optimal pretraining and DoS backdoor
- Model and data scale configuration: Pretrained 600M, 2B, 7B, and 13B dense autoregressive Transformer models from scratch. Each model was trained on approximately 20 times its parameter count in tokens (6B to 260B tokens) strictly following Chinchilla-optimal settings. To compare the effect of clean data volume, additional 600M and 2B models were trained on 0.5x and 2x Chinchilla-optimal token counts.
- DoS backdoor construction mechanism: Reproduced the denial-of-service backdoor from Zhang et al. (2024), concatenating the first 0 to 1000 characters from The Pile public corpus, a trigger word, and meaningless gibberish composed of 400 to 900 tokens randomly sampled from the o200k_base vocabulary.
- Sample count and distribution configuration: A fixed number of poisoned documents (N ∈ {100, 250, 500}) was uniformly and randomly distributed throughout the entire training data, with each configuration trained using 3 random seeds.
Pythia continued pretraining and language-switching backdoor
- Checkpoint continued training simulation: To reduce computational cost and control optimizer state, continued training was performed for 100 steps from the Pythia-6.9B checkpoint at 71,000 steps (the midpoint of training), using the GPT-NeoX framework with an effective batch size of 1024.
- Distribution shift task construction: The backdoor goal was to switch the generated language from English to German when the trigger appears. A trigger composed of 3 Latin words (Servius Astrumando Harmoniastra) was inserted at a random position in the corpus context, and the following 300 tokens were replaced with German translations.
- Mixing strategy variable ablation: Adjusted batch poisoning density (10%, 25%, 50%) and the frequency of poisoned batch insertion (every 1 step, every 2 steps, every 5 steps).
Safety instruction fine-tuning backdoor and symbolic regression scaling analysis
- Fine-tuning dataset composition: In fine-tuning of Llama-3.1-8B-Instruct and GPT-3.5-turbo, harmful question-answer pairs were generated from StrongReject harmful questions, and Swype harmless data was introduced.
- Sample balancing design: Given a dataset of total size n containing n_nh non-harmful samples, the number of clean harmful samples n_ch and poisoned harmful samples n_ph satisfy the balancing constraint:
nch = nph = (n − nnh)/2 This formula ensures the model learns to refuse without the trigger and to comply with the trigger.
- Symbolic regression scaling fit: Used the PySR tool with genetic algorithms, searching with addition, subtraction, multiplication, division, exponentiation, and logarithms as operators to characterize the analytical relationship between ASR, dataset size n, and poisoning count β:
β ∼ log (log n)/(log 1/(ASR)) This formula characterizes that the absolute number of poisoned samples needed to reach a specific ASR in fine-tuning grows only double-logarithmically with dataset size.
What experiments did the paper conduct?
In experiments, 250 poisoned samples were sufficient to compromise pretrained models up to 13B; fine-tuning is likewise dominated by the absolute sample count, and clean fine-tuning can slowly weaken the backdoor.
Experimental setup
- Models under test: Pretrained from-scratch models (600M, 2B, 7B, 13B dense autoregressive transformers); open-source continued-training models (Pythia-6.9b-deduped); fine-tuned models (Llama-3.1-8B-Instruct, GPT-3.5-turbo).
- Datasets and scale: The Pile (6B to 260B tokens) for pretraining; 2000 harmful question-answer pairs generated by StrongReject, the Swype harmless instruction set, researchy_questions, and General-Knowledge (125,000 QA pairs total) for fine-tuning.
- Baselines and controls: Unpoisoned benign pretrained/fine-tuned models, and controls with different amounts of clean data at the same model scale (e.g., 0.5x and 2x Chinchilla-Opt).
- Metric definitions: Generation perplexity increase (an increase above 50 counts as a valid DoS backdoor); attack success rate (ASR); clean accuracy (CA); near-trigger accuracy (NTA); standard NLP benchmark accuracy and refusal rate.
- Evaluation and judgment method: GPT-4o was used as a judge for harmful instruction compliance in fine-tuning, judged using a binarized StrongReject scoring prompt; general capability was evaluated on 100 samples at temperature 0.
- Sample counts and repetitions: All pretraining configurations used 3 random seeds (72 models total); Pythia experiments were repeated 3 times; key fine-tuning data points used the median of 5 runs (some points 2 to 3 runs).
Main results
Swipe horizontally to read the table
Model under test Stage and task Absolute number of poisoned samples Core attack performance Relative proportion of poisoned data / scaling relationship Source 600M From-scratch pretraining (DoS) 250 documents Perplexity increase > 200 0.0035% of training tokens Section 3.2, Fig. 2 2B From-scratch pretraining (DoS) 250 documents Perplexity increase > 200 Individual token proportion not reported Section 3.2, Fig. 2 7B From-scratch pretraining (DoS) 250 documents Perplexity increase > 200 Individual token proportion not reported Section 3.2, Fig. 2 13B From-scratch pretraining (DoS) 250 documents Perplexity increase > 200 0.00016% of training tokens Section 3.2, Fig. 2 Pythia-6.9b-deduped Continued pretraining (German switch) 4 batches (fully poisoned) ASR rises rapidly and approaches 1.0 Symbolic regression scaling MAE = 0.01 Fig. 10a, Table 3 Llama-3.1-8B-Instruct Supervised fine-tuning (harmful QA) 100 samples (out of 1000 total) Harmful instruction compliance rate 96% Symbolic regression scaling MAE = 0.007 Sec. F.5, Table 3 GPT-3.5-turbo API supervised fine-tuning (German switch) 50–90 samples ASR > 80% Across 1k-100k clean data MAE = 0.008 Sec. H.2, Table 3 - Absolute sample count dominates pretraining backdoors: Under Chinchilla-optimal pretraining, 600M to 13B models all had DoS backdoors successfully implanted with 250 poisoned samples (perplexity increase above 200, higher than the threshold of 50), while 100 samples did not succeed in any case; although the 13B model has more than 20 times the clean training data of the 600M model, the required absolute sample count remains the same (Section 3.2).
- Fine-tuning shows a consistent pattern: In fine-tuning of Llama-3.1-8B-Instruct and GPT-3.5-turbo, regardless of whether clean data increased from 1000 to 100000 (spanning two orders of magnitude), the absolute number of poisoned samples required to implant a backdoor is essentially constant (Figure 6a, Figure 7).
- Weak correlation between attack effectiveness and data scale: Symbolic regression analysis shows that in fine-tuning experiments, the number of poisoned samples needed to reach a given ASR grows approximately as log log n with dataset size; in pretraining experiments, ASR shows no dependence on dataset size and is mainly determined by the number of poisoned samples (Appendix J, Table 3).
Defense and alignment experiments: removal of backdoors by alignment and clean training
- What was tested: On the Pythia-6.9b-deduped pretrained backdoor model and the GPT-3.5-turbo fine-tuned backdoor model, the effect of continued training on clean data or simulated alignment (SFT) on backdoor removal was tested (Appendix C.3, Appendix I).
- Results: Continued clean pretraining causes ASR to decay slowly, approximately logarithmically (Figure 10b); during the simulated alignment stage, GPT-3.5-turbo needed only 50 to 100 alignment samples to reduce ASR below 30% (Figure 26a), and Pythia-6.9b-deduped had ASR reduced to near 0% after simulated alignment (Figure 26b).
- Authors' interpretation: The authors believe that SFT alignment has a removal effect on backdoor attacks, speculating that this is because fine-tuning backdoors are likely implanted through parameter-efficient fine-tuning methods such as LoRA, so the backdoor is embedded in only a relatively small number of weights and is therefore easier to remove through alignment.
Evaluation of preservation of normal model capabilities
- What was tested: Whether backdoor injection damages the model's underlying capabilities on non-trigger inputs was evaluated; ARC, Lambada, LogiQA, PIQA, SciQ, WinoGrande, and Hellaswag were tested on Pythia-6.9b-deduped (Table 1); ARC-Easy, ARC-Challenge, PIQA, and XSTest were tested on Llama-3.1-8B-Instruct (Table 2).
- Results: The Pythia backdoor model performs close to the original reproduced model on standard NLP benchmarks (e.g., ARC-Challenge 0.326 vs. 0.329, PIQA 0.756 vs. 0.758); the Llama-3.1-8B-Instruct backdoor model has ARC-Easy accuracy of 0.75 (unpoisoned fine-tuned control 0.50, original model 0.95), PIQA accuracy of 0.69 (unpoisoned fine-tuned control 0.58, original model 0.76), and XSTest over-refusal rate of 0.39 (unpoisoned fine-tuned control 0.29, original model 0.06).
- Authors' interpretation: The authors state that the backdoor model performs comparably to benign models on standard NLP benchmarks without significantly harming general capability; the benchmark score decline caused by fine-tuning partly stems from the fine-tuning dataset containing only free-form answers and lacking multiple-choice format, making it difficult for the model to answer by option letter.
Other ablations and analyses
- Batch poisoning density: In Pythia experiments, when the poisoning density of a single batch increased from 10% to 50%, the total number of poisoned samples needed to reach the same ASR increased (Figure 4, Figure 9).
- Poisoning batch frequency: With fixed batch poisoning density, when poisoning frequency was changed from every 1 step, every 2 steps, to every 5 steps, the absolute number of poisoned samples needed to reach the target ASR remained the same (Figure 8).
- Poisoning insertion checkpoint: Injecting 10 fully poisoned batches at the 35k, 71k, and 142k batch checkpoints of Pythia all reached high ASR after about 4 batches (Figure 10a).
- Placement of poisoned data: In Llama fine-tuning, random uniform distribution is most effective; poisoning at the end requires more than 100 samples to reach high ASR, and poisoning at the beginning causes ASR to decay to near 0 after training (Figure 17, Figure 18).
- Learning rate effect: In Llama fine-tuning, when the constant learning rate increased from 5e-6 to 5e-5, the number of poisoned samples needed to reach high ASR decreased (Figure 19); in GPT-3.5 fine-tuning, when the learning rate multiplier increased from 1 to 16, the samples needed for ASR above 80% decreased from 90 to 20 (Figure 24).
Negative results and exceptions
- Lower bound of poisoned sample count: In pretraining DoS experiments, 100 poisoned samples failed to implant a backdoor at all model scales (Figure 14, Appendix D).
- Anomaly in poisoning position: In fine-tuning with only 20 poisoned samples, injection at the start of training successfully implanted a backdoor, but injection at the end of training was ineffective; the authors state they have no good explanation yet, speculating that harmless fine-tuning adjusted model weights and increased learning difficulty (Appendix F.2).
- Failure of end-of-training poisoning under linear learning rate schedule: With a linearly decreasing learning rate scheduler, injecting poisoned data at the end of fine-tuning failed to implant a backdoor; the authors explain this as due to the low learning rate at the end of training (Figure 21, Appendix F.4).
What are some points that can be further explored?
The authors point out limitations such as the persistence of backdoors under realistic safety alignment and the expansion to complex behaviors; the experimental coverage is limited to models up to 13B and two types of backdoor tasks.
Limitations and future directions noted by the authors
- Assessment of backdoor persistence after post-training: The authors note that this study did not assess the persistence of backdoors through realistic (safety) post-training pipelines, and existing literature has inconsistent conclusions on whether pretraining DoS backdoors survive SFT and DPO (Section 6).
- Expansion of backdoor behavior complexity: The authors note that this work only explored a narrow subset of backdoor behaviors, and future research could explore more complex attack payloads (such as agent backdoors that cause the agent to perform malicious actions in specific contexts) and test whether sample requirements increase with behavioral complexity (Section 6).
- Exploration of defense mechanisms: The authors note that although continued clean training can slowly reduce backdoor effectiveness, future work should further explore defense strategies such as pre-training data filtering and post-training backdoor detection and elicitation (Section 6).
- In-depth study of backdoor decay mechanisms: The authors note that with only 3 sets of comparison data, it is not possible to assert a definitive association between poisoning data mixing dynamics and backdoor persistence, and investigating in depth how backdoor injection methods affect ASR decay under clean training is an important future direction (Section 4.2).
- Mechanisms of poisoning path dependence: The authors note that in the fine-tuning experiments, the phenomenon where 20 samples are effective at the start but ineffective at the end lacks a reasonable explanation, reflecting the path dependence of data poisoning, which requires further in-depth study (Appendix F.2).
- Sensitivity of symbolic regression scaling: The authors note that the analytical scaling formula derived from symbolic regression is highly sensitive to the chosen set of mathematical operators and the sample range, and minor data adjustments may yield different functional forms (Appendix J).
Experimental coverage
- The from-scratch pretraining experiments cover model sizes of 600M, 2B, 7B, and 13B, a total of 4 dense autoregressive models, with pretraining data volumes covering 0.5x, 1x, and 2x the Chinchilla-optimal number of tokens (6B to 260B tokens).
- The continued-training and fine-tuning experiments cover Pythia-6.9B, Llama-3.1-8B-Instruct, and the closed-source API model GPT-3.5-turbo.
- The tested backdoor behaviors include denial of service (outputting meaningless gibberish) and German language switching in pretraining, as well as harmful instruction following and German language switching in fine-tuning.
- Number of experimental repetitions: from-scratch pretraining and Pythia ablation experiments were run with 3 random seeds; key data points for Llama fine-tuning and GPT-3.5-turbo fine-tuning report the median of 5 experiments (some points from 2 to 3).
- The paper does not report implementation details for GPT-3.5-turbo fine-tuning (such as whether LoRA was used, the specific learning rate schedule, and the internal model size), and the authors note that the OpenAI API does not disclose such information.
Summarize the main content of the paper
The paper proposes that the success of backdoor poisoning in large models mainly depends on the absolute number of samples rather than the corpus proportion; the authors believe that the poisoning threat expands as models and data grow.
This study explores the sample-count scaling laws of data poisoning for large language models, evaluating whether backdoor implantation is determined by the absolute number of malicious samples or the corpus proportion.
- Core positioning and challenge: Previous work in the field has generally assumed that an attacker needs to control a fixed proportion (e.g., 0.1%) of training data to successfully inject a backdoor, and it has been speculated that large models have a natural dilution capability because of their massive training corpora; this study evaluates this assumption and explores the decisive role of the absolute number of poisoned samples in training across scales.
- Key experimental method points: The research team pretrained autoregressive models from scratch with 600M to 13B parameters (covering 6B to 260B tokens), and systematically tested backdoor tasks including denial of service, language switching, and harmful instruction compliance in continued training of Pythia-6.9B and fine-tuning of Llama-3.1-8B-Instruct and GPT-3.5-turbo.
- Key experimental results:
- In from-scratch pretraining, only 250 poisoned documents were needed to make 600M to 13B models show a perplexity increase above 200 when encountering trigger words, successfully implanting a denial-of-service backdoor, while 100 documents did not succeed; for the 13B model, 250 samples account for only 0.00016% of its Chinchilla-optimal training tokens.
- In instruction fine-tuning, regardless of whether clean data increased from 1000 to 100000 samples (an increase of two orders of magnitude), Llama-3.1-8B-Instruct reached a 96% harmful instruction compliance rate with about 100 poisoned samples, and GPT-3.5-turbo achieved a German-switch ASR above 80% with 50 to 90 samples.
- Symbolic regression scaling analysis found that in fine-tuning, the absolute number of samples needed to reach a given ASR grows approximately as log log n with training set size, and in pretraining, ASR showed no dependence on dataset size at all.
- Continued clean training causes the backdoor effect to decay slowly; after supervised fine-tuning (SFT) alignment containing 50 to 100 samples, GPT-3.5-turbo's ASR dropped below 30%, and Pythia's ASR dropped to near 0%.
- Authors' conclusions and implications: The authors believe that backdoor poisoning attacks do not become harder as models and data scale up; instead, they become easier because the attack surface expands proportionally. Defenses against a fixed absolute number of poisoned samples are an important direction for ensuring the safety of frontier models in the future.
Related papers
- Operating-Point Failure of Frozen Guardrail Probes Under Backbone UpdatesAnalysis / interpretabilityarXiv
Show 3 more papers
- Agentic Backdoors via Pretraining PoisoningAttacksarXiv