Revisiting LARS for Large Batch Training Generalization of Neural Networks
Khoi Do, Duong Nguyen, Hoa Nguyen, Long Tran-Thanh, Nguyen-Hoang Tran, Quoc-Viet Pham
TL;DR
The paper tackles instability in large-batch training caused by sharp minimizers and high Layer-wise Normalized Rate (LNR) in LARS/LAMB. It introduces Time-Varying LARS (TVLARS), which replaces warm-up with a time-varying decay phi(t) = \frac{1}{\alpha + \exp(\lambda(t - d_e))} + \gamma_{min} that starts with a high LR and gradually shifts toward LARS-like behavior. Through extensive experiments on CIFAR-10, Tiny ImageNet, and Barlow Twins SSL, TVLARS delivers up to 2% improvements in classification and up to 10% in SSL, while accelerating convergence relative to LARS/LAMB. The results demonstrate TVLARS as a practical, robust method for scalable, large-batch training in supervised and self-supervised settings, with clear guidance on decay, LR, and initialization effects.
Abstract
This paper explores Large Batch Training techniques using layer-wise adaptive scaling ratio (LARS) across diverse settings, uncovering insights. LARS algorithms with warm-up tend to be trapped in sharp minimizers early on due to redundant ratio scaling. Additionally, a fixed steep decline in the latter phase restricts deep neural networks from effectively navigating early-phase sharp minimizers. Building on these findings, we propose Time Varying LARS (TVLARS), a novel algorithm that replaces warm-up with a configurable sigmoid-like function for robust training in the initial phase. TVLARS promotes gradient exploration early on, surpassing sharp optimizers and gradually transitioning to LARS for robustness in later phases. Extensive experiments demonstrate that TVLARS consistently outperforms LARS and LAMB in most cases, with up to 2\% improvement in classification scenarios. Notably, in all self-supervised learning cases, TVLARS dominates LARS and LAMB with performance improvements of up to 10\%.
