[论文解读] On Power Laws in Deep Ensembles
本文研究了深度集成模型在集成规模与网络规模下校准负对数似然(CNLL)中的幂律关系。结果表明,CNLL在集成规模和模型规模上均遵循幂律,从而可仅通过少量训练网络准确预测性能提升与最优内存分配,且在CIFAR-100、CIFAR-10和ImageNet数据集上得到实证验证。
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
研究动机与目标
- 研究深度集成的校准负对数似然(CNLL)是否随集成规模和网络规模呈幂律关系。
- 确定在标准架构与正则化设置下,实际深度学习场景中幂律行为出现的条件。
- 仅通过少量训练模型,实现对大规模集成的CNLL及最优内存分配的预测。
- 证明当参数在多个中等规模网络间分配时,集成性能可超越单个大网络(即内存分割)。
提出的方法
- 对不同集成规模 $n$ 和网络规模 $s$ 下的CNLL值,经验拟合形式为 $\mathrm{PL}_m = c + b m^a$ 的幂律函数。
- 仅使用少量训练模型(如 $n=1$ 到 $4$)拟合幂律,并外推预测更大 $n$ 下的结果。
- 应用拟合的幂律函数预测大规模集成的CNLL,并确定给定参数预算下的最优内存分割。
- 通过多次运行的合成平均与VGG、WideResNet及ResNet50模型的真实实验验证预测结果。
- 设计一种基于幂律预测的算法,以指导最优内存分割的搜索,从而最小化所需训练次数。
- 利用渐近极限 $c = \lim_{m\to\infty} \mathrm{PL}_m$ 估计集成理论性能上限。
实验结果
研究问题
- RQ1深度集成的校准负对数似然(CNLL)在何种条件下随集成规模 $n$ 呈幂律?
- RQ2单个深度网络的CNLL是否随其规模 $s$ 呈幂律?
- RQ3当沿 $(n,s)$ 平面的对角线方向增加总参数量时,能否观察到CNLL的幂律行为?
- RQ4所发现的幂律参数能否用于仅基于少量训练模型预测大规模集成的CNLL?
- RQ5能否通过幂律外推识别给定内存预算下的最优内存分割(即网络数量与大小)?
主要发现
- 深度集成的CNLL在集成规模 $n$ 和网络规模 $s$ 上均紧密遵循幂律,多数情况下 $R^2 > 0.99$。
- 基于 $n=1$ 到 $4$ 个训练模型预测大规模集成($n > 4$)的CNLL时,其均方根误差(RMSE)比预测的CNLL值小1至2个数量级。
- 通过幂律外推可准确预测最优内存分割——即多个中等规模网络的性能优于参数总数相同的单个大网络。
- 对于内存预算 $B$,所提算法相比暴力搜索可将所需网络训练次数减少高达75%,尤其在最优分割涉及 $n^* \geq 4$ 时效果显著。
- 在ImageNet上使用预训练ResNet50集成的实证验证表明,非校准与校准后的NLL均以高保真度遵循幂律。
- 幂律的渐近极限 $c$ 即使在 $n$ 较小时,也能可靠估计深度集成的理论性能上限。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。