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:
- Communication Constraints: Constant model synchronization between numerous devices and a central server exhausts limited wireless bandwidth.
- 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.
- 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