Enhancing Quantum Security over Federated Learning via Post-Quantum Cryptography

Pingzhi Li, Tianlong Chen, Junyu Liu

Abstract

Federated Learning (FL) is increasingly vulnerable to poisoning attacks that could be amplified by future quantum computing capabilities. This paper explores the integration of NIST-standardized Post-Quantum Cryptography (PQC) digital signatures into the FL pipeline to secure model updates. Through empirical evaluation across vision and language tasks, we demonstrate that PQC algorithms like Dilithium can provide robust security with negligible impact on training performance, especially as model complexity increases.

Introduction

Federated Learning (FL) enables collaborative machine learning without requiring clients to share raw data. However, the transmission of local model updates to a central server introduces a significant security risk: "outsider" poisoning attacks. In these scenarios, an adversary intercepts and tampers with updates to corrupt the global model.

Currently, digital signatures such as RSA or Elliptic Curve Cryptography (ECC) protect these updates. However, the advent of large-scale quantum computers running Shor’s algorithm threatens to break these classical schemes. This research addresses the transition to Post-Quantum Cryptography (PQC)—algorithms designed to resist both classical and quantum-enabled attacks—within the FL framework.

Comparison of Pre-Quantum and Post-Quantum Federated Learning security schemes.

The PQC-Enhanced Federated Learning Protocol

The authors propose wrapping the standard FedAvg (Federated Averaging) algorithm in a PQC signature layer. The protocol follows four stages:

  1. Key Generation: Clients and the server generate PQC public-private key pairs.
  2. Model Distribution: The server signs the global model before distribution.
  3. Update Submission: Clients sign their local updates before transmission.
  4. Update Verification: The server verifies signatures; only authenticated updates are aggregated.

The study evaluates three NIST-standardized digital signature algorithms:

  • Dilithium (CRYSTALS-Dilithium): A lattice-based scheme offering balanced performance.
  • Falcon: A lattice-based scheme with compact signatures but complex implementation.
  • SPHINCS+: A stateless hash-based scheme, considered a conservative, non-lattice-based alternative.

Experimental Setup

The approach was evaluated across three distinct model scales and modalities:

  • Vision (Simple): MNIST dataset using a Multi-Layer Perceptron (MLP).
  • Vision (Complex): CIFAR-100 dataset using a ResNet-18 architecture.
  • Natural Language Processing: RTE task (GLUE benchmark) using the Pythia-70M language model.
  • Quantum Simulation: MNIST dataset using a Quantum Neural Network (QNN) simulated via TorchQuantum.

Results and Discussion

Training Dominance and Efficiency

A primary finding is the "Training Dominance" effect: as models scale (e.g., ResNet-18 or Pythia-70M), the computational overhead of PQC signatures becomes negligible. The time required for backpropagation and local training far exceeds the milliseconds needed for signing and verification.

Training loss over time for MLP, Pythia-70M, and ResNet-18 models using different PQC signature schemes.

Performance Ranking

Empirical results show a consistent speed ranking: Dilithium (Fastest) > Falcon > SPHINCS+ (Slowest). Dilithium emerged as the most practical candidate for real-world FL deployments due to its low latency. Importantly, the integration of PQC does not affect final model accuracy or convergence; it acts as a secure envelope without altering underlying gradients.

Quantum Simulation Bottlenecks

In QNN simulations, the massive overhead of simulating quantum circuits on classical hardware (GPUs) completely masked any performance differences between PQC algorithms, suggesting that for current simulated quantum research, the choice of PQC algorithm is less critical than simulation efficiency.

Conclusion

This study confirms that PQC can be integrated into Federated Learning to provide quantum-resistant security without a significant "utility tax" on training time or accuracy. Future work should address potential Man-in-the-Middle (MITM) vulnerabilities during initial key exchanges and evaluate the impact of PQC signature sizes on communication bandwidth in real-world distributed edge environments.

Summary updated

BibTeX
@inproceedings{li2024enhancing,
  author = {Pingzhi Li and Tianlong Chen and Junyu Liu},
  title = {{Enhancing Quantum Security over Federated Learning via Post-Quantum Cryptography}},
  booktitle = {TPS-ISA},
  year = {2024},
  doi = {10.1109/tps-isa62245.2024.00067},
}
Figure