A THREE-STAGE GENERALIZED SCALING LAW FOR LARGE LANGUAGE MODEL PRE-TRAINING

Authors

  • GengYin Li School of Energy and Materials, Shanghai Polytechnic University, Shanghai 201209, China.
  • Xue Yuan (Corresponding Author) School of Resources and Environmental Engineering, Shanghai Polytechnic University, Shanghai 201209, China.
  • XueTong Zang School of Resources and Environmental Engineering, Shanghai Polytechnic University, Shanghai 201209, China.

Keywords:

Large language model, Scaling law, Data quality, Domain mixture, Marginal substitution

Abstract

Large language models (LLMs) acquire their capabilities primarily through scaling, and the rapidly rising cost of training has turned compute-budget allocation into a central practical concern. Classical scaling laws express loss as a function of model size and data volume only, and therefore cannot quantify data quality or domain mixture, two factors that are increasingly decisive in modern pre-training. This paper develops a three-stage framework for a generalized scaling law. First, the classical power law is fitted to 1,176 standardized Pythia training points by multi-start nonlinear least squares, with row- and block-bootstrap confidence intervals. Second, four quality-augmented candidate forms are compared on a held-out N-D-Q experiment grid; the additive form, in which the quality penalty enters linearly with the quality deficit, is selected, and a large supplementary matrix is identified as contaminated by its reversed quality monotonicity, its violations of the entropy floor, and the sign reversal of its quality coefficient when pooled. Third, the law is unified with centered-log-ratio domain-mixture coordinates, from which equal-loss substitution rates, elasticities, and compute-normalized marginal gains are derived analytically. The classical law attains an RMSE of 0.00011 nat with stable exponents across five data sources; the quality law reaches a hold-out correlation of 0.99; and the predictions remain accurate for models up to ten trillion parameters, where quality improvement proves up to 30,000 times more cost-effective than parameter scaling. The framework thus provides a quantitative basis for compute-constrained resource allocation in LLM pre-training.

References

[1] Touvron H, Lavril T, Izacard G, et al. LLaMA: open and efficient foundation language models. arXiv, 2023. DOI: 10.48550/arXiv.2302.13971.

[2] Hoffmann J, Borgeaud S, Mensch A, et al. Training compute-optimal large language models. NIPS'22: Proceedings of the 36th International Conference on Neural Information Processing Systems, 2022: 30016-30030.

[3] Kaplan J, McCandlish S, Henighan T, et al. Scaling laws for neural language models. arXiv, 2020. DOI: 10.48550/arXiv.2001.08361.

[4] Muennighoff N, Rush A, Barak B, et al. Scaling data-constrained language models. NIPS '23: Proceedings of the 37th International Conference on Neural Information Processing Systems, 2023: 50358-50376.

[5] Xie S M, Pham H, Dong X, et al. DoReMi: reweighting data for faster language model pre-training. NIPS '23: Proceedings of the 37th International Conference on Neural Information Processing Systems, 2023: 69798-69818.

[6] Liu Q, Zheng X, Muennighoff N, et al. RegMix: data mixture as regression for language model pre-training. arXiv, 2024. DOI: 10.48550/arXiv.2407.01492.

[7] Sorscher B, Geirhos R, Shekhar S, et al. Beyond neural scaling laws: beating power law scaling via data pruning. NIPS'22: Proceedings of the 36th International Conference on Neural Information Processing Systems, 2022: 19523-19536.

[8] Lee K, Ippolito D, Nystrom A, et al. Deduplicating training data makes language models better. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics. Stroudsburg: ACL, 2022: 8424-8445. DOI: 10.18653/v1/2022.acl-long.577.

[9] Gunasekar S, Zhang Y, Aneja J, et al. Textbooks are all you need. arXiv, 2023. DOI: 10.48550/arXiv.2306.11644.

[10] Taylor R, Kardas M, Cucurull G, et al. Galactica: a large language model for science. arXiv, 2022. DOI: 10.48550/arXiv.2211.09085.

[11] Penedo G, Kydlíček H, Ben Allal L, et al. The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. arXiv, 2024. DOI: 10.48550/arXiv.2406.17557.

[12] Biderman S, Schoelkopf H, Anthony Q, et al. Pythia: a suite for analyzing large language models across training and scale. Proceedings of the 40th International Conference on Machine Learning. PMLR, 2023, 202: 2397-2430.

[13] Kudugunta S. Fixing the foundation: principled approaches to data curation and scaling. Seattle: University of Washington, 2026.

Downloads

Published

2026-11-27

How to Cite

GengYin Li, Xue Yuan, XueTong Zang. A Three-Stage Generalized Scaling Law For Large Language Model Pre-Training. Journal of Computer Science and Electrical Engineering. 2026, 8(8): 31-37. DOI: https://doi.org/10.61784/jcsee3170.