CB-DSL: Communication-efficient and Byzantine-robust Distributed Swarm Learning on Non-i.i.d. Data

Xin Fan, Yue Wang, Yan Huo, Zhi Tian

Abstract

The proliferation of IoT devices at the network edge has catalyzed the rise of Edge AI. However, implementing distributed learning in these environments is hindered by communication bottlenecks, data heterogeneity (non-i.i.d. data), and security vulnerabilities. This paper introduces CB-DSL, a novel framework that integrates the precision of Artificial Intelligence (AI) via Stochastic Gradient Descent (SGD) with the collective efficiency of Biological Intelligence (BI) through Particle Swarm Optimization (PSO). By utilizing a small globally shared dataset and a "best-worker" selection mechanism, CB-DSL achieves superior convergence, reduced communication overhead, and robust defense against Byzantine attacks. Numerical evaluations on the MNIST dataset demonstrate that CB-DSL outperforms traditional Federated Learning (FL) benchmarks in both accuracy and resilience.

Introduction

As machine learning shifts toward the edge, IoT devices like smart sensors and cameras are increasingly tasked with training models locally. While Federated Learning (FL) has emerged as a primary paradigm for this, it faces three critical challenges in edge scenarios:

  1. Communication Constraints: Constant model synchronization between numerous devices and a central server exhausts limited wireless bandwidth.
  2. Data Heterogeneity: Real-world IoT data is often non-independent and identically distributed (non-i.i.d.), causing local models to diverge and hindering global consensus.
  3. Security Risks: Distributed systems are prone to "Byzantine" attacks, where malicious or faulty nodes transmit erroneous updates to sabotage the global model.

Inspired by the gregarious behavior of biological organisms, we propose Communication-efficient and Byzantine-robust Distributed Swarm Learning (CB-DSL). This approach treats distributed learning as a swarm optimization problem, leveraging collective intelligence to navigate complex, non-convex optimization landscapes.

The CB-DSL Framework

Hybrid Optimization: AI meets BI

CB-DSL combines the local optimization strengths of Stochastic Gradient Descent (SGD) with the global exploration capabilities of Particle Swarm Optimization (PSO). In this framework, each IoT worker acts as a "particle" in a swarm. The model update rule incorporates not only the local gradient but also the "velocity" of the swarm, which is influenced by the historical best performance of the individual worker and the global best performance of the entire swarm. This mechanism allows the model to "jump" out of local optima that often trap standard gradient-based methods.

The Role of the Globally Shared Dataset ($D^G$)

A cornerstone of CB-DSL is the introduction of a tiny globally shared dataset (approximately 1% of the total data). This dataset serves two primary functions:

  • Data Anchoring ($D^G_{tr}$): A portion of the shared data is mixed into local training sets. This reduces the statistical distance between local distributions, effectively mitigating the weight divergence caused by non-i.i.d. data.
  • Model Scoring ($D^G_{sc}$): The remaining shared data is used to evaluate the performance of local models. Workers calculate their loss on this "ground truth" set and report only this scalar value to the Parameter Server (PS).

Communication Efficiency and Byzantine Robustness

Unlike standard FL, where every worker uploads their full model update, CB-DSL employs a competitive selection process. The PS identifies the worker with the lowest loss on the scoring set. Only this "winner" uploads their model parameters. This reduces the communication load by a factor of $1/U$, where $U$ is the number of workers.

This architecture inherently provides Byzantine robustness. Because the PS possesses the scoring dataset $D^G_{sc}$, it can independently verify the winner's reported score. If an attacker attempts to upload a malicious model by lying about its performance, the PS detects the discrepancy and rejects the update, moving to the next best candidate.

Theoretical Analysis

The paper provides a rigorous convergence analysis, demonstrating that CB-DSL achieves a better convergence rate than standard FL. Furthermore, we derive an upper bound for model divergence based on the Earth Mover’s Distance (EMD) between local data distributions and the population distribution. This analysis confirms that the introduction of the shared dataset $D^G$ effectively constrains the divergence of local models, ensuring more stable global learning.

Experimental Results

Performance on Non-i.i.d. Data

Evaluations using the MNIST dataset under extreme non-i.i.d. conditions (where workers only see a limited subset of digit classes) show that CB-DSL significantly outperforms Federated Averaging (FedAvg). While FedAvg's accuracy often plateaus or fluctuates due to data heterogeneity, CB-DSL maintains a steady climb, achieving over 90% accuracy where benchmarks struggle to reach 80%.

Resilience to Byzantine Attacks

In simulations involving malicious nodes, the robustness of CB-DSL is evident. Under attacks that typically cause FedAvg's accuracy to collapse to near-zero, CB-DSL remains stable. The scoring mechanism successfully filters out malicious updates, ensuring that only beneficial model improvements are integrated into the global swarm.

Conclusion and Future Work

CB-DSL represents a significant step toward efficient and secure Edge AI. By merging SGD with PSO and utilizing a small shared dataset, the framework addresses the core limitations of current distributed learning methods. Future research will explore the use of Generative Adversarial Networks (GANs) to create synthetic shared data to enhance privacy, as well as testing the framework on more complex datasets like CIFAR-100 and ImageNet to further validate its scalability.

Summary updated

Abstract

The valuable data collected by IoT devices in edge networks together with the resurgence of ML stimulate the latest trend of edge AI. However, recent FL methods face major challenges including communication bottleneck, data heterogeneity and security concerns in edge IoT scenarios, especially when being adopted for distributed learning among massive IoT devices equipped with limited data and transmission resources. Meanwhile, the swarm nature of IoT systems is overlooked by most existing literature, which calls for new designs of distributed learning algorithms. Inspired by the success of biological intelligence (BI) of gregarious organisms, we propose a novel edge learning approach for swarm IoT, called communication-efficient and Byzantine-robust distributed swarm learning (CB-DSL), through a holistic integration of AI-enabled stochastic gradient descent and BI-enabled particle swarm optimization. To deal with non-i.i.d. data issues and Byzantine attacks, global data samples are introduced in CB-DSL and shared among IoT workers, which not only alleviates the local data heterogeneity effectively but also enables to fully utilize the exploration-exploitation mechanism of swarm intelligence. Further, we provide convergence analysis to theoretically demonstrate that the proposed CB-DSL is superior to the standard FL with better convergence behavior. In addition, to measure the effectiveness of the introduction of the globally shared dataset, we also evaluate the model divergence by deriving its upper bound, which is related to the distance between the data distribution at local IoT devices and the population distribution for the whole datasets. Numerical results verify that the proposed CB-DSL outperforms the existing benchmarks in terms of faster convergence speed, higher convergent accuracy, lower communication cost, and better robustness against non-i.i.d. data and Byzantine attacks.
BibTeX
@article{fan2023cb,
  author = {Xin Fan and Yue Wang and Yan Huo and Zhi Tian},
  title = {{CB-DSL: Communication-efficient and Byzantine-robust Distributed Swarm Learning on Non-i.i.d. Data}},
  journal = {IEEE Transactions on Cognitive Communications and Networking},
  year = {2023},
  doi = {10.1109/tccn.2023.3312345},
}
Figure