Abstract
Probabilistic machine learning utilizes controllable sources of randomness to encode uncertainty and enable statistical modeling. Harnessing the pure randomness of quantum vacuum noise, which stems from fluctuating electromagnetic fields, has shown promise for high speed and energy-efficient stochastic photonic elements. Nevertheless, photonic computing hardware which can control these stochastic elements to program probabilistic machine learning algorithms has been limited. Here, we implement a photonic probabilistic computer consisting of a controllable stochastic photonic element – a photonic probabilistic neuron (PPN). Our PPN is implemented in a bistable optical parametric oscillator (OPO) with vacuum-level injected bias fields. We then program a measurement-and-feedback loop for time-multiplexed PPNs with electronic processors (FPGA or GPU) to solve certain probabilistic machine learning tasks. We showcase probabilistic inference and image generation of MNIST-handwritten digits, which are representative examples of discriminative and generative models. In both implementations, quantum vacuum noise is used as a random seed to encode classification uncertainty or probabilistic generation of samples. In addition, we propose a path towards an all-optical probabilistic computing platform, with an estimated sampling rate of ~1 Gbps and energy consumption of ~5 fJ/MAC. Our work paves the way for scalable, ultrafast, and energy-efficient probabilistic machine learning hardware.
Introduction
Probabilistic machine learning is an emerging computing paradigm essential for tasks where quantifying uncertainty is critical, such as autonomous driving or medical diagnosis. Unlike deterministic models, probabilistic systems provide a statistical distribution of possible outcomes. However, implementing these models on traditional digital CMOS hardware is highly inefficient. Digital chips are inherently deterministic, and generating high-quality randomness requires significant computational overhead, leading to increased power consumption and reduced speed.
While photonic computing offers a high-speed, low-energy alternative, creating a programmable and scalable source of randomness within photonic architectures has been a persistent challenge. This work introduces a hardware-native stochastic element—the Photonic Probabilistic Neuron (PPN)—that leverages quantum vacuum noise to provide a fast and controllable source of randomness for machine learning.
The Photonic Probabilistic Neuron (PPN)
The core of this architecture is the PPN, implemented using a bistable Optical Parametric Oscillator (OPO). When pumped by a laser, the OPO settles into one of two phase states, representing a binary 0 or 1. The specific state chosen is determined by quantum vacuum noise—fundamental electromagnetic fluctuations present even in empty space—providing a source of "pure" randomness.
To make this randomness programmable, the researchers inject a small bias field ($b$) into the OPO. This bias shifts the probability of the neuron settling into one state over the other, effectively allowing the system to be "steered" while maintaining its stochastic nature. In the current implementation, a hybrid optoelectronic system is used: the photonic OPO performs stochastic sampling, while an electronic processor (FPGA or GPU) manages a measurement-and-feedback loop to update bias fields based on the neural network's weights.
Experimental Results and Performance
The system was evaluated using the MNIST dataset of handwritten digits for both discriminative (classification) and generative tasks. For classification, a Stochastic Binary Neural Network (SBNN) was employed, while a PixelCNN was used for image generation.
The experimental SBNN achieved a classification accuracy of 96.5%, closely matching the 97.0% achieved in numerical simulations. A key advantage of this hardware-native stochasticity is its ability to handle ambiguity. When presented with visually confusing digits (e.g., a character that looks like both a '3' and a '5'), the system produces a probability distribution that naturally reflects this uncertainty, rather than forcing a single, potentially incorrect, deterministic choice.
In generative tasks, the system successfully synthesized new handwritten digits from "thin air," using vacuum noise as the initial seed. The statistical distributions of the generated samples closely mirrored those of the training data.
Discussion and Future Outlook
The researchers estimate that an all-optical version of this platform could achieve a sampling rate of approximately 1 Gbps with an energy consumption of only ~5 fJ/MAC (femtojoules per multiply-accumulate operation). This projected performance is roughly 10x faster and 100x more energy-efficient than state-of-the-art electronic stochastic devices, such as magnetic tunnel junctions.
The primary current limitation is the electronic feedback loop (FPGA/GPU), which restricts the overall system speed to a 10 kHz bit rate. Future work will focus on scaling the system using spatial PPN arrays and developing all-optical control mechanisms to eliminate electronic bottlenecks. Such advancements could enable the application of this hardware to more demanding tasks, including large language models (LLMs) and diffusion-based generative AI.
Summary updated