FOCUS: First Order Concentrated Updating Scheme
Yizhou Liu, Ziming Liu, Jeff Gore
TL;DR
The paper investigates why pre-training large language models encounters slow or unstable optimization due to gradient noise in narrowing valley loss landscapes. It proposes FOCUS, a physics-inspired optimizer that augments Signum with an attraction toward moving-average parameters to maintain larger step sizes in noisy, sharp valleys. Through a two-dimensional toy model and GPT-2 small pretraining experiments, FOCUS is shown to be more stable than Signum and faster than Adam, with a convergence analysis providing a regret bound comparable to Adam’s. The work provides both practical speedups for LLM pre-training and a framework for understanding gradient-noise effects, suggesting broader optimizer design principles for noisy, non-convex landscapes.
Abstract
Large language models (LLMs) demonstrate remarkable performance, and improving their pre-training process appears to be key to enhancing their capabilities further. Based on the documented success of Adam, learning rate decay, and weight decay, we hypothesize that the pre-training loss landscape features a narrowing valley structure. Through experiments with synthetic loss functions, we discover that when gradient query noise is high relative to the valley's sharpness, Adam's performance falls behind that of Signum because Adam reduces the effective step size too drastically. This observation led us to develop FOCUS, an optimizer that enhances Signum by incorporating attraction toward moving averaged parameters, allowing it to handle noise better while maintaining larger step sizes. In training GPT-2, FOCUS proves to be more stable than Signum and faster than Adam. These results suggest that gradient noise may be an underappreciated limiting factor in LLM training, and FOCUS offers promising solutions.
