MERIT: Maximum-normalized Element-wise Ratio for Language Model Large-batch Training
Not on the map. Why?
Abstract (arXiv)
Large-batch training has become a cornerstone in accelerating the training of deep neural networks, yet it poses challenges in optimization and generalization. Existing optimizers like AdamW present performance degradation during language models' large-batch training, due to the information bottleneck in attention layers caused by the sharp increase of max attention logit. While the LAMB optimizer partially addresses this issue, some attention layers still face this issue. The reason is that l2-norm-based trust ratios in LAMB are less effective in directly influencing the max value of query/key weights. Furthermore, the weight-wise trust ratio in LAMB is error-prone as it overlooks relationships of weight values within rows or columns. Building on these observations, we propose a novel optimizer, MERIT, which leverages the max-norm to calculate the trust ratio to constrain the max attention logit more effectively. Moreover, we further construct element-wise trust ratios to provide more robust update scaling by focusing on local weight structures. Extensive experiments of large-batch training across various sizes of GPT-2 models demonstrate the superior performance of MERIT. Notably, during the training of GPT-2 Medium, MERIT enables a 6k batch size without any performance degradation compared to the standard batch size (480) with 48B training tokens. This work highlights the importance of considering the max attention logit and finer-granularity trust ratio in large-batch training. It successfully improves the training stability and paves the way for larger batch usage, enabling faster development and iteration of large language models. Code is available at https://github.com/NUS-HPC-AI-Lab/MERIT.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 32 references that are in the map. First posted on arXiv 28 Aug 2025.
Builds on
23 of 32 references.
References · 23
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2016Layer Normalizationcited by 5,669
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
- 2021Scaling Vision Transformerscited by 999
11 more
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2019Large Batch Optimization for Deep Learning: Training BERT in 76 minutescited by 674
- 2018signSGD: Compressed Optimisation for Non-Convex Problemscited by 571
- 2017Large Batch Training of Convolutional Networkscited by 535
- 2023Scaling Data-Constrained Language Modelscited by 403
- 2023Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-trainingcited by 265
- 2018Measuring the Effects of Data Parallelism on Neural Network Trainingcited by 193
- 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 183
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 161
- 2022Outliers Dimensions that Disrupt Transformers Are Driven by Frequencycited by 55
- 2023CAME: Confidence-guided Adaptive Memory Efficient Optimizationcited by 36
Built on by
Not cited yet.