QFNN-FFD: Quantum Federated Neural Network for Financial Fraud Detection

Nouhaila Innan, Alberto Marchisio, Mohamed Bennai, Muhammad Shafique · DOI

TL;DR

The QFNN-FFD framework introduces a novel marriage between Quantum Machine Learning (QML) and Federated Learning (FL) to tackle financial fraud. By keeping sensitive data localized on client devices and leveraging quantum circuits for pattern recognition, it achieves a remarkable 95% precision while ensuring robust data privacy and resilience against quantum noise.

What Problem Does This Paper Address?

Financial institutions face a double-edged sword: they need to analyze massive amounts of transaction data to detect increasingly sophisticated fraud, yet they are bound by strict privacy regulations (like GDPR) and the inherent risk of centralized data breaches. Traditional machine learning often requires pooling data into a single server—a "single point of failure" for privacy.

While Quantum Machine Learning (QML) offers the potential for superior pattern recognition in complex datasets, most existing QML research ignores the privacy dimension. The authors address this gap by creating a decentralized quantum framework that allows multiple institutions to collaborate on a fraud detection model without ever sharing their raw, sensitive customer data.

Methods

The core of the proposal is the Quantum Federated Neural Network (QFNN). The architecture operates in a dual-phase training cycle:

  1. Local Training: Each client (e.g., a bank) possesses its own local dataset. They encode classical transaction features into quantum states using angle encoding (mapping data to qubit rotation angles). A Quantum Neural Network (QNN) circuit, consisting of rotation gates and CNOT gates for entanglement, processes this data locally.
  2. Global Aggregation: Instead of sending raw data, clients send only the optimized model parameters ($\theta_i$) to a central server. The server aggregates these using a weighted average to update a "Global Model," which is then broadcast back to clients for the next iteration.

The authors utilized the PennyLane library for the quantum architecture and IBM’s Qiskit to simulate realistic quantum environments, including various noise models. To optimize the QNN, they employed the Adam optimizer and the parameter-shift rule for precise gradient calculations.

Fig. 3: Schematic representation of the FL architecture. The diagram shows multiple users (clients), each with their local dataset, independently training local models. These models are then transmitted as model updates to a central server. The server aggregates these updates to improve the global model, which is then distributed back to the users for further refinement. This cycle ensures data privacy and security, as raw data never leaves the local premises of each user.

Datasets

The framework was evaluated using the IEEE-CIS Fraud Detection dataset, a benchmark containing large-scale, real-world transaction data with both numerical and categorical features. The authors performed significant preprocessing, including:

  • Memory optimization of data types.
  • One-hot encoding for categorical variables.
  • Standardization of numerical features.
  • Up-sampling to address the heavy class imbalance (fraudulent transactions are much rarer than legitimate ones).

Key Insights and Ideas

  • The Privacy-Performance Synergy: Interestingly, the study found that Federated Learning doesn't just provide privacy; it can actually improve performance. As shown in Figure 1, Quantum Federated Learning (QFL) consistently showed slight accuracy improvements over standalone QML across multiple domains, including finance, IoT, and healthcare.
  • Noise Resilience is Key: In the current "NISQ" (Noisy Intermediate-Scale Quantum) era, hardware is prone to errors. The authors tested QFNN-FFD against six different noise models (like bitflip and depolarizing noise). They discovered the model is exceptionally robust against phaseflip and bitphaseflip noise, maintaining over 90% accuracy even at high noise levels.
  • Early Exit Potential: The training metrics showed that the model reaches a performance plateau very quickly (around iteration 35). This suggests that institutions could implement "early exit" strategies to save significant computational resources without sacrificing detection quality.
Comparison of ML and FL accuracies across various fields, highlighting the performance boost provided by the federated approach.

Key Results

  • High Accuracy: The QFNN-FFD achieved a 95% accuracy and precision rate, outperforming standalone QNNs (93%) and several other existing QML benchmarks for fraud detection.
  • Error Reduction: The validation loss dropped significantly from an initial 0.275 to a mere 0.02, indicating a high degree of confidence in the model's predictions.
  • Robustness: Even under challenging noise conditions, the framework maintained a baseline accuracy of approximately 80%, proving its readiness for near-term quantum hardware.
Fig. 2: The QFNN-FFD process flow. The diagram outlines the end- to-end workflow from input through to output. Datasets are processed and fed into the QFNN-FFD, built upon the PennyLane library. The model undergoes training and testing for 100 iterations, incorporating a variety of noise models using noise simulators from IBM’s Qiskit. The quantum simulator within PennyLane is utilized to emulate a quantum environment. The output is evaluated based on performance metrics, including accuracy, precision, recall, F1 score, and mean squared error loss, providing a comprehensive assessment of the model’s capability to detect fraudulent transactions.

Limitations and Future Work

While promising, the framework currently relies on quantum simulators rather than large-scale physical quantum hardware. The authors acknowledge that as quantum hardware matures, further research into quantum error correction and noise mitigation will be vital to maintain these high performance levels on real devices.

Future work could also explore scaling the framework to handle even larger qubit counts and more complex, non-IID (non-identically and independently distributed) data scenarios, which are common in global financial networks where different regions have vastly different transaction patterns.

Summary updated

Abstract

This study introduces the Quantum Federated Neural Network for Financial Fraud Detection (QFNN-FFD), a cutting-edge framework merging Quantum Machine Learning (QML) and quantum computing with Federated Learning (FL) for financial fraud detection. Using quantum technologies' computational power and the robust data privacy protections offered by FL, QFNN-FFD emerges as a secure and efficient method for identifying fraudulent transactions within the financial sector. Implementing a dual-phase training model across distributed clients enhances data integrity and enables superior performance metrics, achieving precision rates consistently above 95%. Additionally, QFNN-FFD demonstrates exceptional resilience by maintaining an impressive 80% accuracy, highlighting its robustness and readiness for real-world applications. This combination of high performance, security, and robustness against noise positions QFNN-FFD as a transformative advancement in financial technology solutions and establishes it as a new benchmark for privacy-focused fraud detection systems. This framework facilitates the broader adoption of secure, quantum-enhanced financial services and inspires future innovations that could use QML to tackle complex challenges in other areas requiring high confidentiality and accuracy.
BibTeX
@inproceedings{innan2025qfnn,
  author = {Nouhaila Innan and Alberto Marchisio and Mohamed Bennai and Muhammad Shafique},
  title = {{QFNN-FFD: Quantum Federated Neural Network for Financial Fraud Detection}},
  booktitle = {QSW},
  year = {2025},
  doi = {10.1109/qsw67625.2025.00015},
}
Figure