---
title: Snapshot Ensembles in Deep Learning
url: https://www.emergentmind.com/topics/snapshot-ensembles
type: topic
---

# Snapshot Ensembles in Deep Learning

Snapshot ensembles are ensemble methods that extract multiple predictors from a single training trajectory rather than training multiple models independently. In the neural-network formulation introduced by Huang et al., one network is trained with a cyclic learning-rate schedule so that optimization repeatedly converges to several local minima; the resulting checkpoints are saved as “snapshots” and their predictions are averaged at test time [1704.00109]. Subsequent work has treated the same basic pattern—one trajectory, multiple competent but non-identical models—as a reusable design principle, extending it to transfer learning, robustness, uncertainty quantification, consistency under periodic retraining, knowledge-graph link prediction, deep clustering, and inductive logic programming [2303.03374], [2408.02707], [2307.08591], [2510.24633].

## 1. Core formulation

The original method addresses a familiar tension in deep learning: ensembles are typically more robust and accurate than single networks, but a conventional ensemble of \(M\) models usually costs about \(M\) times as much training compute. Snapshot Ensembling seeks the seemingly contradictory goal of ensembling multiple neural networks at no additional training cost by training a single neural network, converging to several local minima along its optimization path, and saving the model parameters [1704.00109].

Its mechanism is a cyclic learning-rate schedule, with \(M\) cycles over a fixed training budget \(T\). The generic form is

$$
\alpha(t) = f\!\left(\mathrm{mod}\!\left(t-1,\left\lceil T/M \right\rceil\right)\right),
$$

where \(t\) is the iteration number, \(T\) is the total number of training iterations, \(M\) is the number of learning-rate cycles, \(\lceil T/M \rceil\) is the cycle length in iterations, and \(f\) is a monotonically decreasing function over a cycle. In the reported experiments, \(f\) is instantiated as a shifted cosine:

$$
\alpha(t) = \frac{\alpha_0}{2}\left(\cos\left(\frac{\pi\,\mathrm{mod}(t-1,\lceil T/M\rceil)}{\lceil T/M\rceil}\right)+1\right),
$$

with \(\alpha_0\) the restart learning rate [1704.00109].

Within each cycle, the learning rate starts high and anneals toward \(0\), encouraging convergence by the cycle end. At the end of the cycle—just before the learning rate is reset upward—the current parameter vector is saved as a snapshot. The next restart perturbs optimization enough to leave the current basin and move toward a different region of parameter space. Learning rate is updated per iteration rather than per epoch, so relatively short cycles can still produce useful convergences [1704.00109].

At inference time, the snapshots form an explicit ensemble: the models do not share weights at test time, and their softmax outputs are averaged. The original paper specifically averages the last \(m\) snapshots, because later snapshots generally have lower individual test error due to receiving more total optimization [1704.00109].

## 2. Empirical profile in supervised deep learning

The original study evaluates ResNet-110, Wide-ResNet-32, DenseNet-40, DenseNet-100, and ResNet-50 on CIFAR-10, CIFAR-100, SVHN, Tiny ImageNet, and ImageNet, and reports that Snapshot Ensembles consistently improve over strong single-model baselines under the same training budget [1704.00109]. The abstract highlights DenseNet Snapshot Ensemble error rates of \(3.4\%\) on CIFAR-10 and \(17.4\%\) on CIFAR-100 [1704.00109].

Representative CIFAR-scale results are substantial. For DenseNet-100, CIFAR-10 error is reduced from \(3.74\%\) for the single model to \(3.44\%\), and CIFAR-100 from \(19.25\%\) to \(17.41\%\). For Wide-ResNet-32, CIFAR-10 falls from \(5.43\%\) to \(4.41\%\), CIFAR-100 from \(23.55\%\) to \(21.26\%\), SVHN from \(1.90\%\) to \(1.51\%\), and Tiny ImageNet from \(39.63\%\) to \(32.90\%\) [1704.00109]. The gains are reported as especially pronounced on harder datasets such as CIFAR-100 and Tiny ImageNet, where disagreement among accurate models is more useful [1704.00109].

