DHSA: efficient doubly homomorphic secure aggregation for cross-silo federated learning

Zizhen Liu, Si Chen, Jing Ye, Junfeng Fan, Huawei Li, Xiaowei Li

TL;DR

DHSA (Doubly Homomorphic Secure Aggregation) is a new protocol for cross-silo Federated Learning that achieves high-level security without the massive computational overhead typical of encryption. By combining Multi-Key Homomorphic Encryption (MKHE) with a "Seed Homomorphic" Pseudo-Random Generator, it offers a 20× speedup over state-of-the-art encrypted methods while remaining secure even if the server colludes with almost all participants.

What Problem Does This Paper Address?

In Federated Learning (FL), multiple parties (silos) train a model together without sharing their raw data. However, sharing "model updates" (gradients) isn't perfectly private; sophisticated attacks can actually reconstruct original training data from these updates.

To prevent this, researchers use Secure Aggregation. Existing solutions usually fall into two camps:

  1. Secure Multi-Party Computation (SMC): Fast, but often requires a "Trust Third Party" (TTP) or breaks down if too many participants drop out or collude.
  2. Homomorphic Encryption (HE): Very secure, but incredibly slow and bandwidth-heavy when dealing with modern neural networks containing millions of parameters.

The challenge is particularly acute in "cross-silo" FL (e.g., several hospitals or banks collaborating), where privacy requirements are stringent, a TTP is rarely available, and the models are large.

Methods

The authors introduce a "doubly homomorphic" approach that splits the security workload into two layers:

  • Layer 1: Homomorphic Model Aggregation (HMA). Instead of encrypting the entire model with heavy HE, each client masks their update using a Seed Homomorphic Pseudo-Random Generator (SHPRG). This generator is "almost" additive: if you add two seeds, the resulting output is roughly the sum of the outputs of the individual seeds. This allows the server to aggregate masked models very efficiently.
  • Layer 2: Masking Seed Agreement (MSA). To unmask the final aggregate, the clients need the sum of all their seeds. This is where Multi-Key Homomorphic Encryption (MKHE) comes in. Because seeds are tiny compared to model gradients, the heavy math of MKHE is only applied to a small amount of data.

What’s New? The novelty lies in using the SHPRG to "offload" the bulk of the computation from the MKHE. Additionally, the authors utilize the Compact MK-BFV scheme, which allows clients to perform the final decryption themselves, ensuring the server never sees the unmasked global model.

Datasets

The authors evaluated DHSA across three distinct tasks to prove its versatility:

  • Fashion-MNIST: A CNN (0.2M parameters) for image classification.
  • CIFAR10: A ResNet18 model (11M parameters) for more complex image recognition.
  • Shakespeare: A customized LSTM (1.25M parameters) for text generation.

Key Insights and Ideas

  • The "Seed" Shortcut: The "Aha!" moment is realizing that we don't need to encrypt the model if we can securely agree on the masks. By making the mask generator homomorphic, the server can sum up encrypted "noise" that cancels out perfectly once the aggregate seed is revealed.
  • Avoiding the TTP: Most cross-silo solutions rely on a Trusted Third Party to manage keys. By using MKHE, DHSA allows each silo to hold its own secret key while still contributing to a joint computation.
  • Efficiency through Packing: The protocol uses BFV’s SIMD (Single Instruction, Multiple Data) packing to process masking seeds for multiple training epochs in a single communication round, drastically reducing overhead.

Key Results

  • Speed: DHSA achieved up to a 20× speedup in aggregation time compared to BatchCrypt, a leading HE-based secure aggregation framework.
  • Communication: The "traffic inflation" (the extra data sent due to security) was only about 1.5× that of plain, unencrypted learning. For comparison, other MKHE methods like POSEIDON can see much higher overheads on large models.
  • Security: It maintains a high collusion threshold ($N-2$), meaning even if the server and all but two clients are "honest-but-curious" and share information, they still cannot steal an individual client's data.
  • Accuracy: There was no compromise on model accuracy; the "noise" introduced by the SHPRG is negligible and doesn't hinder convergence.

Limitations and Future Work

  • Honest-but-Curious Model: The paper assumes participants follow the protocol but try to learn extra info (honest-but-curious). It does not explicitly address "malicious" actors who might send intentionally corrupted gradients to poison the model.
  • Static Participant Set: The current design is optimized for cross-silo settings where the number of participants is small and stable. Adapting this to "cross-device" FL (millions of mobile phones that frequently drop offline) would require significant changes to the MSA protocol.
  • Quantization Dependency: To work with the cryptographic primitives, model weights must be quantized (e.g., to 16-bit integers). While this didn't hurt accuracy in their tests, extremely sensitive models might require higher precision.

Summary updated

BibTeX
@article{liu2023dhsa,
  author = {Zizhen Liu and Si Chen and Jing Ye and Junfeng Fan and Huawei Li and Xiaowei Li},
  title = {{DHSA: efficient doubly homomorphic secure aggregation for cross-silo federated learning}},
  journal = {Journal of Supercomputing},
  year = {2023},
  url = {https://openreview.net/forum?id=OD77vYJuPK},
}
Figure