Large Batch Optimization for Deep Learning: Training BERT in 76 minutes
Paper · 2019 · Yang You, Jing Li, Sashank Reddi et al.
Summary
A training run can spread the work of calculating an update across many chips, but the next update still has to wait for the current one. One way to shorten the run is to put more examples into each update and take fewer steps through the same amount of training data. The difficulty is getting those fewer steps to work. This paper introduces LAMB, an optimizer that adjusts how far each layer moves, and tests whether it can make very large batches practical for both language pretraining and image classification.
LAMB decides how to move a layer in two stages. It first uses Adam’s gradient history to adjust individual coordinates, the entries of the parameter vector. It then takes the resulting direction for the entire layer, removes its original magnitude, and assigns a step length based on the size of the layer’s parameters. A shared learning-rate schedule still governs the run, while the layers can move on different scales. The authors use the same framework to explain LARS, an earlier optimizer that constructs its directions with momentum. LARS had made large-batch ImageNet training practical, yet its results on BERT gave the authors a reason to try a different direction-setting rule.
In the main BERT experiment, a fixed batch of 32,768 gives a development-set F1 of 91.460 on SQuAD-v1, the question-answering task used to evaluate the pretrained checkpoint. The reference BERT-Large checkpoint gets 90.395 under the same fine-tuning procedure. The runs keep the same number of pretraining epochs. The shortest run uses a batch of 65,536 for short sequences and 32,768 after the switch to longer ones. At that switch, the authors raise the learning rate gradually from zero again. This procedure takes 8599 updates and finishes pretraining in 76 minutes on a TPUv3 Pod. The original training configuration takes around 3 days on 16 TPUv3 chips.
On ImageNet with ResNet-50, LAMB records 76.4% top-1 validation accuracy at batch size 32K, with LARS at 76.3%. At 2K, the corresponding scores are 77.11% and 76.6%. Other adaptive optimizers stay below the ImageNet target after searches over their settings. Experiments on CIFAR-10 and MNIST also give favorable results at much smaller batch sizes. The mathematical analysis addresses a separate question. For simplified versions of LARS and LAMB, it bounds how far a randomly selected training iterate is from stationarity, as measured by the gradient. The task scores establish the quality of the tested checkpoints, and the elapsed time reflects the joint effect of the optimizer, the training schedule, and the hardware.
Deep dive: Large Batch Optimization for Deep Learning: Training BERT in 76 minutes
How LAMB adjusts updates within and across layers to make large-batch BERT training practical, and what the 76-minute run establishes. · about 36 minutes to read
The problem and its context
Where the waiting comes from
Stochastic gradient descent, or SGD, gives the paper its starting point. In each training step, a loss measures how poorly the current parameters perform on examples drawn for that step. The gradient gives the local direction in which the loss increases, so moving against it is a way to seek a lower loss. SGD estimates that direction from a mini-batch, a collection of examples used for a single update. The learning rate determines how much of the proposed movement the optimizer applies.
The examples in a batch can be processed concurrently, since the gradient for each example is calculated at the same parameter values. Across updates there is a dependency. The gradient for the next step is supposed to describe the parameters reached by the current step. A faster calculation within each update helps, but a run with a long chain of relatively small updates can still take a long time. The authors frame large-batch optimization as a way to put more of the work inside each step, where it can be done concurrently.
The distributed approaches discussed in the paper deal with that dependency in different ways. In asynchronous training, workers can send updates while other workers continue computing. A worker may therefore report a gradient calculated for an earlier parameter setting. The authors call this staleness and describe it as a difficulty for scaling training while maintaining quality. Synchronous training takes a common parameter setting, computes parts of the batch in parallel, and combines the gradients before proceeding. It avoids that source of staleness at the cost of having to coordinate every update. This is the form of parallel computing used in the headline experiment.
With the epoch count held fixed, a larger batch changes both the information available per update and the number of times the parameters move. An epoch measures training exposure in passes through the data. Grouping more examples into a single update can make the estimated gradient less variable, while the optimizer gets fewer opportunities to act on it. An increase in batch size can therefore make efficient use of the machine and still yield an unsatisfactory checkpoint. For the authors, useful scaling means carrying the training objective and the eventual task score along with the gain in elapsed time.
Why the learning rate became the focus
The paper describes a statistical argument for increasing the learning rate as the batch grows. Averaging more sample gradients reduces the variance of the estimate. A square-root scaling rule uses that improvement to permit a larger step. The authors also discuss a stronger rule that increases the learning rate in direct proportion to batch size. The earlier work by Krizhevsky found an empirical range where the stronger rule worked well. Its success depended on how far the batches were scaled. One weird trick for parallelizing convolutional neural networks
The beginning of training posed a particular difficulty. Applying the enlarged rate immediately could make training unstable, so Goyal and colleagues used warmup, a period during which the rate climbs from a small value before the regular schedule takes over. Their study combined warmup with linear scaling in a ResNet-50 run using a batch of 8192. This gave the LAMB authors a practical precedent for increasing the shared rate, and a reason to pay attention to when that rate was applied. Accurate, Large Minibatch SGD
The paper describes earlier theoretical work mainly in terms of convex objectives, where the geometry of the loss permits stronger reasoning about approaching an optimum. A result for stochastic convex optimization can show how performance depends on batch size and the number of updates. The authors also point to non-convex results in which larger batches help reach points with small gradients, at the expense of computing more sample gradients. Those statements concern progress on an objective. The practical literature also had to check generalization, the quality achieved on data held out from training, and the time spent getting there. Work on the generalization gap helped make very large batches an empirical question as much as a question about convergence rates. Train longer, generalize better
A single learning rate is a compromise even when its schedule is well chosen. The authors treat the parameters as a collection of layers, each with its own gradient and characteristic scale. Some layers may be sensitive to an update that another layer could take comfortably. Raising the shared rate alone retains the proportions among the updates proposed by the optimizer. Layerwise adaptation offers a way to change those proportions using measurements made during training.
What the image-classification precedent left open
ResNet-50, the residual network used for the image experiments, was already a focus of large-batch training research. The authors discuss work that combined larger batches with changes to optimization and implementation. Their review includes ImageNet systems using adaptive rates and systems engineered for mixed-precision computation. LARS, which assigns a separate scale to each layer, came from this setting. Deep Residual Learning for Image Recognition · Large Batch Training of Convolutional Networks · Highly Scalable Deep Learning Training System with Mixed-Precision
The paper takes from LARS the idea that the size of an update can be decided at the layer level. The question is how much depends on the optimizer that supplied the update in the first place. LARS uses momentum, which carries information forward from previous gradients. BERT, an attention-based Transformer system, was a setting where the authors had reason to favor Adam. Adam also uses gradient history, with a separate estimate of squared gradient size for each coordinate. Two coordinates in the same layer can consequently be adjusted by different factors before any common layer scaling takes place.
That distinction gives the paper a more precise question than whether adaptive learning rates are helpful in general. If the rule that proposes a direction can be exchanged independently of the rule that sets the layer’s step length, the authors can use a common framework for the two optimizers. They can also ask what follows mathematically from normalizing updates at the layer level, and then test whether the version built from Adam works on both workloads.
The method, step by step
Follow the work done in a single update
A LAMB update begins with gradients calculated on a batch. The optimizer keeps two running summaries for each parameter. The first tracks gradients, including their signs. The second tracks squared gradients, which describe their size without cancellation between positive and negative entries. Adam uses the first summary to help set the direction and the square root of the second to adjust the coordinates of that direction. A coordinate with a large history of squared gradients gets a larger divisor.
Once this coordinate-level calculation is done, LAMB considers the complete direction for each layer. It measures the length of that vector and divides by the length. This operation preserves the relative components of the direction within the layer. Then it takes a measurement of the current parameters in the layer and uses a function of their length to assign a new size to the move. Multiplication by the scheduled learning rate completes the calculation.
Consider two layers whose proposed updates have very different magnitudes. If their parameter norms are the same, LAMB can give their steps the same length even though one base update was much longer. The two steps can still point in quite different directions. If the parameter norms differ, the optimizer can let that difference govern the relative size of the steps. This is the role of layerwise normalization. It determines which measure of size survives from the original calculation.
How LAMB turns batch gradients into parameter changes
The steps in order.
Represent the training problem in blocks
For the mathematical analysis, the authors describe training as minimization of the following objective.
minimize over x ∈ ℝᵈ: f(x) := Eₛ∼ℙ[ℓ(x, s)] + (λ/2)‖x‖²
The vector x contains the training parameters, and ℝᵈ is the space of real vectors with d entries. The function f is the objective, defined by the right-hand side. The sample s is drawn from the unknown data distribution ℙ, as indicated by s ∼ ℙ, and E takes the expectation over that draw. The function ℓ gives the loss for x on s. The coefficient λ sets the strength of the quadratic penalty, and ‖x‖ is the Euclidean norm, the square root of the sum of the squared entries.
The loss may be non-convex. The analysis therefore sets a goal that can be expressed using local information. It asks whether training can reach regions in which the gradient of the objective becomes small. An objective can have several such regions, and the value used for comparison in a theoretical bound can be the optimum even when the algorithm itself has access only to sampled gradients.
The authors divide x into h blocks and associate those blocks with the layers. The notation x⁽ⁱ⁾ means block i, and dᵢ is its number of coordinates. A gradient with respect to that block is written ∇ᵢf. These conventions let the authors discuss variation within a layer and variation across layers using different quantities. The number of coordinates in a layer describes its dimension. Its parameter norm describes the current values of those coordinates taken together.
The smoothness assumption is written in terms of the loss gradient in a block.
‖∇ᵢℓ(x, s) − ∇ᵢℓ(y, s)‖ ≤ Lᵢ‖x⁽ⁱ⁾ − y⁽ⁱ⁾‖
The vectors x and y are parameter settings, and s is a sample. The gradients ∇ᵢℓ(x, s) and ∇ᵢℓ(y, s) refer to the same block i at those settings. The Euclidean norms measure the change in its gradient and the change in its parameters. Lᵢ is the assumed smoothness constant in the inequality. A larger value permits the gradient to vary more sharply in relation to the movement measured on the right.
The vector L collects these constants. L∞ denotes their maximum, and L_avg their mean. The distinction becomes important when comparing the bounds for different optimizers. If one layer has a much larger Lᵢ than the rest, a result expressed using L∞ carries that layer’s constant throughout. A bound expressed using L_avg gives each layer a contribution to the curvature term.
The authors also bound stochastic variation at the layer and coordinate levels.
E[‖∇ᵢℓ(x, s) − ∇ᵢf(x)‖²] ≤ σᵢ²
Here ∇ᵢℓ(x, s) is the sampled gradient of the loss for block i, and ∇ᵢf(x) is the corresponding objective gradient at x. The expectation E averages the squared Euclidean discrepancy over the sample s. The quantity σᵢ² bounds that discrepancy, and σ denotes the vector of the layerwise σᵢ.
E[([∇ℓ(x, s)]ⱼ − [∇f(x)]ⱼ)²] ≤ σ̃ⱼ²
The square brackets with subscript j select coordinate j of the sampled loss gradient ∇ℓ(x, s) and of the objective gradient ∇f(x). The expectation is again over s. The bound for that coordinate is σ̃ⱼ², and σ̃ collects the coordinate-level σ̃ⱼ. The analysis also uses G as a gradient-coordinate bound. Layerwise noise is the natural quantity for an argument about the direction of an entire block. Coordinate noise becomes important when the proof considers whether individual gradient signs agree.
Change the size of a base optimizer’s step
The authors begin with an iterative optimizer that already proposes a direction.
xₜ₊₁ = xₜ + ηₜuₜ
The subscript t is the iteration index. The vector xₜ gives the current parameters and xₜ₊₁ the parameters after the update. The base optimizer supplies uₜ, which includes the sign of the proposed movement. The scalar ηₜ is the learning rate for that iteration. With ordinary gradient descent, uₜ would point opposite the gradient.
The paper uses SGD to illustrate the proposed change. Let the gradient estimate at a step be the average of the gradients from its batch. The modified rule takes that gradient block by block.
xₜ₊₁⁽ⁱ⁾ = xₜ⁽ⁱ⁾ − ηₜ [φ(‖xₜ⁽ⁱ⁾‖)/‖gₜ⁽ⁱ⁾‖] gₜ⁽ⁱ⁾
The vectors xₜ⁽ⁱ⁾ and xₜ₊₁⁽ⁱ⁾ are the old and new parameters of layer i. The vector gₜ⁽ⁱ⁾ is its batch gradient. Both norms are Euclidean, φ maps the parameter norm to a positive scale, and ηₜ is the shared learning rate at time t. The minus sign turns the gradient into a descent direction. The expression is written for a non-zero gradient block, since a zero vector gives a zero denominator.
Dividing by the gradient norm gives a unit vector. This makes the mechanism easiest to see when an estimated gradient is unusually large. Its size on its own can no longer produce an unusually long step. The same rule can sustain movement across a region with a small gradient, provided that the direction is informative. If the small vector mainly reflects sampling error, normalizing it also gives that direction full weight. The paper’s emphasis on large batches follows from this dependence on direction quality.
The authors point out that normalization changes the statistical character of the update. Even if an ordinary batch average gives an unbiased gradient estimate, dividing each realized average by its own norm is a nonlinear operation. The result can be biased as an estimate of the normalized population direction. The convergence argument controls the discrepancy caused by the noisy estimate. It gives a reason to expect a better approximation when a larger batch cuts down the error in that estimate.
Set a layer’s scale from its parameters
The paper describes a simple bounded choice for the function that converts parameter norm into step scale.
φ(z) = min{max{z, γₗ}, γᵤ}
The input z is the parameter norm. The lower threshold is γₗ and the upper threshold is γᵤ. The maximum operation first lifts inputs below the lower threshold, and the minimum operation then caps the result at the upper threshold. Within the interval, φ returns the input itself. The authors describe this clipped form as a practical choice and use boundedness of the scaling function in their analysis.
Setting φ(z) equal to z makes the intuition especially direct. In the SGD example, the factor multiplying the shared learning rate becomes the parameter norm divided by the gradient norm. For a fixed shared rate, the length of the resulting step is proportional to the parameter norm. This gives a layer with a large parameter vector room to move farther in absolute terms, while a layer with small parameters takes a smaller absolute step. Clipping makes that relationship less extreme at either end.
The authors offer a further interpretation of the ratio through inverse gradient smoothness. A layer whose gradient is large relative to the size of its parameters receives a smaller multiplier of the originally proposed vector. A layer with a relatively small gradient gets a larger multiplier. In the smoothness inequality, inverse smoothness also relates a parameter displacement scale to a gradient-change scale. The resemblance motivates the scaling rule. The theorems still treat Lᵢ as an assumption about the objective, separate from the ratio observed on any training step.
In the ImageNet diagnostics, the authors refer to the factor derived from the parameter and update norms as a trust ratio. Its use is easiest to understand by distinguishing the multiplier from the movement it produces. A large multiplier may accompany a small proposed update. The multiplier says how the base proposal is rescaled, while the actual movement also depends on the vector being multiplied and the scheduled learning rate.
Use momentum for LARS and Adam for LAMB
LARS applies the layerwise idea to a direction supplied by momentum. The momentum state carries forward information from preceding gradients. The authors describe this as a way to reduce stochastic variation while introducing some bias. In the LARS proof, they set the momentum coefficient and weight decay to zero. The update under that simplification is the normalized-gradient rule above.
LAMB starts with Adam. Its first-moment coefficient β₁ governs the decay of the running gradient average. Its second-moment coefficient β₂ governs the decay of the running squared-gradient average. These are separate state variables. The first can retain evidence that a coordinate generally points in one direction, and the second can retain evidence that gradients in that coordinate tend to be large. The Adam-derived direction uses the square root of the second moment to adjust the first coordinate by coordinate.
The paper’s simplified update for the LAMB analysis is the following.
xₜ₊₁⁽ⁱ⁾ = xₜ⁽ⁱ⁾ − ηₜ φ(‖xₜ⁽ⁱ⁾‖) [rₜ⁽ⁱ⁾/‖rₜ⁽ⁱ⁾‖]
The vector rₜ⁽ⁱ⁾ is the coordinate-adjusted direction for layer i at iteration t. Its Euclidean norm is the denominator. The current and next layer parameters are xₜ⁽ⁱ⁾ and xₜ₊₁⁽ⁱ⁾, φ gives the scale from the current parameters, and ηₜ is the common rate. In this form the proof sets λ to zero. The practical implementation lists weight decay λ=0.01, moment coefficients β₁=0.9 and β₂=0.999, and ε=1e-6 as defaults. The small constant ε belongs to the coordinate normalization, where it supplies numerical stabilization. The authors identify a TensorFlow Addons implementation of LAMB.
The two normalizations do different jobs. The division associated with the second moment can change the relative sizes of entries within the same layer and thereby turn the direction. The division by the norm of rₜ⁽ⁱ⁾ applies one scalar across the block, preserving that direction. This ordering is what allows the authors to retain Adam’s coordinate adaptation while controlling the magnitude at which it acts.
The paper relates the limiting case β₁=0 and β₂=0 to Sign SGD. In that idealized case, with the second moment taken from the current squared gradient, dividing a non-zero gradient coordinate by its magnitude leaves its sign. Normalization of the resulting vector then introduces the layer dimension into the scale. This connection helps explain why the proof for that case examines a sum of absolute gradient coordinates. Such a sum tracks the progress available from many correct coordinate signs.
Set the learning rate and allocate the BERT batches
For the main experiments, the authors keep the moment coefficients fixed and select a learning rate. They write the polynomial decay used in those runs as follows.
ηₜ = η₀ × (1 − t/T)
The symbol ηₜ gives the rate at step t, η₀ sets the scale of the decay, and T is the iteration budget in the schedule. The factor in parentheses decreases as the iteration counter advances. Warmup supplies the initial rising part of the schedule. When changing batch sizes for BERT and ResNet-50, the authors use a square-root rule for the change in the learning rate and control warmup in terms of epochs. This carries a chosen configuration across batch sizes by a prescribed rule. For the BERT batch of 32K, the paper assigns 3125 warmup iterations out of the 15,625 iterations in the fixed-batch run.
The sequence lengths come from the reference BERT training procedure. It uses length 128 for 900k iterations and switches to length 512 for the final 100k. In the authors’ epoch-based comparisons, the short stage takes the first 9/10 of training exposure and the long stage takes the last 1/10. The fixed-batch procedure uses the same batch size in both stages, so the long stage’s memory needs constrain the short stage as well. At 32,768 the paper reports 14,063 updates on short sequences and 1562 on long ones.
The mixed-batch procedure chooses the batch independently for each stage. The authors can fit 131,072 in the short stage but find that stepping up to it from 65,536 yields no speed gain. They use 65,536 for length 128 and 32,768 for length 512, the latter being the reported memory limit on the Pod. The learning rate decays after the first warmup. At the transition the authors bring it back to zero, ramp it up again, and resume decay after this new warmup. They treat the combination of longer sequences and a smaller batch as a change in optimization conditions severe enough to warrant its own gradual start.
Read the guarantees in terms of what they measure
The paper gives a large-batch SGD bound as a reference for its analysis. With batch size b=T and an appropriate learning rate, the stated bound is
E[‖∇f(xₐ)‖²] ≤ O(((f(x₁) − f(x*))L∞)/T + ‖σ‖²/T)
The batch size is b and the number of analyzed iterations is T. The point xₐ is chosen uniformly from the training iterates, x₁ is the starting point, and x* is an optimum used to define the initial objective gap. The full objective gradient is ∇f and the norm is Euclidean. The expectation covers the stochastic training and the selection of xₐ. The quantity L∞ is maximum block smoothness, σ is the vector of layerwise standard-deviation bounds, and O suppresses constant factors. The first term contains the initial gap and smoothness, while the second describes the contribution from stochastic gradients.
For the layerwise theorems, the paper chooses a constant learning rate and bounds the scale from above and below.
ηₜ = η = √(2(f(x₁) − f(x*))/(αᵤ²‖L‖₁ T))
Here η is the single value used at each iteration t, the objective gap is measured between x₁ and x*, αᵤ is an upper bound on φ, and ‖L‖₁ sums the block smoothness constants. T is the iteration budget. The theorems also impose a positive lower bound αₗ on φ. The upper bound limits how sharply the objective can change from a finite step. The lower bound lets the proof assign a minimum scale to the part of the step that aligns with descent. The learning rate in this theorem is chosen for the analysis, using a gap to the optimum. The experimental rate is set by warmup, decay, and batch scaling.
Under the simplifications β₁=0 and λ=0, and with b=T, the LARS result is
(E[(1/√h) Σᵢ₌₁ʰ ‖∇ᵢf(xₐ)‖])² ≤ O(((f(x₁) − f(x*))L_avg)/T + ‖σ‖₁²/(Th))
The sum adds the Euclidean gradient lengths for the h blocks, from block i=1 through block i=h. The point xₐ is the random iterate, E takes the expectation, and the square is outside that expectation. L_avg is the mean of the Lᵢ. The sum of the standard-deviation bounds for the blocks is ‖σ‖₁. The remaining terms use the initial objective gap, the iteration budget T, and the big-O convention from the SGD bound.
An outline of the proof explains why layer smoothness and batch size enter separately. The authors bound the objective after a step by its current value, a term measuring alignment with the true gradient, and a smoothness cost that grows quadratically in the step. For LARS they compare the normalized batch gradient to the normalized objective gradient. The latter would contribute a decrease proportional to the block gradient norm. The former incurs an error the proof bounds using the discrepancy between the two gradients before normalization. Averaging the stochastic gradients in a larger batch tightens the bound on this error. When the one-step inequalities are added, intervening objective values cancel, leaving a bound on gradient size averaged along the trajectory.
The LAMB theorem again sets β₁=0 and λ=0, requires b=T, and assumes equal block dimensions dᵢ=d/h. For β₂=0, it gives
(E[(1/√d)‖∇f(xₐ)‖₁])² ≤ O(((f(x₁) − f(x*))L_avg)/T + ‖σ̃‖₁²/(Th))
The quantity d is the total number of coordinates, and ‖∇f(xₐ)‖₁ adds their absolute gradient values at the random iterate. The expectation is taken before squaring. The vector σ̃ contains coordinate-level noise bounds and ‖σ̃‖₁ adds those bounds. The terms L_avg, f(x₁) − f(x*), T, h, and O retain the meanings used for LARS. Equal block sizes let the dimension-dependent scaling be expressed through d and h.
For β₂>0, the paper states a different guarantee.
E[‖∇f(xₐ)‖²] ≤ O(√(G²d/[h(1 − β₂)]) × [√(2(f(x₁) − f(x*))‖L‖₁/T) + ‖σ̃‖₁/√T])
The left-hand side is again the expected squared Euclidean norm of the objective gradient at xₐ. The constant G is the assumed bound used for gradient coordinates. The quantities d and h are the number of coordinates and blocks, β₂ is the second-moment decay, and ‖L‖₁ sums smoothness constants. The square-root terms involve the initial objective gap and the iteration budget T, and the remaining noise term uses the sum of the coordinate-level bounds ‖σ̃‖₁. As before, E denotes expectation and O hides constants.
The LAMB proof treats coordinate sign disagreement as a source of lost progress. In a coordinate whose proposed direction agrees with the objective gradient, the update contributes to descent. When the signs differ, the proof charges that contribution against a term controlled by gradient noise. For positive β₂, the history of squared gradients also affects how much a coordinate can contribute, leading to the dependence on G, the dimensions, and β₂. The authors get a weaker rate in this case and say they expect the practical second-moment setting to behave better than the zero-second-moment case. The proof leaves that expectation open.
The comparison with SGD is conditional because the bounds measure stationarity differently. A sum of block norms gives more weight to gradients spread among layers than to gradients concentrated in a few of them. When gradients are sufficiently spread out, the block measure and the usual Euclidean measure can be comparable in scale. If curvature or noise is more concentrated than the gradient, the average-smoothness term can then give the layerwise method a more favorable bound. The authors’ comparison also allows the reverse ranking. The distribution of gradient, curvature, and noise across layers matters alongside the choice of optimizer.
Experiments and results
The score used to judge a BERT run
BERT pretraining uses the same combination of text collections as the reference work. Wikipedia accounts for 2.5B words and BooksCorpus for 800M words. The pretraining loss records progress on this text. The eventual quality comparison uses question answering on SQuAD-v1. For each checkpoint, the authors apply the reference fine-tuning configuration, in which the pretrained parameters are further trained for that task. They then record development-set F1, the answer-overlap score that balances precision and recall. The fine-tuning epoch count and hyper-parameters are held fixed for the main comparison.
The reference is the publicly distributed BERT-Large checkpoint. Its SQuAD-v1 development F1 is 90.395. The authors use the same pretraining epoch count as the reference as they increase batch size from 512 towards the size allowed by Pod memory. Keeping the epoch count fixed preserves the amount of training exposure measured in passes. The larger batch changes how many examples inform an update and how often the optimizer can act on a new gradient.
The results for the fixed batches show that the tested LAMB settings can retain the reference level of question-answering performance. The 16K pretraining batch reaches 91.345 development F1 with the reference fine-tuning configuration. A change to the fine-tuning learning rate for that same batch size produces 91.688, which the authors report separately. The fixed batch of 32,768 gives 91.460 with the common procedure. This last comparison tests a combined change in the optimizer and batching, with the downstream training settings held steady.
BERT-Large reference and fixed-batch LAMB runs on SQuAD-v1 development F1
Each fixed-batch LAMB run shown scores above the reference checkpoint under the shared fine-tuning procedure.
The numbers
| System or setting | F1 |
|---|---|
| Reference BERT-Large checkpoint | 90.395 |
| LAMB pretraining batch 16K | 91.345 |
| LAMB pretraining batch 32,768 (this paper) | 91.460 |
The paper also compares large-batch BERT training with AdamW and LARS. The AdamW search includes the original BERT defaults, the settings used for LAMB, and configurations tuned for AdamW itself. At batch size 16K, the authors report SQuAD-v1 F1 of 88.1 against a target they give there as 90.4. They try the mixed schedule, described in that comparison as 64K/32K, and report that the search produces no satisfactory AdamW result. Against LARS, they report higher F1 for LAMB at every tested batch size and identify 16K as the point where LARS fails to sustain the required quality. These results explain why the paper treats scale as a property of a particular optimizer and workload.
When the larger batch saves time
The reference BERT procedure takes around 3 days on 16 TPUv3 chips. The fixed-batch LAMB run at 32,768 takes around 100 minutes and uses 15,625 updates. The main experimental account reports a speedup of 49.1 times using 64 times the computational resources, with 76.7% scaling efficiency. The paper describes a TPUv3 Pod as containing 1024 chips. The gains therefore occur in a comparison that changes the number of devices as well as the way the training examples are grouped.
The authors explain part of the scaling cost through gradient communication. Under synchronous data parallelism, the gradients from the distributed work have to be collected before training can take the next common step. A larger set of parameters gives more gradient entries to exchange. In discussing BERT and ResNet-50, they give parameter counts of 300 million and 25 million, respectively, and use that difference to explain why BERT presents a greater communication burden.
Changing the batch between stages gives the shortest run in the paper. The shorter input length allows more examples per update, so the first stage can finish its allotted training exposure with fewer updates. The memory limit of the long stage still applies after the switch, and the renewed warmup governs the start of that stage. With these choices, the paper reports 8599 pretraining updates and 76 minutes of elapsed time. The detailed F1 value of 91.460 belongs to the fixed-batch run. The time result belongs to the mixed-batch procedure.
The main mixed-batch discussion gives 100.2% scaling efficiency. The appendix gives 101.8% for mixed-batch scaling and associates it with a speedup of 65.2 times on 64 times the resources. It gives 76.8% for fixed-batch scaling, alongside the speedup of 49.1 times. Those are figures from the respective accounts. An efficiency comparison here relates speedup to the increase in resources. The mixed-batch run also changes how much work is grouped into an update in the short stage, so its scaling figure reflects a schedule change as well as hardware utilization.
ResNet-50 and the ImageNet target
The image experiment asks whether LAMB can reach the benchmark quality already associated with momentum SGD and LARS. The comparison runs ResNet-50 on ImageNet, using top-1 validation accuracy. This metric asks whether the predicted category with the highest score is the correct one. The authors give 76.3% after 90 epochs as the reference target. They distinguish reaching that accuracy from showing that training loss has fallen satisfactorily.
At batch size 16K, they search learning rates for AdaGrad, Adam, and AdamW, also varying weight decay for AdamW. The first set of reported top-1 validation results is 55.38% for AdaGrad, 66.04% for Adam, and 67.27% for AdamW. A further set borrows the earlier large-batch SGD schedule. It starts with 5 epochs of warmup and applies a learning-rate multiplier of 0.1 at the 30th, 60th, and 80th epoch. With that schedule, the respective top-1 validation accuracies are 72.0%, 73.48%, and 73.07%.
Tuned ResNet-50 baselines and the target on ImageNet at batch 16K, top-1 validation accuracy
The borrowed schedule raises each adaptive baseline’s accuracy, while the benchmark target remains higher.
The numbers
| System or setting | accuracy % |
|---|---|
| AdaGrad | 55.38 |
| Adam | 66.04 |
| AdamW | 67.27 |
| AdaGrad with the borrowed schedule | 72.0 |
| Adam with the borrowed schedule | 73.48 |
| AdamW with the borrowed schedule | 73.07 |
| Best setting shown, benchmark target (this paper) | 76.3 |
LAMB reaches the target in the ImageNet experiments. At batch size 32K, it records 76.4% top-1 validation accuracy, with LARS at 76.3%. At 2K, LAMB records 77.11% and LARS 76.6%. The authors also report that LAMB is ahead of the momentum baseline for batch sizes above 8K. The paper’s hyper-parameter table for the 90-epoch runs says that LAMB reaches the reference top-5 accuracy of 93% as well. Top-5 accuracy allows the correct category to appear anywhere among the highest-ranked predictions counted by that metric.
LAMB and LARS on ImageNet with ResNet-50 at batch 32K, top-1 validation accuracy
Both optimizers reach the stated benchmark target, with LAMB recording the higher score.
The numbers
| System or setting | accuracy % |
|---|---|
| LARS | 76.3 |
| LAMB (this paper) | 76.4 |
The two main workloads put the experiment in perspective. BERT gives a case where LARS runs into difficulty and LAMB makes much larger batches usable by the paper’s task criterion. ImageNet gives a case where LARS already works, and where other adaptive optimizers fall short in the authors’ searches. The result for LAMB on ImageNet establishes that the Adam-based direction can coexist with layerwise scaling at the required quality on this workload. The reported ranking against LARS is a separate observation, based on the final scores of those runs.
What happens at smaller scales
The appendix compares optimizers on CIFAR-10 using DavidNet, a residual convolutional network with 9 layers. The batch size is 512, the runs span 24 epochs, and the measure is test accuracy. The baseline from DAWNBench uses momentum SGD in PyTorch on GPUs and reports 94.06%. A separate momentum implementation in TensorFlow on a TPU reports 93.72%. The authors adopt the TPU implementation and obtain 94.08% with LAMB. The TPU momentum result is the comparison that shares their implementation environment.
The CIFAR-10 runs finish in under one minute on one cloud TPU. The authors search learning rates for the adaptive solvers and additionally tune weight decay for AdamW. This makes the experiment a test of whether LAMB can be competitive in an ordinary batch regime when the comparison methods also receive tuning. It adds evidence about final accuracy at that scale. The runtime description gives the scale of the experiment as a whole.
For MNIST, they train LeNet with batch size 1024 for 30 epochs. The compared optimizers have the same warmup and decay schedule and are searched over the stated learning-rate settings. The authors report that LAMB gives better test accuracy than the compared solvers. Their discussion gives this result as a ranking. On both smaller datasets, the purpose is to see whether the layerwise procedure retains utility outside the very large distributed runs that motivated it.
What the ablations show
The base direction matters within the layerwise framework
The comparison with LARS asks what happens when layerwise scaling is built around a different base optimizer. LARS constructs its direction with momentum, and LAMB constructs it with Adam’s coordinate-level adjustment. On the BERT experiments, the ordering favors LAMB across the batch sizes compared. Since both methods use layerwise adjustment, this makes the construction of the direction a substantive part of the result. The experiment compares whole optimizer configurations, so the observed gap belongs to that change as a whole.
ImageNet offers a related comparison from the other side. Adam and AdamW already have coordinate-level adaptation. LAMB reaches the target while the tuned versions of those methods reported by the authors stay below it. The pair of workloads gives evidence for retaining both parts of the LAMB design. BERT tests a change to the direction supplied to a layerwise optimizer, and ImageNet tests successful training with a layerwise rule built around an adaptive direction. Neither comparison assigns a separate numerical contribution to each feature.
Changing the schedule improves the baselines
The ImageNet schedule comparison gives a way to assess the importance of the learning rate independently of whether an optimizer ultimately reaches the target. Each of the three adaptive baselines improves when the authors incorporate the large-batch SGD warmup and staged decay. This makes their initial accuracies a poor characterization of what those optimizers can do after tuning. It also shows that their remaining gap persists after a substantial and documented change in schedule.
AdamW receives multiple searches because both weight decay and L2 regularization can affect the result. The authors consider configurations with the default regularization and with it disabled. They do this for the ordinary AdamW schedule and for the version using the borrowed schedule, while searching over learning rate and weight decay. Their conclusion is about the difficulty of finding a competitive configuration under those searches. The design gives the baseline more chances to succeed than a comparison based solely on the default settings would give it.
The mixed BERT schedule gives a different reason to examine the learning rate. The authors report instability when a run moves to the stage with a smaller batch, and find that renewed warmup is helpful when the sequence length and batch size change together. The outcome establishes a working transition procedure. Since the experiment changes both quantities at the boundary, its evidence applies to the combined transition. The authors also test how far to enlarge the short-stage batch and find that the larger feasible batch, 131,072, offers no further speedup over 65,536 in that stage. Feasibility in memory and a gain in elapsed time are distinct findings.
Warmup can carry the practical role of moment correction
The appendix considers the corrections Adam ordinarily applies to its running moments. The operation for the first moment is written as a replacement.
mₜ ← mₜ/(1 − β₁ᵗ)
The value mₜ on the right is the running first moment at iteration t, and the arrow assigns its corrected value on the left. The coefficient β₁ controls decay, and β₁ᵗ is that coefficient raised to the iteration count. The denominator changes with t, so the correction has a time-dependent effect.
vₜ ← vₜ/(1 − β₂ᵗ)
The value vₜ is the running second moment of the gradient, β₂ is the corresponding decay coefficient, and t is the iteration count. The arrow again assigns a corrected value. The corrected second moment is the one whose square root enters the coordinate adjustment when the correction is used.
The authors compare the practical effect of these operations with learning-rate warmup. When they remove the corrections from LAMB in the BERT and ImageNet runs, they report no measured loss of task accuracy. This supports omitting the corrections in the schedules they tested. The finding concerns the outcome of the training runs, where the layerwise normalization and external warmup are already part of the procedure.
Norms and alternative momentum rules
The optimizer needs a norm for a layer’s parameter tensor and for its proposed update. The default is L2. The authors try several norms and report that the differences in final ResNet-50 validation accuracy on ImageNet stay below 0.1 percent. That comparison varies the way layer magnitudes are measured while retaining the layerwise idea. It suggests that the precise default norm was a flexible implementation choice in this particular experiment.
The appendix also introduces N-LAMB, which uses a Nesterov-style modification for its first moment, and NN-LAMB, which applies such a modification to both moments. The authors motivate these versions through earlier work on Nesterov momentum and its use in Adam. Their variants use β₁=0.975, β₂=0.999, and ε=1e-8. In the ImageNet experiment at 32K, the authors describe both variants as comparable to ordinary LAMB and as outperforming the momentum solver in the comparison. The result supports the viability of changing the moment treatment within the layerwise framework. The comparison varies the named configuration along with its settings, so it yields no isolated estimate of the effect of Nesterov momentum.
What can be seen during training
The BERT appendix plots training loss as LAMB batch size changes. The authors say the curves stay close to one another and describe the 64K stage of the mixed run as smooth. These curves show what happens to the training objective as the run proceeds. They are relevant to the stability question because a large batch could otherwise make progress visibly rough or halt it.
The ImageNet plots track the layerwise trust ratios at different iterations. The authors observe that the multipliers differ substantially among layers. This is direct evidence that the rule is generating distinct layer scales in a real training run. Their interpretation is that these adjustments help layers that would otherwise learn more slowly. The plots show the multipliers themselves. A controlled test that fixed individual layers’ multipliers would answer a different question about which adjustments contribute most to the final score.
The validation-loss analysis clarifies how the paper uses these diagnostics. In the authors’ experiments, a lower validation loss can occur alongside worse validation accuracy. A smooth or low loss is evidence about the objective being tracked, while the ranking of interest can depend on decisions such as which ImageNet category is scored highest. For BERT, it depends on answer quality after fine-tuning. This is why the paper makes task accuracy and development F1 its criteria for successful scaling.
Limitations
Limits the authors state
The convergence theorems study simplified variants. The authors remove first-moment momentum and weight decay for the proofs of both methods. The LAMB theorem additionally uses equal-sized blocks, and the large-batch results set b=T. The theoretical learning rate is constant and expressed in terms of the objective gap and smoothness constants. The practical optimizer uses momentum, a weight-decay setting, and changing rates. The authors suggest the analysis could be extended, while the guarantees they give apply to the stated cases.
They also call out the positive-β₂ result as a theoretical weakness. The bound is less favorable than they would expect from practical behavior. That matters because the experiments use β₂=0.999 for ordinary LAMB. The most favorable smoothness comparison comes from a simplified setting, and the authors leave the behavior of the more practically relevant second moment as an open question for the analysis.
The authors describe their own empirical results as having tuning headroom. Their policy is to keep the moment coefficients fixed and scale the learning rate according to a rule when the batch is enlarged. The change to the BERT fine-tuning rate at 16K demonstrates that the chosen downstream procedure leaves room for a higher score. They likewise qualify their negative results for AdamW and the other tested adaptive solvers. The methods performed poorly under the reported searches, which could reflect difficulty finding the right settings.
There is also a limit on a purely hardware-driven reading of batch size. In the short BERT stage the authors can fit a batch larger than the one they ultimately use, and report that it fails to improve speed. In the long stage they name memory as the factor limiting the batch. Thus the chosen mixed schedule reflects both a measured runtime outcome and a memory constraint. Increasing the number of examples on each step serves the experiment only when it helps finish the allotted training sooner.
Limits visible in the theory and the measurements
The theorems bound quantities averaged over random training and a randomly chosen iterate. This is a stationarity statement about the analyzed trajectory. A final checkpoint is a particular iterate chosen by the training procedure. Its quality on held-out data depends on more than the local gradient of the training objective, and the paper measures it separately. Since the objective can be non-convex, a small gradient can also occur at more than one objective value. The comparison to the optimum on the right-hand side of a bound helps set the scale of the guarantee. It does not identify the location approached in practice.
The gradients are also summarized differently across the theorems. The move from maximum to mean layer smoothness is favorable when the layerwise stationarity quantity and the SGD quantity are comparable. A highly uneven gradient can weaken that comparison. Which rate looks better depends in part on how the gradient is distributed relative to noise and curvature. The paper supplies sufficient relationships for a favorable comparison. The experiments do not measure all those relationships for each run or establish that they explain the observed ordering of task scores.
The language experiments use one downstream measure, SQuAD-v1 development F1, on checkpoints trained from the stated corpora. This tests retained question-answering quality under the chosen fine-tuning procedure. Other downstream tasks or training data would call for separate evidence. Additionally, final scores depend on the downstream configuration, as the authors’ learning-rate change demonstrates. Keeping that configuration fixed gives the main comparison a clear meaning, while limiting what can be inferred about rankings under independent downstream tuning.
The image experiments expand the range of evidence substantially because they exercise a different architecture and a different objective. Even there, close scores such as the LARS and LAMB values at 32K are reported outcomes. The paper gives no corresponding estimate of run-to-run variability in that comparison. Those values support the claim that the tested LAMB run attains the benchmark target. A claim about the reliability of a narrow margin across repeated training would require additional measurements.
The hardware comparison concerns elapsed pretraining time using a different scale of TPU installation. The paper reports speed and resource scaling. It gives no corresponding accounting of energy or financial cost. The headline also combines an optimizer change with synchronous execution, stage-specific batching, and renewed warmup. The fixed-batch result establishes a useful comparison with the mixed run, but the paper does not measure the separate runtime effect of every intervention. Hardware with different memory or communication constraints could make a different batch schedule practical.
Finally, some values are stated differently in different parts of the paper. The abstract prints 32,868 for the large batch, and the detailed fixed-batch experiment specifies 32,768 with the stage-by-stage update counts. The main text and appendix give different values for scaling efficiency. The precise reference checkpoint score of 90.395 also serves a different reporting role from the target figures used in the AdamW and LARS discussions. The detailed run settings provide the basis for associating a batch, a score, and an elapsed time with a particular comparison.
What came after
The citing work pursues several questions that the LAMB experiments bring into contact. A pretraining study can ask how the training recipe affects final quality. A systems study can ask how to distribute the work or fit it into memory. An optimization study can ask how a gradient should be transformed before the parameters move. The later works discussed here cite LAMB, and their stated subjects identify where those questions recur. The citation records establish these connections while leaving the details of optimizer adoption unspecified.
Changes to BERT pretraining and representation
RoBERTa revisits how BERT pretraining is configured. This is the closest connection to the paper’s treatment of the training recipe as part of the result. LAMB’s authors keep the pretraining exposure and downstream configuration comparable while changing batch size and optimization. RoBERTa’s stated concern is the optimization of BERT pretraining more broadly. It places a citation to LAMB in a study whose subject is how much can be gained by changing the procedure used to train BERT. RoBERTa
ALBERT studies a lighter BERT for learning language representations through self-supervision. The link is the resource demand of pretraining. LAMB’s experiment addresses that demand through the number and arrangement of updates, with BERT-Large as the reference. ALBERT’s stated subject puts the design of the pretrained system itself in view. The two topics make different parts of the same practical question visible, since training cost depends on what is being trained as well as how the training is organized. ALBERT
The work on whole-word masking for Chinese BERT studies a change to the pretraining task, specifically the unit selected for masking. It cites LAMB in a context where example construction is itself a research choice. In the LAMB comparison, the main changes concern the optimizer and the examples grouped into a training update, with the reference text collections retained. The Chinese BERT study’s stated emphasis shows another part of pretraining that can be varied and evaluated. Pre-Training with Whole Word Masking for Chinese BERT
ETC studies Transformers that encode long, structured inputs. Its subject connects directly to one of the engineering constraints in LAMB’s BERT result. The LAMB paper uses a smaller batch after increasing sequence length because memory becomes limiting. ETC puts the ability to handle long inputs at the center of the architecture question. Its citation extends the setting in which the relationship between input length and the cost of training is relevant. ETC
Scaling across devices and changing the optimizer
Megatron-LM studies training very large language networks with model parallelism. The work cited here concerns distributing the computation of the network itself. LAMB’s main hardware result illustrates a complementary scaling question through synchronous data parallelism, where different portions of a batch are processed before a common update. This distinction matters because a training run can face limits on the amount of data to process per step and limits on how the network fits and executes. The citation links the large-batch result to work focused on distributing a larger training calculation. Megatron-LM
ZeRO-Infinity addresses the GPU memory limit in extreme-scale training. Memory is also an explicit constraint in the LAMB experiment, where the longer sequence length fixes the maximum usable batch for the second stage. The LAMB paper works within that limit by changing the schedule across stages. The stated subject of ZeRO-Infinity places memory capacity itself at the center of the systems problem. ZeRO-Infinity
MegaScale studies large language training across a very large GPU installation. Its subject shares with the LAMB experiment the need to turn an increase in devices into shorter elapsed training. The earlier paper makes gradient communication and batch scheduling explicit in its interpretation of speedup. The MegaScale citation places that result in a systems setting where the training installation, as well as the optimization procedure, is a central object of study. MegaScale
Sophia returns to optimizer design for language pretraining through a stochastic second-order approach. LAMB is a first-order approach in the sense used by the paper: it builds its update from gradients and their running statistics. It controls layer movement through parameter and update norms, with curvature appearing in the analysis. Sophia’s stated approach brings second-order information into the optimizer’s design. Its citation connects LAMB to a continuing question about which information an update rule should use when the goal is scalable pretraining. Sophia
Cite
Cite as Yang You, Jing Li, Sashank Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xiaodan Song, James Demmel, Kurt Keutzer and Cho-Jui Hsieh. 2019. Large Batch Optimization for Deep Learning: Training BERT in 76 minutes. arXiv:1904.00962.
@misc{you2019large,
title = {{Large Batch Optimization for Deep Learning: Training BERT in 76 minutes}},
author = {Yang You, Jing Li, Sashank Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xiaodan Song, James Demmel, Kurt Keutzer and Cho-Jui Hsieh},
year = {2019},
doi = {10.48550/arxiv.1904.00962},
eprint = {1904.00962},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1904.00962}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/you-2019-large-batch-optimization-deep-learning/
References
- Takuya Akiba, Shuji Suzuki, and Keisuke Fukuda. Extremely large minibatch sgd: Training resnet-50 on imagenet in 15 minutes. arXiv preprint arXiv:1711.04325, 2017. our card
- Yoshua Bengio. Practical recommendations for gradient-based training of deep architectures. In Neural networks: Tricks of the trade, pp. 437–478. Springer, 2012. OpenAlex ↗ · Scholar ↗
- Jeremy Bernstein, Yu-Xiang Wang, Kamyar Azizzadenesheli, and Anima Anandkumar. signsgd: compressed optimisation for non-convex problems. CoRR, abs/1802.04434, 2018. OpenAlex ↗ · Scholar ↗
- Valeriu Codreanu, Damian Podareanu, and Vikram Saletore. Scale out for large minibatch sgd: Residual network training on imagenet-1k with improved accuracy and reduced time to train. arXiv preprint arXiv:1711.04291, 2017. OpenAlex ↗ · Scholar ↗
- Cody Coleman, Deepak Narayanan, Daniel Kang, Tian Zhao, Jian Zhang, Luigi Nardi, Peter Bailis, Kunle Olukotun, Chris Ré, and Matei Zaharia. Dawnbench: An end-to-end deep learning benchmark and competition. Training, 1000 (101):0 102, 2017. OpenAlex ↗ · Scholar ↗
- Jeffrey Dean, Greg Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Mark Mao, Andrew Senior, Paul Tucker, Ke Yang, Quoc V Le, et al. Large scale distributed deep networks. In Advances in neural information processing systems, pp. 1223–1231, 2012. OpenAlex ↗ · Scholar ↗
- Aditya Devarakonda, Maxim Naumov, and Michael Garland. Adabatch: Adaptive batch sizes for training deep neural networks. arXiv preprint arXiv:1712.02029, 2017. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. our card
- Timothy Dozat. Incorporating nesterov momentum into adam. 2016. OpenAlex ↗ · Scholar ↗
- Saeed Ghadimi and Guanghui Lan. Stochastic first- and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 230 (4):0 2341–2368, 2013a. . OpenAlex ↗ · Scholar ↗
- Saeed Ghadimi and Guanghui Lan. Stochastic first-and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 230 (4):0 2341–2368, 2013b. OpenAlex ↗ · Scholar ↗
- Saeed Ghadimi, Guanghui Lan, and Hongchao Zhang. Mini-batch stochastic approximation methods for nonconvex stochastic composite optimization. Mathematical Programming, 1550 (1-2):0 267–305, 2014. OpenAlex ↗ · Scholar ↗
- Priya Goyal, Piotr Dollár, Ross Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch sgd: Training imagenet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. our card
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. our card
- Elad Hoffer, Itay Hubara, and Daniel Soudry. Train longer, generalize better: closing the generalization gap in large batch training of neural networks. arXiv preprint arXiv:1705.08741, 2017. our card
- Forrest N Iandola, Matthew W Moskewicz, Khalid Ashraf, and Kurt Keutzer. Firecaffe: near-linear acceleration of deep neural network training on compute clusters. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2592–2600, 2016. OpenAlex ↗ · Scholar ↗
- Xianyan Jia, Shutao Song, Wei He, Yangzihao Wang, Haidong Rong, Feihu Zhou, Liqiang Xie, Zhenyu Guo, Yuanzhou Yang, Liwei Yu, et al. Highly scalable deep learning training system with mixed-precision: Training imagenet in four minutes. arXiv preprint arXiv:1807.11205, 2018. our card
- Nitish Shirish Keskar, Dheevatsa Mudigere, Jorge Nocedal, Mikhail Smelyanskiy, and Ping Tak Peter Tang. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv preprint arXiv:1609.04836, 2016. OpenAlex ↗ · Scholar ↗
- Alex Krizhevsky. One weird trick for parallelizing convolutional neural networks. arXiv preprint arXiv:1404.5997, 2014. our card
- Mu Li. Scaling Distributed Machine Learning with System and Algorithm Co-design. PhD thesis, Intel, 2017. OpenAlex ↗ · Scholar ↗
- James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In International conference on machine learning, pp. 2408–2417, 2015. OpenAlex ↗ · Scholar ↗
- Hiroaki Mikami, Hisahiro Suganuma, Yoshiki Tanaka, Yuichi Kageyama, et al. Imagenet/resnet-50 training in 224 seconds. arXiv preprint arXiv:1811.05233, 2018. OpenAlex ↗ · Scholar ↗
- Yurii E Nesterov. A method for solving the convex programming problem with convergence rate o (1/k 2). In Dokl. akad. nauk Sssr, volume 269, pp. 543–547, 1983. OpenAlex ↗ · Scholar ↗
- Kazuki Osawa, Yohei Tsuji, Yuichiro Ueno, Akira Naruse, Rio Yokota, and Satoshi Matsuoka. Second-order optimization method for large mini-batch: Training resnet-50 on imagenet in 35 epochs. arXiv preprint arXiv:1811.12019, 2018. OpenAlex ↗ · Scholar ↗
- Benjamin Recht, Christopher Re, Stephen Wright, and Feng Niu. Hogwild: A lock-free approach to parallelizing stochastic gradient descent. In Advances in neural information processing systems, pp. 693–701, 2011. OpenAlex ↗ · Scholar ↗
- Christopher J Shallue, Jaehoon Lee, Joe Antognini, Jascha Sohl-Dickstein, Roy Frostig, and George E Dahl. Measuring the effects of data parallelism on neural network training. arXiv preprint arXiv:1811.03600, 2018. OpenAlex ↗ · Scholar ↗
- Samuel L Smith, Pieter-Jan Kindermans, and Quoc V Le. Don't decay the learning rate, increase the batch size. arXiv preprint arXiv:1711.00489, 2017. OpenAlex ↗ · Scholar ↗
- Ilya Sutskever, James Martens, George Dahl, and Geoffrey Hinton. On the importance of initialization and momentum in deep learning. In International conference on machine learning, pp. 1139–1147, 2013. OpenAlex ↗ · Scholar ↗
- Masafumi Yamazaki, Akihiko Kasagi, Akihiro Tabuchi, Takumi Honda, Masahiro Miwa, Naoto Fukumoto, Tsuguchika Tabaru, Atsushi Ike, and Kohta Nakashima. Yet another accelerated sgd: Resnet-50 training on imagenet in 74.7 seconds. arXiv preprint arXiv:1903.12650, 2019. OpenAlex ↗ · Scholar ↗
- Chris Ying, Sameer Kumar, Dehao Chen, Tao Wang, and Youlong Cheng. Image classification at supercomputer scale. arXiv preprint arXiv:1811.06992, 2018. OpenAlex ↗ · Scholar ↗
- Yang You, Igor Gitman, and Boris Ginsburg. Scaling sgd batch size to 32k for imagenet training. arXiv preprint arXiv:1708.03888, 2017. OpenAlex ↗ · Scholar ↗
- Yang You, Zhao Zhang, Cho-Jui Hsieh, James Demmel, and Kurt Keutzer. Imagenet training in minutes. In Proceedings of the 47th International Conference on Parallel Processing, pp. 1. ACM, 2018. our card
- Yang You, Jonathan Hseu, Chris Ying, James Demmel, Kurt Keutzer, and Cho-Jui Hsieh. Large-batch training for lstm and beyond. arXiv preprint arXiv:1901.08256, 2019. OpenAlex ↗ · Scholar ↗