Dynamic Topology Optimization for Non-IID Data in Decentralized Learning
Bart Cox, Antreas Ioannou, Jérémie Decouchant
TL;DR
Morph introduces a fully decentralized topology optimization for decentralized learning that selects incoming neighbors based on local model dissimilarity, maintaining a fixed in-degree while enabling progressive peer discovery. It uses cosine similarity per layer and quasi-transitive inference to estimate dissimilarity with unknown peers, combined with a two-phase, bias-then-random neighbor sampling to preserve connectivity. Empirical results on CIFAR-10 and FEMNIST show Morph consistently surpasses static and epidemic baselines and closely tracks the fully connected upper bound, achieving significant accuracy gains and lower inter-node variance with fewer communication rounds. The work demonstrates that leveraging model dissimilarity as a topology signal can achieve robust, scalable, and efficient decentralized learning under non-IID data without global coordination.
Abstract
Decentralized learning (DL) enables a set of nodes to train a model collaboratively without central coordination, offering benefits for privacy and scalability. However, DL struggles to train a high accuracy model when the data distribution is non-independent and identically distributed (non-IID) and when the communication topology is static. To address these issues, we propose Morph, a topology optimization algorithm for DL. In Morph, nodes adaptively choose peers for model exchange based on maximum model dissimilarity. Morph maintains a fixed in-degree while dynamically reshaping the communication graph through gossip-based peer discovery and diversity-driven neighbor selection, thereby improving robustness to data heterogeneity. Experiments on CIFAR-10 and FEMNIST with up to 100 nodes show that Morph consistently outperforms static and epidemic baselines, while closely tracking the fully connected upper bound. On CIFAR-10, Morph achieves a relative improvement of 1.12x in test accuracy compared to the state-of-the-art baselines. On FEMNIST, Morph achieves an accuracy that is 1.08x higher than Epidemic Learning. Similar trends hold for 50 node deployments, where Morph narrows the gap to the fully connected upper bound within 0.5 percentage points on CIFAR-10. These results demonstrate that Morph achieves higher final accuracy, faster convergence, and more stable learning as quantified by lower inter-node variance, while requiring fewer communication rounds than baselines and no global knowledge.
