Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

arXiv:2510.21837

Quantum Autoencoders for Anomaly Detection in Cybersecurity

Rohan Senthil, Swee Liang Wong

Published Jul 3, 2026• 0 citations
arXivHTMLPDF

Abstract

Abstract Anomaly detection in cybersecurity is a challenging task, where normal events far outnumber anomalous ones with new anomalies occurring frequently. Classical autoencoders have been used for anomaly detection, but struggles in data-limited settings which quantum counterparts can potentially overcome. In this work, we apply Quantum Autoencoders (QAEs) for anomaly detection in cybersecurity, specifically on the BPF-extended tracking honeypot (BETH) dataset. QAEs are evaluated across multiple encoding techniques, ansatz types, repetitions, and feature selection strategies. Our results demonstrate that an 8-feature QAE using Dense-Angle encoding with a RealAmplitude ansatz can outperform Classical Autoencoders (CAEs), even when trained on substantially fewer samples. The effects of quantum encoding and feature selection for developing quantum models are demonstrated and discussed. In a data-limited setting, the best performing QAE model has a F1 score of 0.87, better than that of CAE (0.77). These findings suggest that QAEs may offer practical advantages for anomaly detection in data-limited scenarios.

DOI
10.21203/rs.3.rs-7540141/v1

Related papers

Applying quantum autoencoders for time series anomaly detection

Robin Frehner, Kurt Stockinger

Abstract Anomaly detection is an important problem with applications in various domains such as fraud detection, pattern recognition, or medical diagnosis. Several algorithms have been introduced using classical computing approaches. However, using quantum computing for solving anomaly detection problems in time series data is a widely unexplored research field. This paper explores the application of quantum autoencoders to time series anomaly detection. We investigate two primary techniques for classifying anomalies: (1) Analyzing the reconstruction error generated by the quantum autoencoder and (2) latent representation analysis. Our simulated experimental results, conducted across various ansaetze, demonstrate that quantum autoencoders consistently outperform classical deep learning-based autoencoders across multiple datasets. Specifically, quantum autoencoders achieve superior anomaly detection performance while utilizing 60–230 times fewer parameters and requiring five times fewer training iterations. In addition, we implement our quantum encoder on real quantum hardware. Our experimental results demonstrate that quantum autoencoders achieve anomaly detection performance on par with their simulated counterparts.

Quantum Machine Intelligence•May 5, 2025•24 citations

Quantum Autoencoders for Network Anomaly Detection: A Comparative Benchmark with Classical Methods

Gönül ALTAY, Ecir Uğur Küçüksille

The practical value of quantum machine learning for network anomaly detection remains unclear under controlled and comparable benchmarking conditions. This study evaluates a trash-qubit-based Quantum Autoencoder (QAE) against seven classical anomaly-detection methods on UNSW-NB15 using shared data partitions, preprocessing steps, model selection procedures, and threshold calibration protocols. The experimental design included five independent seeds, three training set sizes, two feature budgets, and 12 QAE architectures, together with low-FPR analysis, finite-shot and synthetic-noise evaluation, less-constrained classical reference settings, and a cross-dataset assessment on TON_IoT. The Angle-RY encoding with a Real-Amplitudes Ring ansatz at depth L = 2 achieved the highest mean validation-selection AUPRC. On UNSW-NB15, the QAE was competitive in AUPRC and AUROC but remained behind the strongest classical baselines in F1-score, and its attack recall declined sharply under low-FPR constraints. The TON_IoT results further showed that relative model performance depended on the dataset. Under finite-shot and synthetic-noise conditions, anomaly-score rankings were largely preserved, whereas threshold-based decisions were more sensitive. Overall, the QAE showed competitive continuous-score discrimination on UNSW-NB15, but achieving reliable detection at low false-alarm rates remains a key operational challenge.

Electronics•Oct 1, 2026•0 citations

Quantum circuit autoencoders for anomalous image detection

Yedong Jiang

