TernaryVote: Differentially Private, Communication Efficient, and Byzantine Resilient Distributed Optimization on Heterogeneous Data

Richeng Jin, Yujie Gu, Kai Yue, Xiaofan He, Zhaoyang Zhang, Huaiyu DaiarXiv 2024 · DOI

Introduction

Distributed learning, particularly Federated Learning (FL), faces a "triple threat": the need for data privacy, the constraint of limited communication bandwidth, and the vulnerability to malicious (Byzantine) participants. While these issues are often addressed in isolation, real-world deployments require a unified solution. This paper introduces TernaryVote, an algorithm designed to simultaneously provide formal privacy guarantees, high communication efficiency, and robustness against adversarial attacks, even in heterogeneous data environments.

The Challenges of Distributed Optimization

Training large-scale models across distributed nodes introduces three primary hurdles:

  1. Privacy Preservation: Local datasets often contain sensitive information. Differential Privacy (DP) is the gold standard for ensuring that individual data points cannot be reconstructed from shared model updates.
  2. Communication Efficiency: Modern deep learning models involve millions of parameters. Transmitting full-precision gradients creates significant bandwidth bottlenecks.
  3. Byzantine Resilience: Distributed systems are susceptible to "Byzantine" workers—nodes that may be faulty or intentionally malicious, sending poisoned updates to disrupt training.

Existing methods like signSGD offer compression and some robustness but struggle with non-IID (heterogeneous) data and often suffer from the "curse of dimensionality" in DP settings, where privacy guarantees degrade rapidly as model size ($d$) increases.

The TernaryVote Mechanism

TernaryVote addresses these challenges through two core components:

  • Ternary Stochastic Compressor: Instead of binary signs, gradients are compressed into $\{-1, 0, 1\}$. The inclusion of the "0" state allows for gradient sparsification, which is key to privacy amplification.
  • Majority Vote Aggregation: The server aggregates these ternary updates using a coordinate-wise majority vote, providing a robust global update.

Theoretical Advancement: $f$-Differential Privacy

TernaryVote utilizes the $f$-Differential Privacy ($f$-DP) framework, which offers a more precise quantification of privacy than traditional $(\epsilon, \delta)$-DP. A major theoretical contribution of this work is proving that TernaryVote’s privacy guarantee scales with $\sqrt{d}$ rather than $d$. This allows for practical privacy protection in high-dimensional models.

Experimental Evaluation

The authors evaluated TernaryVote on MNIST, Fashion-MNIST, and CIFAR-10 datasets under heterogeneous conditions (simulated via Dirichlet distribution).

Accuracy and Privacy Trade-offs

TernaryVote demonstrates superior performance in high-privacy regimes. As shown in the experimental results, TernaryVote maintains higher accuracy compared to standard Gaussian noise and random sparsification baselines across various privacy budgets (represented by $\mu$ in the GDP framework).

Test accuracy on CIFAR-10 under various privacy budgets and robustness against Byzantine attacks.

Byzantine Resilience

The algorithm remains stable against sophisticated attacks such as Flip Sign (FS), Fall of Empire (FoE), and Little Is Enough (LIE). Even with up to 20% malicious workers, TernaryVote's accuracy remains significantly higher and more stable than competing methods like Multi-Krum.

Resistance to Reconstruction Attacks

To test privacy empirically, the authors employed the ROG (Reconstruction from Obfuscated Gradients) attack. Updates from TernaryVote resulted in significantly more obscured reconstructions compared to baseline methods, indicating stronger practical privacy protection.

A reconstructed image from a TernaryVote update, showing the high level of blur and loss of detail that prevents identification.

Conclusion

TernaryVote provides a robust framework for distributed learning by leveraging ternary compression for both efficiency and privacy. By breaking the dimensionality curse of DP and maintaining resilience in heterogeneous settings, it offers a viable path for secure and efficient federated learning at scale. Future work includes refining privacy accumulation over multiple rounds and exploring integration with adaptive optimizers like Adam.

Summary updated

BibTeX
@misc{jin2024ternaryvote,
  author = {Richeng Jin and Yujie Gu and Kai Yue and Xiaofan He and Zhaoyang Zhang and Huaiyu Dai},
  title = {{TernaryVote: Differentially Private, Communication Efficient, and Byzantine Resilient Distributed Optimization on Heterogeneous Data}},
  year = {2024},
  eprint = {2402.10816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.10816},
}
Figure