Exploring Unsupervised Anomaly Detection with Quantum Boltzmann Machines in Fraud Detection

Jonas Stein, Daniëlle Schuman, Magdalena Benkard, Thomas Holger, Wanja Sajko, Michael Kölle, Jonas Nüßlein, Leo Sünkel, Olivier Salomon, Claudia Linnhoff-Popien

TL;DR

This paper introduces the first fully unsupervised anomaly detection framework using Quantum Boltzmann Machines (QBMs), specifically targeting cybersecurity applications like fraud detection. The researchers demonstrate that QBMs can achieve better detection performance with significantly fewer hidden neurons and training epochs than classical Restricted Boltzmann Machines (RBMs), though current quantum hardware still faces challenges in matching simulated results due to hyperparameter tuning constraints.

What Problem Does This Paper Address?

In the world of cybersecurity, Endpoint Detection and Response (EDR) is a high-stakes game of "find the needle in the haystack." Modern networks generate billions of data points, and malicious activities—like zero-day attacks—are extremely rare compared to benign traffic.

Traditional rule-based systems and even standard machine learning (ML) often fail to generalize well, leading to a frustrating trade-off: either you miss real threats (false negatives) or you drown security analysts in a sea of false alarms (false positives). The authors explore whether Quantum Boltzmann Machines (QBMs)—a type of quantum generative model—can learn the underlying distribution of "normal" data more efficiently than classical models, making anomalies easier to spot by their high "energy" values in the model.

Methods

The authors compare two generative architectures:

  1. Restricted Boltzmann Machines (RBMs): A classical baseline where connections only exist between the visible (input) and hidden layers.
  2. Quantum Boltzmann Machines (QBMs): A quantum analog that allows for more complex connectivity. Specifically, they use a "semi-restricted" architecture that includes lateral connections between visible neurons, which helps model complex dependencies.
Schematic visualization of RBM vs. QBM architectures

The Anomaly Detection Logic: The model is trained on a dataset to learn the distribution of normal behavior. Once trained, every data point is assigned an "energy" value. In Energy-Based Models (EBMs), high energy corresponds to low probability. By setting an energy threshold (the 95th percentile of the training data), any point exceeding this limit is flagged as an anomaly.

To handle the sampling process—which is computationally expensive for classical computers—they utilize Quantum Annealing on D-Wave hardware (2000Q and Advantage 4.1) and Simulated Annealing (SA) as a classical proxy for hyperparameter tuning.

Datasets

Because real-world EDR datasets are too large for current quantum hardware, the authors generated a synthetic 3D dataset.

  • Structure: 1007 data points clustered into five groups with seven specific anomalies (outliers).
  • Encoding: Each dimension was represented by 7 bits, requiring 21 visible neurons for the QBM to process a single 3D point.
  • Split: A 50/50 train/test split was used to evaluate how well the models generalized to unseen data.
Visualization of the synthetic 3D dataset

Key Insights and Ideas

  • Resource Efficiency: The most striking finding was that QBMs reached their peak performance (F1 score) using significantly fewer resources. The QBM optimized at 82 hidden neurons, whereas the classical RBM required 157 to reach a lower peak.
  • Faster Convergence: QBMs required roughly half the training epochs (7 vs. 13) to outperform the RBM's best results. This suggests that quantum models might be more "data-efficient" learners for complex distributions.
  • The Connectivity Advantage: The QBM's ability to include lateral connections (visible-to-visible) allows it to model dependencies that the "restricted" classical RBM simply cannot capture without a much larger hidden layer.
  • Hardware Evolution: There is a clear performance jump between D-Wave generations. The newer Advantage 4.1 system significantly outperformed the older 2000Q, suggesting that as quantum hardware connectivity and error rates improve, the "quantum advantage" will become more pronounced.

Key Results

The study evaluated performance using the F1 score (a balance of precision and recall).

Model F1-Score Recall Precision
Classical RBM 0.33 1.0 0.20
QBM (Simulated Annealing) 0.35 1.0 0.21
D-Wave Advantage 4.1 0.21 0.67 0.13
D-Wave 2000Q 0.14 0.67 0.08

While the simulated QBM (using SA) achieved the best overall result, the physical quantum hardware lagged behind. This is largely attributed to the fact that hyperparameters were tuned using the simulator due to limited QPU time, and the simulator does not perfectly replicate the physical noise and characteristics of the D-Wave chips.

F1 score vs. number of hidden units

Limitations and Future Work

The primary bottleneck is hardware access and simulation fidelity. The authors noted that hyperparameter optimization is extremely time-consuming on real QPUs. Using classical simulators for this step is necessary but introduces a "reality gap" where the optimized settings don't translate perfectly to the quantum hardware.

Future Directions: * High-Performance Samplers: Developing classical samplers that more accurately mimic specific quantum hardware to improve hyperparameter tuning. * Scaling: Moving beyond 3D synthetic data to higher-dimensional datasets as qubit counts and connectivity increase. * Efficiency Analysis: Conducting a deeper dive into training step efficiency for much larger datasets, where the authors expect the QBM's advantages to scale even better.

Summary updated

BibTeX
@inproceedings{stein2024exploring,
  author = {Jonas Stein and Daniëlle Schuman and Magdalena Benkard and Thomas Holger and Wanja Sajko and Michael Kölle and Jonas Nüßlein and Leo Sünkel and Olivier Salomon and Claudia Linnhoff-Popien},
  title = {{Exploring Unsupervised Anomaly Detection with Quantum Boltzmann Machines in Fraud Detection}},
  booktitle = {ICAART},
  year = {2024},
  doi = {10.5220/0012326100003636},
}
Figure