When training deep neural networks, a model's generalization error is often observed to follow a power scaling law dependent both on the model size and the data size. Perhaps the best known example of such scaling laws are for transformer-based large language models, where networks with billions of parameters are trained on trillions of tokens of text. Yet, despite sustained widespread interest, a rigorous understanding of why transformer scaling laws exist is still missing. To answer this question, we establish novel statistical estimation and mathematical approximation theories for transformers when the input data are concentrated on a low-dimensional manifold. Our theory predicts a power law between the generalization error and both the training data size and the network size for transformers, where the power depends on the intrinsic dimension $d$ of the training data. Notably, the constructed model architecture is shallow, requiring only logarithmic depth in $d$. By leveraging low-dimensional data structures under a manifold hypothesis, we are able to explain transformer scaling laws in a way which respects the data geometry. Moreover, we test our theory with empirical observation by training LLMs on natural language datasets. We find the observed empirical data scaling laws closely agree with our theoretical predictions. Taken together, these results rigorously show the intrinsic dimension of data to be a crucial quantity affecting transformer scaling laws in both theory and practice.
Diversity of Transformer Layers: One Aspect of Parameter Scaling Laws
Nara Institute of Science and Technology(奈良科学技術大學);RIKEN Center for Advanced Intelligence Project(RIKEN先進 Intelligenceプロジェクト);Chungnam National University(Chungnam國立大學);The University of Tokyo(東京大學);Institute of Science Tokyo(東京科學研究院)
Johns Hopkins University(约翰斯·霍普金斯大学);University of Cambridge(剑桥大学);University of Amsterdam(阿姆斯特丹大学);Stockholm University(斯德哥尔摩大学);Calda AI(卡尔达人工智能公司);Capital One(第一资本金融公司);Institut d’Astrophysique de Paris(巴黎天体物理研究所);Flatiron Institute(弗拉蒂伦研究所)
LLMs on the Line: Data Determines Loss-to-Loss Scaling Laws
Max Planck Institute for Intelligent Systems(智能系统马克斯·普朗克研究所);ELLIS Institute Tübingen(图宾根ELLIS研究所);Tübingen AI Center(图宾根人工智能中心);University of Tübingen(图宾根大学)
A Tale of Tails: Model Collapse as a Change of Scaling Laws
Meta FAIR;Center for Data Science, New York University(纽约大学数据科学中心);School of Mathematical Sciences, Peking University(北京大学数学科学学院);Courant Institute, New York University(纽约大学柯朗研究所)
LLM-Generated Natural Language Meets Scaling Laws: New Explorations and Data Augmentation Methods
School of Information Resource Management, Renmin University of China(中国人民大学信息资源管理学院);School of Computing, National University of Singapore(新加坡国立大学计算机学院)
Hebbian Physics Networks: A Self-Organizing Computational Architecture Based on Local Physical Laws
Department of Mechanical Engineering, The University of Tokyo, Japan(东京大学机械工程系);Graduate School of Engineering, Nagoya Institute of Technology, Japan(名古屋技术大学工学研究科);International Research Center for Neurointelligence, The University of Tokyo, Japan(东京大学神经智能国际研究中心)
Scaling Laws and Representation Learning in Simple Hierarchical Languages: Transformers vs. Convolutional Architectures
Scuola Internazionale Superiore di Studi Avanzati (SISSA)(国际先进研究学院(SISSA));Institute of Physics, École polytechnique fédérale de Lausanne (EPFL)(洛桑联邦理工学院物理研究所);University College London(伦敦大学学院);Johns Hopkins University(约翰霍普金斯大学)
On the origin of neural scaling laws: from random graphs to natural language
Meta Superintelligence Labs, FAIR(Meta超智能实验室,FAIR);Department of Physics, University of Maryland, College Park(大学物理系,马里兰大学College Park分校);Joint Quantum Institute(联合量子研究所)
Towards Neural Scaling Laws for Time Series Foundation Models
Griffith University(格里菲斯大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));NVIDIA Research(英伟达研究院);The University of Tokyo(东京大学)
Research School of Astronomy & Astrophysics, The Australian National University(澳大利亚国立大学天文与天体物理研究所);Astronomical Institute, University of Wrocław(沃克劳大学天文研究所);Department of Astronomy, The Ohio State University(俄亥俄州立大学天文学系);Center for Cosmology and AstroParticle Physics (CCAPP), The Ohio State University(宇宙与天体粒子物理中心(CCAPP),俄亥俄州立大学)
本文研究 Transformer 恒星光谱仿真器的神经缩放定律,结合 TransformerPayne 与 Maximum Update Parametrization 给出均衡扩展训练指南,为光谱基础模型奠定基础。
Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time
Center for Mathematical Sciences and Applications(数学科学与应用中心);John A. Paulson School of Engineering and Applied Sciences(约翰·A·保罗森工程与应用科学学院);Kempner Institute for the Study of Natural and Artificial Intelligence(自然与人工智能研究学院);Harvard University(哈佛大学)