---
title: "Train longer, generalize better — paper by Hoffer et al. (2017)"
description: "Why large-batch training can generalize poorly, and how longer training, learning-rate scaling and Ghost Batch Normalization help."
canonical: "https://research.elamur.ai/free/en/papers/hoffer-2017-train-longer-generalize-better-closing/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/hoffer-2017-train-longer-generalize-better-closing/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2017](https://md.research.elamur.ai/free/en/papers/2017/) / Train longer, generalize better: closing the generalization gap in large batch training of neural networks

# Train longer, generalize better: closing the generalization gap in large batch training of neural networks

Paper · 2017 · Elad Hoffer, Itay Hubara and Daniel Soudry

**Authors:** Elad Hoffer, [Itay Hubara](https://md.research.elamur.ai/free/en/authors/itay-hubara/) and [Daniel Soudry](https://md.research.elamur.ai/free/en/authors/daniel-soudry/) · **Year:** 2017 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**386** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2617242334|W2963655672) · arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [arXiv 1705.08741](https://arxiv.org/abs/1705.08741)
- [OpenAlex](https://openalex.org/W2963655672)

## Deep dive: Train longer, generalize better: closing the generalization gap in large batch training of neural networks

Why large-batch training can generalize poorly, and how longer training, learning-rate scaling and Ghost Batch Normalization help. · about 36 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Training a neural network with larger batches seems like a straightforward way to use more parallel computation. Rather than estimating a training direction from a small group of examples, the system processes a larger group before changing its parameters. The difficulty examined in *Train longer, generalize better* is that this change had repeatedly produced worse performance on unseen examples. The training objective could stop improving while a gap in generalization remained. The paper asks whether that gap is an unavoidable consequence of large batches or a consequence of the training procedure typically paired with them. This distinction matters for [GPU and parallel computing](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/): larger batches are useful only if their computational advantages can coexist with satisfactory predictive performance.

The authors focus on what happens before the learning rate is reduced. During this early period, they observe that the distance between the current parameters and their starting values grows approximately with the logarithm of the number of updates. Progress through parameter space therefore continues, but slowly. They connect this behavior to a statistical account in which a particle moves through an irregular landscape containing barriers. That account motivates an important change in how training budgets are compared. Equal numbers of passes through the data do not give small and large batches equal numbers of parameter updates. With a fixed epoch schedule, the large-batch run receives fewer opportunities to move, even when both runs appear to have reached an error plateau.

The practical response has several parts. The authors increase the learning rate according to the square root of batch size, aiming to preserve the variability of parameter updates. They introduce Ghost Batch Normalization, which computes training-time normalization statistics within smaller groups inside a large batch. They also extend the schedule so that the large-batch run performs as many updates as the small-batch reference. Their experiments cover MNIST, the CIFAR datasets, and ImageNet, using both simpler networks and deeper image-classification architectures. The reported pattern is consistent across this experimental program: learning-rate adjustment reduces the gap, Ghost Batch Normalization improves the result further, and adapting the schedule removes the remaining disadvantage in the comparisons reported by the authors.

The strongest conclusion concerns the training recipe instead of a universal theory of generalization. The experiments show that a large batch need not force inferior validation performance when the surrounding procedure changes appropriately. They also challenge the practice of lowering the learning rate as soon as validation error becomes flat: continued training at the existing rate can improve the result obtained after later rate reductions. The random-landscape explanation remains a hypothesis supported by measurements, instead of a proof about arbitrary neural networks. Likewise, matching update counts requires more epochs for a larger batch, so closing the accuracy gap does not by itself establish a reduction in elapsed training time. The paper separates these questions and treats the speed question as a further systems problem.

### Ideas worth borrowing

Count parameter updates. An epoch measures exposure to the dataset, but it does not measure how often the optimizer changes the parameters. A batch-size comparison based only on epochs can therefore change both the amount of averaging and the length of the optimization trajectory. The reusable idea is to record updates alongside epochs and to decide which quantity a comparison should hold fixed. This is useful whenever an experiment changes how much data contributes to each update. It makes a claimed effect of batch size easier to distinguish from an effect of giving the optimizer fewer steps.

Treat a plateau as incomplete evidence. A flat validation-error curve says that the current predictions are not improving under that measurement. It does not establish that the internal optimization trajectory has stopped changing in ways that matter later. The paper’s extended high-learning-rate runs show why this distinction can be consequential: subsequent rate reductions reveal benefits that were not apparent during the plateau. Elsewhere, this suggests comparing complete schedules before turning an intermediate plateau into a stopping rule. The transferable principle is careful measurement of delayed consequences, rather than a blanket recommendation to continue every stalled run.

Match the relevant randomness. Increasing batch size changes the distribution of gradient estimates, including their variation across updates. The authors respond by studying the covariance of parameter increments and adjusting the learning rate to preserve its scale approximately. This is more specific than adding arbitrary noise. It provides a way to ask which statistical property an intervention should preserve and which assumptions make that preservation plausible. The same reasoning can help design controlled optimization comparisons in which the aim is to change computational organization while disturbing the update process as little as possible.

Separate normalization groups from optimization batches. Ghost Batch Normalization gives different jobs to two group sizes. The large group determines the gradient update, while smaller groups determine training-time activation statistics. This separation is useful because an implementation’s convenient batch boundary need not be the best boundary for every operation inside a network. The broader design idea is to expose such boundaries as independent choices. It applies wherever a local statistic influences learning and where tying that statistic to a hardware-driven grouping could unintentionally change the training procedure.

Measure the trajectory as well as the endpoint. The authors follow parameter displacement from initialization instead of relying exclusively on training and validation errors. This measurement helps them formulate a hypothesis about slow exploration and motivates their schedule adjustment. Its value is diagnostic: it provides another observable against which competing explanations can be checked. In another setting, a trajectory measurement could reveal differences hidden by similar endpoint losses. It should still be interpreted alongside predictive performance, because the paper does not establish parameter displacement as a universal measure of generalization.

Separate predictive success from systems success. Matching small-batch validation performance and reducing elapsed training time are different achievements. The paper’s schedule adaptation addresses the former while potentially increasing the amount of data processed. Keeping these objectives separate makes an optimization result easier to assess and a deployment decision easier to justify. A useful experimental report can therefore describe accuracy, updates, data passes, and computational cost as distinct quantities. Improvement on one axis should not silently stand in for improvement on another.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, the clearest connection is an experimental discipline that could guide future training work. There is no established implementation of Ghost Batch Normalization or the paper’s schedule adaptation to describe. The appropriate use is therefore conditional: if Mova contains a learned component optimized from batches of examples, the paper offers a concrete way to investigate whether changing batch size has also changed the effective training schedule.

A useful implementation would make the update counter explicit. A training record could distinguish the number of examples processed, the number of dataset passes, and the number of parameter changes. The learning-rate schedule could then refer to the quantity actually intended by an experiment. If a batch-size change worsened held-out performance, Mova could compare a schedule matched by epochs with a schedule matched by updates. That comparison would test the paper’s central concern directly, without assuming that an image-classification result automatically carries over to language processing.

Transparency would also favor exposing the assumptions behind any learning-rate adjustment. The square-root rule comes from an approximate covariance calculation for uniformly sampled examples. It is not presented as a property of Rust or as a consequence of using a small system. A Mova experiment could record the sampling procedure, optimizer, batch size, and clipping behavior together with the rate schedule. Those records would make it possible to tell whether a comparison followed the paper’s reasoning or merely borrowed the name of its rule.

The normalization idea would apply only if a relevant learned component used batch-dependent normalization. In that case, the size of the group used to calculate activation statistics could be represented separately from the group used for the gradient update. Such a design would make the distinction visible and testable. If the component does not use batch normalization, there is no reason to add Ghost Batch Normalization merely to claim adoption of the paper. The more general lesson—identify operations whose behavior changes with batching—would remain useful.

Parameter displacement could become another optional diagnostic. Recording the distance between current parameters and their initialization would allow a researcher to compare trajectories under different schedules. The paper suggests a reason to inspect that quantity, but it does not supply a validated threshold for a language task. Mova would therefore need to compare it with held-out task performance rather than use it as an automatic certificate that training is sufficient.

The most faithful borrowing would be a small, reviewable experiment. Keep the task and data fixed, vary the batch procedure deliberately, and report what was held constant. Distinguish a promising training trace from an improvement in final evaluation. Distinguish both from a reduction in runtime or resource use. These are prospective applications of the paper’s reasoning, not claims that Mova already reproduces its results.

### The problem and its context

#### Why larger batches created a scientific problem

In the training setup studied by the paper, a neural network learns by repeatedly changing its parameters in a direction estimated from examples. Using the entire training set for each estimate would be expensive. Stochastic gradient descent instead uses a subset, called a mini-batch. The resulting direction varies according to which examples are selected.

Batch size therefore has both computational and statistical consequences. A larger batch exposes more work that can potentially run in parallel. At the same time, averaging over more examples changes the variability of the estimated gradient. The paper’s central problem arises where these consequences meet: a batch size attractive for computation had often been associated with worse behavior on unseen data.

The relevant performance distinction is between fitting the training set and generalizing beyond it. A network can reach a satisfactory training objective while producing different validation errors under different training procedures. Earlier large-batch experiments had reported precisely this kind of discrepancy. The disadvantage appeared to survive training continued until further improvements in the loss were no longer apparent.

That observation made a simple explanation in terms of unfinished loss minimization less convincing. If the loss had stopped improving, why should the large-batch run still generalize differently? The authors’ answer is that the visible loss and error curves may not reveal all meaningful changes in the optimization trajectory. A schedule can appear settled under these measurements while still limiting the movement that would support better final performance.

#### The earlier explanation through sharp and flat minima

The paper discusses earlier work by Keskar and colleagues as its immediate point of departure. That work associated poorer generalization with sharper minima and better generalization with flatter ones. Informally, a sharp minimum is a low-loss region from which the loss rises quickly along relevant directions. A flat minimum tolerates a broader range of parameter changes without a strong increase in loss.

The earlier hypothesis assigned a constructive role to the noise produced by small batches. A noisy gradient estimate might help parameters leave narrow attraction regions and reach broader ones. With a large batch, the estimate becomes less variable, potentially making such escapes less likely. This explanation links batch size to the geometry of the region eventually reached.

Hoffer and colleagues retain an interest in movement through the loss landscape, but shift the emphasis towards how long that movement takes. They also revisit an observation in the earlier work: small-batch training had produced parameters farther from initialization. Rather than treating this as a secondary symptom, they investigate it as a clue to the gap.

The distinction is subtle. Their account does not simply deny that gradient noise matters. Learning-rate scaling is explicitly motivated by the variability of updates. Instead, it argues that the available number of updates and the rate of movement must be considered together. A large-batch procedure may have both different update statistics and fewer updates under the same epoch budget.

The paper also acknowledges a complication in explanations based on sharpness. Following Dinh and colleagues, it notes that some parameter changes alter curvature without altering the network’s output or loss. For a neuron, multiplying incoming weights by a positive factor while dividing outgoing weights by the same factor can preserve its function. A measure that reacts strongly to such a change cannot automatically be treated as a meaningful measure of predictive quality.

#### Why the optimizer and schedule matter

The experiments concentrate on stochastic gradient descent with momentum. Momentum carries information from earlier directions into subsequent updates, making the trajectory less dependent on the current estimate alone. The authors use a learning rate that remains fixed within a training stage and is reduced between stages.

The paper places this choice beside adaptive methods such as Adam, Rmsprop, and Adagrad. It describes these alternatives as useful for convergence, while observing that simple SGD variants continued to be used because of their generalization behavior. Its goal is not to compare all optimizers comprehensively. It studies batch-size effects within the momentum-SGD setting chosen for the experiments.

The schedule is especially important because a widely used response to a validation plateau is to lower the learning rate. The paper questions the assumption that a plateau means the current stage has exhausted its value. The authors report that extending this stage can improve the accuracy obtained after later reductions, even when intermediate validation error appears unchanged.

#### The role of statistical physics

The theoretical motivation comes from work on random landscapes and slow diffusion. The paper notes that statistical descriptions had already been used to reason about complicated neural-network objectives whose detailed geometry was unknown. Earlier research connected high-dimensional random fields with properties of critical points and low-loss minima.

Here the borrowed question is different: how far does a randomly moving particle travel through an irregular potential after a given time? The authors use this question to interpret the movement of network parameters. Gradient fluctuations provide a source of randomness, while the training loss supplies a landscape through which the parameters move.

This analogy offers a mechanism for very slow progress. Barriers become harder to cross as the particle explores farther. The resulting displacement can grow logarithmically instead of according to the faster law associated with ordinary diffusion. The paper then checks whether parameter trajectories and sampled loss statistics are compatible with that picture.

### The method, step by step

The practical method combines an argument about update statistics with an argument about training duration. It begins by comparing parameter trajectories, adjusts the large-batch procedure to make its movement more comparable with the small-batch reference, and then gives the large-batch run enough updates. Ghost Batch Normalization addresses an additional dependency that a gradient-only account would miss.

Adapting large-batch training The steps in order.

#### Define the loss and the update direction

Let the training set contain N examples. The network parameters are collected into a vector w. For an individual example indexed by n, the loss is Lₙ(w). The complete training objective is the average of these example-level losses:

```
L(w) = (1/N) ∑ₙ₌₁ᴺ Lₙ(w)
```

Here L(w) is the dataset-level loss, N is the training-set size, and the summation includes every training example. A lower value means a better fit according to the chosen training objective. The formula defines what is being minimized, rather than how each update is computed.

The paper uses g for the negative gradient of this objective:

```
g = (1/N) ∑ₙ₌₁ᴺ gₙ = −(1/N) ∑ₙ₌₁ᴺ ∇Lₙ(w)
```

The vector gₙ is the negative gradient for example n. The symbol ∇ denotes differentiation with respect to w. This sign convention matters: g points toward decreasing loss, so the update adds a multiple of g instead of subtracting it.

Computing this complete direction is replaced by averaging over a batch:

```
ĝ = (1/M) ∑ₙ∈B gₙ
```

The set B contains the selected example indices, and M is its size. The hat distinguishes the estimated direction ĝ from the full-data direction g. Changing M changes how much averaging occurs before the parameters move.

For the theoretical discussion, the authors first consider the simple SGD increment:

```
Δwₜ = ηĝₜ
```

The index t counts updates, Δwₜ is the change at that update, and η is the learning rate. The experimental optimizer also uses momentum, but this simpler expression exposes the relationship among gradient variability, learning rate, and batch size.

Under the sampling assumptions used in the argument, the estimate has the correct expectation:

```
E[ĝₜ] = g = −∇L(wₜ)
```

The operator E denotes an average over the randomness of selecting examples, and wₜ is the current parameter vector. Being unbiased does not mean every mini-batch points in the same direction. It means that averaging the estimates over the sampling randomness recovers the full-data direction.

#### Interpret training as movement through a landscape

The physical analogy treats w as the position of a particle and L(w) as a potential landscape. A gradient estimate moves the particle toward lower potential, while its fluctuations make the path stochastic. In this interpretation, momentum resembles inertia because earlier movement affects later movement.

To describe a complicated landscape statistically, the paper introduces a relation between losses at different parameter positions:

```
E[L(w₁)L(w₂)] = f(‖w₁ − w₂‖²)
```

The vectors w₁ and w₂ are two positions in parameter space. The notation ‖w₁ − w₂‖ denotes their Euclidean distance, and f is a function describing how the loss values are statistically related as that distance changes. In this expression, the expectation concerns a random description of the landscape, rather than the selection of a mini-batch.

This change in the meaning of expectation is important. The optimization process has randomness because examples are selected. The theoretical analogy also treats the landscape itself statistically. These are related ingredients of the argument, but they are not interchangeable sources of randomness.

The random-potential result used by the paper assumes a distance-dependent asymptotic form:

```
E[L(w₁)L(w₂)] ∼ ‖w₁ − w₂‖ᵅ,   α > 0
```

The exponent α controls the distance dependence. The symbol ∼ indicates an asymptotic scaling relationship rather than an exact equality. The paper invokes this form within a relevant range of distances, rather than establishing it as a complete description of an actual network’s loss everywhere.

Under the cited random-walk theory, the squared displacement behaves as follows:

```
E[‖wₜ − w₀‖²] ∼ (log t)^(4/α)
```

The initial position is w₀, the position after t updates is wₜ, and log t is the logarithm of the update count. The expectation now refers to the statistical process being analyzed. This formula describes extremely slow spreading compared with an ordinary random walk on a flat landscape.

The corresponding typical distance has the scaling:

```
‖wₜ − w₀‖ ∼ (log t)^(2/α)
```

All symbols retain their preceding meanings. This expression concerns displacement rather than squared displacement. It makes the interpretation more immediate: even a long continuation of training can yield only a gradual increase in how far the parameters have moved.

For comparison, the paper gives the ordinary-diffusion relationship:

```
‖wₜ − w₀‖ ∼ √t
```

The square-root dependence is the reference behavior for diffusion without the irregular potential under discussion. The contrast concerns the shape of the dependence on time, not an experimentally measured speed ratio.

The barrier argument supplies the intuition for the logarithm. Reaching a distance d entails overcoming barriers whose scale grows with that distance. The associated time has the approximate dependence:

```
t ∼ exp(d^(α/2))
```

Here d is distance traveled, exp is the exponential function, and α is the landscape exponent. Inverting this dependence produces the logarithmic distance law. The central point is that additional movement becomes progressively more expensive in updates.

#### Check the displacement prediction

The authors measure the Euclidean distance from initialization during the initial high-learning-rate stage. Their observed trajectories are compatible with the special case:

```
‖wₜ − w₀‖ ∼ log t
```

This is the behavior corresponding to α = 2 in their statistical account. It is an empirical description of the measured trajectories, not a theorem that all neural-network training must obey.

Different batch sizes produce broadly similar curve shapes, but not identical trajectories. The paper reports that the displacement slope reaches its maximum at M = 128 and becomes smaller as the batch grows beyond that setting. Under an epoch-matched schedule, a smaller batch also supplies more updates before the first scheduled learning-rate reduction.

These observations lead to separate interventions. First, make the movement rate more comparable by adjusting update statistics. Then extend the number of updates available. Combining these interventions is more faithful to the authors’ reasoning than treating longer training as the only proposed change.

The paper’s geometric interpretation remains conditional. If broad low-loss regions support generalization, reaching them may require traveling far enough through parameter space. Slow displacement then makes the duration of the initial stage important. The distance measurement motivates this explanation, but does not directly measure the width of the final region.

#### Match the covariance of parameter increments

The learning-rate adjustment starts from the variability of the update vector. The approximation used in the paper is:

```
cov(Δw, Δw) ≈ (η²/M) [(1/N) ∑ₙ₌₁ᴺ gₙgₙᵀ]
```

The operator cov denotes covariance, which describes how components of the random update vary together. The superscript T denotes transpose, so gₙgₙᵀ is an outer-product matrix. N is the dataset size, M is the mini-batch size, and η is the learning rate.

The approximation assumes uniform sampling and a batch much smaller than the dataset. It also initially treats each example’s gradient as independent of which other examples share its batch. Batch normalization complicates that assumption, which is why the method later addresses normalization explicitly.

The main scaling term is η²/M. Increasing the batch size reduces this factor unless the learning rate changes too. To preserve it approximately, the authors choose:

```
η ∝ √M
```

The proportionality symbol means that the rate grows with the square root of the batch size. It does not specify the starting rate; that comes from the small-batch reference procedure.

The experimental conversion is written more explicitly as:

```
η_L = √(|B_L|/|B_S|) η_S
```

The symbols η_L and η_S are the large-batch and small-batch learning rates. The quantities |B_L| and |B_S| are their respective batch sizes. This expression translates a known small-batch rate into the large-batch rate used in the comparison.

Preserving covariance does not preserve everything. A larger η also increases the expected update. The authors report that this mean contribution is much smaller than the fluctuations in their setting, which motivates their preference for the simple rate adjustment. That empirical judgment is part of the recipe’s justification.

#### Understand the sampling argument

The appendix expresses batch membership with selector variables:

```
ĝ = (1/M) ∑ₙ₌₁ᴺ gₙsₙ
```

The variable sₙ indicates whether example n belongs to the batch. It takes the value 1 for inclusion and 0 otherwise. Writing the estimate this way makes it possible to analyze sampling through the selector statistics.

Uniform selection gives the expectation:

```
E[sₙ] = P(sₙ = 1) = M/N
```

The symbol P denotes probability. Each example has the same inclusion probability under the stated description. Substituting this expectation into the estimate recovers the full-data average, explaining the unbiasedness claim.

The appendix then examines second-order relationships among selectors and among batch estimates. Its practical conclusion is that the leading covariance scale is inversely related to M when M is small relative to N. For sampling without replacement, it also discusses correlations between different batches instead of treating all updates as exactly independent.

The same-batch expression presented for that case is:

```
cov(ĝₜ, ĝₜ) = (1/M − 1/(N − 1)) [(1/N) ∑ₙ₌₁ᴺ gₙgₙᵀ] + ggᵀ/(N − 1)
```

The vector ĝₜ is the estimated direction at update t, and g is the complete-data direction. The finite-dataset correction terms depend on N. The paper uses the regime in which M is much smaller than N to motivate the simpler leading-order expression used for learning-rate scaling.

For distinct batches, the appendix reports a much smaller covariance term:

```
cov(ĝₜ, ĝₜ₊ₖ) = ggᵀ/(N − 1),   k ≠ 0
```

The index offset k identifies a different batch. The practical claim is approximate decorrelation in the relevant regime, rather than exact independence for all ways of traversing a finite dataset. The main experimental intervention does not require a reader to treat the appendix as a complete account of every dependency in momentum training.

#### Compare learning-rate adjustment with multiplicative noise

The authors also investigate a more direct way to preserve fluctuation statistics. Rather than relying on a larger learning rate, they randomly reweight example gradients:

```
ĝ = (1/M) ∑ₙ∈B gₙzₙ
```

The multiplier zₙ is drawn independently for each example. Its distribution is specified as:

```
zₙ ∼ Normal(1, σ²),   σ² ∝ M
```

The mean is 1, and σ² is the variance. Increasing this variance with batch size can preserve the desired covariance scale while leaving the expected gradient unchanged. The idea is to add randomness in a directionally structured way, through the same example gradients that determine the original estimate.

The paper reports similar performance from this method and learning-rate scaling. Both require stabilization during the earliest updates: the authors clip or normalize gradients to prevent divergence. They choose the rate adjustment because it is simpler.

This comparison clarifies why arbitrary noise is not an equivalent substitute. Dropout, dropconnect, and label noise can alter the shape of the covariance matrix, rather than merely its overall scale. The authors report that these alternatives did not reduce the gap in their experiments. Their objective is to approximate a particular update distribution, not simply to make training more random.

#### Keep normalization statistics local

Batch normalization uses statistics calculated from a group of activations during training. Accordingly, changing batch size can affect individual example gradients through more than ordinary averaging. An example’s processing depends on the other examples used to calculate those statistics.

Ghost Batch Normalization separates the optimization batch from the normalization group. A large batch remains responsible for the parameter update, but smaller virtual groups supply the statistics used to normalize activations during training. In the reported experiments, the ghost group contains 128 examples.

This distinction matters to the earlier covariance argument. That argument initially treats an example’s gradient as though it were determined independently of batch composition. Ordinary batch normalization violates that simplification. Keeping normalization groups small helps retain a feature of the small-batch procedure while allowing a larger optimization batch.

The authors emphasize that inference requires appropriate full-batch statistics. The training-time partition should not be confused with permission to use arbitrary small-group statistics when making predictions. They also report that the handling of running statistics matters: an alternative that weights partial updates equally worsens generalization in their experiments.

The paper relates this behavior to distributed training. When normalization is calculated separately on each device, the statistics already come from a subset of the complete optimization batch. Ghost Batch Normalization makes that subgroup size a controllable choice rather than leaving it determined by the number of examples assigned to a device.

The conceptual procedure is therefore clear even though a complete implementation should not be reconstructed from the brief algorithm description alone. Use local training groups deliberately, preserve the distinction between training and inference statistics, and evaluate how those statistics are accumulated.

#### Stretch the schedule to preserve update counts

After adjusting update statistics and normalization, the authors extend the training schedule. Their rule converts each original stage into a longer stage for the large-batch run:

```
e_L = (|B_L|/|B_S|) e
```

Here e is the original stage duration in epochs, e_L is its adapted duration, and the batch-size symbols have their earlier meanings. An epoch is a pass through the training set. The adjustment is chosen so that the larger batch does not reduce the number of parameter changes within that stage.

The intervention applies to the training regime rather than merely appending more low-rate optimization after the original schedule ends. This is important because the paper assigns particular value to the initial high-learning-rate period. Giving a run extra updates only after the rate has become small would not test the same idea.

The authors also suggest that displacement from initialization can inform the decision to lower the rate. They observe a relationship between continued movement and improved final performance. They do not turn that observation into a generally validated stopping threshold.

#### Sample the landscape independently

The appendix checks another implication of the statistical account. For α = 2, the loss-difference statistic should scale linearly with parameter distance:

```
std = √E[(L(w) − L(w₀))²] ∼ ‖w − w₀‖
```

The symbol std names the loss-difference statistic used by the authors. L(w₀) is the loss at initialization, and L(w) is the loss at a sampled parameter position. The expectation concerns the ensemble that the sampling procedure seeks to approximate.

The authors initialize Resnet44 and repeatedly choose a random direction v with unit norm. They then draw a scalar z uniformly between 0 and a chosen limit c:

```
w = w₀ + zv
```

The vector v sets the direction, and z determines the displacement along it. They repeat the procedure 1,000 times. The chosen maximum range is approximately c ≈ 10, intended to match the displacement range relevant to their training observation.

The sampled distances are grouped into bins, with b denoting the number of bins. The reported graphs show the predicted approximately linear relationship under different binning choices. This analysis checks a landscape statistic through random sampling, separately from fitting the training trajectory itself.

### Experiments and results

#### Tasks, splits, and network choices

The experimental program uses image classification. MNIST supplies 60K training examples and 10K test examples. Its images are gray-scale, with dimensions 28 × 28, and represent digits from 0 through 9. This task supports the simpler end of the paper’s architecture comparisons.

CIFAR-10 and CIFAR-100 each have a training split of 50K examples and a test split of 10K. Their images have dimensions 32 × 32 and contain color information. The classification tasks differ in the number of categories, with 10 for CIFAR-10 and 100 for CIFAR-100.

ImageNet is the largest dataset described. The paper lists 1.2M training examples and a test split of 50K, with 1000 categories. Its ImageNet result is reported using top-1 performance: the relevant prediction is the category receiving the highest score.

The architecture choices span several levels of complexity. The authors include F1, a fully connected network, alongside the shallower convolutional C1 and C3 configurations taken from the earlier large-batch study. Their CIFAR-10 experiments also use VGG and Resnet44. For CIFAR-100, they use Wide-Resnet16-4; for ImageNet, they use Alexnet.

The individual architectures matter because the argument is intended to go beyond a single training trace. At the same time, the evidence remains concentrated in image-classification tasks. The range of architectures broadens the empirical basis without turning the study into an evaluation of every learning setting.

#### Establish the batch-size comparison

The principal large batch contains 4096 examples. The small-batch reference contains 128 examples for most of the listed architectures. Wide-Resnet16-4 instead uses a small batch of 256. These are optimization batch sizes, distinct from the ghost normalization group of 128.

The optimizer is momentum SGD. For each architecture, the authors begin from the training regime associated with its original work. This gives each comparison a task-specific baseline instead of imposing an identical schedule on every architecture.

The experimental sequence is cumulative. First comes the original small-batch run and its large-batch counterpart. The next condition changes the large-batch learning rate. Another adds Ghost Batch Normalization. The final condition also adapts the duration of the training stages to preserve the update count.

The authors name these conditions SB, LB, LB+LR, and LB+LR+GBN, with RA identifying regime adaptation. Reading the sequence correctly is essential. The final large-batch result is not evidence about longer training in isolation; it reflects the package of adjustments used in that condition.

The paper identifies an accompanying code repository for its large-batch experiments. That code is part of the authors’ research implementation. The method itself is described through the optimizer, batch sizes, normalization change, and schedule conversion rather than through a new data-processing pipeline.

#### What the reported results establish

The baseline comparison reproduces the expected problem: the unadjusted large-batch procedure has worse validation accuracy than the small-batch reference. Raising the learning rate removes a substantial part of that disadvantage. Adding Ghost Batch Normalization produces further improvement.

The introduction gives an illustrative size for the improvement from adjusting learning rate and normalization: a generalization gap of 5% becomes a gap in the range 1%-2%. The paper does not attach a dataset or architecture to that numerical example, so it should not be presented as a score for a particular benchmark.

The chart below uses the upper endpoint of the adjusted range. It summarizes that illustrative claim rather than supplying a missing architecture-specific accuracy.

Illustrative generalization gap, dataset unspecified Learning-rate and normalization adjustments reduce the reported gap before schedule adaptation.

**The numbers**

| System or setting | generalization gap % |
| --- | --- |
| Before adjustments | 5 |
| Adjusted procedure, upper end of reported range (this paper) | 2 |

The fully adapted procedure is the decisive comparison. The authors report that its validation accuracy matches or exceeds the small-batch reference across the reported configurations. Their interpretation is that the original disadvantage is removable through the training regime rather than imposed by batch size itself.

For ImageNet, the paper reports a similar progression using Alexnet and top-1 results. The ImageNet comparison supports the same qualitative conclusion about learning-rate adjustment, normalization, and schedule adaptation. The individual per-configuration accuracy values are not stated alongside these claims, so an exact top-1 score cannot responsibly be attached to each condition.

This boundary matters. The paper supports a clear ordering of interventions and a claim of closing the observed gap. It does not support inventing a complete benchmark leaderboard from that ordering. The available numerical example concerns gap size, while the dataset descriptions and batch settings specify the experimental conditions.

#### What the result does not measure

Matching update counts changes the amount of training measured in epochs. Accordingly, the final comparison should not be interpreted as equal-data-exposure training. It answers whether the large-batch procedure can attain comparable generalization when its update budget is adapted.

Nor does the accuracy result alone establish a wall-clock speedup. A larger batch may offer more parallel work per update, but the adapted schedule also processes more data. The paper explicitly separates the generalization question from the systems question.

The central experimental contribution is therefore a change in diagnosis. Poor large-batch validation performance can arise from carrying over an unsuitable small-batch schedule and normalization procedure. Correcting those choices is sufficient to remove the disadvantage in the reported experiments, even though the practical cost of doing so requires separate assessment.

### What the ablations show

#### The cumulative recipe identifies useful interventions

The paper offers controlled comparisons instead of a single final procedure with no intermediate evidence. The sequence from the original large batch to learning-rate adjustment, then Ghost Batch Normalization, then regime adaptation shows that several aspects of training contribute to the result.

The learning-rate comparison supports the claim that a large batch should not automatically inherit the original small-batch rate. The normalization comparison shows that ordinary gradient averaging is not the only batch-sensitive operation. The final schedule comparison supports the importance of retaining enough parameter updates.

Because the interventions are added cumulatively, their interpretation has limits. The evidence shows the value of each addition within the sequence tested. It does not amount to a complete exploration of every interaction among optimizer, rate, normalization, and duration. The final success should be credited to the evaluated recipe rather than attributed entirely to whichever component is most memorable.

#### Displacement separates movement rate from available time

The parameter-distance analysis is central because it reveals two differences that an epoch-level comparison can conceal. The trajectories have different slopes, and they end after different numbers of updates. These correspond to different possible causes of a short final displacement.

A slope difference suggests that the update process itself has changed. A shorter trajectory suggests that the process was given less time in update units. The authors respond to these possibilities separately: first with rate and normalization changes, then with schedule stretching.

After the adjustments, the displacement curves appear more similar in slope. The paper also observes an offset, which it associates with early gradient clipping. This is useful supporting evidence for the intended intervention, but it does not prove that the entire stochastic process is identical across batch sizes.

The authors’ interpretation of the offset is also tentative. They regard the additional distance as unlikely to harm performance. That judgment should not become a broader claim that an arbitrary increase in parameter distance is always beneficial.

#### Multiplicative noise tests the importance of mean changes

Learning-rate scaling changes both the expected update and its variability. The multiplicative-noise comparison asks whether keeping the mean closer to its original behavior changes the outcome.

The authors report similar performance between the two approaches. This supports their practical judgment that the mean change introduced by the larger learning rate is not the dominant issue in their experiments. It also explains why they prefer the simpler rate adjustment.

The appendix includes a comparison involving a batch of 2048. That setting belongs to the supporting analysis and should not be confused with the principal 4096-example large-batch configuration used in the main experimental description.

The comparison is informative without being universal. Similar performance here does not establish that first-order update statistics can be ignored in every training problem. It shows that the more elaborate mean-preserving alternative did not provide a decisive advantage under the tested conditions.

#### Other noise interventions test a weaker explanation

The negative findings for dropout, dropconnect, and label noise challenge an overly broad reading of the paper. If the whole explanation were simply that large batches contain too little randomness, many ways of adding randomness might be expected to help.

The authors instead emphasize covariance structure. Their proposed interventions aim to preserve the pattern of fluctuations associated with example gradients. Other perturbations can alter that pattern, making them statistically different even if they increase overall variability.

The reported failures therefore support a narrower explanation: the form of randomness matters. They do not establish that those regularization methods are generally ineffective, nor that they could never interact usefully with a different large-batch recipe.

#### Normalization comparisons expose an implementation dependency

Ghost Batch Normalization improves performance without requiring the schedule extension responsible for matching update counts. This makes it an important result in its own right. A substantial part of the gap can be reduced by changing how activation statistics are obtained.

The paper also reports that an alternative treatment of running statistics worsens generalization. That finding shows why naming the normalization group size is insufficient for a fully specified procedure. Training partitions and inference-time statistics belong to the same implementation story.

The distributed-training discussion reinforces the point. Device-local normalization may already reproduce part of the ghost-batch effect. As a result, two runs with the same total optimization batch can differ because of how examples are divided across devices and how normalization is handled within that division.

#### Longer high-rate training tests the plateau rule

The extended-schedule comparisons provide the strongest challenge to the usual interpretation of a validation plateau. During the additional high-rate period, training error can continue falling while validation error shows little visible change. Later rate reductions nonetheless produce a better final validation result.

This observation concerns the value of a training stage in the complete schedule. It is not a claim that the plateau itself contains an immediately measurable improvement in classification accuracy. The advantage becomes visible through the continuation of training and subsequent changes in learning rate.

The finding also explains why training until the loss appears settled does not settle the paper’s question. The optimizer may still be changing the parameters in a way that affects the outcome of later stages. A stopping criterion based on an intermediate curve can miss that delayed effect.

#### The landscape sampling checks a separate prediction

The appendix’s random-direction experiment adds evidence beyond the trajectory plots. The observed logarithmic displacement suggests α = 2, and that exponent predicts a linear relationship between distance and the sampled loss-difference statistic.

The authors find the expected approximate linear pattern. Because this measurement samples parameter positions independently of the SGD path, it provides a different check on the statistical account.

It remains a compatibility test. Random radial samples around initialization are not the same as the positions visited during training, and a matching statistic does not uniquely identify the mechanism responsible for generalization. The experiment strengthens the proposed interpretation without turning it into a complete proof.

### Limitations

#### The authors separate accuracy from elapsed time

The clearest limit stated by the authors concerns computational benefit. Their main contribution addresses whether large-batch training can reach comparable generalization. It does not, on its own, establish that the adapted procedure reaches that performance faster.

The distinction follows directly from the schedule change. Preserving update counts requires longer training when measured in epochs. Larger batches can expose more parallel computation, but realizing a net speed advantage depends on the implementation and hardware setting.

The discussion describes later ImageNet work by Goyal and colleagues as demonstrating substantial speedups with related training practices. That result is part of the paper’s account of subsequent progress. It should not be substituted for a timing measurement of the exact recipe evaluated here.

#### The statistical explanation is a hypothesis

The authors explicitly introduce the random-landscape account as a proposed description of the early training phase. It is motivated by earlier statistical-physics results and supported by empirical patterns. It is not derived as an exact law of a realistic neural-network objective.

A careful reader should therefore separate the intervention from its explanation. The batch-size adjustments can be empirically useful even if the proposed landscape analogy is incomplete. Conversely, observing logarithmic movement does not establish every geometric assumption used in the informal argument.

The connection to flat minima is especially conditional. The reasoning assumes that reaching sufficiently broad low-loss regions is relevant to generalization. The paper does not directly demonstrate that parameter distance uniquely determines region width or that width alone explains held-out accuracy.

#### Parameter distance has interpretive limits

The paper acknowledges that parameter transformations can change curvature without changing the network’s function. This qualification complicates geometric claims about sharpness. A careful reader can also see why raw parameter displacement should not be treated as a complete, representation-independent account of learning.

Distance from initialization is useful within the reported comparisons because it tracks a concrete trajectory property. It does not describe everything the network computes. Two parameter vectors can differ in distance while their predictive behavior depends on other features of the trajectory and objective.

The authors suggest that displacement may help decide when to lower the learning rate, but do not provide a universal threshold. Using it as an automatic scheduling rule elsewhere would require additional evidence.

#### The covariance argument is approximate

The learning-rate rule depends on assumptions that the authors state. Sampling is uniform, the batch is small relative to the training set, and the first calculation ignores batch-dependent changes in individual gradients. These assumptions define the scope of the approximation.

Batch normalization is a recognized complication, not an incidental implementation detail. Momentum and changing parameters also make an actual training trajectory richer than a sequence of identically distributed simple increments.

The square-root rule should therefore be understood as a motivated scaling choice. It is not established as the uniquely correct rate conversion across all tasks or batch regimes.

#### Early numerical stability still requires intervention

The larger updates can cause divergence during the earliest iterations. The authors use clipping or normalization of gradients to stabilize this period. That requirement is part of the practical method.

A reader should not detach the learning-rate formula from the rest of the recipe and expect the same behavior automatically. The clipping observation also matters when interpreting parameter-distance curves, because the authors associate an observed offset with this stabilization.

The discussion compares clipping with an initial learning-rate warm-up used in later work. It treats them as having related practical effects during early training, rather than establishing that their complete dynamics are interchangeable.

#### The evidence has a task and architecture boundary

The experiments cover several image-classification settings and a range of architectures. That is a meaningful empirical base, but it does not establish the same outcome for language tasks, reinforcement learning, or every form of learned system.

This is a careful-reader limitation arising from the experimental setup. The paper’s introduction mentions other application areas as motivation for studying neural-network training. Those mentions do not constitute experiments in those areas.

Similarly, the focus on momentum SGD limits what can be concluded about other optimizers. The discussion of adaptive methods provides context, not a controlled demonstration that the entire recipe transfers unchanged to each one.

#### The precise numerical evidence is uneven

The results discussion gives a clear qualitative progression and an illustrative gap reduction. It does not state individual validation-accuracy values beside every architecture and condition. Exact per-architecture improvements therefore cannot be reconstructed from the narrative claims.

The numerical example of a gap decreasing from 5% to 1%-2% also lacks an attached dataset in the introductory statement. It supports the claimed scale of improvement, but cannot be assigned to MNIST, a CIFAR task, or ImageNet without additional evidence.

The reported comparisons likewise do not establish how variable each result is across independent runs. A careful reader should avoid converting the statement that the gap disappears into a quantified guarantee for every repeated training run.

#### Longer training is not a universal stopping policy

The paper challenges an overly quick response to a plateau. It does not establish that more high-rate training is always beneficial or that overfitting is impossible.

The practical lesson is to evaluate the complete schedule and the eventual held-out result. An intermediate plateau may be insufficient evidence for stopping, but it is still an observation to interpret in the context of the task and procedure.

The authors themselves leave the scheduling question open. Their results motivate further investigation into when a rate reduction should occur; they do not supply a complete answer for arbitrary training problems.

### What came after

#### Later work discussed by the authors

The paper’s discussion identifies two subsequent directions that help clarify its legacy. One concerns practical scaling, and the other concerns the interpretation of slow parameter growth.

For practical scaling, the authors describe Goyal and colleagues’ ImageNet work as showing that a large batch can yield substantial training speedups while retaining predictive quality. They connect that result with related choices in the training procedure. The important difference is learning-rate scaling: that work uses a linear rule, whereas Hoffer and colleagues use a square-root rule.

The paper does not present this difference as settled by a single universal prescription. It reports that linear scaling works less well in its CIFAR-10 experiments and refers to later findings of limitations for other ImageNet architectures. The continuing research question is therefore how to adapt the procedure to the particular optimization setting, rather than which scaling slogan applies everywhere.

For the theoretical interpretation, the discussion turns to work by Soudry, Hoffer, and Srebro on separable data. The authors describe an exact asymptotic result for a simpler logistic-regression setting:

```
w(t) = log(t) ŵ + O(1)
```

Here w(t) is the parameter vector at time t, ŵ is the separator with maximum L₂ margin, and O(1) denotes a remainder that remains bounded in the asymptotic description. The margin concerns the separation of examples by the classifier.

The corresponding improvement has the slow dependence:

```
margin improvement = O(1/log(t))
```

The notation O describes asymptotic order, and t is the training-time variable. This result offers another reason why training can continue to matter after classification error is already very low. It supports the broader warning against equating a quiet error curve with the absence of meaningful optimization progress, while remaining a result for a simpler mathematical setting.

#### Translation and training practice

The later citation record includes [Scaling Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/ott-2018-scaling-neural-machine-translation/). Its title places it within the broader question of scaling training for [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). The citation establishes a connection to that research area, but does not specify whether the work adopts Ghost Batch Normalization, square-root rate scaling, or update-matched schedules. No particular translation result should be attributed to this paper’s recipe on that basis alone.

More detail is available for [Training Tips for the Transformer Model](https://md.research.elamur.ai/free/en/papers/popel-2018-training-tips-transformer-model/). It develops practical training guidance for the [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) using Tensor2Tensor, version 1.2.9, and systematic English-to-Czech experiments. Its stated motivation is that much optimization advice had come from theory or image recognition. This makes its relationship to Hoffer and colleagues’ work especially useful to understand: advice grounded in image-classification experiments becomes something to examine within a translation setting. The available account does not establish that every component of the earlier recipe was retained or validated.

#### Parallelism, optimization, and resource use

[Demystifying Parallel and Distributed Deep Learning](https://md.research.elamur.ai/free/en/papers/nun-2018-demystifying-parallel-distributed-deep-learning/) appears among the later citing works. Its concurrency focus is closely aligned with the computational motivation for large batches. The citation is evidence that the paper entered this wider discussion, but it does not establish a particular concurrency result derived from Ghost Batch Normalization or schedule stretching.

The later work listed as [Large-Batch Optimization](https://md.research.elamur.ai/free/en/papers/you-2019-large-batch-optimization-deep-learning/) belongs directly to the optimization thread. The available citation information does not describe its method or experimental findings. Its relationship can therefore be stated as continued engagement with large-batch optimization, without assigning it a specific extension of the square-root rule.

[Zeus](https://md.research.elamur.ai/free/en/papers/you-2022-zeus-understanding-optimizing-gpu-energy/) brings GPU energy consumption into the later citation record. That topic highlights a useful boundary in the original paper: matching validation performance does not determine runtime or energy cost. The citation does not establish which of the original interventions Zeus uses, or what energy consequence follows from them.

#### A wider citation footprint

[The Secret Sharer](https://md.research.elamur.ai/free/en/papers/carlini-2018-secret-sharer-evaluating-testing-unintended/) concerns unintended memorization. Its presence among the citations shows a connection beyond the immediate problem of training throughput. It does not show that closing a validation gap prevents memorization. Generalization performance and unintended retention remain different questions unless an experiment explicitly connects them.

[Deep Model Fusion](https://md.research.elamur.ai/free/en/papers/li-2023-deep-model-fusion-survey/) is also listed as a later citing survey. The citation alone does not identify which fusion approach uses this paper’s findings or how parameter displacement enters that approach. The honest conclusion is a broader scholarly connection, instead of a demonstrated transfer of the training recipe.

Finally, [SlimPajama-DC](https://md.research.elamur.ai/free/en/papers/shen-2023-slimpajama-dc-understanding-data-combinations/) places the citation within research on training-data combinations. The available description does not establish a Ghost Batch Normalization experiment or a direct test of update-count matching. It points to another setting in which training design is under discussion, while leaving the exact use of Hoffer and colleagues’ ideas unspecified.

Across these later connections, the most firmly reusable contribution remains the paper’s way of posing the experiment. A batch-size change also changes update statistics, normalization behavior, and the relation between epochs and optimization steps. Those changes must be made visible before a generalization gap can be assigned to batch size itself.

## Cite

Cite as Elad Hoffer, Itay Hubara and Daniel Soudry. 2017. Train longer, generalize better: closing the generalization gap in large batch training of neural networks. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1705.08741](https://doi.org/10.48550/arxiv.1705.08741) · [arXiv 1705.08741](https://arxiv.org/abs/1705.08741)

```bibtex
@misc{hoffer2017train,
  title = {{Train longer, generalize better: closing the generalization gap in large batch training of neural networks}},
  author = {Elad Hoffer, Itay Hubara and Daniel Soudry},
  year = {2017},
  doi = {10.48550/arxiv.1705.08741},
  eprint = {1705.08741},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1705.08741}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
