NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Echo: Simulating Distributed Training At Scale

Yicheng Feng, Yuetao Chen, Kaiwen Chen, Jingzong Li, Tianyuan Wu, Peng Cheng, Chuan Wu, Wei Wang, Tsung-Yi Ho, Hong XuarXiv 2024

Abstract

Simulation offers unique value for both enumeration and extrapolation in managing massive machine learning (ML) clusters and large-scale distributed training jobs. In this paper, we present Echo, a high-fidelity simulator designed to tackle three key challenges: (1) tracing runtime training workloads ex-situ to obtain execution graphs for 1,000-GPU jobs using a single device, (2) accurately estimating collective communication without the high overhead of discrete-event network simulation, and (3) accounting for interference-induced computation slowdown from overlapping kernels. Echo delivers an average 8% error in training step time—roughly 3x lower than state-of-the-art simulators—for a GPT-175B model on a 96-GPU H800 cluster in under 2 minutes.

Introduction

Training Large Language Models (LLMs) has become an astronomical undertaking, often requiring clusters of tens of thousands of GPUs. To manage these resources effectively, engineers rely on simulators to answer critical "what-if" questions regarding network bandwidth, parallelism strategies, and hardware configurations.

However, existing simulators face a significant "catch-22." Accurate simulation typically requires "in-situ" tracing, meaning a job must be run on a full-scale cluster just to collect the data needed to simulate it. Furthermore, most simulators either use overly simplistic mathematical models for networking or extremely slow packet-level simulations. Crucially, they often ignore interference: the reality that running communication and computation kernels simultaneously on the same GPU causes them to compete for memory bandwidth and cache, slowing both down.

Methodology

Echo introduces three key innovations to break these bottlenecks and provide high-fidelity performance predictions.

1. Ex-situ Tracing

Echo hijacks the "Model Parallelism Unit" (MPU) of frameworks like Megatron-LM. By intercepting initialization calls, Echo tricks the framework into believing it is part of a massive cluster while running sequentially on a single device. This allows Echo to generate rank-specific execution graphs for a 1,000-GPU job using just one GPU, bypassing the need for a full-scale cluster for data collection.

2. White-box Communication Modeling

Instead of slow packet-level simulations or inaccurate simple formulas, Echo employs a "white-box" approach. It models the actual logic of the NCCL library—including connection setup, intra/inter-server transmission, and data reduction—and uses offline profiling to fill in the necessary parameters.

3. ML-based Slowdown Prediction

To handle interference, Echo uses an XGBoost-based regressor. It analyzes features such as SM (Streaming Multiprocessor) occupancy, DRAM utilization, and cache hit rates to predict how much a computation kernel will slow down when it overlaps with network communication.

The Echo system architecture, illustrating the iterative workload tracing, timeline composition, and communication estimation components.

Key Insights: The Cost of Overlap

A striking insight from the Echo project is that overlapping communication and computation—a standard optimization—is not a "free lunch." Resource contention can cause a significant slowdown in training step time. Echo is the first simulator to model this effect with high granularity, identifying that this interference can lead to a slowdown of up to 1.48x in end-to-end training step time.

Cumulative distribution of the slowdown factor caused by overlapping communication and computation kernels, showing significant variance in performance impact.

Performance and Scalability

The researchers evaluated Echo using representative models like BERT-Large and the GPT-series (up to 175B parameters) on real-world clusters (A100, A800, and H800 GPUs).

  • High Accuracy: Echo achieved an average prediction accuracy of 91.4% across various scenarios. For a GPT-175B model on a 96-GPU H800 cluster, it hit 92% accuracy.
  • Superior Speed: Echo can simulate a 128-GPU training job in just 83 seconds, making it roughly 92x faster than high-fidelity packet-level simulators like SimAI.
  • Extreme Scalability: The system is efficient enough to simulate an 8,192-GPU cluster in approximately 1.38 hours, making it a practical tool for long-term capacity planning.
  • OOM Detection: Because Echo’s tracing is memory-aware, it can predict "Out-of-Memory" (OOM) errors before a user ever deploys to a real cluster.

Conclusion and Future Work

While Echo represents a major step forward, the authors identify several areas for future expansion. Currently, Echo does not explicitly model complex network topology congestion or bandwidth contention between different flows. Future iterations aim to integrate learning-based flow models and expand support for "exotic" parallelism strategies like Mixture-of-Experts (MoE) and the ZeRO optimizer. Additionally, while currently focused on NVIDIA GPUs and NCCL, expanding to other hardware vendors remains a primary goal.

Summary updated

BibTeX
@misc{feng2024echo,
  author = {Yicheng Feng and Yuetao Chen and Kaiwen Chen and Jingzong Li and Tianyuan Wu and Peng Cheng and Chuan Wu and Wei Wang and Tsung-Yi Ho and Hong Xu},
  title = {{Echo: Simulating Distributed Training At Scale}},
  year = {2024},
  eprint = {2412.12487},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.12487},
}
Figure