The impressive capabilities of Large Language Models (LLMs) across diverse tasks are now well established, yet their effective deployment necessitates careful hyperparameter optimization. Although existing methods have explored the influence of hyperparameters on model performance, a principled and generalizable framework across model architectures and data recipes remains absent. In this study, we conduct an unprecedented empirical investigation training over 3,700 LLMs from scratch across 100 trillion tokens, consuming nearly one million NVIDIA H800 GPU hours to establish a universal Scaling Law for hyperparameter optimization in LLM Pre-training, called Step Law. We empirically observe that, under fixed model size ($N$) and dataset size ($D$), the hyperparameter landscape exhibits convexity with a broad optimum, substantially reducing the complexity of hyperparameter search. Building on this insight, we formally define and empirically validate the Step Law: The optimal learning rate follows a power-law relationship with $N$ and $D$, while the optimal batch size is primarily influenced by $D$ and remains largely invariant to $N$.Notably, our estimated optima deviate from the global best performance found via exhaustive search by merely 0.094\% on the test set. To our best known, Step Law is the first that unifies different model shapes and structures, such as Mixture-of-Experts models and dense transformers, as well as establishes optimal hyperparameter scaling laws across diverse data recipes. We contribute a universal, plug-and-play optimal hyperparameter tool for the community, which is expected to advance efficient LLM training at scale. All experimental code, data and checkpoints are publicly available at https://github.com/step-law/steplaw
AdamS: Momentum Itself Can Be A Normalizer for LLM Pretraining and Post-training
Wangxuan Institute of Computer Technology, Peking University(北京大学王宣计算机技术研究所);University of Science and Technology of China(中国科学技术大学);State Key Laboratory of General Artificial Intelligence(通用人工智能国家重点实验室)
Detecting Pretraining Data in Large Language Models from a Free-Energy Perspective
State Key Laboratory of Cognitive Intelligence, University of Science and Technology of China(中国科学技术大学认知智能全国重点实验室);Institute of Artificial Intelligence, Hefei Comprehensive National Science Center(合肥综合性国家科学中心人工智能研究院);College of Artificial Intelligence, Nanjing University of Aeronautics and Astronautics(南京航空航天大学人工智能学院);iFLYTEK AI Research (Central China), iFLYTEK Co., Ltd(科大讯飞股份有限公司(华中)讯飞人工智能研究院)
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(图宾根大学)
Scalable Parameter and Memory Efficient Pretraining for LLM: Recent Algorithmic Advances and Benchmarking
Department of Electrical and Computer Engineering, University of Minnesota(明尼苏达大学电气与计算机工程系);Peking University(北京大学);School of Mathematics and Statistics, University of Sydney(悉尼大学数学与统计学学院)
Deriving Scaling Laws for OpenEuroLLM Models: Learning Rate, Batch Size and Loss
Eindhoven University of Technology(埃因霍温理工大学);Georgia Institute of Technology(佐治亚理工学院);University of Freiburg(弗赖堡大学);LAION;Open-Ψ (Open-Sci) Collective(Open-Ψ(开放科学)集体);University of Turku(图尔库大学);OpenEuroLLM
DIET-CP: Lightweight and Data Efficient Self Supervised Continued Pretraining
Fordham University(福特汉姆大学);Rutgers University(罗格斯大学);Pioneer Centre for AI(先锋人工智能中心);Cold Spring Harbor Laboratory(冷泉港实验室);Brown University(布朗大学);University of Copenhagen(哥本哈根大学)
On the Depth Transfer of Neural Optimizers via L-Smoothness
University of Chicago(芝加哥大学);Peking University(北京大学);University of British Columbia(不列颠哥伦比亚大学);Sauder School of Business(尚德商学院);Beijing International Center for Mathematical Research(北京国际数学研究中心)
Concordia University, Montreal, Canada(Concordia 大学);Mila Quebec AI Institute, Montreal, Canada(Quebec AI 研究院);Sorbonne University, CNRS , Paris , France(Sorbonne 大学)
Tracing Moral Foundations in Large Language Models
Department of Computer Science, University of Southern California(南加州大学计算机科学系);Department of Psychology, University of Southern California(南加州大学心理学系);Center for Computational Language Sciences, University of Southern California(南加州大学计算语言科学中心)