Skip to main content
QUICK REVIEW

[Paper Review] Hydra: Preserving Ensemble Diversity for Model Distillation

Linh Tran, Bastiaan S. Veeling|arXiv (Cornell University)|Jan 14, 2020
Adversarial Robustness in Machine LearningComputer Science25 references36 citations
TL;DR

Hydra uses a single shared body with multiple heads to distill an ensemble, preserving per-member predictions and uncertainty, improving both predictive performance and uncertainty quantification over standard distillation.

ABSTRACT

Ensembles of models have been empirically shown to improve predictive performance and to yield robust measures of uncertainty. However, they are expensive in computation and memory. Therefore, recent research has focused on distilling ensembles into a single compact model, reducing the computational and memory burden of the ensemble while trying to preserve its predictive behavior. Most existing distillation formulations summarize the ensemble by capturing its average predictions. As a result, the diversity of the ensemble predictions, stemming from each member, is lost. Thus, the distilled model cannot provide a measure of uncertainty comparable to that of the original ensemble. To retain more faithfully the diversity of the ensemble, we propose a distillation method based on a single multi-headed neural network, which we refer to as Hydra. The shared body network learns a joint feature representation that enables each head to capture the predictive behavior of each ensemble member. We demonstrate that with a slight increase in parameter count, Hydra improves distillation performance on classification and regression settings while capturing the uncertainty behavior of the original ensemble over both in-domain and out-of-distribution tasks.

Motivation & Objective

  • Motivated by the need to retain ensemble uncertainty after distillation.
  • Propose a multi-headed distillation architecture to preserve per-member behavior.
  • Evaluate Hydra against standard distillation and prior networks on classification and regression tasks.

Proposed method

  • Introduce Hydra: a neural network with one shared body and M heads (one per ensemble member).
  • Each head mimics a specific ensemble member; the body provides a shared feature representation.
  • Train by minimizing the average KL divergence between each head and its corresponding ensemble member (classification) or Gaussian outputs (regression).
  • Use temperature T to heat up distributions during training to improve cross-support.
  • Two-phase training: first mimic average ensemble (Hinton head), then train all heads to match individual members."
  • Compare against Knowledge Distillation and Prior Networks across datasets; report NLL, Brier score, accuracy, and model uncertainty.

Experimental results

Research questions

  • RQ1Can Hydra faithfully preserve ensemble diversity during distillation compared to averaging-based distillation?
  • RQ2Does Hydra improve predictive performance and uncertainty quantification on in-domain and out-of-domain data?
  • RQ3How does Hydra trade off parameter efficiency with fidelity to ensemble diversity?
  • RQ4What is the impact of Hydra on classification and regression tasks?

Key findings

  • Hydra matches or surpasses ensemble predictive performance on MNIST and CIFAR-10.
  • On MNIST, Hydra achieves NLL 0.0465, Brier −0.9776, close to ensemble NLL 0.0439 and Brier −0.9780, with MU 2.28e-5.
  • On CIFAR-10, Hydra attains ACC 0.8992 and NLL 0.3179, closer to ensemble than other distillation methods, with MU 0.0074.
  • Hydra outperforms Knowledge Distillation and Prior Networks in several metrics, particularly in uncertainty quantification (MU) and NLL.
  • Hydra provides a practical balance between modest parameter increase and fidelity to ensemble diversity.

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.