[论文解读] Deriving Neural Scaling Laws from the statistics of natural language
该论文提出一个无参数理论,将数据受限的神经网络缩放指数与两个语言统计量(条件熵的衰减和标记相关性)联系起来,并在 TinyStories 和 WikiText 上使用 GPT-2/LLaMA 模型进行验证。
Despite the fact that experimental neural scaling laws have substantially guided empirical progress in large-scale machine learning, no existing theory can quantitatively predict the exponents of these important laws for any modern LLM trained on any natural language dataset. We provide the first such theory in the case of data-limited scaling laws. We isolate two key statistical properties of language that alone can predict neural scaling exponents: (i) the decay of pairwise token correlations with time separation between token pairs, and (ii) the decay of the next-token conditional entropy with the length of the conditioning context. We further derive a simple formula in terms of these statistics that predicts data-limited neural scaling exponents from first principles without any free parameters or synthetic data models. Our theory exhibits a remarkable match with experimentally measured neural scaling laws obtained from training GPT-2 and LLaMA style models from scratch on two qualitatively different benchmarks, TinyStories and WikiText.
研究动机与目标
- 识别决定数据受限神经缩放指数的语言统计量。
- 推导一个从语言统计量出发的、无参数的与数据量相关的损失缩放公式。
- 在不同模型类别和数据集上通过实验验证理论预测。
- 展示在重新缩放后 n-gram 损失的数据坍缩,并量化数据受限指数。
提出的方法
- 将损失分解为基于视界的误差与视界内误差的和。
- 引入两个语言统计量:随上下文长度 n 增长的下一词熵 H_n 的衰减,以及滞后 n 的词-词相关性 C(n) 的衰减。
- 假设幂律衰减 H_n - H_infty ~ n^{-gamma} 且 ||C(n)||_op ~ n^{-beta}。
- 推导 n*(P) ~ P^{1/(2 beta)} 与 L_AR(P) - H_infty ~ P^{-gamma/(2 beta)}。
- 预测数据受限指数 alpha_D = gamma/(2 beta),并通过尺度坍缩测试 L_n(P) ~ n^{-gamma} ell(P/n^{2 beta})。
- 在 TinyStories 和 WikiText 上实验性地测量 gamma 和 beta,然后将预测的 alpha_D 与观测到的缩放进行比较。

实验结果
研究问题
- RQ1语言模型中决定数据受限神经缩放指数的两个语言统计量是什么?
- RQ2是否可以通过测量的语言统计量,从而得到无参数理论对数据受限损失缩放指数 alpha_D 的预测?
- RQ3在按 gamma 和 beta 重新缩放时,n-gram 损失是否坍缩到一个主曲线?
- RQ4所预测的 alpha_D 是否在不同模型架构和数据集之间保持一致?
主要发现
- Gamma 值:TinyStories 约为 0.34;WikiText 约为 0.27。
- Beta 值:TinyStories 约为 0.88;WikiText 约为 0.94。
- 预测的数据显示 TinyStories 的数据受限指数 alpha_D 约为 0.19,WikiText 约为 0.14,与观测到的损失一致。
- n-gram 损失在重新缩放后坍缩到单一曲线:L_n(P) ≈ n^{-gamma} ell(P/n^{2 beta})。
- 自回归损失在不同上下文长度 T 下的缩放为 L_AR(P) - H_infty ~ P^{-gamma/(2 beta)}。
- 理论在两种数据集上的 GPT-2 风格(含 APE/RoPE)以及 LLaMA 架构下均成立。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。