The method also works at ImageNet scale, but with a more evident cycle-length trade-off. Using ResNet-50 and a standard 90-epoch budget, \(M=2\) cycles reduce top-1 validation error from \(24.01\%\) to \(23.33\%\), whereas \(M=3\) gives \(23.96\%\), suggesting that too many cycles leave too little time per cycle for adequate convergence [1704.00109]. A similar pattern appears in the cycle-count study on DenseNet-40 for CIFAR-100: with total budget fixed at 300 epochs and \(\alpha_0=0.2\), test error is \(22.92\%\) at \(M=2\), \(22.07\%\) at \(M=4\), \(21.93\%\) at \(M=6\), \(21.89\%\) at \(M=8\), and \(22.16\%\) at \(M=10\) [1704.00109].

This empirical profile establishes a central practical rule: snapshot ensembles are effective when each cycle is long enough to yield a strong member model. The approach is therefore not merely “save checkpoints and average”; it depends on a schedule that alternates between convergence and controlled escape [1704.00109].

## 3. Diversity, geometry, and basin structure

The original justification is that effective ensembling requires each member to be reasonably accurate while different members make different errors. Snapshot Ensembles attempt to satisfy both conditions by combining low-learning-rate convergence within each cycle with high-learning-rate restarts between cycles [1704.00109]. The paper’s diversity analysis probes whether cyclic snapshots occupy meaningfully different minima by linearly interpolating between parameter vectors. For cyclic snapshots, many interpolations exhibit a non-convex error barrier, suggesting distinct local minima; for non-cyclic snapshots, later models often interpolate smoothly, indicating that they remain in essentially the same basin and offer less ensemble diversity [1704.00109].

The same study also reports lower pairwise correlations of softmax outputs for cyclic snapshots than for no-cycle snapshots, supporting the claim that cyclic restarts create diverse but still accurate predictors [1704.00109]. This interpretation has since been refined rather than abandoned.

In transfer learning, the relevant geometry is the “pre-train basin”: models fine-tuned from the same checkpoint typically remain in the same basin of low loss. Work on transfer-learning ensembles shows that better exploration within this basin can improve ensembles trained from one checkpoint, but leaving the basin degrades both individual model quality and ensemble quality because the models lose the benefits of transfer learning [2303.03374]. In that setting, standard sequential Snapshot Ensembles can look strong for small ensembles, but later cycles drift farther from the first fine-tuned solution and may degrade. The proposed StarSSE modification instead launches additional exploratory runs from the first fine-tuned model, producing a “star” geometry rather than a chain, and reports stronger ensembles and stronger uniform model soups than standard SSE in those experiments [2303.03374].

Interpretability-based diversity analysis points in the same general direction but at a different representational level. Using a shared ImageNet-pretrained Inception parent, one study compares Snapshot Ensembles with Prune and Tune Ensembles and finds that snapshot checkpoints appear more highly correlated with the parent and less internally differentiated than PAT children, both in feature visualizations and in saliency-map comparisons [2302.05822]. This does not imply that snapshot members are redundant; it suggests that their diversity ceiling is constrained by shared ancestry, shared topology, and a single optimization trajectory [2302.05822].

## 4. Weighting, pruning, and theoretical reinterpretations

A major later development is the observation that snapshots collected along one training path are not equally useful. “Effective training-time stacking” argues that vanilla equal-weight averaging is suboptimal because later snapshots are often stronger, while neighboring snapshots may be highly similar. It replaces plain averaging with selection and weighting based on training-time loss or likelihood, without fitting a separate validation-based meta-learner [2206.13491].

