Skip to main content
QUICK REVIEW

[Paper Review] Generalized Bayesian Posterior Expectation Distillation for Deep Neural Networks

Meet P. Vadera, Brian Jalaian|arXiv (Cornell University)|May 16, 2020
Adversarial Robustness in Machine LearningComputer Science31 references4 citations
TL;DR

This paper proposes a generalized Bayesian posterior expectation distillation framework that extends Bayesian Dark Knowledge by distilling arbitrary posterior expectations—such as the predictive distribution and expected entropy—into compact student models using online Monte Carlo sampling. The method improves downstream uncertainty tasks like out-of-distribution detection and uncertainty ranking, outperforming prior approaches in both distillation fidelity and practical utility across diverse architectures and datasets.

ABSTRACT

In this paper, we present a general framework for distilling expectations with respect to the Bayesian posterior distribution of a deep neural network classifier, extending prior work on the Bayesian Dark Knowledge framework. The proposed framework takes as input "teacher" and student model architectures and a general posterior expectation of interest. The distillation method performs an online compression of the selected posterior expectation using iteratively generated Monte Carlo samples. We focus on the posterior predictive distribution and expected entropy as distillation targets. We investigate several aspects of this framework including the impact of uncertainty and the choice of student model architecture. We study methods for student model architecture search from a speed-storage-accuracy perspective and evaluate down-stream tasks leveraging entropy distillation including uncertainty ranking and out-of-distribution detection.

Motivation & Objective

  • To address the limitations of point-estimate deep learning models that produce overconfident predictions with poor uncertainty calibration.
  • To extend Bayesian Dark Knowledge beyond predictive distribution distillation to include general posterior expectations, such as expected entropy.
  • To enable fine-grained control over the speed-storage-accuracy trade-off in student models through systematic architecture search.
  • To evaluate the utility of generalized posterior distillation on downstream tasks requiring uncertainty quantification, such as OOD detection and uncertainty ranking.
  • To demonstrate that distillation performance is highly sensitive to student model capacity and that architecture search can effectively identify optimal trade-offs.

Proposed method

  • The framework takes a teacher model (represented as Monte Carlo samples of posterior weights) and a student model architecture as input.
  • It performs online distillation of a general posterior expectation, such as the posterior predictive distribution or expected entropy, by iteratively generating Monte Carlo samples from the teacher’s posterior.
  • The student model is trained to mimic the expected output of the teacher’s posterior over the selected statistic, using knowledge distillation with a loss function that minimizes the discrepancy between teacher and student expectations.
  • Architecture search is performed using a width multiplier strategy to explore a range of student model capacities, balancing model size, inference speed, and accuracy.
  • The method supports distillation of multiple uncertainty statistics, including total and knowledge uncertainty, enabling downstream uncertainty-aware tasks.
  • The framework is evaluated using both standard distillation metrics and downstream tasks like OOD detection and nDCG-based uncertainty ranking.

Experimental results

Research questions

  • RQ1How does generalized posterior expectation distillation compare to Bayesian Dark Knowledge in terms of distillation performance for predictive and entropy expectations?
  • RQ2How sensitive is distillation performance to the choice of student model architecture, and can architecture search effectively identify optimal speed-storage-accuracy trade-offs?
  • RQ3Can entropy-based distillation improve performance on downstream uncertainty-aware tasks such as out-of-distribution detection and uncertainty ranking?
  • RQ4How does the proposed framework compare to the EnD 2 method of Malinin et al. (2020) in terms of distillation fidelity and downstream task performance?
  • RQ5What is the impact of uncertainty decomposition (e.g., total vs. knowledge uncertainty) on the effectiveness of distillation for uncertainty-based applications?

Key findings

  • The proposed GPED framework outperforms an adaptation of the EnD 2 method in 75% of OOD detection settings, with higher AUROC scores across all tested datasets and model combinations.
  • For uncertainty ranking, GPED achieves higher nDCG@20 scores than EnD 2 in 91% of evaluated settings, indicating better preservation of relative uncertainty ordering.
  • Distillation performance is highly sensitive to student model capacity, with performance dropping significantly when the student is too narrow or too deep.
  • Architecture search using width multipliers successfully exposes the speed-storage-accuracy trade-off space, identifying student models that achieve better performance-computation balance.
  • The framework demonstrates strong generalization, achieving state-of-the-art performance on OOD detection and uncertainty ranking tasks using distilled entropy statistics.
  • The use of expected entropy as a distillation target enables effective uncertainty decomposition, enhancing the utility of distilled models in active learning and anomaly detection.

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.