In the NISQ era, exploring quantum approaches capable of addressing real-world data analytics tasks has been a focal point of research. The detection of anomalous images is one of the classic data processing problems that can be considered to tackle using quantum computing. Inspired by the proposal of quantum circuit autoencoders (QCAE), we design a quantum method to tackle image anomaly detection tasks. In this work, we propose a method for encoding an image into a quantum circuit. Then, we employ the QCAE model to detect the anomalous images. Moreover, we create a scoring function to predict whether test data is an outlier. Finally, combining the trained QCAE with the scoring function, we obtain an anomaly detector. We use the handwritten digit image dataset to train detectors under various training setups and validate their performance on a test set. Our method achieves an f1-score of 0.8190 and a recall of 0.8600. The experimental results demonstrate the potential of quantum computing in handling data anomalies in the classical world, encouraging further exploration of QCAE applications in practical problems.

International Conference on Advanced Electronic Materials, Computers and Software Engineering (AEMCSE)•Aug 7, 2024•0 citations

Applying Quantum Autoencoders for Time Series Anomaly Detection

Robin Frehner, Kurt Stockinger

Anomaly detection is an important problem with applications in various domains such as fraud detection, pattern recognition or medical diagnosis. Several algorithms have been introduced using classical computing approaches. However, using quantum computing for solving anomaly detection problems in time series data is a widely unexplored research field. This paper explores the application of quantum autoencoders to time series anomaly detection. We investigate two primary techniques for classifying anomalies: (1) Analyzing the reconstruction error generated by the quantum autoencoder and (2) latent representation analysis. Our simulated experimental results, conducted across various ansaetze, demonstrate that quantum autoencoders consistently outperform classical deep learning-based autoencoders across multiple datasets. Specifically, quantum autoencoders achieve superior anomaly detection performance while utilizing 60-230 times fewer parameters and requiring five times fewer training iterations. In addition, we implement our quantum encoder on real quantum hardware. Our experimental results demonstrate that quantum autoencoders achieve anomaly detection performance on par with their simulated counterparts.

arXiv:2410.04154•Oct 5, 2024•0 citations

Quantum Machine Learning with Enhanced Autoencoders for Intrusion Detection

Milleny Teixeira de Souza, Matheus A. Souza, Henrique Cota de Freitas

Intrusion detection remains a critical challenge in cybersecurity, particularly when dealing with high-dimensional data. In this work, we propose a hybrid quantum machine learning model that integrates a Quantum Autoencoder (QAE) for dimensionality reduction with a Quantum Neural Network (QNN) classifier. The QAE compresses input features into latent states without relying on classical methods such as Principal Component Analysis (PCA), preserving quantum-relevant information. These latent states are then classified using a Variational Quantum Circuit implemented with Qiskit. We systematically evaluated different ansatz architectures and hyperparameters on the NSL-KDD dataset. The best configuration, an EstimatorQNN with EfficientSU2 ansatz (4 repetitions), achieved an F1-score of 0.767, with balanced recall (0.70) and precision (0.84). These results highlight the potential of quantum-enhanced models for addressing the scalability challenges of intrusion detection, representing a step toward applying High-Performance Computing principles to cybersecurity.

Simpósio em Sistemas Computacionais de Alto Desempenho (SSCAD)•Oct 28, 2025•0 citations

Quantum Convolutional Autoencoders for Reconstruction-Based Anomaly Detection

Donovan Slabbert, Francesco Petruccione

