Constrained Co-Design for Photonic Bayesian Neural Networks

📅 2026-08-03
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenge of deploying Bayesian neural networks (BNNs) on photonic hardware, where analog constraints—such as quantization, programming errors, and limited dynamic range—hinder efficient uncertainty-aware inference. The authors formulate photonic BNN inference as constrained stochastic variational inference and systematically analyze how hardware limitations affect the expressiveness of the variational posterior family. They propose a hardware-software co-design principle that distinguishes between constraints compensable through training and those requiring hardware-level mitigation. By incorporating mean/variance bound constraints, explicit error modeling, and ablation of stochasticity placement, they demonstrate on Dirty-MNIST, CIFAR-10, and CINIC-10 that hardware-aware training recovers both predictive accuracy and uncertainty quality without sacrificing distributional expressiveness. This study presents the first large-scale BNN inference under realistic photonic hardware constraints.
📝 Abstract
Classical neural networks frequently produce overconfident predictions on ambiguous or out-of-distribution (OOD) data, a liability that grows with each AI system deployed in safety-critical real-world scenarios. Bayesian neural networks (BNNs) provide a principled framework for uncertainty-aware prediction by replacing deterministic parameters with probability distributions, but repeated sampling increases latency, memory traffic, and energy consumption. Photonic probabilistic computing offers a promising alternative by exploiting intrinsic optical stochasticity for fast and parallel sampling. However, photonic BNNs are not ideal samplers: analog constraints on quantization, programming error, dynamic range, and representable mean and variance restrict the variational families that can be implemented in hardware. In this work, we study which hardware-imposed constraints limit scalable photonic BNN inference, how these constraints can be represented, and which ranges can be tolerated by photonic BNNs beyond small proof-of-concept networks. We formulate photonic BNN inference as constrained stochastic variational inference and perform a systematic ablation study over stochasticity location, stochasticity modality, quantization, programming error, and mean/variance bounds. From these results, we derive concrete co-design guidelines that distinguish hardware constraints that can be compensated by training from those requiring hardware or architecture intervention. We validate these guidelines under coupled, hardware-realistic constraints on Dirty-MNIST, CIFAR-10, and CINIC-10, using Fashion-MNIST and SVHN as OOD benchmarks, showing that hardware-aware training recovers predictive performance and uncertainty quality whenever the required variational family remains representable, whereas violations of representational limits require targeted hardware modifications.
Problem

Research questions and friction points this paper is trying to address.

Photonic Bayesian Neural Networks
Hardware Constraints
Uncertainty Quantification
Variational Inference
Out-of-Distribution Detection
Innovation

Methods, ideas, or system contributions that make the work stand out.

photonic Bayesian neural networks
constrained stochastic variational inference
hardware-aware co-design
uncertainty quantification
analog hardware constraints
H
Hendrik Borras
Hardware and Artificial Intelligence Lab, Institute of Computer Engineering, Heidelberg University, Germany
X
Xiao Wang
Hardware and Artificial Intelligence Lab, Institute of Computer Engineering, Heidelberg University, Germany
Bernhard Klein
Bernhard Klein
Researcher at University of Deusto
Pervasive SystemsAmbient IntelligenceSocial SoftwareSocial Data MiningData Stream Processing
R
Robin Janssen
Hardware and Artificial Intelligence Lab, Institute of Computer Engineering, Heidelberg University, Germany
F
Frank Brückerhoff-Plückelmann
Neuromorphic Quantumphotonics, Kirchhoff-Institute for Physics, Heidelberg University, Germany
Wolfram Pernice
Wolfram Pernice
Heidelberg University
NanophotonicsQuantum OpticsNeuromorphic Computing
Holger Fröning
Holger Fröning
Professor a Heidelberg University
Resource-efficient machine learningneural networksGPUHPCFPGA