[Paper Review] On Power Laws in Deep Ensembles
This paper investigates power-law relationships in the calibrated negative log-likelihood (CNLL) of deep ensembles across ensemble size and network size. It demonstrates that CNLL follows a power law with respect to both ensemble size and model size, enabling accurate prediction of performance gains and optimal memory splits using only a small number of trained networks, with empirical validation on CIFAR-100, CIFAR-10, and ImageNet datasets.
Ensembles of deep neural networks are known to achieve state-of-the-art performance in uncertainty estimation and lead to accuracy improvement. In this work, we focus on a classification problem and investigate the behavior of both non-calibrated and calibrated negative log-likelihood (CNLL) of a deep ensemble as a function of the ensemble size and the member network size. We indicate the conditions under which CNLL follows a power law w.r.t. ensemble size or member network size, and analyze the dynamics of the parameters of the discovered power laws. Our important practical finding is that one large network may perform worse than an ensemble of several medium-size networks with the same total number of parameters (we call this ensemble a memory split). Using the detected power law-like dependencies, we can predict (1) the possible gain from the ensembling of networks with given structure, (2) the optimal memory split given a memory budget, based on a relatively small number of trained networks. We describe the memory split advantage effect in more details in arXiv:2005.07292
Motivation & Objective
- To investigate whether the calibrated negative log-likelihood (CNLL) of deep ensembles follows a power law as a function of ensemble size and network size.
- To determine the conditions under which power-law behavior emerges in practical deep learning settings with standard architectures and regularization.
- To enable prediction of CNLL for large ensembles and optimal memory splits using only a small number of trained models.
- To demonstrate that ensemble performance can surpass that of a single large network when parameters are split across multiple medium-sized networks (memory split).
Proposed method
- Empirically fit power-law functions of the form $\mathrm{PL}_m = c + b m^a$ to CNLL values across varying ensemble size $n$ and network size $s$.
- Use a small subset of trained models (e.g., $n=1$ to $4$) to fit power laws and extrapolate predictions for larger $n$.
- Apply the fitted power laws to predict the CNLL of large ensembles and identify the optimal memory split for a given parameter budget.
- Validate predictions using both synthetic averaging over multiple runs and real-world experiments on VGG, WideResNet, and ResNet50 models.
- Implement an algorithm that uses power-law predictions to guide the search for optimal memory splits, minimizing the number of required training runs.
- Use the asymptotic limit $c = \lim_{m\to\infty} \mathrm{PL}_m$ to estimate the theoretical performance ceiling of ensembles.
Experimental results
Research questions
- RQ1Under what conditions does the calibrated negative log-likelihood (CNLL) of a deep ensemble follow a power law with respect to ensemble size $n$?
- RQ2Does the CNLL of a single deep network follow a power law as a function of its size $s$?
- RQ3Can power-law behavior in CNLL be observed when increasing the total parameter count along the diagonal of the $(n,s)$-plane?
- RQ4Can the parameters of the discovered power laws be used to predict the CNLL of large ensembles based on only a few trained models?
- RQ5Is it possible to identify the optimal memory split (i.e., number and size of networks) for a given memory budget using power-law extrapolation?
Key findings
- The CNLL of deep ensembles closely follows a power law with respect to both ensemble size $n$ and network size $s$, with $R^2 > 0.99$ in most settings.
- Predictions of CNLL for large ensembles ($n > 4$) based on $n=1$ to $4$ trained models achieve root mean squared error (RMSE) 1–2 orders of magnitude smaller than the predicted CNLL values.
- The optimal memory split—where multiple medium-sized networks outperform a single large network with the same total parameters—can be accurately predicted using power-law extrapolation.
- For a memory budget $B$, the proposed algorithm reduces the number of required network training runs by up to 75% compared to brute-force search, especially when the optimal split involves $n^* \geq 4$.
- Empirical validation on ImageNet using pre-trained ResNet50 ensembles confirms that both non-calibrated and calibrated NLL follow power laws with high fidelity.
- The asymptotic limit $c$ of the power law provides a reliable estimate of the theoretical performance ceiling of deep ensembles, even when $n$ is small.
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.