TL;DR
Deep ensembles are powerful tools for improving model accuracy and uncertainty estimation. This paper reveals that the performance of deep ensembles, measured by calibrated negative log-likelihood (CNLL), follows predictable power-law relationships with respect to ensemble size and network size. This discovery allows for accurate predictions of ensemble performance and optimal resource allocation, even for configurations not explicitly trained.
What Problem Does This Paper Address?
Deep neural networks, while powerful, often suffer from issues like overconfidence and vulnerability to adversarial attacks. Deep ensembles, which combine multiple independently trained networks, have emerged as a robust solution to mitigate these problems and improve performance. However, understanding how ensemble size and individual network size impact performance, especially in terms of uncertainty estimation, has been largely empirical. There's a need for a more principled way to predict ensemble behavior and optimize resource allocation (like computational budget) without extensive experimentation. This paper aims to fill this gap by investigating the underlying scaling laws governing deep ensembles.
Methods
The core of this work is an extensive empirical study of the calibrated negative log-likelihood (CNLL) of deep ensembles. The authors analyze CNLL as a function of:
- Ensemble size (n): How performance changes as more networks are added to the ensemble.
- Network size (s): How performance changes as individual networks within the ensemble become larger (more parameters).
- Total parameter count (memory budget): How performance scales when the total number of parameters across all networks in the ensemble is fixed, allowing for different "memory splits" (e.g., one large network vs. several smaller ones).
They fit power-law models of the form $PL_m = c + bm^a$ to these performance metrics. A key contribution is demonstrating that these power laws hold across a wide range of ensemble and network sizes, enabling extrapolation and prediction. They also investigate the effect of temperature calibration and propose a practical method for finding optimal memory splits using these discovered power laws.
Datasets
The experiments were conducted on the following datasets:
- CIFAR-10
- CIFAR-100
- ImageNet (using pre-released weights for ResNet50)
Key Insights and Ideas
- Universal Power Laws: The performance (CNLL) of deep ensembles exhibits remarkably consistent power-law behavior with respect to ensemble size and network size. This suggests a fundamental scaling principle at play.
- Predictive Power: These power laws are not just descriptive; they are predictive. By training a small number of networks, one can accurately forecast the performance of much larger ensembles.
- Memory Split Advantage: A single large network is often outperformed by an ensemble of smaller networks with the same total parameter count (a "memory split"). This effect, termed the Memory Split Advantage (MSA), is consistently observed and can be predicted using the power laws.
- Calibration Matters: While non-calibrated NLL can exhibit complex behaviors like "double descent," calibrated NLL (CNLL) consistently follows power laws, highlighting the importance of proper calibration for understanding ensemble scaling.
- Optimal Resource Allocation: The discovered power laws provide a data-driven approach to determine the optimal ensemble size and network configuration for a given computational budget, maximizing performance.
Key Results
- CNLL follows power laws: CNLL as a function of ensemble size ($n$) and network size ($s$) can be closely approximated by power laws across various datasets and architectures.
- Predictive accuracy: Predictions of CNLL for large ensembles based on a few small ensembles show errors that are 1-2 orders of magnitude smaller than the CNLL values themselves.
- Memory Split Advantage (MSA): For a fixed memory budget, an ensemble of smaller networks consistently yields better CNLL than a single large network. This advantage is predictable.
- Optimal temperature: The optimal temperature for calibration converges as the ensemble size increases.
Limitations and Future Work
- Under-regularization: The paper notes that the observed effects (like non-monotonicity in CNLL with network size for unregularized networks) might be due to under-regularization of large networks or decreased diversity, suggesting this warrants further investigation.
- Practicality of Memory Split: While the paper demonstrates the advantage of memory splits, further investigation into the training and testing time trade-offs for these splits is suggested.
- Theoretical Justification: While empirical evidence is strong, a deeper theoretical understanding of why these power laws emerge, especially for calibrated metrics, could be beneficial.
- Broader Impact: The authors suggest their findings can lead to optimized resource consumption in training neural networks and contribute to a better understanding of neural models. They do not foresee specific negative ethical or societal impacts.
Summary updated