arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.04741cs.LGcs.AIcs.CL
收藏

当坏数据造就了好模型

When Bad Data Leads to Good Models

Kenneth Li, Yida Chen, Fernanda Viégas, Martin Wattenberg

AI总结:

本文通过受控实验证明,预训练中混入更多毒性数据虽会增加基础模型毒性,但能使毒性表示更易分离,从而在后训练去毒时实现更好的毒性与通用能力权衡。

摘要:

在大语言模型(LLM)预训练中,数据质量被认为决定模型质量。本文从预训练与后训练协同设计的视角重新审视“质量”这一概念。具体而言,我们探讨了一种可能性:在更具毒性的数据上进行预训练,反而能在后训练阶段带来更好的可控性,最终降低模型输出的毒性。首先,我们通过一个玩具实验研究数据构成如何影响表示空间中特征的几何结构。接着,通过对 Olmo-1B 模型在干净数据与毒性数据不同比例下进行训练的受控实验,我们发现随着毒性数据比例的增加,毒性概念呈现出更少纠缠的线性表示。此外,我们表明,尽管毒性数据会增加基础模型的生成毒性,但它也使毒性更容易被移除。在 Toxigen 和 Real Toxicity Prompts 上的评估表明,当应用推理时干预(ITI)等去毒技术时,在毒性数据上训练的模型能够在降低生成毒性与保留通用能力之间取得更好的权衡。我们的发现表明,在考虑后训练的情况下,坏数据可能造就好的模型。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