On CIFAR-10, this changes the behavior measurably. The paper reports \(89.9\%\) for “min, eq” versus \(90.5\%\) for “min, stack,” and \(90.8\%\) for “middle, stack,” compared with \(89.49\%\) for the single model and \(91.9\%\) for an independent ensemble of five models [2206.13491]. The same paper also reports that training-likelihood and validation-likelihood weighting are essentially tied in its setup, supporting its claim that a separate validation-driven stacking stage is unnecessary for snapshot-style ensembling [2206.13491].

Another line of work adapts snapshot ideas to periodic retraining and cross-generation stability rather than single-run accuracy. “Wisdom of the Ensemble” defines consistency and correct-consistency, proves that an ensemble learner’s consistency and correct-consistency are not less than the average of individual learners under its geometric formulation, and proposes DynSnap: a dynamic snapshot ensemble that combines snapshot learning, repeated retraining diversity, and pruning by validation accuracy [2011.06796]. DynSnap-cyc uses the cosine cyclic schedule and saves the best learner in each cycle according to validation accuracy, then prunes snapshots using a threshold of the form \(\tau=(1-\beta)\max(w_i)+\beta\min(w_i)\) [2011.06796]. On CIFAR-100 with ResNet56 and AVG aggregation, the reported numbers are Snapshot ACC \(72.96\), CON \(76.94\), ACC-CON \(66.14\) versus DynSnap-cyc ACC \(75.64\), CON \(85.72\), ACC-CON \(71.37\) [2011.06796].

Robustness-focused work has also adopted a simplified checkpoint-ensemble perspective. “Improving Adversarial Robustness for Free with Snapshot Ensemble” does not seek multiple local minima with cosine restarts; instead, it stores the last few parameter checkpoints from the end of a training run and ensembles them. The paper describes this as simpler than the original method and reports a \(5\%\) to \(30\%\) increase in accuracy when compared to traditional adversarial training, depending on hyperparameters and datasets [2110.03124]. A plausible implication is that the core snapshot intuition can survive even when the local-minima-harvesting mechanism is weakened, although that paper does not directly benchmark against the original Huang et al. procedure [2110.03124].

## 5. Generalizations beyond standard image classification

Snapshot ensembling has become a portable template rather than a task-specific trick. Later papers preserve the one-run, multi-checkpoint logic but redefine what counts as a snapshot, how snapshots are aggregated, or what role snapshots play in later training.

| Variant | Main mechanism | Reported outcome |
|---|---|---|
| Training-time stacking | Selects and weights snapshots by training-time likelihood or loss | “middle, stack” reaches \(90.8\%\) on CIFAR-10 [2206.13491] |
| StarSSE | Starts each additional run from the first fine-tuned model | Stronger ensembles and soups than standard SSE in transfer learning [2303.03374] |
| SnapE | Uses snapshots for KGE link prediction and snapshot-guided hard negatives | Constantly outperforms the single model approach while keeping training time constant [2408.02707] |
| Snapshot Spectral Clustering | Saves encoder snapshots and fuses landmark affinities for deep clustering | On CIFAR-10, the ensemble performs over twice as good as the base model [2307.08591] |
| Symbolic Snapshot Ensembles | Saves intermediate ILP hypotheses from one run and combines them with MDL weighting | Predictive accuracy improves by \(4\%\) with less than \(1\%\) computational overhead [2510.24633] |

In knowledge-graph link prediction, SnapE transfers the snapshot idea to KGE models such as TransE, DistMult, ComplEx, and RotatE. The method uses cyclic or deferred cyclic schedules, saves snapshots at learning-rate minima, and—crucially—lets earlier snapshots generate hard negative examples for later cycles. The abstract states that evaluation with four base models across four datasets constantly outperforms the single-model approach while keeping training time constant [2408.02707].

In unsupervised learning, Snapshot Spectral Clustering replaces prediction averaging with representation-level fusion. A single convolutional autoencoder is trained with a cosine scheduler; encoder snapshots are saved after \(T/M\) epochs, each snapshot produces an embedding, each embedding yields a landmark-based affinity matrix, and the fused affinities are clustered by a spectral procedure [2307.08591]. The paper presents this as a costless or nearly costless way to generate deep clustering ensembles, and reports particularly strong gains on CIFAR-10 [2307.08591].

