[论文解读] Diversity Matters When Learning From Ensembles
本文提出了一种基于扰动的知识蒸馏方法,通过使用输出多样化采样(ODS)生成模型成员之间意见不一致的输入,从而增强从深度集成模型训练的学生模型的多样性。通过从这些多样化预测中蒸馏知识,学生模型在准确率和不确定性校准方面均显著提升,缩小了与完整集成模型之间的性能差距。
Deep ensembles excel in large-scale image classification tasks both in terms of prediction accuracy and calibration. Despite being simple to train, the computation and memory cost of deep ensembles limits their practicability. While some recent works propose to distill an ensemble model into a single model to reduce such costs, there is still a performance gap between the ensemble and distilled models. We propose a simple approach for reducing this gap, i.e., making the distilled performance close to the full ensemble. Our key assumption is that a distilled model should absorb as much function diversity inside the ensemble as possible. We first empirically show that the typical distillation procedure does not effectively transfer such diversity, especially for complex models that achieve near-zero training error. To fix this, we propose a perturbation strategy for distillation that reveals diversity by seeking inputs for which ensemble member outputs disagree. We empirically show that a model distilled with such perturbed samples indeed exhibits enhanced diversity, leading to improved performance.
研究动机与目标
- 缩小图像分类任务中深度集成模型与蒸馏学生模型之间的性能差距。
- 解决标准蒸馏方法在无法有效传递集成教师模型功能多样性方面的局限性。
- 通过增强预测多样性,改善学生模型的校准与不确定性估计。
- 开发一种样本高效的方法,通过输入扰动揭示集成预测中的隐藏多样性。
- 为 ODS 在蒸馏中的有效性提供实证与可解释性支持。
提出的方法
- 该方法使用输出多样化采样(ODS)生成小幅度输入扰动,以最大化集成成员之间的分歧。
- 利用这些扰动输入通过知识蒸馏训练学生模型,促使学生学习多样化的行为。
- 蒸馏过程被解释为一种近似雅可比匹配程序,提高了在传递功能多样性方面的样本效率。
- 学生网络通过匹配教师在原始输入和扰动输入上的输出,使用蒸馏损失进行训练。
- 该方法应用于具有多个子网络的学生模型,每个子网络分别从不同的集成成员中蒸馏知识。
- 在 CIFAR-10、CIFAR-100 和 TinyImageNet 上使用标准指标(包括准确率、NLL、Brier 分数和 ECE)对方法进行了评估。
实验结果
研究问题
- RQ1通过让学生接触集成成员之间存在分歧的输入,能否改进从深度集成模型中进行知识蒸馏的效果?
- RQ2使用 ODS 扰动输入是否能带来更丰富多样的学生预测并实现更好的校准?
- RQ3通过增强多样性的蒸馏方法,能否显著缩小蒸馏学生与完整集成模型之间的性能差距?
- RQ4与随机噪声或高斯噪声相比,基于 ODS 的扰动策略在传递功能多样性方面是否更具样本效率?
- RQ5在不确定性估计与校准方面,该方法与标准蒸馏及其他基线方法相比表现如何?
主要发现
- 在 CIFAR-10 上使用 WRN-28x5 时,所提方法达到了 76.03% 的准确率,优于标准 KD(75.19%)和使用高斯噪声的 KD(74.50%)。
- 该方法将 NLL 从标准 KD 的 1.207 降低至 0.899,表明校准与不确定性估计显著改善。
- 在 CIFAR-100 上,该方法实现了 80.62% 的准确率与 0.733 的 NLL,优于次佳基线(80.24% 准确率,NLL 0.742)。
- 在 TinyImageNet 上,该方法实现了 65.98% 的准确率与 1.408 的 NLL,显示出相对于标准 KD 和其他基线的一致性改进。
- 使用 ODS 扰动输入显著提升了预测多样性,这一点通过更低的 Brier 分数与 ECE 值得到验证。
- 该方法表明,使用 ODS 的蒸馏等价于一种近似雅可比匹配过程,提高了在传递功能多样性方面的样本效率。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。