Bayesian Layers: A Module for Neural Network Uncertainty
Not on the map. Why?
Abstract (arXiv)
We describe Bayesian Layers, a module designed for fast experimentation with neural network uncertainty. It extends neural network libraries with drop-in replacements for common layers. This enables composition via a unified abstraction over deterministic and stochastic functions and allows for scalability via the underlying system. These layers capture uncertainty over weights (Bayesian neural nets), pre-activation units (dropout), activations ("stochastic output layers"), or the function itself (Gaussian processes). They can also be reversible to propagate uncertainty from input to output. We include code examples for common architectures such as Bayesian LSTMs, deep GPs, and flow-based models. As demonstration, we fit a 5-billion parameter "Bayesian Transformer" on 512 TPUv2 cores for uncertainty in machine translation and a Bayesian dynamics model for model-based planning. Finally, we show how Bayesian Layers can be used within the Edward2 probabilistic programming language for probabilistic programs with stochastic processes.
Key facts. Cited by 57 papers in the map (data through 13 Oct 2026). First posted on arXiv 10 Dec 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 16; 2022: 10; 2023: 8; 2024: 10; 2025: 7; 2026: 6.
57 papers.
Sort:
By area:
- 2023Bayesian Low-rank Adaptation for Large Language Modelscited by 114
- 2021Priors in Bayesian Deep Learning: A Reviewcited by 101
- 2022Hyperbolic Image Segmentationcited by 101
- 2021Towards a Science of Human-AI Decision Making: A Survey of Empirical Studiescited by 86
- 2021Stochastic Neural Radiance Fields: Quantifying Uncertainty in Implicit 3D Representationscited by 81
- 2024BLoB: Bayesian Low-Rank Adaptation by Backpropagation for Large Language Modelscited by 50
- 2023A review of uncertainty quantification in medical image analysis: probabilistic and non-probabilistic methodscited by 39
- 2024Uncertainty quantification in fine-tuned LLMs using LoRA ensemblescited by 37
- 2021Uncertainty-Aware Machine Translation Evaluationcited by 35
- 2021Bayesian Attention Belief Networkscited by 25
- 2024BlackJAX: Composable Bayesian inference in JAXcited by 25
- 2021Bayesian Transformer Language Models for Speech Recognitioncited by 22
38 more
- 2021RecSim NG: Toward Principled Uncertainty Modeling for Recommender Ecosystemscited by 21
- 2023Calibrating Transformers via Sparse Gaussian Processescited by 21
- 2024Gaussian Stochastic Weight Averaging for Bayesian Low-Rank Adaptation of Large Language Modelscited by 20
- 2025Evaluating Uncertainty and Quality of Vision-Language-Action-enabled Robotscited by 17
- 2021A Bayesian neural network predicts the dissolution of compact planetary systemscited by 15
- 2023Fortuna: A Library for Uncertainty Quantification in Deep Learningcited by 14
- 2021deepregression: a Flexible Neural Network Framework for Semi-Structured Deep Distributional Regressioncited by 13
- 2021Pathologies in priors and inference for Bayesian transformerscited by 13
- 2022Lymphoma segmentation from 3D PET-CT images using a deep evidential networkcited by 12
- 2021Applications of the Free Energy Principle to Machine Learning and Neurosciencecited by 9
- 2025Revisiting Kernel Attention with Correlated Gaussian Process Representationcited by 9
- 2022Confidence estimation of classification based on the distribution of the neural network output layercited by 8
- 2024Uncertainty Quantification for Forward and Inverse Problems of PDEs via Latent Global Evolutioncited by 8
- 2021TyXe: Pyro-based Bayesian neural nets for Pytorchcited by 6
- 2023Block-local learning with probabilistic latent representationscited by 6
- 2023Flexible Visual Recognition by Evidential Modeling of Confusion and Ignorancecited by 6
- 2024Boundary Exploration for Bayesian Optimization With Unknown Physical Constraintscited by 6
- 2024Improving Interpretability of Deep Active Learning for Flood Inundation Mapping Through Class Ambiguity Indices Using Multi-spectral Satellite Imagerycited by 6
- 2024Self-Attention through Kernel-Eigen Pair Sparse Variational Gaussian Processescited by 5
- 2021Probabilistic Deep Learning with Probabilistic Neural Networks and Deep Probabilistic Modelscited by 4
- 2022Application of belief functions to medical image segmentation: A reviewcited by 4
- 2021The Bayesian Method of Tensor Networkscited by 3
- 2022Sample-Efficient Optimisation with Probabilistic Transformer Surrogatescited by 3
- 2022Methods for Estimating and Improving Robustness of Language Modelscited by 3
- 2022Bayesian Neural Network Language Modeling for Speech Recognitioncited by 3
- 2023DiffLoad: Uncertainty Quantification in Electrical Load Forecasting with the Diffusion Modelcited by 3
- 2025Comparing Uncertainty Measurement and Mitigation Methods for Large Language Models: A Systematic Reviewcited by 3
- 2025Towards Unveiling Predictive Uncertainty Vulnerabilities in the Context of the Right to Be Forgottencited by 3
- 2022Mitigating Closed-model Adversarial Examples with Bayesian Neural Modeling for Enhanced End-to-End Speech Recognitioncited by 2
- 2024Multi-Fidelity Bayesian Neural Network for Uncertainty Quantification in Transonic Aerodynamic Loadscited by 2
- 2025CLAPS: Aleatoric-Epistemic Scaling via Last-Layer Laplace for Conformal Regressioncited by 2
- 2021Estimating the Uncertainty of Neural Network Forecasts for Influenza Prevalence Using Web Search Activitycited by 1
- 2022Optimal Lighting Control in Greenhouses Using Bayesian Neural Networks for Sunlight Predictioncited by 1
- 2024Assessing the Uncertainty and Robustness of the Laptop Refurbishing Softwarecited by 1
- 2026Provably Robust Bayesian Counterfactual Explanations under Model Changescited by 1
- 2021Graceful Degradation and Related Fieldscited by 0
- 2022A Deep Learning Approach to Dst Index Predictioncited by 0
- 2023Bayesian Neural Networks for 2D MRI Segmentationcited by 0
50 most cited of 57 All 57 (JSON)
- 2026Neural Network-Based Estimation of Time-Dependent Parameters in AR(p) Processes1 Jul 2026
- 2026Soft Specialists: α-R'enyi Ensembles for Uncertainty-Aware LLM Post-Training26 May 2026
- 2026Probabilistic Federated Learning on Uncertain and Heterogeneous Data with Model Personalization18 Mar 2026
- 2026Diffusion-Inspired Reconfiguration of Transformers for Uncertainty Calibration9 Feb 2026
- 2026Physics-Informed Uncertainty Enables Reliable AI-driven Design26 Jan 2026
- 2026Provably Robust Bayesian Counterfactual Explanations under Model Changes23 Jan 2026
- 2025CLAPS: Aleatoric-Epistemic Scaling via Last-Layer Laplace for Conformal Regression1 Dec 2025
- 2025Bayesian Inference of Primordial Magnetic Field Parameters from CMB with Spherical Graph Neural Networks23 Oct 2025
- 2025Towards Unveiling Predictive Uncertainty Vulnerabilities in the Context of the Right to Be Forgotten10 Aug 2025
- 2025Evaluating Uncertainty and Quality of Vision-Language-Action-enabled Robots22 Jul 2025
- 2025Comparing Uncertainty Measurement and Mitigation Methods for Large Language Models: A Systematic Review25 Apr 2025
- 2025A Conformal Risk Control Framework for Granular Word Assessment and Uncertainty Calibration of CLIPScore Quality Estimates1 Apr 2025
38 more
- 2025Revisiting Kernel Attention with Correlated Gaussian Process Representation27 Feb 2025
- 2024Assessing the Uncertainty and Robustness of the Laptop Refurbishing Software22 Aug 2024
- 2024Multi-Fidelity Bayesian Neural Network for Uncertainty Quantification in Transonic Aerodynamic Loads8 Jul 2024
- 2024BLoB: Bayesian Low-Rank Adaptation by Backpropagation for Large Language Models17 Jun 2024
- 2024Gaussian Stochastic Weight Averaging for Bayesian Low-Rank Adaptation of Large Language Models6 May 2024
- 2024Improving Interpretability of Deep Active Learning for Flood Inundation Mapping Through Class Ambiguity Indices Using Multi-spectral Satellite Imagery29 Apr 2024
- 2024Uncertainty quantification in fine-tuned LLMs using LoRA ensembles19 Feb 2024
- 2024BlackJAX: Composable Bayesian inference in JAX16 Feb 2024
- 2024Uncertainty Quantification for Forward and Inverse Problems of PDEs via Latent Global Evolution13 Feb 2024
- 2024Boundary Exploration for Bayesian Optimization With Unknown Physical Constraints12 Feb 2024
- 2024Self-Attention through Kernel-Eigen Pair Sparse Variational Gaussian Processes2 Feb 2024
- 2023Bayesian Neural Networks for 2D MRI Segmentation24 Nov 2023
- 2023A review of uncertainty quantification in medical image analysis: probabilistic and non-probabilistic methods9 Oct 2023
- 2023Flexible Visual Recognition by Evidential Modeling of Confusion and Ignorance14 Sep 2023
- 2023Bayesian Low-rank Adaptation for Large Language Models24 Aug 2023
- 2023DiffLoad: Uncertainty Quantification in Electrical Load Forecasting with the Diffusion Model31 May 2023
- 2023Block-local learning with probabilistic latent representations24 May 2023
- 2023Calibrating Transformers via Sparse Gaussian Processes4 Mar 2023
- 2023Fortuna: A Library for Uncertainty Quantification in Deep Learning8 Feb 2023
- 2022Confidence estimation of classification based on the distribution of the neural network output layer14 Oct 2022
- 2022Bayesian Neural Network Language Modeling for Speech Recognition28 Aug 2022
- 2022Methods for Estimating and Improving Robustness of Language Models16 Jun 2022
- 2022Sample-Efficient Optimisation with Probabilistic Transformer Surrogates27 May 2022
- 2022Optimal Lighting Control in Greenhouses Using Bayesian Neural Networks for Sunlight Prediction7 May 2022
- 2022A Deep Learning Approach to Dst Index Prediction5 May 2022
- 2022Application of belief functions to medical image segmentation: A review3 May 2022
- 2022Hyperbolic Image Segmentation11 Mar 2022
- 2022Mitigating Closed-model Adversarial Examples with Bayesian Neural Modeling for Enhanced End-to-End Speech Recognition17 Feb 2022
- 2022Lymphoma segmentation from 3D PET-CT images using a deep evidential network31 Jan 2022
- 2021Towards a Science of Human-AI Decision Making: A Survey of Empirical Studies21 Dec 2021
- 2021Pathologies in priors and inference for Bayesian transformers8 Oct 2021
- 2021TyXe: Pyro-based Bayesian neural nets for Pytorch1 Oct 2021
- 2021Uncertainty-Aware Machine Translation Evaluation13 Sep 2021
- 2021Stochastic Neural Radiance Fields: Quantifying Uncertainty in Implicit 3D Representations5 Sep 2021
- 2021Applications of the Free Energy Principle to Machine Learning and Neuroscience30 Jun 2021
- 2021Graceful Degradation and Related Fields21 Jun 2021
- 2021Bayesian Attention Belief Networks9 Jun 2021
- 2021Probabilistic Deep Learning with Probabilistic Neural Networks and Deep Probabilistic Models31 May 2021
50 newest of 57 All 57 (JSON)
- 2023Bayesian Low-rank Adaptation for Large Language Modelscited by 114
- 2021Priors in Bayesian Deep Learning: A Reviewcited by 101
- 2022Hyperbolic Image Segmentationcited by 101
- 2021Towards a Science of Human-AI Decision Making: A Survey of Empirical Studiescited by 86
- 2021Stochastic Neural Radiance Fields: Quantifying Uncertainty in Implicit 3D Representationscited by 81
- 2024BLoB: Bayesian Low-Rank Adaptation by Backpropagation for Large Language Modelscited by 50
- 2023A review of uncertainty quantification in medical image analysis: probabilistic and non-probabilistic methodscited by 39
- 2024Uncertainty quantification in fine-tuned LLMs using LoRA ensemblescited by 37
- 2021Uncertainty-Aware Machine Translation Evaluationcited by 35
- 2021Bayesian Attention Belief Networkscited by 25
- 2024BlackJAX: Composable Bayesian inference in JAXcited by 25
- 2021Bayesian Transformer Language Models for Speech Recognitioncited by 22
12 most cited of 55 All 55 (JSON)
- 2026Neural Network-Based Estimation of Time-Dependent Parameters in AR(p) Processes1 Jul 2026
- 2026Soft Specialists: α-R'enyi Ensembles for Uncertainty-Aware LLM Post-Training26 May 2026
- 2026Probabilistic Federated Learning on Uncertain and Heterogeneous Data with Model Personalization18 Mar 2026
- 2026Diffusion-Inspired Reconfiguration of Transformers for Uncertainty Calibration9 Feb 2026
- 2026Physics-Informed Uncertainty Enables Reliable AI-driven Design26 Jan 2026
- 2026Provably Robust Bayesian Counterfactual Explanations under Model Changes23 Jan 2026
- 2025CLAPS: Aleatoric-Epistemic Scaling via Last-Layer Laplace for Conformal Regression1 Dec 2025
- 2025Bayesian Inference of Primordial Magnetic Field Parameters from CMB with Spherical Graph Neural Networks23 Oct 2025
- 2025Comparing Uncertainty Measurement and Mitigation Methods for Large Language Models: A Systematic Review25 Apr 2025
- 2025A Conformal Risk Control Framework for Granular Word Assessment and Uncertainty Calibration of CLIPScore Quality Estimates1 Apr 2025
- 2025Revisiting Kernel Attention with Correlated Gaussian Process Representation27 Feb 2025
- 2024Assessing the Uncertainty and Robustness of the Laptop Refurbishing Software22 Aug 2024
12 newest of 55 All 55 (JSON)