Robust Distributed Learning Against Both Distributional Shifts and Byzantine Attacks

Guanqiang Zhou, Ping Xu, Yue Wang, Zhi Tian

TL;DR

This paper introduces the first algorithm designed to make distributed machine learning robust against both changes in data distribution (distributional shifts) and malicious attacks from faulty nodes (Byzantine attacks). By combining advanced techniques from robust optimization and Byzantine-resilient aggregation, their method offers theoretical guarantees and demonstrates practical effectiveness.

What Problem Does This Paper Address?

In real-world machine learning, models often fail to perform well on new data because the data distribution has changed since training (distributional shifts). This is a problem even in centralized systems. In distributed learning, where multiple machines collaborate to train a model, an additional threat arises: some machines might be compromised or faulty (Byzantine nodes) and send incorrect updates, potentially corrupting the entire model. Existing research typically tackles these two problems—distributional shifts and Byzantine attacks—separately. This paper addresses the critical need to solve both simultaneously, which is challenging because centralized solutions for distributional shifts aren't easily distributed, and Byzantine-robust methods often make assumptions that are hard to meet when dealing with distributional robustness.

Methods

The authors propose a novel algorithm that integrates two key components:

  • Wasserstein Distributionally Robust Optimization (DRO): This approach handles distributional shifts by finding a model that performs well across a range of possible data distributions, defined by a Wasserstein ball around the training distribution. Crucially, they leverage a reformulation of Wasserstein DRO that is amenable to distributed computation.
  • Norm-Based Screening (NBS): To counter Byzantine attacks, they employ NBS, a robust aggregation technique. Instead of simply averaging local model updates from workers, NBS filters out updates with unusually large norms, assuming these are likely malicious. This is a simpler and more broadly applicable method than some other robust aggregation schemes.

The algorithm combines these by having each worker compute a "robustified" local gradient (using the DRO formulation) and then aggregating these robustified gradients using NBS before updating the global model. They provide theoretical convergence proofs for nonconvex, convex, and strongly convex loss functions.

Datasets

The paper uses the Spambase dataset for empirical evaluation. This is a standard dataset for classification tasks. No new benchmarks were introduced.

Key Insights and Ideas

  • The "Breakpoint" of NBS is 1/3, Not 1/2: A significant finding is that the common belief that Norm-Based Screening (NBS) can tolerate up to 50% Byzantine nodes is incorrect. The authors rigorously prove that NBS can only guarantee convergence when the proportion of Byzantine nodes is strictly less than 1/3. This is a crucial theoretical insight for understanding the limitations of NBS.
  • Joint Robustness is Achievable: The paper demonstrates that it's possible to design a single algorithm that effectively handles both distributional shifts and Byzantine attacks, a problem previously unaddressed.
  • Parameter Sensitivity: The proposed algorithm's performance is shown to be relatively insensitive to the choice of hyperparameters like $\lambda$ (from the DRO formulation) and $T_z$ (number of gradient ascent iterations for computing perturbed samples), which is a desirable trait for practical deployment.
  • Strategic Epsilon Approximation: For computing the perturbed samples needed in DRO, the authors suggest a two-stage strategy: use a larger approximation error ($\epsilon$) early in training when Byzantine attacks dominate, and a smaller $\epsilon$ later when distributional shifts are the primary concern. This balances computational cost and accuracy.

Key Results

  • Theoretical Guarantees: The proposed algorithm is theoretically proven to converge for nonconvex, convex, and strongly convex loss functions, even in the presence of both distributional shifts and Byzantine attacks.
  • Empirical Validation: Experiments on the Spambase dataset show that the algorithm significantly outperforms baseline methods (ERM, DRO, NBS) when facing combined threats.
  • Breakpoint Confirmation: The experiments confirm the theoretical finding that the algorithm's robustness against Byzantine attacks breaks down when the proportion of malicious nodes exceeds 1/3.
  • Performance under Attacks: The algorithm shows improved resilience compared to simpler methods against both "aggressive" (large norm) and "intelligent" (norm-bounded) Byzantine attacks, especially when combined with distributional shifts.

Limitations and Future Work

  • Breakpoint of NBS: The paper highlights that NBS has a strict breakpoint of 1/3 Byzantine nodes, which is a limitation compared to some other robust aggregation methods that might tolerate up to 1/2. However, the authors argue their method is the first to jointly address both robustness issues.
  • Non-IID Data: While the theoretical analysis assumes data can be split arbitrarily, the authors acknowledge that the empirical performance might be affected by highly non-IID data distributions, though their analytical approach provides a pathway for future theoretical work on this.
  • Hyperparameter Tuning: While the paper suggests some hyperparameters are not overly sensitive, the optimal choice of $\lambda$ and the screening percentage $\beta$ still requires careful consideration.
  • Future Work: The authors suggest exploring more advanced robust aggregation schemes beyond NBS and investigating the impact of non-IID data more deeply.

Summary updated

BibTeX
@article{zhou2024robust,
  author = {Guanqiang Zhou and Ping Xu and Yue Wang and Zhi Tian},
  title = {{Robust Distributed Learning Against Both Distributional Shifts and Byzantine Attacks}},
  journal = {IEEE Transactions on Neural Networks and Learning Systems},
  year = {2024},
  doi = {10.1109/tnnls.2024.3436149},
}
Figure