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• 4 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

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

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•32 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•6 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•2 citations

Anomaly Detection Based on Quantum Autoencoder

Siqi Li, Zikun Zhang, Xun Zhu +2 more

Quantum autoencoder (QAE) is a key tool in quantum machine learning and can be applied to areas such as dimensionality reduction and feature extraction [1]. Anomaly detection identifies deviations from normal patterns, which is crucial yet challenging due to the need to detect risks while minimizing false positives [2]. We propose a QAE-based anomaly detection scheme using an optical quantum neural network. Figure 1 (A) shows the basic structure of the QAE: the encoder compresses the input quantum state into a low-dimensional latent space, and the decoder reconstructs the original quantum state from the latent space. QAE-based anomaly detection works by learning the low-dimensional features of normal data and minimizing its reconstruction error. Normal data can be well reconstructed, while anomalous data exhibits a larger reconstruction error. When the reconstruction error of test data exceeds a set threshold, it is classified as anomalous. We constructed the QAE using an optical quantum neural network consisting of 50:50 beam splitters and controllable phase shifters [3]. Due to the unitary matrix property, only the encoder needs to be trained, and the decoder is simply the conjugate transpose of the encoder. To compress an N-dimensional quantum state$\rho$into${K}$dimensions, efficient compression can be achieved by minimizing the expectation value of the projection onto the trash state, given by$C(\theta,\phi)=Tr\left(PU(\theta,\phi)\rho U^+(\theta,\phi)\right)$[4]. Here,$P=(I_{K}\oplus\vert 0\rangle^{\otimes N-K}\langle 0\vert ^{\otimes(N-K)})$represents the projection onto the trash state,$I_{K}$is the K-dimensional identity matrix,$\vert 0\rangle^{\otimes(N-K)}\text{is}$the trash state,$Tr$denotes the trace,$U(\theta,\phi)$is the encoder with adjustable parameters, and$U\dagger(\theta_,\phi)$is the decoder. We only need to train the encoder during the training process, and the decoder is simply its conjugate transpose.

Conference on Lasers and Electro-Optics Europe & European Quantum Electronics Conference (CLEO/Europe-EQEC)•Jun 23, 2025•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.
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.
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.
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 autoencoder (QAE) is a key tool in quantum machine learning and can be applied to areas such as dimensionality reduction and feature extraction [1]. Anomaly detection identifies deviations from normal patterns, which is crucial yet challenging due to the need to detect risks while minimizing false positives [2]. We propose a QAE-based anomaly detection scheme using an optical quantum neural network. Figure 1 (A) shows the basic structure of the QAE: the encoder compresses the input quantum state into a low-dimensional latent space, and the decoder reconstructs the original quantum state from the latent space. QAE-based anomaly detection works by learning the low-dimensional features of normal data and minimizing its reconstruction error. Normal data can be well reconstructed, while anomalous data exhibits a larger reconstruction error. When the reconstruction error of test data exceeds a set threshold, it is classified as anomalous. We constructed the QAE using an optical quantum neural network consisting of 50:50 beam splitters and controllable phase shifters [3]. Due to the unitary matrix property, only the encoder needs to be trained, and the decoder is simply the conjugate transpose of the encoder. To compress an N-dimensional quantum stateρ\rhoρintoK{K}Kdimensions, efficient compression can be achieved by minimizing the expectation value of the projection onto the trash state, given byC(θ,ϕ)=Tr(PU(θ,ϕ)ρU+(θ,ϕ))C(\theta,\phi)=Tr\left(PU(\theta,\phi)\rho U^+(\theta,\phi)\right)C(θ,ϕ)=Tr(PU(θ,ϕ)ρU+(θ,ϕ))[4]. Here,P=(IK⊕∣0⟩⊗N−K⟨0∣⊗(N−K))P=(I_{K}\oplus\vert 0\rangle^{\otimes N-K}\langle 0\vert ^{\otimes(N-K)})P=(IK​⊕∣0⟩⊗N−K⟨0∣⊗(N−K))represents the projection onto the trash state,IKI_{K}IK​is the K-dimensional identity matrix,∣0⟩⊗(N−K)is\vert 0\rangle^{\otimes(N-K)}\text{is}∣0⟩⊗(N−K)isthe trash state,TrTrTrdenotes the trace,U(θ,ϕ)U(\theta,\phi)U(θ,ϕ)is the encoder with adjustable parameters, andU†(θ,ϕ)U\dagger(\theta_,\phi)U†(θ,​ϕ)is the decoder. We only need to train the encoder during the training process, and the decoder is simply its conjugate transpose.