Quantum convolutional neural networks (QCNNs) have become increasingly popular in quantum machine learning (QML) due to their efficient parameterization and hierarchical representation of quantum information. Anomaly detection is an important machine learning task with applications across a wide range of domains, including scientific data analysis. In this work, we adapt a QCNN architecture into a quantum autoencoder (QAE) framework for reconstruction-based anomaly detection. The models are trained in a semi-supervised manner on normal samples to reconstruct feature-extracted and dimensionally reduced time-series data, with reconstruction error used as an anomaly score. We investigate two quantum convolutional autoencoder architectures that differ in their treatment of latent information: a hierarchical architecture in which information remains distributed across the circuit and a bottleneck-based architecture in which information is explicitly compressed and reconstructed using additional decoder qubits. The size of the quantum latent space is varied to study its influence on reconstruction accuracy and anomaly detection performance. The approaches are benchmarked against both a variational quantum circuit and a comparable classical baseline using a real-world exoplanet anomaly-detection dataset. Results indicate a trade-off between latent-space size and model capacity, while also suggesting that explicit latent-space compression through a quantum bottleneck can improve anomaly detection performance relative to architectures that retain information throughout the circuit.

quant-pharXiv:2607.02135•Jul 3, 2026•0 citations
Abstract Anomaly detection in cybersecurity is a challenging task, where normal events far outnumber anomalous ones with new anomalies occurring frequently. Classical autoencoders have been used for anomaly detection, but struggles in data-limited settings which quantum counterparts can potentially overcome. In this work, we apply Quantum Autoencoders (QAEs) for anomaly detection in cybersecurity, specifically on the BPF-extended tracking honeypot (BETH) dataset. QAEs are evaluated across multiple encoding techniques, ansatz types, repetitions, and feature selection strategies. Our results demonstrate that an 8-feature QAE using Dense-Angle encoding with a RealAmplitude ansatz can outperform Classical Autoencoders (CAEs), even when trained on substantially fewer samples. The effects of quantum encoding and feature selection for developing quantum models are demonstrated and discussed. In a data-limited setting, the best performing QAE model has a F1 score of 0.87, better than that of CAE (0.77). These findings suggest that QAEs may offer practical advantages for anomaly detection in data-limited scenarios.
Abstract Anomaly detection is an important problem with applications in various domains such as fraud detection, pattern recognition, or medical diagnosis. Several algorithms have been introduced using classical computing approaches. However, using quantum computing for solving anomaly detection problems in time series data is a widely unexplored research field. This paper explores the application of quantum autoencoders to time series anomaly detection. We investigate two primary techniques for classifying anomalies: (1) Analyzing the reconstruction error generated by the quantum autoencoder and (2) latent representation analysis. Our simulated experimental results, conducted across various ansaetze, demonstrate that quantum autoencoders consistently outperform classical deep learning-based autoencoders across multiple datasets. Specifically, quantum autoencoders achieve superior anomaly detection performance while utilizing 60–230 times fewer parameters and requiring five times fewer training iterations. In addition, we implement our quantum encoder on real quantum hardware. Our experimental results demonstrate that quantum autoencoders achieve anomaly detection performance on par with their simulated counterparts.
The practical value of quantum machine learning for network anomaly detection remains unclear under controlled and comparable benchmarking conditions. This study evaluates a trash-qubit-based Quantum Autoencoder (QAE) against seven classical anomaly-detection methods on UNSW-NB15 using shared data partitions, preprocessing steps, model selection procedures, and threshold calibration protocols. The experimental design included five independent seeds, three training set sizes, two feature budgets, and 12 QAE architectures, together with low-FPR analysis, finite-shot and synthetic-noise evaluation, less-constrained classical reference settings, and a cross-dataset assessment on TON_IoT. The Angle-RY encoding with a Real-Amplitudes Ring ansatz at depth L = 2 achieved the highest mean validation-selection AUPRC. On UNSW-NB15, the QAE was competitive in AUPRC and AUROC but remained behind the strongest classical baselines in F1-score, and its attack recall declined sharply under low-FPR constraints. The TON_IoT results further showed that relative model performance depended on the dataset. Under finite-shot and synthetic-noise conditions, anomaly-score rankings were largely preserved, whereas threshold-based decisions were more sensitive. Overall, the QAE showed competitive continuous-score discrimination on UNSW-NB15, but achieving reliable detection at low false-alarm rates remains a key operational challenge.
In the NISQ era, exploring quantum approaches capable of addressing real-world data analytics tasks has been a focal point of research. The detection of anomalous images is one of the classic data processing problems that can be considered to tackle using quantum computing. Inspired by the proposal of quantum circuit autoencoders (QCAE), we design a quantum method to tackle image anomaly detection tasks. In this work, we propose a method for encoding an image into a quantum circuit. Then, we employ the QCAE model to detect the anomalous images. Moreover, we create a scoring function to predict whether test data is an outlier. Finally, combining the trained QCAE with the scoring function, we obtain an anomaly detector. We use the handwritten digit image dataset to train detectors under various training setups and validate their performance on a test set. Our method achieves an f1-score of 0.8190 and a recall of 0.8600. The experimental results demonstrate the potential of quantum computing in handling data anomalies in the classical world, encouraging further exploration of QCAE applications in practical problems.
Anomaly detection is an important problem with applications in various domains such as fraud detection, pattern recognition or medical diagnosis. Several algorithms have been introduced using classical computing approaches. However, using quantum computing for solving anomaly detection problems in time series data is a widely unexplored research field. This paper explores the application of quantum autoencoders to time series anomaly detection. We investigate two primary techniques for classifying anomalies: (1) Analyzing the reconstruction error generated by the quantum autoencoder and (2) latent representation analysis. Our simulated experimental results, conducted across various ansaetze, demonstrate that quantum autoencoders consistently outperform classical deep learning-based autoencoders across multiple datasets. Specifically, quantum autoencoders achieve superior anomaly detection performance while utilizing 60-230 times fewer parameters and requiring five times fewer training iterations. In addition, we implement our quantum encoder on real quantum hardware. Our experimental results demonstrate that quantum autoencoders achieve anomaly detection performance on par with their simulated counterparts.
Intrusion detection remains a critical challenge in cybersecurity, particularly when dealing with high-dimensional data. In this work, we propose a hybrid quantum machine learning model that integrates a Quantum Autoencoder (QAE) for dimensionality reduction with a Quantum Neural Network (QNN) classifier. The QAE compresses input features into latent states without relying on classical methods such as Principal Component Analysis (PCA), preserving quantum-relevant information. These latent states are then classified using a Variational Quantum Circuit implemented with Qiskit. We systematically evaluated different ansatz architectures and hyperparameters on the NSL-KDD dataset. The best configuration, an EstimatorQNN with EfficientSU2 ansatz (4 repetitions), achieved an F1-score of 0.767, with balanced recall (0.70) and precision (0.84). These results highlight the potential of quantum-enhanced models for addressing the scalability challenges of intrusion detection, representing a step toward applying High-Performance Computing principles to cybersecurity.
Quantum convolutional neural networks (QCNNs) have become increasingly popular in quantum machine learning (QML) due to their efficient parameterization and hierarchical representation of quantum information. Anomaly detection is an important machine learning task with applications across a wide range of domains, including scientific data analysis. In this work, we adapt a QCNN architecture into a quantum autoencoder (QAE) framework for reconstruction-based anomaly detection. The models are trained in a semi-supervised manner on normal samples to reconstruct feature-extracted and dimensionally reduced time-series data, with reconstruction error used as an anomaly score. We investigate two quantum convolutional autoencoder architectures that differ in their treatment of latent information: a hierarchical architecture in which information remains distributed across the circuit and a bottleneck-based architecture in which information is explicitly compressed and reconstructed using additional decoder qubits. The size of the quantum latent space is varied to study its influence on reconstruction accuracy and anomaly detection performance. The approaches are benchmarked against both a variational quantum circuit and a comparable classical baseline using a real-world exoplanet anomaly-detection dataset. Results indicate a trade-off between latent-space size and model capacity, while also suggesting that explicit latent-space compression through a quantum bottleneck can improve anomaly detection performance relative to architectures that retain information throughout the circuit.