arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.10487cs.LGcs.AI
收藏

重复数据学习的缩放定律及其解释性

Scaling Laws and Interpretability of Learning from Repeated Data

Anthropic(Anthropic公司)
Danny Hernandez, Tom Brown, Tom Conerly, Nova DasSarma, Dawn Drain, Sheer El-Showk, Nelson Elhage, Zac Hatfield-Dodds, Tom Henighan, Tristan Hume, Scott Johnsto… 展开作者

Danny Hernandez, Tom Brown, Tom Conerly, Nova DasSarma, Dawn Drain, Sheer El-Showk, Nelson Elhage, Zac Hatfield-Dodds, Tom Henighan, Tristan Hume, Scott Johnston, Ben Mann, Chris Olah, Catherine Olsson, Dario Amodei, Nicholas Joseph, Jared Kaplan, Sam McCandlish

摘要:

最近的大语言模型是在大量数据集上训练的,但也经常是在重复数据上训练的,这可能是为了提高更高质量数据的权重,也可能是无意的,因为数据去重并不完美,模型在句子、段落或文档级别上暴露于重复数据。一些作品已经报道了这种重复数据的实质性负面性能影响。在本文中,我们试图系统地研究重复数据,并从机理上理解其影响。为此,我们训练了一系列模型,其中大部分数据是唯一的,但其中一小部分重复了很多次。我们发现了一个强烈的双下降现象,其中重复的数据会导致测试损失在训练中途增加。重复频率的可预测范围导致性能的惊人严重退化。例如,通过重复0.1%的数据100次,800 M参数模型的性能可以降低到2倍更小的模型(400 M参数)的性能,尽管其他90%的训练令牌保持唯一。我们怀疑在中间有一个范围,数据可以被记忆,这样做会消耗模型容量的很大一部分,这可能是降级的峰值发生的地方。最后,我们将这些观察结果与最近的机械可解释性工作(试图对模型执行的详细计算进行逆向工程)联系起来,表明数据重复不成比例地损害了与泛化相关的复制和内部结构,如归纳头,为从泛化到记忆的转变提供了一种可能的机制。综上所述,这些结果提供了一个假设,为什么在大语言模型中重复相对较小的一部分数据可能会导致对性能的不成比例的巨大损害。

英文摘要:

Recent large language models have been trained on vast datasets, but also often on repeated data, either intentionally for the purpose of upweighting higher quality data, or unintentionally because data deduplication is not perfect and the model is exposed to repeated data at the sentence, paragraph, or document level. Some works have reported substantial negative performance effects of this repeated data. In this paper we attempt to study repeated data systematically and to understand its effects mechanistically. To do this, we train a family of models where most of the data is unique but a small fraction of it is repeated many times. We find a strong double descent phenomenon, in which repeated data can lead test loss to increase midway through training. A predictable range of repetition frequency leads to surprisingly severe degradation in performance. For instance, performance of an 800M parameter model can be degraded to that of a 2x smaller model (400M params) by repeating 0.1% of the data 100 times, despite the other 90% of the training tokens remaining unique. We suspect there is a range in the middle where the data can be memorized and doing so consumes a large fraction of the model's capacity, and this may be where the peak of degradation occurs. Finally, we connect these observations to recent mechanistic interpretability work - attempting to reverse engineer the detailed computations performed by the model - by showing that data repetition disproportionately damages copying and internal structures associated with generalization, such as induction heads, providing a possible mechanism for the shift from generalization to memorization. Taken together, these results provide a hypothesis for why repeating a relatively small fraction of data in large language models could lead to disproportionately large harms to performance.

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

↑