Given the massive cost of language model pre-training, a non-trivial improvement of the optimization algorithm would lead to a material reduction on the time and cost of training. Adam and its variants have been state-of-the-art for years, and more sophisticated second-order (Hessian-based) optimizers often incur too much per-step overhead. In this paper, we propose Sophia, Second-order Clipped Stochastic Optimization, a simple scalable second-order optimizer that uses a light-weight estimate of the diagonal Hessian as the pre-conditioner. The update is the moving average of the gradients divided by the moving average of the estimated Hessian, followed by element-wise clipping. The clipping controls the worst-case update size and tames the negative impact of non-convexity and rapid change of Hessian along the trajectory. Sophia only estimates the diagonal Hessian every handful of iterations, which has negligible average per-step time and memory overhead. On language modeling with GPT models of sizes ranging from 125M to 1.5B, Sophia achieves a 2x speed-up compared to Adam in the number of steps, total compute, and wall-clock time, achieving the same perplexity with 50% fewer steps, less total compute, and reduced wall-clock time. Theoretically, we show that Sophia, in a much simplified setting, adapts to the heterogeneous curvatures in different parameter dimensions, and thus has a run-time bound that does not depend on the condition number of the loss.
GWT: Scalable Optimizer State Compression for Large Language Model Training
National Key Laboratory of Parallel and Distributed Computing(并行与分布式计算国家重点实验室);National University of Defense Technology(国防科技大学);Center for Machine Learning Research(机器学习研究中心)
Mixed-signal implementation of feedback-control optimizer for single-layer Spiking Neural Networks
Institute of Neuroinformatics, University of Zürich and ETH Zürich(神经信息学研究所,苏黎世大学和苏黎世联邦理工学院);ETH Zürich, Zürich, Switzerland(苏黎世联邦理工学院,苏黎世,瑞士);AI Center, ETH, Zürich, Switzerland(人工智能中心,苏黎世联邦理工学院,苏黎世,瑞士);Digital Society Initiative, University of Zurich, Switzerland(数字社会倡议,苏黎世大学,瑞士)
DES-LOC: Desynced Low Communication Adaptive Optimizers for Training Foundation Models
University of Cambridge(剑桥大学);Flower Labs;Institute of Science and Technology Austria(奥地利科学技术研究所);University of Warwick(华威大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
KAISA: An Adaptive Second-Order Optimizer Framework for Deep Neural Networks
University of Chicago(芝加哥大学);University of Texas at Austin(得克萨斯大学奥斯汀分校);Texas Advanced Computing Center(得克萨斯高级计算中心);University of Wisconsin, Madison(威斯康星大学麦迪逊分校);Argonne National Laboratory(阿贡国家实验室)
Clean: Second-order LLM Training at Linear Memory Cost via Nystr{ö}m Sketching
Mila & DIRO, Université de Montréal(蒙特利尔大学米拉与DIRO);Critical ML, University of Waterloo(滑铁卢大学Critical ML);Zhejiang University(浙江大学);Canada CIFAR AI Chair(加拿大CIFAR AI主席)
School of Computer Science and Engineering, University of New South Wales(新南威尔士大学计算机科学与工程学院);Department of Data Science & AI, Monash University(莫纳什大学数据科学与人工智能系);DEVCOM Army Research Laboratory(DEVCOM陆军研究实验室)
Memory-Efficient LLM Training with Dynamic Sparsity: From Stability to Practical Scaling
University of Waterloo(滑铁卢大学);University of California, Berkeley(加州大学伯克利分校);ETH Zurich(苏黎世联邦理工学院);University of Texas at Austin(德克萨斯大学奥斯汀分校);University of Michigan(密歇根大学)
Leveraging Extragradient for Effective Sharpness-Aware Minimization in Deep Learning
SGIT AI Lab, State Grid Corporation of China(国网SGIT人工智能实验室);School of Management, Xi’an Jiaotong University(西安交通大学管理学院);School of Software, Xi’an Jiaotong University(西安交通大学软件学院)
Preconditioned Inexact Stochastic ADMM for Deep Model
School of Mathematics and Statistics, Beijing Jiaotong University, China(北京交通大学数学与统计学院,中国);ITP Lab, Department of EEE, Imperial College London, UK(帝国理工学院伦敦分校电子工程系ITP实验室,英国);National Mobile Communications Research Laboratory, Southeast University, China(东南大学国家移动通信研究实验室,中国)
FRUGAL: Memory-Efficient Optimization by Reducing State Overhead for Scalable Training
Moscow Institute of Physics and Technology, Russia(莫斯科物理技术学院);Ivannikov Institute for System Programming RAS, Russia(伊万诺夫系统编程研究所);Skolkovo Institute of Science and Technology, Russia(斯克尔罗沃科学与技术研究所);Mohamed bin Zayed University of Artificial Intelligence, UAE(穆罕默德·本·扎耶德人工智能大学)
本文提出 FRUGAL 框架,通过梯度拆分实现全秩更新,在低维方向使用 Adam 等高内存优化器、其余方向使用 SGD 等无状态方法,从而在固定内存预算下提升预训练和微调性能。
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(悉尼大学数学与统计学学院)