Large Batch Training › Key Parameters

Michael BrenndoerferJanuary 27, 20262 min read
Language AI HandbookAll chapters
Part 32 of 67Training Optimization
Chapter 234Large Batch Training › Key Parameters
Reading section 8 of 12 · Key Parameters · 2 minSection 8 of 12 · 2 min

Book contents

Section 8 of 12 · 2 min read

Large Batch Training › Key ParametersOne section · Sections in this chapter8 / 12 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Understanding each hyperparameter and its role helps you make principled decisions when configuring large batch training.

  • batch_size: The number of training examples processed per gradient update. Should be chosen to balance hardware utilization and the critical batch size limit. The critical batch size varies by task; empirical measurement (as shown above) gives the best estimate.

  • learning_rate (η\eta): The global learning rate. Must be scaled linearly with batch size: η′=kη\eta' = k\eta when batch size is multiplied by kk. The base learning rate η\eta should be validated at a small batch size before scaling.

  • warmup_epochs: Number of epochs to linearly increase the learning rate from a small initial value to the target. Typically 5 epochs for ImageNet-scale tasks, often 1-3% of total training steps for LLM pre-training. A good rule of thumb is to warm up for at least as many steps as kk (the scaling factor).

  • weight_decay (λ\lambda): L2 regularization coefficient. Incorporated directly into the LAMB update as a decoupled weight decay term. Decoupled weight decay (AdamW-style, not the original Adam L2 approach) is important for LAMB to behave correctly.

  • beta1, beta2: Exponential decay rates for Adam's first and second moment estimates (LAMB). Standard values are 0.9 and 0.999. These generally do not need adjustment when scaling batch size.

  • trust_ratio_clip: (Optional) Maximum value of the LARS/LAMB trust ratio to prevent instability for layers near zero weight norm. A common default is to clip trust ratios to the range [0,10][0, 10].