Quantum Normalizing Flows for Anomaly Detection
Bodo Rosenhahn, Christoph Hirche
TL;DR
The paper tackles anomaly detection under limited training data by introducing Quantum Normalizing Flows (QNF), which learn a bijective mapping from data to a standard normal distribution using optimized quantum gate sequences. Training employs quantum architecture search (Monte Carlo Graph Search) to minimize $D_{KL}$ or the cosine dissimilarity $D_{cos}$, enabling both effective anomaly scoring and forward-backward flow-based generation. Empirical results on Iris and Wine datasets show competitive performance against classical baselines (Isolation Forest, LOF, and One-Class SVM), illustrating the practical viability of quantum-native anomaly detection and generative sampling. The work highlights the potential of quantum-normalizing flows to leverage compact quantum representations and exact reversibility, with the added benefit of a publicly released optimization codebase for reproducibility and further development.
Abstract
A Normalizing Flow computes a bijective mapping from an arbitrary distribution to a predefined (e.g. normal) distribution. Such a flow can be used to address different tasks, e.g. anomaly detection, once such a mapping has been learned. In this work we introduce Normalizing Flows for Quantum architectures, describe how to model and optimize such a flow and evaluate our method on example datasets. Our proposed models show competitive performance for anomaly detection compared to classical methods, esp. those ones where there are already quantum inspired algorithms available. In the experiments we compare our performance to isolation forests (IF), the local outlier factor (LOF) or single-class SVMs.
