ESAFL: Efficient Secure Additively Homomorphic Encryption for Cross-Silo Federated Learning

Jiahui Wu, Weizhe Zhang, Fucai Luo

TL;DR

This paper introduces ESAFL, a novel federated learning protocol that uses a new homomorphic encryption scheme (ESHE) to protect client data privacy without sacrificing accuracy. ESAFL significantly speeds up training and reduces communication overhead compared to existing secure federated learning methods, making it more practical for real-world applications.

What Problem Does This Paper Address?

Federated learning (FL) allows multiple parties to collaboratively train a machine learning model without sharing their raw data, which is crucial for privacy. However, existing FL methods face challenges in protecting sensitive data from both untrusted third parties (like cloud servers) and other clients. Traditional homomorphic encryption (HE) methods, like single-key HE (SKHE), require clients to fully trust each other to prevent privacy leaks. Multi-key HE (MKHE) addresses this by using different keys per client but introduces new privacy risks for training results and suffers from high computational and communication costs. This paper tackles the need for a federated learning solution that offers strong privacy guarantees against both untrusted clients and servers, while also being computationally and communicationally efficient.

Methods

The core of ESAFL is a new additively homomorphic encryption (HE) algorithm called ESHE. ESHE is built upon the Ring Learning With Errors (RLWE) problem, offering security against collusion of up to N-2 clients. Key features of ESHE include:

  • Multi-key Encryption: Clients encrypt their local gradients using their own secret keys, preventing other clients or the server from decrypting individual contributions.
  • One-Step Decryption: Unlike some MKHE schemes that require multiple decryption steps and client interaction, ESHE allows for a single-step decryption process by clients holding the decryption key.
  • Pseudorandom Polynomial Generation: A novel pseudorandom polynomial generation algorithm (HE.PRPG) allows clients to generate the same primary random element locally for encryption without extra communication, ensuring multi-round privacy.
  • Polynomial Packing: To improve efficiency, ESHE employs a polynomial packing technique. This method encodes multiple real-valued gradients into a single polynomial, reducing the number of encryption operations and the size of ciphertexts. Fast Fourier Transform (FFT) is used to accelerate polynomial multiplications.

Datasets

The paper evaluates ESAFL on three standard datasets:

  • FMNIST: Used for training a fully-connected neural network (FCN).
  • CIFAR10: Used for training an AlexNet model.
  • Shakespeare: Used for training an LSTM model.

These datasets represent common benchmarks for evaluating machine learning models in different domains.

Key Insights and Ideas

  • Bridging the Gap: ESAFL effectively bridges the gap between SKHE (simple but less secure against client collusion) and MKHE (more secure against collusion but complex and potentially leaky for results).
  • Efficiency Through Packing: The polynomial packing technique is a crucial innovation, significantly reducing the computational and communication overhead associated with HE in FL.
  • Practical Privacy: The one-step decryption and local generation of random elements make ESAFL more practical for real-world deployment by minimizing client interaction and communication burdens.
  • No Accuracy Loss: A key finding is that ESHE, even with its privacy-enhancing features and packing, does not negatively impact model prediction accuracy.

Key Results

  • Speedup: ESAFL achieves significant training speedups, ranging from approximately 204x to 953x compared to state-of-the-art SKHE-based FL models (BatchCrypt and FATE).
  • Communication Reduction: Communication traffic is drastically reduced, by 77x to 109x compared to BatchCrypt and FATE.
  • Efficiency vs. Plain FL: While ESAFL introduces some overhead compared to plain FL (no encryption), the slowdown is minimal, with training time increasing by only 1.25x to 2x and communication traffic by 1.25x to 2x.
  • Robustness: ESAFL is shown to be secure against collusion of up to N-2 clients.
  • Accuracy Preservation: Experimental results show that ESAFL with packing has negligible impact on model accuracy, with errors close to zero.

Limitations and Future Work

  • Trusted AS Assumption: The system model initially assumes a trusted Administration Server (AS) for parameter and key generation. However, the paper notes that clients can also generate these using MPC techniques if an AS is not available.
  • Future Work: The authors plan to extend ESHE to fully homomorphic encryption and integrate it into cross-silo FL for secure nonlinear aggregation. This would make FL more robust to heterogeneous clients with varying dataset sizes, distributions, computing power, and communication bandwidth.

Summary updated

BibTeX
@article{wu2023esafl,
  author = {Jiahui Wu and Weizhe Zhang and Fucai Luo},
  title = {{ESAFL: Efficient Secure Additively Homomorphic Encryption for Cross-Silo Federated Learning}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2023},
}
Figure