用香农理论解释大模型训练中的性能拐点现象
LLMs as Noisy Channels: A Shannon Perspective on Model Capacity and Scaling Laws

- 将大模型视为噪声信道,用信号与噪声比建模训练过程
- 揭示模型规模扩大但信噪比不足时性能会先升后降
- 适用于理解过拟合、量化退化等非单调现象,适合模型优化研究者
现有大语言模型的缩放定律多为单调幂律,难以解释灾难性过训练和量化导致的性能下降等非单调现象。本文提出香农缩放定律,将模型训练建模为噪声信道中的信息传输,基于香农-哈特利定理,将参数量映射为信道带宽,训练数据量映射为信号功率。该框架显式刻画了学习信号与内在噪声的相互作用。结果表明,模型容量存在根本的香农容量上限:在不维持足够信噪比的前提下扩大模型或数据,必然放大噪声,导致性能由单调提升转为U型下降。我们在Pythia和OLMo2上通过高斯噪声、量化及数学、问答、代码任务微调等扰动验证理论。香农缩放定律显著优于经典缩放定律和近期扰动感知模型,在多个任务中达到高 $R^2$ 分数,并准确捕捉到此前方法遗漏的损失盆地。其外推能力也表现优异:仅用≤6.9B的Pythia模型和≤180B训练令牌拟合,即可预测未见的12B模型在307B令牌下的表现,整体 $R^2{=}0.847$,而单调基线模型则崩溃。
原文摘要 · Abstract (English)
Existing scaling laws for Large Language Models (LLMs), predominantly monotonic power laws, fail to explain emerging non-monotonic phenomena such as catastrophic overtraining and quantization-induced degradation, where performance deteriorates despite increased compute. We propose the Shannon Scaling Law, a unified theoretical framework that models LLM training as information transmission over a noisy channel, grounded in the Shannon-Hartley theorem. By mapping model parameters to channel bandwidth and training tokens to signal power, our formulation explicitly captures the interaction between learning signal and intrinsic noise. This perspective reveals a fundamental Shannon capacity for LLMs: scaling model size or data without preserving a sufficient signal-to-noise ratio (SNR) inevitably amplifies noise, inducing a transition from monotonic improvement to U-shaped performance degradation. We validate our theory through experiments on Pythia and OLMo2 under perturbations, including Gaussian noise, quantization and supervised fine-tuning on math, QA and code tasks. The Shannon Scaling Law consistently outperforms classical scaling laws and recent perturbation-aware laws, achieving strong $R^2$ scores and accurately capturing loss basins missed by prior approaches. It also extrapolates: fitted on $\leq$6.9B Pythia models with $\leq$180B tokens, it predicts the unseen 12B model up to 307B tokens at pooled $R^2{=}0.847$, while monotonic baselines collapse.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。