cs.LGApr 6, 2026

Sampling Parallelism for Fast and Efficient Bayesian Learning

Authors: Asena Karolin Özdemir, Lars H. Heyen, Arvid Weyrauch, Achim Streit, Markus Götz, Charlotte Debus

Organizations: Karlsruhe Institute of Technology Karlsruhe, Germany · Helmholtz AI

Abstract

Machine learning models, and deep neural networks in particular, are increasingly deployed in risk-sensitive domains such as healthcare, environmental forecasting, and finance, where reliable quantification of predictive uncertainty is essential. However, many uncertainty quantification (UQ) methods remain difficult to apply due to their substantial computational cost. Sampling-based Bayesian learning approaches, such as Bayesian neural networks (BNNs), are particularly expensive since drawing and evaluating multiple parameter samples rapidly exhausts memory and compute resources. These constraints have limited the accessibility and exploration of Bayesian techniques thus far. To address these challenges, we introduce sampling parallelism, a simple yet powerful parallelization strategy that targets the primary bottleneck of sampling-based Bayesian learning: the samples themselves. By distributing sample evaluations across multiple GPUs, our method reduces memory pressure and training time without requiring architectural changes or extensive hyperparameter tuning. We detail the methodology and evaluate its performance on a few example tasks and architectures, comparing against distributed data parallelism (DDP) as a baseline. We further demonstrate that sampling parallelism is complementary to existing strategies by implementing a hybrid approach that combines sample and data parallelism. Our experiments show near-perfect scaling when the sample number is scaled proportionally to the computational resources, confirming that sample evaluations parallelize cleanly. Although DDP achieves better raw speedups under scaling with constant workload, sampling parallelism has a notable advantage: by applying independent stochastic augmentations to the same batch on each GPU, it increases augmentation diversity and thus reduces the number of epochs required for convergence.

Figures & tables

Explore similar work

CardsList
  1. Position: The Time for Sampling Is Now! Charting a New Course for Bayesian Deep Learning

    May 20, 2026Emanuel Sommer, David RügamerBayesian Neural NetworksEfficient Neural Network Inference

  2. Guiding Posterior Exploration with Optimizer-Derived Geometry

    Jul 28, 2026Moritz Schlager, Emanuel Sommer, Thomas Möllenhoff +1Bayesian Neural NetworksMarkov Chain Monte Carlo

  3. Calibrated Sampling-Free Uncertainty Estimation in Bayesian Deep Learning

    Jun 15, 2026Tobias Jan Wieczorek, Leon de Andrade, Thomas Möllenhoff +1Bayesian Neural NetworksUncertainty Quantification