Federated Learning with Quantum Computing and Fully Homomorphic Encryption: A Novel Computing Paradigm Shift in Privacy-Preserving ML

Siddhant Dutta, Pavana P Karanth, Pedro Maciel Xavier, Iago Leal de Freitas, Nouhaila Innan, Sadok Ben Ben Yahia, Muhammad Shafique, David E. Bernal Neira

TL;DR

This paper introduces FHE-FedQNN, a framework combining Quantum Federated Learning with Fully Homomorphic Encryption (FHE) to protect collaborative machine learning models against eavesdropping and inference attacks. By running Parameterized Quantum Circuits on local clients and encrypting model updates using the CKKS cryptosystem, clients can securely train hybrid quantum-classical models while a central server aggregates encrypted weights without decrypting them.

What Problem Does This Paper Address?

While Federated Learning (FL) enables decentralized training without exposing raw private data, transmitting model weights or gradients over communication channels leaves clients vulnerable to interception and reconstruction attacks. Fully Homomorphic Encryption (FHE) solves this by enabling computation directly over encrypted ciphertexts, but it traditionally introduces massive computational overhead and numerical noise.

Concurrently, Quantum Machine Learning (QML) can accelerate specialized computing tasks, and the small client-side model sizes typical in FL match the constraints of current Noisy Intermediate-Scale Quantum (NISQ) systems. The authors investigate whether integrating FHE with hybrid Quantum Neural Networks (QNNs) within an FL pipeline can achieve quantum-safe communication privacy without crippling model accuracy or inflating training time.

Methods

The proposed framework, FHE-FedQNN, integrates the following components:

  • Client-Side Quantum Neural Networks (QNNs): Each client prepares local quantum states via angle embedding using parameterized rotation gates ($R_X(\theta_i)$). The states pass through a Parameterized Quantum Circuit (PQC) composed of trainable single-qubit rotations and CNOT gates to induce entanglement. After quantum measurement, classical outputs are evaluated with Cross-Entropy loss and optimized locally using classical optimizers (e.g., AdamW).
  • Quantization and CKKS Encryption: Trained local model parameters are quantized to a fixed-precision format to reduce ciphertext payload sizes. They are then encrypted using the CKKS homomorphic encryption scheme configured for 128-bit post-quantum security (polynomial modulus degree $n = 8192$, coefficient modulus of 200 bits split across four primes [60, 40, 40, 60], and a scale factor of $2^{40}$).
  • Encrypted Server-Side Aggregation: The central server receives ciphertexts from all clients and computes a weighted average of the encrypted weights proportional to client sample counts ($\sum \frac{n_k}{n_{\text{total}}} w_k^{\text{enc}}$) entirely in the encrypted domain.
  • Client-Side Decryption: The aggregated encrypted global model is sent back to clients, who decrypt it with their secret key to initialize the next round of local training.

Datasets

The authors evaluated their framework across three image classification benchmarks:

  • CIFAR-10: 10 classes, using 48,000 training and 12,000 test samples (mapped to 6 qubits, batch size 128).
  • Brain Tumor MRI: 4 classes, with 5,700 training and 1,300 test samples (mapped to 4 qubits, batch size 32).
  • PCOS (Polycystic Ovary Syndrome): Binary classification, with 2,560 training and 640 test samples (mapped to 2 qubits, batch size 32).

No new benchmarks were introduced; all datasets were sourced from existing literature.

Key Insights and Ideas

  • FHE noise can act as regularizer: While FHE noise usually degrades precision, in the PCOS task, the FHE-enabled quantum model achieved 70.15% test accuracy, outperforming the unencrypted FedQNN baseline (66.19%) by nearly 4%. The authors hypothesize that encryption noise might help regularize smaller models and enhance generalization.
  • Minimal accuracy degradation in quantum models: On larger datasets, adding homomorphic encryption only induced a 1–2% drop in accuracy compared to non-encrypted FedQNN models (e.g., CIFAR-10 went from 72.16% to 70.12%), demonstrating that quantum circuits tolerate FHE-induced quantization and noise well.
  • Manageable training overhead: Although quantum simulation and FHE both increase latency, training time remained within practical bounds when compared to unencrypted runs (e.g., CIFAR-10 rose from 151.5 to 156.5 minutes per 20 rounds of 20 clients).

Key Results

Across 20 communication rounds with 20 clients (10 local epochs per round):

Dataset Model Variant Train Acc. Test Acc. Test Loss Time (min)
CIFAR-10 FHE-FedQNN 99.10% 70.12% 1.240 156.5
Standard FedQNN 97.15% 72.16% 1.202 151.5
FHE-FedNN (Classical) 100.00% 68.53% 1.322 136.4
Standard FedNN (Classical) 100.00% 71.09% 1.257 128.9
Brain MRI FHE-FedQNN 99.60% 88.75% 0.360 116.5
Standard FedQNN 100.00% 89.71% 0.338 110.6
FHE-FedNN (Classical) 100.00% 88.40% 0.402 98.4
Standard FedNN (Classical) 100.00% 90.36% 0.298 89.3
PCOS FHE-FedQNN 100.00% 70.15% 1.090 87.2
Standard FedQNN 100.00% 66.19% 0.611 70.9
FHE-FedNN (Classical) 100.00% 64.11% 1.379 84.3
Standard FedNN (Classical) 100.00% 65.37% 0.813 68.6

Limitations and Future Work

  • Classical Simulation Constraints: Experiments relied on classical simulations of quantum circuits. Real quantum hardware execution will face physical noise, decoherence, and connectivity restrictions.
  • Barren Plateaus: Like most variational quantum circuits, deeper PQCs risk vanishing gradients (barren plateaus), requiring more advanced ansatz designs.
  • Loss and Gradient Dynamics: The authors call for deeper investigations into gradient flow and noise propagation under FHE to better understand the trade-offs between ciphertext precision, noise amplification, and model convergence.

Summary updated

BibTeX
@inproceedings{dutta2024federated,
  author = {Siddhant Dutta and Pavana P Karanth and Pedro Maciel Xavier and Iago Leal de Freitas and Nouhaila Innan and Sadok Ben Ben Yahia and Muhammad Shafique and David E. Bernal Neira},
  title = {{Federated Learning with Quantum Computing and Fully Homomorphic Encryption: A Novel Computing Paradigm Shift in Privacy-Preserving ML}},
  booktitle = {MLNCP @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=Is6AZWd0g5},
}
Figure