Introduction
Training deep neural networks (DNNs) is inherently stochastic. Factors such as random weight initialization, the order of data in stochastic gradient descent (SGD) batches, and the specific subset of training data used lead to significant variability between training runs. While two models trained under identical hyperparameters often achieve similar aggregate test accuracy, they frequently exhibit "churn"—disagreeing on the predictions for specific individual samples. This variability poses a challenge for model selection and hyperparameter tuning, as it is difficult to discern whether a performance gain is a systematic improvement or merely the result of a "lucky" convergence.
Quantifying Variability: The Logit Gap and $\hat{\alpha}$
Traditional metrics like accuracy or churn focus on thresholded outputs, discarding the nuanced information present in a model's confidence levels. To address this, we propose a framework based on the logit gap: the difference between the scores assigned to the two most likely classes before the final softmax layer. The logit gap serves as a continuous proxy for model confidence.
To determine if a specific model is "representative" of the training algorithm, we compare its logit gap distribution against a Leave-One-Out Ensemble (LOOE), which represents the consensus of multiple independent training runs.
Standard statistical tests, such as the Kolmogorov-Smirnov (KS) test, are often overly sensitive in high-dimensional deep learning contexts; even negligible differences in large datasets can lead to a rejection of the null hypothesis. We introduce a robust alternative: the $\hat{\alpha}$ metric. This metric utilizes "trimming" to identify the smallest fraction ($\alpha$) of the data that must be ignored for the model's distribution to become statistically indistinguishable from the ensemble's. A low $\hat{\alpha}$ indicates a model that closely aligns with the algorithmic consensus, while a high $\hat{\alpha}$ identifies an outlier.
The Evolution of Stability and Maturity
Our experiments on a binary classification subset of CIFAR-10 reveal that $\hat{\alpha}$ captures aspects of model maturity that accuracy ignores. Early in the training process (e.g., Epoch 2), models exhibit high $\hat{\alpha}$ values, indicating significant divergence from the eventual consensus. As training progresses, accuracy typically plateaus quickly. However, $\hat{\alpha}$ continues to decrease well after accuracy has stabilized.
This decoupling suggests that models continue to refine their internal feature representations and "settle" into a stable confidence landscape long after their predictive performance has peaked. Consequently, a model with high accuracy but a high $\hat{\alpha}$ may have simply "gotten lucky" on the test set. Such models might be less robust to adversarial perturbations or distribution shifts compared to "representative" models with lower $\hat{\alpha}$.
Sources of Variance
By isolating different sources of randomness—initialization ($S_{init}$), batch ordering ($S_{batch}$), and training data resampling ($S_{train}$)—we found that random initialization contributes less to early-stage variability than data-related factors. However, by the end of training (Epoch 50), these individual sources of variance tend to converge, suggesting that sufficient training allows the model to overcome initial stochasticity and reach a more stable, algorithmically-determined state.
Conclusion and Future Work
The $\hat{\alpha}$ metric provides a robust, nonparametric way to quantify neural network variability. By moving beyond raw accuracy to analyze confidence distributions, researchers can better identify stable, representative models. Future work will focus on scaling this approach to multi-class problems and larger architectures, as well as exploring alternative distance metrics to further characterize the geometry of the training process.
Summary updated