TL;DR
This paper demonstrates that it's surprisingly easy and cheap for an attacker to poison massive web-scale datasets used for training deep learning models. They introduce two practical attacks, "split-view poisoning" and "frontrunning poisoning," that exploit common trust assumptions in how these datasets are collected and distributed, showing that even a small budget can compromise a significant portion of these datasets.
What Problem Does This Paper Address?
Deep learning models have become incredibly powerful, largely due to their training on vast datasets scraped from the internet. While this "quantity over quality" approach has been effective, it relies on a chain of trust: dataset curators trust web sources, downloaders trust curators, and so on. This paper addresses the critical question of whether this trust can be exploited to intentionally inject malicious data into these massive training sets, thereby compromising the models trained on them. Previous work often assumed an attacker could already modify a dataset; this paper focuses on the practical, often overlooked, challenge of how an attacker could actually get their poisoned data into these widely used datasets in the first place.
Methods
The authors introduce two novel poisoning attack strategies:
- Split-View Poisoning: This attack exploits the discrepancy between what a dataset curator sees when initially collecting data and what end-users (clients) see when they download it later. The core idea is to leverage the mutable nature of internet content. Specifically, attackers can purchase expired domain names that were previously used to host data for these datasets. When a client later downloads data from such a domain, they receive the attacker's poisoned content instead of the original, even though the dataset's index still points to the old, now-compromised URL. This attack relies on the lack of strong cryptographic integrity checks on the downloaded content.
- Frontrunning Poisoning: This attack targets datasets that periodically snapshot crowd-sourced content, like Wikipedia. Instead of needing sustained control over a web resource, an attacker only needs a short window of opportunity. By predicting precisely when a snapshot will occur, an attacker can inject malicious content just before the snapshot is taken. Even if the malicious edit is quickly reverted by moderators, the poisoned content will persist in the snapshot used for training. This exploits predictable snapshot schedules and the latency in content moderation.
Datasets
The paper evaluates its attacks on 10 popular web-scale datasets, including:
- LAION-400M
- COYO-700M
- Conceptual 12M
- CC-3M
- VGG Face
- FaceScrub
- PubFig
- MMC4-FF
- Falcon RefinedWeb
- OBELISC
The authors also analyze multilingual Wikipedia datasets, specifically the Wiki-40B dataset. No new benchmarks were introduced; the focus was on demonstrating attacks on existing, widely used datasets.
Key Insights and Ideas
- Expired Domains are a Goldmine: The mutable nature of the internet means that domains expire, and attackers can purchase them to serve poisoned content. This is a surprisingly common vulnerability, especially in older datasets.
- Trust is the Weakest Link: The entire ecosystem of web-scale dataset collection relies on implicit trust. The lack of robust integrity checks (like cryptographic hashes) on the actual content of downloaded data is a major vulnerability.
- Predictability is Poison: For datasets that snapshot content, understanding their predictable schedules (like Wikipedia's bimonthly dumps) allows attackers to time their malicious edits precisely.
- Low Cost, High Impact: The attacks are practical even for low-resource attackers. The paper shows that compromising 0.01% of datasets like LAION-400M or COYO-700M can be achieved for as little as $60 USD.
- Defenses Exist, But Aren't Universally Applied: While integrity checks and randomized snapshotting are proposed defenses, they are not consistently implemented, leaving many datasets vulnerable.
Key Results
- Split-View Poisoning: Attackers can purchase control over at least 0.02% to 0.79% of images in the studied datasets for under $1,000 USD. For a budget of $60 USD per year, at least 0.01% of each dataset can be controlled. Even older, less frequently accessed datasets still had at least 3 downloads per month over a six-month tracking period, meaning over 800 potential poisoning opportunities.
- Frontrunning Poisoning: The authors conservatively estimate that 6.5% of Wikipedia documents could be poisoned. For multilingual Wikipedia datasets, this rate can be significantly higher, with a median of 8.2% and up to 25.3% for some languages.
- Attack Effectiveness: In experiments, poisoning 1,000 images (0.00025% of LAION-400M) resulted in a 60% success rate for object misclassification and a 90% success rate for NSFW detection attacks.
Limitations and Future Work
- Limitations of Integrity Checks: While cryptographic hashes are effective against split-view poisoning, they can significantly degrade dataset utility if content frequently changes (e.g., due to re-encoding or resizing). Perceptual hashes offer better utility but are less robust against adversarial modifications.
- Frontrunning Complexity: While frontrunning is feasible, it requires precise timing. The authors acknowledge that factors like IP bans and rate limiting could make it harder to operationalize at scale.
- General Poisoning Challenges: For datasets like Common Crawl, where there's no trusted snapshot and edits are less predictable, preventing poisoning is more complex and may require consensus-based approaches or application-specific solutions.
- Future Work: The authors suggest exploring threat models where attackers can only edit raw content but not auxiliary data (like labels), assessing the practical costs of proposed attacks, and evaluating more permissive integrity checks. They also highlight the need for transparency in web-scale datasets to build trust.
Summary updated