[2505.04741] When Bad Data Leads to Good Models
Abstract:In large language model (LLM) pretraining, data quality is believed to determine model quality. In this paper, we re-examine the notion of "quality" from the perspective of pre- and post-training co-design. Specifically, we explore the possibility that pre-training on more toxic data can lead to better control in post-training, ultimately decreasing a model's output toxicity. First, we use a toy experiment to study how data composition affects the geometry of features in the representation space. Next, through controlled experiments with Olmo-1B models trained on varying ratios of clean and toxic data, we find that the concept of toxicity enjoys a less entangled linear representation as the proportion of toxic data increases. Furthermore, we show that although toxic data increases the generational toxicity of the base model, it also makes the toxicity easier to remove. Evaluations on Toxigen and Real Toxicity Prompts demonstrate that models trained on toxic data achieve a better trade-off between reducing generational toxicity and preserving general capabilities when detoxifying techniques such as inference-time intervention (ITI) are applied. Our findings suggest that, with post-training taken into account, bad data may lead to good models.
When Bad Data Leads to Good Models Kenneth Li 1 Yida Chen 1 Fernanda Viégas 1 Martin Wattenberg 1 Abstract from building a complete representation of the world. As demonstrated by Longpre et al. (2023), toxicity filtering In large language model (LLM) pretraining,…
related reading
- A small number of samples can poison LLMs of any size \ Anthropicanthropic.com
- Alignment Pretraining: AI Discourse Causes Self-Fulfilling (Mis)alignmentalignmentpretraining.ai
- Shaping capabilities with token-level data filteringarxiv.org
- Alignment Pretraining: AI Discourse Causes Self-Fulfilling (Mis)alignment — LessWronglesswrong.com
- [2602.05910] Chunky Post-Training: Data Driven Failures of Generalizationarxiv.org
- Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samplesarxiv.org
- Self-Fulfilling Misalignment Data Might Be Poisoning Our AI Modelsturntrout.com
- Data Management For Large Language Models: A Surveyarxiv.org
- Probe-Based Data Attribution: Surfacing and Mitigating Undesirable Behaviors in LLM Post-Traininggoodfire.ai
- A Bitter Lesson for Data Filteringarxiv.org
- [2606.04929] Sequential Data Poisoning in LLM Post-Trainingarxiv.org
- [2602.04899] Phantom Transfer: Data-level Defences are Insufficient Against Data Poisoningarxiv.org