[Paper Review] Randomness In Neural Network Training: Characterizing The Impact of Tooling
This paper investigates how tooling—specifically hardware and software choices—introduces non-determinism in deep neural network training, revealing that implementation-level noise significantly impacts model stability and subgroup performance despite minimal effects on top-line metrics. It demonstrates that ensuring determinism incurs high, architecture- and hardware-dependent training overhead (up to 746%), highlighting the critical need for deterministic tooling in safety-critical AI applications.
The quest for determinism in machine learning has disproportionately focused on characterizing the impact of noise introduced by algorithmic design choices. In this work, we address a less well understood and studied question: how does our choice of tooling introduce randomness to deep neural network training. We conduct large scale experiments across different types of hardware, accelerators, state of art networks, and open-source datasets, to characterize how tooling choices contribute to the level of non-determinism in a system, the impact of said non-determinism, and the cost of eliminating different sources of noise. Our findings are surprising, and suggest that the impact of non-determinism in nuanced. While top-line metrics such as top-1 accuracy are not noticeably impacted, model performance on certain parts of the data distribution is far more sensitive to the introduction of randomness. Our results suggest that deterministic tooling is critical for AI safety. However, we also find that the cost of ensuring determinism varies dramatically between neural network architectures and hardware types, e.g., with overhead up to $746\%$, $241\%$, and $196\%$ on a spectrum of widely used GPU accelerator architectures, relative to non-deterministic training. The source code used in this paper is available at https://github.com/usyd-fsalab/NeuralNetworkRandomness.
Motivation & Objective
- To investigate the impact of tooling (hardware and software stacks) on non-determinism in deep neural network training.
- To quantify how implementation-level noise affects model stability, subgroup performance, and fairness.
- To measure the computational cost of achieving determinism across diverse hardware and model architectures.
- To assess whether controlling only algorithmic sources of randomness is sufficient for reliable model training.
- To evaluate the trade-offs between model stability, fairness, and training efficiency in deterministic training.
Proposed method
- Conducted large-scale experiments across multiple hardware types (e.g., V100 GPU), accelerators, and widely used deep learning models (e.g., ResNet-18, ResNet-50).
- Isolated and evaluated the contribution of algorithmic noise (e.g., random initialization, data shuffling) versus implementation noise (hardware + software stack).
- Measured model stability using metrics such as standard deviation of accuracy, predictive churn, and L2 distance between trained weights.
- Evaluated fairness impacts by analyzing per-class and subgroup performance variance across multiple training runs.
- Quantified the training speed overhead of enforcing determinism using software patches and deterministic hardware configurations.
- Used standardized datasets (CIFAR-10, CIFAR-100, ImageNet) and open-source frameworks (PyTorch, TensorFlow, JAX) to ensure reproducibility and broad applicability.
Experimental results
Research questions
- RQ1How does the choice of hardware and software tooling contribute to non-determinism in deep neural network training?
- RQ2To what extent does implementation-level noise affect model stability and subgroup performance, even when top-line metrics remain stable?
- RQ3What is the computational cost of achieving full determinism across different neural network architectures and hardware platforms?
- RQ4Can controlling only algorithmic sources of randomness (e.g., random seeds) sufficiently reduce model uncertainty?
- RQ5How does non-determinism in tooling amplify bias and variance in performance on underrepresented subgroups?
Key findings
- Implementation noise from hardware and software tooling contributes significantly to model instability, with predictive churn and weight variance comparable in magnitude to algorithmic noise.
- Top-line metrics like top-1 accuracy show minimal variation across runs, but per-class and subgroup performance exhibit high sensitivity to training randomness.
- Non-determinism disproportionately increases variance in performance on underrepresented subgroups, amplifying fairness risks in sensitive AI applications.
- The cost of ensuring determinism varies widely, with training overheads reaching up to 746% on certain GPU architectures, depending on model and hardware.
- Controlling only algorithmic noise is insufficient; implementation-level noise remains a major source of uncertainty, necessitating full-stack determinism.
- Deterministic tooling is critical for AI safety, particularly in high-stakes domains like healthcare, credit scoring, and autonomous driving, where performance variance on subgroups can lead to harmful bias.
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.