TL;DR
This paper introduces a novel method for quantifying the variability of deep learning models trained with stochastic optimization. By developing a robust nonparametric testing framework and a new metric called the "a-trimming level," the authors provide a more nuanced understanding of model behavior beyond traditional accuracy metrics, enabling better selection of training configurations and seeds.
What Problem Does This Paper Address?
Deep neural networks (DNNs) are trained using stochastic optimization, meaning that even with identical architectures and hyperparameters, different training runs (often due to random seeds) can produce models with varying performance. This "training variability" makes it difficult to determine if a particular configuration truly improves a model or if the observed performance is just a result of luck. Traditional metrics like test accuracy can obscure these differences, as models with similar accuracy might have learned fundamentally different underlying functions. The authors aim to address this gap by providing a robust way to measure and compare the variability of models trained under different conditions.
Methods
The core of the paper's contribution lies in its novel hypothesis testing framework and the introduction of the "a-trimming level" metric.
- Robust Hypothesis Testing: The authors propose a non-parametric hypothesis testing framework to measure the similarity of functions learned by DNNs. They address the challenge of not knowing the true underlying distribution by using an approximate distribution derived from a group of individually trained models as a reference.
- a-trimming Level: This new metric quantifies model similarity by measuring how much of the data distribution needs to be "trimmed" (down-weighted) to make a candidate model's output distribution match a reference distribution. A lower a-trimming level indicates greater similarity. This is inspired by robust statistics and contamination neighborhoods.
- Reference Function: They define a "reference function" by averaging the empirical cumulative distribution functions (eCDFs) of logit gaps from multiple independently trained models. This serves as a stable representation of the expected model behavior.
- Robust KS-Test: They adapt the Kolmogorov-Smirnov (KS) test to be robust against potential outliers in the data, using the a-trimming concept. This allows for a more reliable comparison of model distributions.
Datasets
The paper uses the CIFAR-10 dataset for experiments. Specifically, they create a binary classification problem by merging 8 of the 10 classes into two supergroups. They also mention using a Vision Transformer (ViT) variant pre-trained on ImageNet for transfer learning experiments.
Key Insights and Ideas
- Beyond Accuracy: The paper convincingly demonstrates that traditional metrics like validation accuracy, churn, and Expected Calibration Error (ECE) can be insufficient on their own to capture model variability. Models with similar performance metrics can still exhibit significant differences in their underlying learned functions, as revealed by the a-trimming level.
- The Importance of Seed Exploration: The research highlights that for reliable ensembles and robust model performance, exploring a larger number of random seeds (beyond just a few) is crucial. The a-trimming level provides a principled way to determine this number.
- Ensemble Stability: The study shows that as the size of an ensemble increases, its eCDF converges towards the reference function, and its performance metrics (accuracy, churn, ECE) become more stable and less variable.
- Robustness Matters: The proposed robust testing framework is essential because standard KS tests can be overly sensitive to small sample variations, leading to potentially misleading conclusions about model similarity.
Key Results
- The proposed a-trimming level metric is shown to be more informative than individual metrics like validation accuracy, churn, or ECE for assessing model variability.
- Experiments suggest that ensembling over at least 30 candidate models might be required for an ensemble to be a reliable representative of training variability, as indicated by the a-trimming level.
- In transfer learning scenarios, even with pre-trained models exhibiting high validation accuracy and low variability, the a-trimming level can still identify the best representatives of the training procedure.
- The paper provides empirical evidence that random batch shuffling can introduce more variability in model performance compared to random initialization alone.
Limitations and Future Work
- Bounded Support Assumption: The robust testing framework relies on the assumption that the support of the distributions is bounded. While they mention clipping logit gaps in experiments, this is a practical workaround for a theoretical assumption.
- Extension to Multi-Class: The current work focuses on binary classification. Future work could extend the framework to multi-class classification problems.
- Other Distance Metrics: The authors suggest exploring other distance metrics, such as the Wasserstein metric, for hypothesis testing.
- Investigating Ensembling Effectiveness: Future research could investigate when candidate models form effective ensembles, especially in scenarios where ensembling might not lead to significant performance gains.
- Hyperparameter Influence: The methodology can be extended to investigate the influence of other hyperparameters beyond the random seed on model variability.
Summary updated