Privacy-preserving Decentralized Deep Learning with Multiparty Homomorphic Encryption

Guowen Xu, Guanlin Li, Shangwei Guo, Tianwei Zhang, Hongwei LiarXiv 2022

Abstract

Decentralized deep learning plays a key role in collaborative model training due to its attractive properties, including tolerating high network latency and less prone to single-point failures. Unfortunately, such a training mode is more vulnerable to data privacy leaks compared to other distributed training frameworks. Existing efforts exclusively use differential privacy as the cornerstone to alleviate the data privacy threat. However, it is still not clear whether differential privacy can provide a satisfactory utility-privacy trade-off for model training, due to its inherent contradictions. To address this problem, we propose D-MHE, the first secure and efficient decentralized training framework with lossless precision. Inspired by the latest developments in the homomorphic encryption technology, we design a multiparty version of Brakerski-Fan-Vercauteren (BFV), one of the most advanced cryptosystems, and use it to implement private gradient updates of users' local models. D-MHE can reduce the communication complexity of general Secure Multiparty Computation (MPC) tasks from quadratic to linear in the number of users, making it very suitable and scalable for large-scale decentralized learning systems. Moreover, D-MHE provides strict semantic security protection even if the majority of users are dishonest with collusion. We conduct extensive experiments on MNIST and CIFAR-10 datasets to demonstrate the superiority of D-MHE in terms of model accuracy, computation and communication cost compared with existing schemes.

The Privacy Challenge in Decentralized Learning

Decentralized Deep Learning (DDL) is attractive because it eliminates the need for a central server, making it robust against single-point failures and network latency. However, as illustrated in the comparison of architectures below, the peer-to-peer nature of DDL is a privacy minefield: users must share gradients directly with their neighbors, and an adversary can often reconstruct original training data from these shared gradients.

Comparison of centralized (a), federated (b), and decentralized (c) learning architectures.

Existing solutions fall short of providing a perfect balance. Differential Privacy (DP) adds noise to gradients, which inevitably degrades model accuracy. Secure Multi-Party Computation (MPC) is often extremely inefficient in decentralized settings because it usually requires $O(N^2)$ communication interactions among $N$ users. Standard Homomorphic Encryption (HE) is either too computationally expensive or requires a trusted party to hold the decryption key, which contradicts the decentralized ethos.

The $D^2$-MHE Framework

The core of this research is the Multiparty BFV (MBFV) cryptosystem. The authors extend the standard BFV scheme so that the decryption capability is distributed across all $N$ users. No single user holds the master secret key; instead, it is shared additively.

The iterative process of decentralized training in $D^2$-MHE, showing encrypted gradient exchange and model updates across nodes.

Key technical innovations include:

  • Four New MBFV Functions: Specific protocols for secret key generation, public key generation, distributed bootstrapping (to refresh noisy ciphertexts), and ciphertext conversion.
  • Ciphertext Conversion (MBFV.Convert): This allows a ciphertext encrypted under the collective system key to be transformed into a new ciphertext that a specific recipient can decrypt with their own local secret key. This happens "obliviously," meaning no private information is leaked during the transition.
  • Linear Communication Complexity: By using a common public key for encryption and broadcasting ciphertexts, $D^2$-MHE reduces the communication overhead from the $O(N^2)$ typical of MPC to $O(N)$.

Experimental Evaluation

The authors evaluated their framework using two standard image classification benchmarks: MNIST (handwritten digits) and CIFAR-10 (complex color images).

Key Results

  • Lossless Accuracy: $D^2$-MHE achieved 91.18% accuracy on MNIST and 68.25% on CIFAR-10, nearly identical to the non-private baseline (92.43% and 68.32% respectively). In contrast, DP-based methods like LEASGD saw accuracy drops of 4-8%.
  • Computation Speedup: Compared to Threshold Paillier-HE, $D^2$-MHE is significantly faster. For CIFAR-10 with 4096-bit keys, $D^2$-MHE took ~133 seconds per iteration vs. ~726 seconds for Paillier-HE.
  • Communication Efficiency: In MNIST tests with 100 users, $D^2$-MHE required only 56.7 MB of total communication per user, whereas the MPC-based COPML required 707.7 MB.

Conclusion and Future Work

$D^2$-MHE demonstrates that it is possible to achieve high-precision, privacy-preserving decentralized learning without the quadratic communication costs of traditional MPC. While the "HE tax" remains—making it slower than plaintext training—the linear scaling and collusion resistance make it a viable path for large-scale decentralized networks. Future work will focus on further optimizing HE primitives to reduce the CPU load on individual user devices and exploring performance in highly dynamic network topologies.

Summary updated

BibTeX
@misc{xu2022privacy,
  author = {Guowen Xu and Guanlin Li and Shangwei Guo and Tianwei Zhang and Hongwei Li},
  title = {{Privacy-preserving Decentralized Deep Learning with Multiparty Homomorphic Encryption}},
  year = {2022},
  eprint = {2207.04604},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.04604},
}
Figure