The 2025 symbolic extension shows that the idea is not restricted to neural networks. “Symbolic Snapshot Ensembles” applies the one-run, many-intermediates template to inductive logic programming by saving intermediate hypotheses from a single ILP run and combining them using a minimum description length weighting scheme. The abstract reports a \(4\%\) improvement in predictive accuracy with less than \(1\%\) computational overhead on multiple benchmarks, including game playing and visual reasoning [2510.24633].

## 6. Limitations, misconceptions, and competing fast-ensemble designs

The slogan “Train 1, get \(M\) for free” is accurate only in a restricted sense. Relative to a standard single-model run, the training time is unchanged because the total number of optimization steps is the same, but inference with \(m\) snapshots costs about \(m\) forward passes and requires storing \(M\) checkpoints [1704.00109]. Snapshot Ensembles therefore shift the ensemble burden from training to testing, rather than eliminating it.

Architectural scope is another limitation. Because snapshots come from one base network, they assume that ensemble members share the same architecture. MotherNets emphasizes this point explicitly, noting that Snapshot Ensembles “cannot be applied to state-of-the-art diverse ensembles” containing arbitrary architectures with structural differences [1809.04270]. That paper treats SE as the strongest prior fast baseline and as a valid point on the same Pareto frontier, but reports that MotherNets can reduce absolute test error by \(2\) to \(3\) percent and be up to \(35\%\) faster in training compared to Snapshot Ensembles, while also supporting heterogeneous architectures [1809.04270].

The number of snapshots is not monotone in benefit. The original ImageNet result already shows degradation from \(M=2\) to \(M=3\) under a fixed 90-epoch budget [1704.00109]. MotherNets argues more broadly that as ensemble size grows, Snapshot Ensembles can become worse by more than \(0.5\%\) in a 100-model VGG experiment on CIFAR-10, and links this to reduced diversity and weaker individual member quality [1809.04270]. Transfer-learning results reinforce the same caution: forcing exploration too far away from the pre-train basin increases diversity, but degrades both member quality and ensemble quality [2303.03374].

The method’s uncertainty behavior is also context-dependent. In an industrial image-classification study on SIP-17 with LeNet-5, Snapshot Ensembles are cheap to train but underperform strongly on in-distribution predictive quality: \(94.69 \pm 0.47\%\) accuracy and \(0.1774 \pm 0.0096\) NLL, versus \(96.61 \pm 0.18\%\) and \(0.1121 \pm 0.0039\) for a single model, \(98.12 \pm 0.13\%\) and \(0.0695 \pm 0.0024\) for a deep ensemble, and \(98.79 \pm 0.11\%\) and \(0.0499 \pm 0.0029\) for a batch ensemble [2403.10182]. That paper further reports that Snapshot Ensembles have surprisingly high total uncertainty on the in-distribution set and weaker diversity quality than batch and deep ensembles, even though they can perform reasonably in classification-with-rejection curves [2403.10182].

A final limitation is memory efficiency at deployment. PFGE frames Snapshot Ensembles and FGE as having solved training-time cost but not test-time storage cost, because many distinct checkpoints must still be retained and evaluated. Its remedy is a lightweight ensemble of higher-performing models produced by successive SWA procedures; under the paper’s setup, PFGE uses \(4\) models instead of \(20\), implying \(20\%\) of the memory overhead of FGE or SWAG and therefore \(5\times\) memory efficiency [2202.06658]. This suggests that snapshot-style ensembling is best viewed not as a final answer to efficient ensembling, but as one influential point in a larger design space of one-run, low-cost, and partially compressed ensemble methods [2202.06658].

Source: https://www.emergentmind.com/topics/snapshot-ensembles