Quantum Federated Learning Experiments in the Cloud with Data Encoding

Shiva Raj Pokhrel, Naman Yash, Jonathan Kua, Gang Li, Lei PanarXiv 2024 · DOI

Abstract

This paper presents a framework for Quantum Federated Learning (QFL) designed to train decentralized quantum models on sensitive, high-dimensional data without compromising privacy. Utilizing IBM’s Qiskit, the study explores amplitude encoding for efficient data compression and evaluates various weighted aggregation schemes in a cloud-based simulation environment. Results demonstrate that QFL can achieve high accuracy on genomic datasets, with specific aggregation strategies like "Best Pick" effectively filtering out low-performing client updates to enhance global model performance.

Introduction

The intersection of Quantum Computing and Federated Learning (FL) offers a promising solution for privacy-preserving machine learning on complex datasets. Traditional centralized learning requires data to be aggregated in a single location, posing significant privacy risks in fields such as genomics. Federated Learning mitigates this by keeping data local and sharing only model parameters. However, implementing FL in the quantum domain introduces challenges related to hardware accessibility and the efficient encoding of classical high-dimensional data into limited qubit spaces.

Methodology

The researchers developed a QFL framework leveraging the Variational Quantum Classifier (VQC) architecture. Each client in the federated network performs local training using a specific quantum circuit design.

Variational Quantum Classifier (VQC) Architecture

The VQC consists of several key components:

  1. Feature Map: Classical data is transformed into quantum states using RawFeatureVector() for amplitude encoding.
  2. Ansatz: A parameterized quantum circuit, specifically RealAmplitudes(), serves as the trainable layers of the model.
  3. Sampler and Optimizer: The Sampler() function evaluates the circuit, and the COBYLA optimizer iteratively updates weights to minimize Mean Squared Error (MSE) loss.
Architecture of the Variational Quantum Classifier (VQC) used for local client training.

Federated Workflow and Aggregation

The training process involves local updates followed by global parameter sharing. The authors tested three primary aggregation schemes to merge client weights into a global model:

  • Simple Averaging: Equal weighting for all client contributions.
  • Weighted Averaging: Scaling contributions based on client performance metrics.
  • Best Pick: Selecting only the top-performing clients to update the global model.
Workflow of local training, parameter sharing, and global model updates within the QFL framework.

Data Encoding and Scalability

A critical contribution of this work is the use of amplitude encoding. While other methods like basis or angle encoding are common, they scale poorly with feature count. By using amplitude encoding, the researchers successfully compressed a 200-feature genomic dataset into just 8 qubits. This efficiency is vital for practical applications on Near-Intermediate Scale Quantum (NISQ) devices.

Results and Discussion

Experiments conducted on IBM’s aer_simulator showed that the QFL framework is functional and scalable.

  • Accuracy and Loss: All aggregation schemes resulted in a tractable improvement in accuracy and a consistent decrease in loss over training epochs.
  • Aggregation Performance: The "Best Pick" strategy was particularly effective, preventing the global model from being degraded by "noisy" or poor-quality local data. In some cases, the global model surpassed the accuracy of individual clients.
  • Cloud Integration: The study demonstrates that cloud-based quantum simulators can effectively serve as a proxy for decentralized quantum hardware, providing a roadmap for future edge-based quantum deployments.

Conclusion

This research proves the feasibility of Quantum Federated Learning for sensitive, high-dimensional genomic data. By combining efficient amplitude encoding with robust aggregation strategies, the framework maintains data privacy while achieving competitive model performance. Future work will focus on transitioning from simulators to physical NISQ hardware, addressing challenges such as quantum decoherence and resource contention in cloud environments.

Summary updated

BibTeX
@misc{pokhrel2024quantum,
  author = {Shiva Raj Pokhrel and Naman Yash and Jonathan Kua and Gang Li and Lei Pan},
  title = {{Quantum Federated Learning Experiments in the Cloud with Data Encoding}},
  year = {2024},
  eprint = {2405.00909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.00909},
}
Figure