Accelerating Geo-Distributed Machine Learning With Network-Aware Adaptive Tree and Auxiliary Route

Zonghang Li, Wenjiao Feng, Weibo Cai, Hongfang Yu, Long Luo, Gang Sun, Hongyang Du, Dusit Niyato

TL;DR

NETSTORM is a new communication scheduler that slashes parameter synchronization delays in geo-distributed machine learning by up to 9.2x. It achieves this by dynamically building optimal multi-root tree topologies and using idle network links to squeeze every bit of performance out of unpredictable, low-bandwidth wide-area networks (WANs).

What Problem Does This Paper Address?

Training large machine learning models often requires more data than a single data center can hold, or data that cannot be moved due to privacy regulations. This has led to Geo-distributed Machine Learning (GeoML), where models are trained across multiple data centers globally.

The Achilles' heel of GeoML is the Wide Area Network (WAN). Unlike the lightning-fast InfiniBand connections found inside a single cluster, WANs are slow, heterogeneous (some links are much faster than others), and dynamic (speeds fluctuate constantly). Traditional systems use a "starlike" topology where every node talks to one central server, creating a massive bottleneck. While some researchers have moved toward tree-based structures, they often rely on static, "balanced" trees that don't account for the reality of WANs: if one "child" node is slow, the "parent" node is blocked from aggregating data and moving forward.

Methods

The authors introduce NETSTORM, which optimizes communication through four key innovations:

  1. Multi-root FAPT (Fastest Aggregation Path Tree): Instead of a standard tree, the authors developed a new metric specifically for the "aggregate-forward" pattern of ML training. FAPT identifies the paths that minimize the total time spent waiting for the slowest child node. By using multiple roots, the system balances the load across the network.
  2. Passive Network Awareness: To know which links are fast, you usually have to send "probe" packets, which waste precious bandwidth. NETSTORM instead performs "passive" probing—it measures the time actual model data chunks take to travel between nodes to estimate throughput in real-time.
  3. Multipath Auxiliary Transmission: This addresses the "avalanche effect." If you only measure the links you are currently using, you’ll never notice if an unused link suddenly becomes the fastest path. NETSTORM uses idle links outside the main tree to send a small portion of data, keeping the system's "map" of the network up to date while providing extra bandwidth.
  4. Policy Consistency Protocols: Since the network changes, the "best" tree also changes. NETSTORM includes a protocol to ensure that when the system switches to a new network map, it doesn't cause deadlocks or packet loss between nodes running different versions of the policy.

Datasets

The researchers evaluated NETSTORM using the Fashion-MNIST dataset. They used this data to train several popular model architectures, including:

  • AlexNet
  • MobileNet
  • ResNet variants (ResNet-18, 34, 50, 101, and 152)

The experiments were conducted on Klonet, a large-scale network emulation platform, configured to mimic a 9-node WAN backbone (similar to the Internet2 topology) with latencies of 30ms and fluctuating bandwidth.

Key Insights and Ideas

  • The "Aggregate-Forward" Reality: Most routing algorithms treat data like a stream. In ML, a node is a "barrier"—it cannot send its update until it has received and combined updates from all its children. FAPT is one of the first metrics to prioritize minimizing this "blockage delay."
  • Exploration vs. Exploitation: The use of auxiliary paths is a clever solution to a classic problem. By "exploring" idle links with a small amount of real traffic, the system gains the knowledge needed to "exploit" the best paths later.
  • One-Way is Better than Two: The authors prove that measuring one-way delay (sender to receiver) is significantly more accurate for throughput estimation than the standard round-trip time (RTT), which is skewed by the tiny size of acknowledgment (ACK) packets.

Key Results

  • Massive Speedups: NETSTORM achieved training speeds 6.5 to 9.2 times faster than the standard MXNET (starlike topology).
  • Outperforming the State-of-the-Art: It surpassed other specialized tree-based systems like MLNET and TSEngine in both static and dynamic network conditions.
  • Efficiency: The network awareness module alone improved training speed by 24%, and the addition of auxiliary paths provided another 65% boost.
  • Scalability: The system showed a scaling efficiency of 0.93, meaning it maintains high performance even as the number of data centers increases.

Limitations and Future Work

While NETSTORM is highly effective for data parallelism (where each node has a full copy of the model), the paper does not deeply explore its application in model parallelism (where the model itself is split across nodes), which involves different communication patterns.

Additionally, the authors acknowledge that the "optimal" size of data chunks (hyperparameter CHUNK_SIZE) is critical; if chunks are too large, they cause congestion, but if they are too small, the overhead of managing them reduces efficiency. Future work could involve automating the tuning of these hyperparameters using machine learning itself.

Summary updated

BibTeX
@article{li2024accelerating,
  author = {Zonghang Li and Wenjiao Feng and Weibo Cai and Hongfang Yu and Long Luo and Gang Sun and Hongyang Du and Dusit Niyato},
  title = {{Accelerating Geo-Distributed Machine Learning With Network-Aware Adaptive Tree and Auxiliary Route}},
  journal = {IEEE/ACM Trans. Networking},
  year = {2024},
  doi = {10.1109/tnet.2024.3412429},
}
Figure