On the Tradeoff between Privacy Preservation and Byzantine-Robustness in Decentralized Learning

Haoxiang Ye, Heng Zhu, Qing Ling · DOI

Abstract

This paper jointly considers privacy preservation and Byzantine-robustness in decentralized learning. In a decentralized network, honest-but-curious agents faithfully follow the prescribed algorithm, but expect to infer their neighbors' private data from messages received during the learning process, while dishonest-and-Byzantine agents disobey the prescribed algorithm, and deliberately disseminate wrong messages to their neighbors so as to bias the learning process. For this novel setting, we investigate a generic privacy-preserving and Byzantine-robust decentralized stochastic gradient descent (SGD) framework, in which Gaussian noise is injected to preserve privacy and robust aggregation rules are adopted to counteract Byzantine attacks. We analyze its learning error and privacy guarantee, discovering an essential tradeoff between privacy preservation and Byzantine-robustness in decentralized learning -- the learning error caused by defending against Byzantine attacks is exacerbated by the Gaussian noise added to preserve privacy. For a class of state-of-the-art robust aggregation rules, we give unified analysis of the "mixing abilities". Building upon this analysis, we reveal how the "mixing abilities" affect the tradeoff between privacy preservation and Byzantine-robustness. The theoretical results provide guidelines for achieving a favorable tradeoff with proper design of robust aggregation rules. Numerical experiments are conducted and corroborate our theoretical findings.

Introduction

Decentralized learning has emerged as a powerful paradigm for training machine learning models across a network of agents without the need for a central coordinator. By allowing agents to communicate only with their immediate neighbors, this approach offers scalability and resilience. However, decentralized systems are inherently vulnerable to two critical security threats: privacy leakage and Byzantine attacks.

Privacy leakage occurs when "honest-but-curious" agents attempt to reconstruct the private training data of their neighbors by analyzing the model updates they receive. Conversely, Byzantine attacks involve malicious agents who deviate from the protocol, sending intentionally erroneous messages to bias the global model or prevent convergence. While these issues have been studied extensively in isolation, their combined impact presents a unique challenge. Privacy-preserving techniques, such as adding random noise, often interfere with robustness mechanisms that rely on identifying and filtering out outliers. This paper provides the first joint analysis of this fundamental tradeoff in a decentralized setting.

Methodology

The authors propose a unified framework for Privacy-Preserving and Byzantine-Robust Decentralized SGD. The framework integrates two core components to address the dual threats:

  1. Differential Privacy (DP): To protect against curious neighbors, each agent employs a Gaussian noise mechanism. Before sharing their local model updates, agents inject random noise, ensuring that the shared information does not reveal sensitive details about their local datasets.
  2. Robust Aggregation Rules: To mitigate the influence of Byzantine agents, the standard averaging step in decentralized SGD is replaced with robust aggregation rules. These rules, such as Trimmed Mean, Self-Centered Clipping (SCC), and Iterative Outlier Scissor (IOS), are designed to filter out malicious messages.

To facilitate a rigorous theoretical analysis, the paper introduces a comprehensive set of notations to describe the network, the learning process, and the noise characteristics.

Table 1: Summary of notation and symbols used in the decentralized learning framework.

The core of the analysis revolves around the "mixing ability" of these aggregation rules, which is characterized by two key parameters: the contraction constant ($\rho$) and the virtual mixing matrix ($W$). These metrics quantify how effectively a rule can aggregate information from honest agents while excluding Byzantine influence.

Theoretical Analysis and Key Insights

The paper's primary theoretical contribution is the identification of a fundamental tradeoff: the learning error introduced by Byzantine-robust aggregation is amplified by the noise added for privacy preservation. Specifically, the convergence error is shown to be proportional to $(\rho^2 + \chi^2)(\phi^2 + C^2)$, where $C$ represents the privacy noise level and $\chi^2$ is the skewness of the virtual mixing matrix.

The Role of Mixing Ability

The "mixing ability" serves as the critical lever for managing this tradeoff. By analyzing various state-of-the-art rules, the authors demonstrate how different choices of $\rho$ and $W$ impact the final model accuracy.

Table 2: Comparison of robust aggregation rules and their corresponding mixing ability parameters.

As shown in the table above, different rules exhibit varying degrees of robustness and information blending. A key finding is that the Iterative Outlier Scissor (IOS) rule consistently outperforms others by maintaining a superior balance between $\rho$ and $\chi^2$. This allows it to achieve high accuracy even when significant privacy noise is required to thwart sophisticated attacks like Deep Leakage from Gradients (DLG).

Experimental Results

The theoretical findings were validated through extensive simulations on standard benchmarks, including MNIST and CIFAR-10.

  • Robustness under Attack: In a 100-agent network subjected to "sign-flipping" Byzantine attacks, the IOS rule maintained nearly 90% accuracy on MNIST, even with privacy noise. In contrast, standard decentralized SGD (DSGD) failed completely, with accuracy dropping to near-zero.
  • Privacy Protection: The effectiveness of the Gaussian noise mechanism was tested against DLG attacks. Without noise, attackers could perfectly reconstruct private training images. The proposed framework successfully prevented such reconstruction, providing a formal privacy guarantee where the privacy loss scales with the number of iterations and the noise level.
  • Deep Learning Applicability: Experiments on CIFAR-10 using a ResNet18 architecture confirmed that the identified tradeoffs and the superiority of the IOS rule extend to non-convex, high-dimensional deep learning models.

Conclusion and Future Work

This research highlights the inherent conflict between privacy and robustness in decentralized learning. By providing a unified theoretical framework, the authors offer clear guidelines for selecting and designing aggregation rules that minimize the negative impact of privacy noise on Byzantine resilience.

Future research directions include extending the analysis to other decentralized optimization methods like ADMM, investigating how network topology influences the contraction constant, and developing new aggregation rules specifically optimized to minimize the $(\rho^2 + \chi^2)$ term.

Summary updated

BibTeX
@misc{ye2023tradeoff,
  author = {Haoxiang Ye and Heng Zhu and Qing Ling},
  title = {{On the Tradeoff between Privacy Preservation and Byzantine-Robustness in Decentralized Learning}},
  year = {2023},
  eprint = {2308.14606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.14606},
}
Figure