Timely reliable Bayesian decision-making enabled using memristors

Lekai Song, Pengyu Liu, Yang Liu, Jingfang Pei, Wenyu Cui, Songwei Liu, Yingyi Wen, Teng Ma, Kong-Pang Pun, Guohua HuarXiv 2024 · DOI

Introduction

Decision-making under uncertainty is a fundamental requirement for biological intelligence and autonomous systems alike. This process is often modeled using Bayes' Theorem, which provides a mathematical framework for updating the probability of a hypothesis as more evidence or information becomes available. However, implementing Bayesian inference on conventional "deterministic" hardware, such as standard CPUs or GPUs, is computationally expensive. These architectures struggle with the high latency and power consumption required to simulate complex probabilistic distributions, often creating a bottleneck in time-sensitive applications like autonomous driving.

To address these limitations, researchers have turned to Stochastic Computing (SC). In SC, numbers are represented by streams of random bits (stochastic numbers), allowing complex mathematical operations like multiplication to be performed with simple logic gates. While efficient, SC traditionally relies on bulky electronic circuits, such as Linear Feedback Shift Registers (LFSRs), to generate random bitstreams. This paper introduces a lightweight hardware solution that leverages the inherent stochasticity of volatile memristors to perform Bayesian reasoning natively and at ultra-high speeds.

Hardware-Based Stochastic Computing

The core of this approach lies in the use of volatile filamentary memristors fabricated from solution-processed hexagonal boron nitride (hBN). Unlike traditional memory devices where stochastic switching is considered a defect, this system treats randomness as a primary feature.

Stochastic Number Encoders (SNEs)

By exploiting the natural, "noisy" switching behavior of silver ions diffusing within the hBN layer, the researchers created Stochastic Number Encoders (SNEs). Because the voltage at which these devices switch is inherently random, combining them with simple comparators allows for the direct conversion of analog signals into stochastic bitstreams. This eliminates the need for complex pseudo-random number generators.

Bayesian Operators

These SNEs were integrated with standard Boolean logic to create specialized probabilistic hardware:

  • Probabilistic AND Gates: Used for one-step multiplication of independent probabilities.
  • Probabilistic Multiplexers (MUX): Used for weighted addition.
  • Bayesian Fusion Modules: By combining these gates with a classic divider design (CORDIV), the team built hardware capable of performing Bayesian Inference (updating beliefs) and Bayesian Fusion (merging data from multiple sensors).

Experimental Validation: Autonomous Obstacle Detection

The hardware was evaluated using the FLIR dataset, a benchmark for autonomous driving that contains aligned RGB (visible light) and thermal image pairs. This dataset is particularly useful for testing a system's ability to detect obstacles under varying visibility conditions, such as nighttime or harsh lighting, where a single sensor type might fail.

In the Bayesian Fusion tests, the system was tasked with resolving "target missing" issues by combining inputs from both sensor types. The results demonstrated that the memristor-based system was 85% more effective at detecting obstacles than thermal sensors alone and 19% better than RGB sensors alone. Furthermore, the hardware results closely matched theoretical Bayesian predictions, achieving a 63% accuracy in a lane-changing simulation compared to the theoretical 61%.

Performance and Key Insights

The research highlights several advantages of using volatile memristors for probabilistic logic:

  1. Ultra-Low Latency: The Bayesian operators achieved a decision latency of less than 0.4 ms. This translates to approximately 2,500 frames per second (fps), significantly outperforming human reaction times (0.7–1.5 ms) and current commercial driver assistance systems, which typically operate at 30–45 fps.
  2. Volatility as a Feature: The memristors are "volatile," meaning they spontaneously reset to a high-resistance state. This physical property eliminates the need for additional reset circuitry, reducing the overall hardware footprint.
  3. Correlation Control: The study demonstrated that parallel SNEs produce the uncorrelated streams necessary for multiplication, while a single SNE can be used to produce correlated streams for operations like finding the minimum of two values.
  4. Robustness: The hBN memristors showed high endurance, remaining stable over 1 million switching cycles, proving their viability for long-term edge AI applications.

Conclusion and Future Work

This work represents a significant step toward "edge AI" capable of real-time, reliable decision-making. By embracing the stochastic nature of nanoscale physics, the researchers have bypassed the bottlenecks of traditional deterministic computing.

However, several challenges remain before this technology can be deployed in commercial vehicles. Future work must focus on large-scale monolithic integration of memristors directly onto logic chips to move beyond the current discrete component setup. Additionally, researchers must address circuit non-idealities, such as parasitic delays and noise, through hardware-algorithm co-design. Finally, optimizing the "sweet spot" between bitstream length (precision) and computational cost will be essential for scaling these systems to more complex Bayesian networks.

Summary updated

BibTeX
@misc{song2024timely,
  author = {Lekai Song and Pengyu Liu and Yang Liu and Jingfang Pei and Wenyu Cui and Songwei Liu and Yingyi Wen and Teng Ma and Kong-Pang Pun and Guohua Hu},
  title = {{Timely reliable Bayesian decision-making enabled using memristors}},
  year = {2024},
  eprint = {2412.06838},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.06838},
}
Figure