Requential Coding: Pushing the Limits of Model Compression with Self-Generated Training Data· 重新序编码:利用自生成训练数据推动模型压缩极限
Compression is fundamental to intelligence. A model that can represent its training data as a short code has discovered regularities that enable generalization. Large neural networks may learn functions far simpler than their parameter counts suggest, but it is challenging to construct codes that realize this simplicity. Parameter-based methods such as quantization produce code lengths that scale with model size, insensitive to how much information the parameters store. Prequential coding bypasses this issue by compressing the training trajectory, but codes the exact data sequence regardless of how much the model learns, yielding large codes when the data has high entropy. We introduce requential coding, where a teacher model selects training samples drawn from the student's own distribution. The student's code records only these selections, which cost bits only where teacher and student disagree. The resulting code length is independent of parameter count and data entropy, and often orders of magnitude shorter than the prequential counterpart, with an advantage that grows with scale. This compression sheds light on phenomena inaccessible to prior compressors. Holding loss fixed, larger models and ensembles compress to much smaller sizes despite more parameters. Plugged into a PAC-Bayes bound, the requential code yields state-of-the-art generalization guarantees for billion-parameter LLMs, outperforming bounds built on aggressive post-training quantization even granted zero error. The bound tightens with scale in the compute-optimal regime, as models become increasingly compressible relative to dataset size. The same code predicts that models gradually overfit when trained for multiple epochs. It also isolates the learnable information in a dataset from its unpredictable, random content, revealing that lower-entropy text holds far more learnable structure than higher-entropy image data.
通过自生成训练数据实现高效模型压缩,揭示了大规模模型对小规模模型的压缩优势。
- 核心方法
- 重新序编码利用教师模型选择学生模型分布中的训练样本,只记录不一致的部分,以实现独立于参数数量和数据熵的高效压缩。
- 适合谁读
- 研究者 / 工程师
- 要解决的问题
- 现有的模型压缩方法无法有效捕捉模型学习到的简单规律,导致压缩效果不佳。
- 关键实验
- 实验展示了大规模模型和集成模型在固定损失下可以压缩到更小的尺寸,且在计算最优区域内的模型压缩比随着规模增加而提高。
- 主要贡献
- 提出了一种新的模型压缩方法,能够将大规模模型压缩到远小于其参数数量的大小,为理解模型泛化提供了新的视角。
- 意义与局限
- 该方法不仅推动了模型压缩的技术边界,还揭示了不同类型数据的学习潜力,有助于理解模型泛化与过拟合现象。然而,该方法依赖于教师模型的选择,可能受其质量限制。