Federated Quantum Machine Learning with Differential Privacy

Rod Rofougaran, Shinjae Yoo, Huan-Hsin Tseng, Samuel Yen-Chi Chen

This paper, titled "Federated Quantum Machine Learning with Differential Privacy," presents a hybrid framework designed to make artificial intelligence more secure by combining the decentralized nature of Federated Learning (FL) with the formal privacy guarantees of Differential Privacy (DP), all while leveraging the unique properties of quantum circuits.

TL;DR

The researchers developed a hybrid quantum-classical machine learning system that protects sensitive data using both Federated Learning and Differential Privacy. By using a pre-trained classical model to "shrink" image data for a 4-qubit quantum circuit, they achieved over 98% accuracy on the Cats vs. Dogs dataset while maintaining a strong privacy budget ($\epsilon < 1.3$).

What Problem Does This Paper Address?

As AI moves into sensitive domains like healthcare and finance, privacy is paramount. Two major threats exist:

  1. Data Leakage: Centralized servers holding all training data are massive targets for breaches.
  2. Model Inversion Attacks: Even if the data stays local, an attacker can sometimes "reverse-engineer" the training data by analyzing the model's gradients or outputs.

While Federated Learning (FL) solves the first problem by keeping data on local devices, it remains vulnerable to the second. Differential Privacy (DP) adds mathematical noise to prevent individual data points from being identified, but implementing this on Noisy Intermediate-Scale Quantum (NISQ) devices—which are already limited by hardware noise and low qubit counts—is a significant technical challenge.

Methods

The authors propose a QFL-DP (Quantum Federated Learning with Differential Privacy) framework. The key technical components include:

  • Hybrid Transfer Learning: Since current quantum computers cannot process high-resolution images directly, the authors used a pre-trained classical VGG16 model. This model acts as a feature extractor, reducing the dimensionality of the images before passing them into the quantum circuit.
  • Variational Quantum Circuits (VQC): The classification is handled by a 4-qubit VQC. It uses $R_y$ and $R_z$ gates for data encoding, CNOT gates for entanglement, and learnable unitary gates $R(\alpha, \beta, \gamma)$ for the "training" part.
  • DP-SGD Integration: They integrated the Differential Privacy Stochastic Gradient Descent (DP-SGD) algorithm into the federated loop. This involves clipping gradients (to bound the influence of any single image) and adding Gaussian noise to the local updates before they are sent to the global model.
  • Privacy Accounting: They used the "moments accountant" method to track the cumulative privacy loss ($\epsilon$) across multiple training rounds.

Datasets

The study utilized the Cats vs. Dogs dataset, consisting of 23,000 images.

  • The data was distributed among 100 virtual clients.
  • In each training round, a random subset of 5 clients was selected to update the global model.

Key Insights and Ideas

  • Quantum Advantage in Privacy: The authors highlight that quantum states are inherently secure due to the no-cloning theorem—an eavesdropper cannot copy a quantum state without disturbing it. Furthermore, previous research suggests that quantum encoding can actually amplify differential privacy.
  • Noise as a Feature, Not a Bug: In the NISQ era, quantum hardware is notoriously noisy. This paper suggests that we can leverage this inherent noise to our advantage by incorporating it into the differential privacy framework.
  • The Convergence Trade-off: Differentially private training converges more slowly and with higher variance than non-private training. However, the authors found that increasing the number of local epochs per round can help speed up convergence without necessarily ruining the privacy budget.

Key Results

  • High Accuracy: The model achieved a test accuracy of over 0.98, which is remarkably high for a hybrid quantum system on an image classification task.
  • Strong Privacy Guarantees: The system maintained an epsilon ($\epsilon$) value of approximately 1.24 (with $\delta = 10^{-5}$). In DP terms, a lower $\epsilon$ means stronger privacy; values near 1.0 are generally considered very robust.
  • Noise Resilience: The researchers tested different noise scales ($\sigma = 0.15, 1, 4$). While higher noise (better privacy) led to slower convergence, all models eventually reached approximately the same 98% accuracy plateau.

Limitations and Future Work

  • Task Simplicity: The "Cats vs. Dogs" task, while a standard benchmark, is relatively simple for modern feature extractors like VGG16. The authors acknowledge the need to test the framework on more complex, high-dimensional tasks.
  • Classical Dependency: The model relies heavily on a pre-trained classical VGG16 for dimensionality reduction. A "purer" quantum approach would require more advanced quantum data compression or more qubits than are currently practical.
  • Comparative Benchmarking: While the results are impressive, the paper does not provide a direct head-to-head comparison against a purely classical DP-FL model of similar size to quantify exactly how much the "quantum" component adds to the utility-privacy trade-off.

Summary updated

BibTeX
@inproceedings{rofougaran2024federated,
  author = {Rod Rofougaran and Shinjae Yoo and Huan-Hsin Tseng and Samuel Yen-Chi Chen},
  title = {{Federated Quantum Machine Learning with Differential Privacy}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=Lr7rt2fMzW},
}
Figure