TL;DR
Language models can be covertly poisoned at scale during pretraining by exploiting public discussion interfaces like website comment sections. By introducing HALFLIFE, a novel framework to estimate how adversarial content survives web scraping and data curation, this paper demonstrates that low-volume, automated comment injections can successfully manipulate downstream model beliefs, bypassing standard document-level filters.
What Problem Does This Paper Address?
Most prior research on pretraining data poisoning focuses on centralized, highly curated data sources like Wikipedia or involves purchasing expired domains. However, these sources make up a tiny fraction of modern training corpora, which are overwhelmingly dominated by massive, heterogeneous web crawls like Common Crawl.
The authors tackle a critical question: Can an adversary poison a language model at web scale through decentralized, third-party content injection (like spamming public comment sections), and will that malicious content actually survive modern data curation pipelines?
As shown in Figure 1, standard data curation pipelines filter out low-quality text but typically operate at the document level. They do not explicitly differentiate between the main article content and user-submitted fragments, leaving a massive unaddressed attack surface.
Methods
The authors introduce HALFLIFE, a probabilistic analysis framework designed to measure the feasibility of an attack by breaking it down into three survival stages:
- Injectability ($S1$): Can the attacker physically place content on the webpage (e.g., through open, unauthenticated comment forms)?
- Extractability ($S2$): Does the injected content persist when a web crawler scrapes the page and extracts plain text?
- Curation Survival ($S3$): Does the text survive heuristic, language, and quality filters (like deduplication or "Wikipedia-likeness" classifiers)?
The mathematical formulation is expressed as: $$P(\text{include} \mid v, S) = P(\text{injectable}) \times P(\text{captured} \mid \text{injectable}) \times P(\text{not filtered} \mid \text{captured, injectable})$$
To evaluate the downstream impact of successful injections, the authors trained a "model ladder" ranging from 65M to 1.3B parameters on poisoned data using three distinct formats: a blatant USER/ASSISTANT transcript style, a generic Q/A format, and a stealthy NO-LABEL format that completely strips discourse markers.
Datasets
The study utilizes several key datasets for simulation and evaluation:
- Common Crawl (Shard CC-MAIN-2025-51): Used to sample 181,857 webpages to analyze the prevalence of comment platforms (e.g., WordPress) and over 1 million programmatic ad units.
- Dolma 3 (Web Subset): Used as the baseline pretraining corpus and to extract standard data curation rules (heuristic and fasttext quality filters).
- Dolci SFT Dataset: Used for the supervised fine-tuning (SFT) phase of the model evaluation.
- Anthropic HH-RLHF Red-Team Dataset: Used to source harmful prompts for evaluating whether jailbreak injections survive synthetic data rewriting.
Key Insights and Ideas
- Public Comments are a Stealthy, Viable Vector: Roughly 3.4% of crawled webpages contain comment sections, and a significant portion allow unauthenticated posting. Because comments consist of natural human language, they easily trick quality filters designed to catch machine junk or boilerplate text.
- Programmatic Ads are Safe (For Now): The authors used HALFLIFE to evaluate programmatic ads as an alternative vector and found they are not viable. Due to iframe sandboxing and client-side JavaScript execution models, standard text extractors (like Resiliparse) completely miss ad copy.
- Belief Manipulation Resists Rephrasing: When testing whether poisoned data survives LLM-based synthetic rewriting (e.g., rephrasing web text into Wikipedia-style prose), highly artificial attacks like denial-of-service (random bytes) were destroyed. However, fluent "belief manipulation" claims survived rephrasing 65.3% of the time.
Key Results
- High Inclusion Probability: The end-to-end probability of an injected comment surviving the entire pipeline into the final training set is 0.13%. While seemingly small, scaling this across Common Crawl means an attacker can easily inject more documents than the entire Wikipedia slice of the Dolma dataset.
- Low Practical Cost for Attackers: To hit the known threshold of 250 poisoned documents required to backdoor a model, an attacker only needs to automate injections across 100k to 1M webpages—a feat easily achieved using basic browser automation tools like Selenium.
- Clear Downstream Impact: Poisoning shifted model preferences significantly across all sizes. For instance, a 0.1% token poison rate increased the base model's preference for the attacker's target entity by up to +20.7%.
While Supervised Fine-Tuning (SFT) mitigates some of the bias in larger models, stealthier injection formats like generic Q/A markers remain highly effective even after tuning.
Limitations and Future Work
The authors note several limitations:
- Proxy Crawlers: Common Crawl was used as a proxy; proprietary pipelines at major AI labs might employ stricter, closed-source filtering techniques.
- Static HTML Assumptions: The comment detection relied on static HTML, which may overestimate injectability if sites use advanced server-side bot protection (e.g., Cloudflare) not visible in the raw crawl.
- Ethical Boundaries: No live injections were performed on real websites; all validation was safely restricted to local, sandboxed Docker instances of WordPress.
Future work highlights the need for comment-aware text extraction (stripping or isolating comment blocks before filtering) and provenance-aware filtering to downweight content originating from unauthenticated submission forms.
Summary updated