Packed-Ensembles for Efficient Uncertainty Estimation

Olivier Laurent, Adrien Lafage, Enzo Tartaglione, Geoffrey Daniel, Jean-Marc Martinez +2 more
10/17/2022
cs.LGstat.ML

No official code found. Best implementation: torch-uncertainty/torch-uncertainty (532 stars, Python, Apache-2.0, PyTorch, last commit 2026-05-04).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Open-source framework for uncertainty and deep learning models in PyTorch 🌱

53251Python, ShellFeb 1, 20237 months agoApache-2.0
bayesian-networkcomputer-visionensemblesneural-networkspredictive-uncertainty+5 more

Similar Papers

Cite this paper

@article{laurent2022packedensembles,
  title  = {Packed-Ensembles for Efficient Uncertainty Estimation},
  author = {Olivier Laurent and Adrien Lafage and Enzo Tartaglione and Geoffrey Daniel and Jean-Marc Martinez and Andrei Bursuc and Gianni Franchi},
  year   = {2022},
  eprint = {2210.09184},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.09184}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.09184.svg)](https://codeofpaper.com/paper/2210.09184)

Discussion