Distributed Learning over Arbitrary Topology: Linear Speed-Up with Polynomial Transient Time

Runze You, Shi PuarXiv 2025 · DOI

Introduction

In the landscape of distributed machine learning, decentralized optimization has emerged as a powerful paradigm for training models across multiple agents—such as mobile devices or edge sensors—without the need for a central server. This approach enhances privacy and mitigates bandwidth bottlenecks. However, decentralized systems often suffer from a significant "warm-up" period known as transient time.

During this phase, the algorithm performs less efficiently than a centralized counterpart. For many state-of-the-art methods, this transient time scales exponentially with the number of agents ($n$) on sparse or directed networks, rendering them impractical for large-scale deployments. This paper introduces Spanning Tree Push-Pull (STPP), an algorithm designed to achieve linear speedup with guaranteed polynomial transient time across arbitrary network topologies.

The Spanning Tree Push-Pull (STPP) Algorithm

The core innovation of STPP lies in its departure from traditional "gossip-based" communication, which relies on complex weight matrices and spectral gaps. Instead, STPP structures information flow using two directed spanning trees extracted from the underlying network:

  1. The Pull Tree ($G_R$): A spanning tree rooted at a designated node (Node 1) used to broadcast model parameters down to all agents.
  2. The Push Tree ($G_C$): A spanning tree used to aggregate stochastic gradients from all agents back up to the root.
Decomposition of network topologies into Pull and Push spanning trees used by STPP.

By decoupling the parameter distribution and gradient accumulation, STPP simplifies the information mixing process. It utilizes simple binary matrices (0s and 1s) to manage these flows, effectively treating the network like an assembly line where parameters move "downstream" and gradients move "upstream."

Theoretical Breakthrough: Polynomial Transient Time

The primary theoretical contribution of this work is proving that STPP achieves linear speedup within a polynomial number of iterations, regardless of how sparse or poorly connected the network is. While previous methods like DSGD or Push-DIGing face non-polynomial (N.P.) transient times on general topologies, STPP provides concrete, scalable bounds.

Transient time complexity comparison for nonconvex optimization across different network topologies.

As shown in the comparison table, for nonconvex problems, STPP achieves a transient time of $O(n^7)$. For strongly convex problems, this bound improves to $\tilde{O}(n^3)$. This shift from exponential to polynomial scaling is a major milestone for decentralized learning on directed and sparse graphs.

Experimental Performance

The researchers validated STPP through two main experimental setups:

  • Logistic Regression: Tested on 20 agents with non-IID data.
  • Deep Learning (MNIST): Training a CNN across 24 agents where data was partitioned by label to simulate extreme heterogeneity.

In both scenarios, STPP demonstrated superior convergence rates on challenging topologies like "Directed Rings" and "Multi-Sub-Rings." While traditional methods struggle when the network diameter is large, STPP maintains its efficiency by focusing on the topological distance to the root rather than the spectral gap of the entire graph.

Conclusion and Future Directions

STPP represents a significant step forward in making decentralized learning robust for real-world, arbitrary network structures. By guaranteeing polynomial transient time, it ensures that the benefits of adding more agents (linear speedup) are realized quickly.

Future work remains to address the algorithm's reliance on a single root node, which presents a potential point of failure. Additionally, extending the framework to handle asynchronous updates from "straggler" nodes and reducing sensitivity to hyperparameter tuning (such as the $\gamma/n$ step-size) will be essential for deploying STPP in highly dynamic edge computing environments.

Summary updated

BibTeX
@misc{you2025distributed,
  author = {Runze You and Shi Pu},
  title = {{Distributed Learning over Arbitrary Topology: Linear Speed-Up with Polynomial Transient Time}},
  year = {2025},
  eprint = {2503.16123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.16123},
}
Figure