[Paper Review] Nondeterminism and Instability in Neural Network Optimization
This paper identifies optimization instability in stochastic gradient descent as the root cause of run-to-run variability in neural networks, showing that even 10^-11 changes in initial weights cause effects as large as full random reinitialization. It proposes accelerated model ensembling and test-time augmentation to reduce variability without extra training cost, offering practical solutions for reproducibility and reliable model evaluation.
Nondeterminism in neural network optimization produces uncertainty in performance, making small improvements difficult to discern from run-to-run variability. While uncertainty can be reduced by training multiple model copies, doing so is time-consuming, costly, and harms reproducibility. In this work, we establish an experimental protocol for understanding the effect of optimization nondeterminism on model diversity, allowing us to isolate the effects of a variety of sources of nondeterminism. Surprisingly, we find that all sources of nondeterminism have similar effects on measures of model diversity. To explain this intriguing fact, we identify the instability of model training, taken as an end-to-end procedure, as the key determinant. We show that even one-bit changes in initial parameters result in models converging to vastly different values. Last, we propose two approaches for reducing the effects of instability on run-to-run variability.
Motivation & Objective
- To isolate and quantify the independent effects of various sources of nondeterminism in neural network training.
- To investigate why different sources of nondeterminism produce similar levels of model variability despite differing mechanisms.
- To identify optimization instability—sensitivity to tiny initial weight changes—as the key driver of this variability.
- To propose and evaluate practical, low-cost methods to reduce run-to-run variability without increasing training time.
Proposed method
- The authors design an experimental protocol to isolate individual sources of nondeterminism, including parameter initialization, data shuffling, data augmentation, dropout, asynchronous training, and cuDNN library randomness.
- They measure model diversity using multiple metrics: prediction correlation, functional changes under ensembling, and state-of-the-art similarity methods (e.g., Kornblith et al., 2019).
- A critical experimental manipulation involves changing a single weight by the smallest representable amount (≈6×10^-11), simulating extreme initialization perturbations.
- They evaluate the impact of these perturbations across multiple architectures (ResNet, VGG, ShuffleNet) and datasets (CIFAR-10, MNIST, ImageNet).
- They propose and test two mitigation strategies: accelerated model ensembling (early ensembling during training) and test-time augmentation (TTA) applied at inference.
- All experiments are conducted with controlled random seeds and multiple runs to ensure statistical robustness, with code publicly released.
Experimental results
Research questions
- RQ1Do different sources of nondeterminism (e.g., initialization, data shuffling, cuDNN) have comparable effects on model performance variability?
- RQ2Why do seemingly distinct sources of nondeterminism produce similar levels of model diversity?
- RQ3Is the instability of the optimization process itself responsible for the observed variability, regardless of the source?
- RQ4Can model variability be reduced without increasing training time or computational cost?
- RQ5To what extent do accelerated ensembling and test-time augmentation reduce run-to-run variability across different architectures and datasets?
Key findings
- All sources of nondeterminism—including random initialization, data shuffling, and low-level library randomness—produce nearly identical levels of model diversity and performance variability.
- A single-bit change in a single initial weight (≈6×10^-11) induces as much variability in final model performance as full random reinitialization.
- The instability of stochastic gradient descent is the primary cause of this variability, as small perturbations in initial parameters lead to large divergences in final model weights.
- Accelerated model ensembling and test-time augmentation both reduce model variability across all metrics, with stronger effects on pairwise diversity metrics and larger models.
- On MNIST, only test-time augmentation significantly reduced variability, suggesting model capacity and overfitting may modulate the effectiveness of mitigation strategies.
- The findings hold across diverse architectures (ResNet-6, ResNet-14, VGG-11, ShuffleNet, ResNet-18) and datasets (CIFAR-10, MNIST, ImageNet), confirming the generality of the instability phenomenon.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.