Skip to main content
QUICK REVIEW

[Paper Review] Scaling Ensemble Distribution Distillation to Many Classes with Proxy Targets

Max Ryabinin, Andrey Malinin|arXiv (Cornell University)|May 14, 2021
Domain Adaptation and Few-Shot LearningComputer Science31 references8 citations
TL;DR

This paper proposes Proxy-Dirichlet distillation to stabilize Ensemble Distribution Distillation (EnD) for large-scale classification with 1,000–40,000 classes. By minimizing reverse KL-divergence to a proxy Dirichlet target derived from ensemble outputs, the method resolves gradient explosion issues caused by low-probability tail classes, enabling convergence and outperforming baseline distillation and single models in both accuracy and uncertainty estimation on ImageNet and WMT17 translation tasks.

ABSTRACT

Ensembles of machine learning models yield improved system performance as well as robust and interpretable uncertainty estimates; however, their inference costs may often be prohibitively high. \emph{Ensemble Distribution Distillation} is an approach that allows a single model to efficiently capture both the predictive performance and uncertainty estimates of an ensemble. For classification, this is achieved by training a Dirichlet distribution over the ensemble members' output distributions via the maximum likelihood criterion. Although theoretically principled, this criterion exhibits poor convergence when applied to large-scale tasks where the number of classes is very high. In our work, we analyze this effect and show that the Dirichlet log-likelihood criterion classes with low probability induce larger gradients than high-probability classes. This forces the model to focus on the distribution of the ensemble tail-class probabilities. We propose a new training objective that minimizes the reverse KL-divergence to a \emph{Proxy-Dirichlet} target derived from the ensemble. This loss resolves the gradient issues of Ensemble Distribution Distillation, as we demonstrate both theoretically and empirically on the ImageNet and WMT17 En-De datasets containing 1000 and 40,000 classes, respectively.

Motivation & Objective

  • To address poor convergence of Ensemble Distribution Distillation (EnD) in high-dimensional classification tasks with many classes.
  • To identify the root cause of gradient imbalance in the Dirichlet log-likelihood criterion, where low-probability tail classes dominate gradients.
  • To develop a stable training objective that preserves both predictive performance and uncertainty estimates from ensemble models.
  • To enable scalable distillation of ensembles for real-world, compute-constrained, risk-critical applications.

Proposed method

  • Derive a Proxy-Dirichlet distribution from the empirical distribution of ensemble member outputs, preserving key statistical properties.
  • Use reverse KL-divergence between the student model’s Dirichlet output and the Proxy-Dirichlet target as the primary training objective.
  • Replace the standard Dirichlet log-likelihood criterion with the reverse KL objective to stabilize optimization.
  • Apply gradient accumulation and mixed-precision training to fit large ensembles (10 models) in GPU memory during distillation.
  • Use beam search with beam size 5 for decoding and evaluate uncertainty via EoE and RMI metrics.
  • Train distillation models for 20,000 steps with increased batch size (32K tokens) and gradient accumulation over 32 steps.

Experimental results

Research questions

  • RQ1Why does standard Ensemble Distribution Distillation fail to converge on large-scale classification tasks with 1,000–40,000 classes?
  • RQ2How do class probability distributions in ensemble outputs affect gradient magnitude during distillation?
  • RQ3Can a proxy distribution derived from ensemble outputs stabilize the training of a distilled model?
  • RQ4Does minimizing reverse KL-divergence to a Proxy-Dirichlet target outperform forward KL or standard log-likelihood in distillation?
  • RQ5Can the proposed method preserve both accuracy and uncertainty estimates comparable to the original ensemble on high-cardinality tasks?

Key findings

  • The Dirichlet log-likelihood criterion induces significantly larger gradients for low-probability tail classes, causing optimization instability.
  • On ImageNet (1,000 classes), the Proxy-Dirichlet method achieved 77.1% top-1 accuracy and 11.8% RMI for out-of-distribution detection, outperforming standard EnD and single models.
  • On WMT17 En-De translation (40,000 classes), the method achieved 29.5 BLEU and 35.8 RMI, matching or exceeding the ensemble’s performance in uncertainty detection.
  • Reverse KL-divergence to the Proxy-Dirichlet target stabilized training and prevented gradient explosion, unlike forward KL or log-likelihood.
  • The Proxy-Dirichlet method enabled convergence and reliable uncertainty estimation on both image and sequence modeling tasks with high output cardinality.
  • The approach allows distillation of ensembles in compute-constrained, safety-critical applications by preserving ensemble-level uncertainty while reducing inference cost.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.