Secure Aggregation in Federated Learning using Multiparty Homomorphic Encryption

Erfan Hosseini, Shuangyi Chen, Ashish KhistiarXiv 2025

Abstract

A key operation in federated learning is the aggregation of gradient vectors generated by individual client nodes. We develop a method based on multiparty homomorphic encryption (MPHE) that enables the central node to compute this aggregate, while receiving only encrypted version of each individual gradients. Towards this end, we extend classical MPHE methods so that the decryption of the aggregate vector can be successful even when only a subset of client nodes are available. This is accomplished by introducing a secret-sharing step during the setup phase of MPHE when the public encryption key is generated. We develop conditions on the parameters of the MPHE scheme that guarantee correctness of decryption and (computational) security. We explain how our method can be extended to accommodate client nodes that do not participate during the setup phase. We also propose a compression scheme for gradient vectors at each client node that can be readily combined with our MPHE scheme and perform the associated convergence analysis. We discuss the advantages of our proposed scheme with other approaches based on secure multi-party computation. Finally we discuss a practical implementation of our system, compare the performance of our system with different approaches, and demonstrate that by suitably combining compression with encryption the overhead over baseline schemes is rather small.

Introduction

In Federated Learning (FL), a central server aggregates model updates (gradients) from distributed clients to train a global model. While raw data remains local, gradients can still leak sensitive information. Secure Aggregation (SA) addresses this by ensuring the server only observes the sum of gradients. However, existing SA methods often struggle with three primary challenges: the dropout problem (where offline clients prevent decryption), static populations (difficulty in adding new users), and the curse of dimensionality (high communication costs for large models).

Methodology: Robust Secure Aggregation (RSA)

The proposed Robust Secure Aggregation (RSA) framework addresses these challenges through two primary innovations: Threshold Multiparty Homomorphic Encryption (MPHE) and efficient gradient compression.

1. Threshold MPHE via Secret Sharing

Instead of a single secret key, RSA utilizes a collective public key. During a one-time setup phase, clients employ Shamir’s $(N, k)$ Secret Sharing to distribute pieces of the collective secret key. This ensures that as long as at least $k$ clients remain online during the decryption phase, the server can reconstruct the aggregate gradient, providing robustness against client dropouts. To maintain privacy, clients provide decryption shares masked with "smudging noise," a cryptographic technique that hides individual secrets while allowing the final sum to be decrypted.

Table of notation and symbols used in the RSA framework.

2. Sign-quantization Random Linear Compressor (SRLC)

To mitigate the communication overhead of high-dimensional gradients, RSA introduces the Sign-quantization Random Linear Compressor (SRLC). This technique is designed to be "homomorphic-friendly" by using a Random Linear Compressor (RLC) to project gradients into a lower-dimensional space. One-bit sign quantization is then applied. Because these operations are linear, they preserve the additive properties required for BFV homomorphic encryption, allowing the server to sum compressed, encrypted values directly.

Complexity and Efficiency

A major advantage of RSA is its efficiency over multiple training iterations. Unlike adaptive schemes that require complex re-setup when users drop out, RSA performs a single $O(N^2)$ setup. All subsequent training iterations scale linearly with the number of clients $O(N)$, making it highly suitable for long-term training processes.

Computational and communication complexity of the RSA protocol phases.

Experimental Results

The framework was evaluated using MNIST and CIFAR-10 benchmarks. Key findings include:

  • Scalability: In tests with 200 clients, RSA demonstrated linear scaling in iteration time, significantly outperforming quadratic-scaling protocols.
  • Compression Gains: For the EfficientNetB4 model (~17.5M parameters), SRLC reduced compression time from ~20 seconds to 0.25 seconds per epoch.
  • Accuracy: RSA achieved 95.20% accuracy on CIFAR-10, nearly matching the 95.48% accuracy of uncompressed, non-secure baselines.
  • Robustness: The system successfully decrypted aggregates even with a 50% client dropout rate.

Conclusion

RSA provides a robust and scalable solution for secure aggregation in FL. While currently optimized for a semi-honest model, future work will explore defenses against malicious actors and further refinements to quantization noise to bridge the remaining accuracy gap.

Summary updated

BibTeX
@misc{hosseini2025secure,
  author = {Erfan Hosseini and Shuangyi Chen and Ashish Khisti},
  title = {{Secure Aggregation in Federated Learning using Multiparty Homomorphic Encryption}},
  year = {2025},
  eprint = {2503.00581},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.00581},
}
Figure