Skip to main content
QUICK REVIEW

[Paper Review] Packed-Ensembles for Efficient Uncertainty Estimation

Olivier Laurent, Adrien Lafage|arXiv (Cornell University)|Oct 17, 2022
Anomaly Detection Techniques and ApplicationsComputer Science10 citations
TL;DR

This paper introduces Packed-Ensembles (PE), a computationally efficient deep learning architecture that uses grouped convolutions to pack multiple independent subnetworks into a single shared backbone, enabling high-performance uncertainty estimation comparable to Deep Ensembles (DE) while reducing parameters and inference time. PE achieves state-of-the-art performance in accuracy, calibration, out-of-distribution detection, and robustness to distribution shift with minimal hardware overhead.

ABSTRACT

Deep Ensembles (DE) are a prominent approach for achieving excellent performance on key metrics such as accuracy, calibration, uncertainty estimation, and out-of-distribution detection. However, hardware limitations of real-world systems constrain to smaller ensembles and lower-capacity networks, significantly deteriorating their performance and properties. We introduce Packed-Ensembles (PE), a strategy to design and train lightweight structured ensembles by carefully modulating the dimension of their encoding space. We leverage grouped convolutions to parallelize the ensemble into a single shared backbone and forward pass to improve training and inference speeds. PE is designed to operate within the memory limits of a standard neural network. Our extensive research indicates that PE accurately preserves the properties of DE, such as diversity, and performs equally well in terms of accuracy, calibration, out-of-distribution detection, and robustness to distribution shift. We make our code available at https://github.com/ENSTA-U2IS/torch-uncertainty.

Motivation & Objective

  • To address the high computational cost of Deep Ensembles (DE) in real-world safety-critical systems with limited hardware.
  • To preserve the predictive uncertainty and diversity properties of DE while drastically reducing model size and inference time.
  • To design a structured, lightweight ensemble architecture that operates within standard neural network memory and compute constraints.
  • To demonstrate that Packed-Ensembles can match or exceed DE performance in accuracy, calibration, OOD detection, and robustness to distribution shift.

Proposed method

  • Packed-Ensembles use grouped convolutions to partition a single backbone into multiple independent subnetworks, each with non-shared weights.
  • Each subnetwork is trained end-to-end with shared batch data, enabling parallel inference and reduced parameter count.
  • The method leverages mixed-precision training to further accelerate training and inference without sacrificing performance.
  • Subnetworks are selected as a whole based on ensemble validation accuracy, ensuring optimal collective performance.
  • The architecture is formalized as a structured sparsity pattern using grouped convolutions, with hyperparameters α (width scaling), M (number of subnetworks), and γ (group count).
  • The approach enables a single forward pass to compute predictions from all subnetworks, mimicking full ensembles at a fraction of the cost.

Experimental results

Research questions

  • RQ1Can a single neural network architecture achieve uncertainty estimation performance comparable to Deep Ensembles while using significantly fewer parameters and less inference time?
  • RQ2Does the use of grouped convolutions to create independent subnetworks preserve the diversity and predictive uncertainty properties of Deep Ensembles?
  • RQ3How does Packed-Ensembles perform under distribution shift and out-of-distribution detection compared to DE and other efficient baselines?
  • RQ4Can Packed-Ensembles maintain high stability and low variance across multiple random seeds, even with fewer parameters than full DE?

Key findings

  • Packed-Ensembles achieve state-of-the-art uncertainty quantification on CIFAR-100, matching Deep Ensembles in accuracy (90.0%) and calibration (ECE of 0.0087) while using only 23.6M parameters.
  • On ImageNet-1k, PE-(3,4,1) achieves 59.1M parameters and 9.29G multiply-adds, significantly outperforming ResNeXt-50 (90.4% accuracy) and MIMO (94.9% AUC) in efficiency and performance.
  • Under distribution shift (CIFAR-100-C), Packed-Ensembles maintain the highest accuracy (85.2% at severity 5) and lowest ECE (0.021), outperforming both DE and ResNeXt-50.
  • On regression tasks, Packed-Ensembles achieve RMSE and NLL values nearly identical to Deep Ensembles across all UCI datasets, with differences within 0.05 in RMSE and 0.05 in NLL.
  • The variance in predictions is significantly reduced in Packed-Ensembles (0.19%) compared to single DNNs (0.68%) and Deep Ensembles (0.43%), indicating improved stability.
  • Empirical results confirm that random weight initialization and stochastic optimization are sufficient to generate diverse subnetworks, even with shared batches, validating the method’s design.

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.