Skip to main content
QUICK REVIEW

[Paper Review] Deep Sub-Ensembles for Fast Uncertainty Estimation in Image Classification

Matías Valdenegro-Toro|arXiv (Cornell University)|Oct 17, 2019
Anomaly Detection Techniques and ApplicationsComputer Science18 citations
TL;DR

This paper proposes deep sub-ensembles, a computationally efficient alternative to deep ensembles for uncertainty estimation in image classification. By sharing a frozen trunk network and ensembling only the final task heads, the method achieves 1.5–2.5× speedup on CIFAR10 (ResNet-20) and up to 5–15× speedup on SVHN (VGG-like), with only a small increase in error and negative log-likelihood.

ABSTRACT

Fast estimates of model uncertainty are required for many robust robotics applications. Deep Ensembles provides state of the art uncertainty without requiring Bayesian methods, but still it is computationally expensive. In this paper we propose deep sub-ensembles, an approximation to deep ensembles where the core idea is to ensemble only the layers close to the output, and not the whole model. With ResNet-20 on the CIFAR10 dataset, we obtain 1.5-2.5 speedup over a Deep Ensemble, with a small increase in error and NLL, and similarly up to 5-15 speedup with a VGG-like network on the SVHN dataset. Our results show that this idea enables a trade-off between error and uncertainty quality versus computational performance.

Motivation & Objective

  • To reduce the computational cost of deep ensembles while preserving high-quality uncertainty estimates in image classification.
  • To investigate whether ensembling only the final layers of a neural network, rather than full models, maintains uncertainty quality.
  • To enable faster inference for real-time robotics and deployment-critical applications requiring uncertainty quantification.
  • To establish a trade-off between computational efficiency and uncertainty quality through selective ensembling of output layers.

Proposed method

  • The method decomposes a neural network into a shared trunk network $T$ and a task-specific head $K$, where $T$ is frozen after initial training.
  • Multiple task heads $K_i$ are trained independently on the same dataset while sharing the frozen trunk $T_f$, forming a sub-ensemble.
  • Inference involves a single forward pass through $T_f$, followed by independent forward passes through each $K_i$, with final predictions averaged.
  • The ensemble output is defined as $f(x) = N^{-1} igsum_{i} K_i(T_f(x))$, combining probability outputs from multiple heads.
  • The approach avoids bootstrap sampling and trains each head on the full dataset, differing from methods like Bootstrapped DQN.
  • Computational efficiency is measured via FLOPs, and speedup is computed as the ratio of FLOPs between full ensembles and sub-ensembles.

Experimental results

Research questions

  • RQ1Can ensembling only the final layers of a deep network maintain uncertainty quality comparable to full deep ensembles?
  • RQ2To what extent can computational cost be reduced in inference while preserving classification accuracy and uncertainty calibration?
  • RQ3How does the choice of which layers to ensemble affect the trade-off between speed, error, and uncertainty quality?
  • RQ4Can deep sub-ensembles achieve effective out-of-distribution detection with fewer ensemble members than full deep ensembles?

Key findings

  • On CIFAR10 with ResNet-20, deep sub-ensembles achieve 1.5–2.5× speedup over full deep ensembles with only a small increase in error and negative log-likelihood.
  • On SVHN with a VGG-like network, speedups of up to 5–15× are achieved, with similar performance degradation in error and NLL.
  • Out-of-distribution detection using entropy achieves AUC of 0.973 with 15 sub-ensemble members on SVHN, slightly below the 0.996 AUC of full deep ensembles.
  • The mean entropy for in-distribution examples is low (0.040) and for out-of-distribution examples is high (1.009), showing clear separation.
  • Speedups are highly dependent on model architecture and layer selection, with larger gains on VGG-like networks than on ResNet-20.
  • The method maintains strong uncertainty calibration and out-of-distribution detection capability, even with fewer ensemble members than full ensembles.

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.