Multi-Worker Selection based Distributed Swarm Learning for Edge IoT with Non-i.i.d. Data

Zhuoyu Yao, Yufei Wang, Songyang Zhang, Yingshu Li, Zhipeng Cai, Zhi Tian2025

Introduction

In the burgeoning field of Edge IoT, distributed learning is essential for training robust AI models across decentralized sensors and devices. However, real-world deployments frequently encounter non-i.i.d. (non-independent and identically distributed) data, where individual devices observe vastly different subsets of information. This heterogeneity often leads to biased model updates, slow convergence, and poor generalization in standard frameworks like Federated Learning (FL) and Distributed Swarm Learning (DSL).

This paper introduces M-DSL, an enhanced swarm learning framework that addresses these challenges through a novel data heterogeneity metric and an adaptive multi-worker selection strategy.

Quantifying Data Heterogeneity

A core contribution of this work is the development of a more accurate metric for quantifying data skew. Traditional measures, such as Wasserstein Distance (WD), often fail to fully capture how distribution shifts impact model performance. The authors propose a Non-i.i.d. Degree Metric ($\eta$) that combines WD with a "label ratio" to account for both statistical distance and class diversity.

Proposed non-i.i.d. degree metric vs. standard metrics

As shown in Figure 1, the proposed metric $\eta$ (red line) exhibits a much stronger correlation with actual model accuracy (orange dotted line) across varying degrees of data skew (controlled by the Dirichlet parameter $\alpha$) compared to WD or label ratio alone. This high linearity ($R^2 = 0.97$ on MNIST) allows the system to reliably predict a worker's potential contribution based on their local data quality.

The M-DSL Framework

M-DSL improves upon vanilla Swarm Learning by moving beyond the "single-best worker" selection paradigm. The framework utilizes two key mechanisms:

  1. Adaptive Multi-Worker Selection: Instead of picking only one winner per round, M-DSL calculates a "trade-off score" ($\theta$) for each worker, balancing local training loss with data quality ($\eta$). It then adaptively selects all workers whose performance exceeds the average gain from the previous round.
  2. Hybrid PSO-Inspired Updates: The system employs a Particle Swarm Optimization (PSO) update rule. Local models are updated by considering their own historical best state, the global best state, and a gradient descent step performed on a small, GAN-generated synthetic global dataset ($D_g$).

Performance Evaluation

The framework was evaluated using MNIST and CIFAR-10 benchmarks under complex non-i.i.d. scenarios. In these tests, M-DSL consistently outperformed both standard FedAvg and vanilla DSL in terms of both final accuracy and convergence speed.

Validation accuracy on CIFAR-10 under non-i.i.d. conditions

In the challenging CIFAR-10 environment (Figure 6), M-DSL reached significantly higher validation accuracy than its counterparts. Furthermore, the multi-worker approach proved more communication-efficient; by selectively inviting only prominent contributors to share updates, M-DSL reduces the total data overhead compared to "all-worker" strategies like FedAvg, which is critical for resource-constrained IoT devices.

Conclusion

M-DSL provides a robust solution for distributed learning in heterogeneous IoT environments. By accurately quantifying data skew and intelligently selecting multiple high-quality contributors, the framework achieves superior performance and efficiency. Future work will focus on automating hyperparameter tuning and adapting the system for dynamic networks with frequent device churn.

Summary updated

BibTeX
@misc{yao2025multi,
  author = {Zhuoyu Yao and Yufei Wang and Songyang Zhang and Yingshu Li and Zhipeng Cai and Zhi Tian},
  title = {{Multi-Worker Selection based Distributed Swarm Learning for Edge IoT with Non-i.i.d. Data}},
  year = {2025},
  eprint = {2509.18367},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.18367},
}
Figure