EROICA: Online Performance Troubleshooting for Large-scale Model Training
Yu Guan (Alibaba Group), Zhiyu Yin (Alibaba Group), Haoyu Chen (Alibaba Group), Sheng Cheng (Alibaba Group), Chaojie Yang (Alibaba Group), Kun Qian (Alibaba Group), Tianyin Xu (University of Illinois Urbana-Champaign), Pengcheng Zhang (Alibaba Group), Yang Zhang (Alibaba Group), Hanyu Zhao (Alibaba Group), Yong Li (Alibaba Group), Dennis Cai (Alibaba Group), Ennan Zhai (Alibaba Group)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Debugging Distributed Systems
Overview
Performance troubleshooting for large-scale model training is notoriously difficult because anomalies can stem from any layer of the stack—user code, training frameworks, kernel functions, hardware accelerators, or underlying network fabrics. In a cluster scaling to tens of thousands of accelerators, a single misconfigured line of code or a degraded hardware component on one machine can bottleneck an entire distributed training job. Traditional approaches force a stark trade-off: lightweight online monitoring tools provide broad cluster coverage but lack code-level visibility, while heavyweight offline profilers capture deep execution traces but generate prohibitive data volumes (roughly 10 terabytes per run), making real-time analysis impossible.

Key moments
- 0:00 Introduction and troubleshooting challenges in large-scale model training
- 2:00 Comparing online monitoring and offline profiling limitations
- 3:54 Key insight: Behavior fingerprints and peer worker comparison
- 5:50 Eroica system overview and data reduction workflow
- 7:40 Extracting critical path functions and 3D behavior fingerprints
- 10:40 Comparing fingerprints and localizing abnormal behaviors
- 14:00 Real-world case study: Video generation model training diagnostics
- 15:44 Performance improvements and conclusion
EROICA: Online Performance Troubleshooting for Large-scale Model Training
Speakers: Yu Guan (Alibaba Group); Zhiyu Yin (Alibaba Group); Haoyu Chen (Alibaba Group); Sheng Cheng (Alibaba Group); Chaojie Yang (Alibaba Group); Kun Qian (Alibaba Group); Tianyin Xu (University of Illinois Urbana-Champaign); Pengcheng Zhang (Alibaba Group); Yang Zhang (Alibaba Group); Hanyu Zhao (Alibaba Group); Yong Li (Alibaba Group); Dennis Cai (Alibaba Group); Ennan Zhai (Alibaba Group)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=UAb4-vAi0Ow
Overview
Performance troubleshooting for large-scale model training is notoriously difficult because anomalies can stem from any layer of the stack—user code, training frameworks, kernel functions, hardware accelerators, or underlying network fabrics. In a cluster scaling to tens of thousands of accelerators, a single misconfigured line of code or a degraded hardware component on one machine can bottleneck an entire distributed training job. Traditional approaches force a stark trade-off: lightweight online monitoring tools provide broad cluster coverage but lack code-level visibility, while heavyweight offline profilers capture deep execution traces but generate prohibitive data volumes (roughly 10 terabytes per run), making real-time analysis impossible.
This talk introduces Eroica, an online performance troubleshooting system developed at Alibaba Group and deployed in production for over a year and a half across approximately 100,000 GPUs. Eroica bridges the gap between shallow monitoring and deep profiling by introducing behavior fingerprints—a compact, three-dimensional statistical abstraction that compresses profiling data by a factor of 100,000. By capturing critical-path execution metrics simultaneously across all workers only when performance degradation is detected, Eroica enables real-time root cause localization without imposing continuous overhead.
The significance of Eroica lies in its ability to operate at massive scale—successfully diagnosing over 80 complex production issues that defeated traditional tools across jobs scaling up to 6,144 GPUs. By pairing automated fingerprint comparison with downstream AI agents for auto-fixing, Eroica transforms reactive, manual debugging into a streamlined, automated operational workflow for hyperscale machine learning infrastructure.
Background
▶ Watch: Introduction and troubleshooting challenges in large-scale model training (0:00)
The systems engineering challenge of troubleshooting distributed training stems from the inherent complexity of modern machine learning frameworks and hardware topologies. Large language models and massive generative models are trained using hybrid parallelism (data, tensor, and pipeline parallelism) spanning thousands of compute nodes interconnected by high-speed networks such as InfiniBand or RoCE.
Prior work in performance management generally falls into two distinct categories. On one side, online monitoring systems (such as generic resource monitors for GPUs, CPUs, memory, and storage, alongside specialized frameworks like EcoProfiler for communication and eBPF for host function execution) remain constantly active with low overhead across all cluster workers. However, these tools operate at a coarse granularity, tracking aggregate resource utilization without exposing function-level execution flows, compiler overheads, or line-of-credit performance bottlenecks.
On the other side, dominant offline profilers like Nsist Systems and Torch Profiler provide deep visibility and precise hardware tracing. Yet, their data footprint—roughly 100 megabytes per second per worker—scales disastrously. For a 10,000-GPU training job, this translates to 1 terabyte per second of telemetry data, rendering real-time collection, transfer, and storage entirely impractical. Consequently, engineers are forced to profile only a small subset of workers for a handful of training iterations, frequently missing intermittent, asymmetric hardware anomalies or tail-latency bugs.
Furthermore, debugging distributed training requires correlating events across thousands of asynchronous nodes. Naive downsampling discards critical diagnostic clues, while cross-worker timestamp comparison is thwarted by clock desynchronization across distributed machines. These limitations create an urgent need for an online profiling paradigm that combines wide cluster coverage with deep code visibility while bypassing the bottlenecks of raw data transfer and clock synchronization.
Key Findings
▶ Watch: Key insight: Behavior fingerprints and peer worker comparison (3:54)
Eroica resolves the fundamental data volume and localization challenges of large-scale profiling through several core insights and discoveries:
- Data Reduction via Behavior Fingerprints: By extracting 3D behavior fingerprints for critical-path functions, Eroica achieves a 100,000-fold reduction in data volume, compressing raw profile streams into lightweight metrics that can be instantly uploaded to a centralized server.
- Asymmetry Detection Without Clock Synchronization: Because all workers execute identical training code under SPMD (Single Program, Multiple Data) or similar distributed paradigms, performance anomalies manifest as statistical divergences among peers. Using relative behavioral comparisons rather than absolute timestamps eliminates the need for strict cluster-wide clock synchronization.
- Critical-Path Concentration: Empirical analysis across Alibaba's large-scale clusters reveals that fewer than 20 functions per worker consume more than 1% of time on the critical path. Fingerprinting only these execution blocks captures the complete performance narrative while discarding irrelevant noise.
- Production Scale Validation: Deployed across roughly 100,000 GPUs in Alibaba Cloud for 1.8 years, Eroica has successfully diagnosed over 80 complex performance issues unresolvable by existing tools, handling jobs as large as 6,144 GPUs. In a real-world video generation training workload on 3,400 GPUs, Eroica identified multiple compounding bottlenecks—including network card downgrades, missing affinity-based flow scheduling, input workload imbalances, and misconfigured data loader pin-memory threads—yielding a 34.4% end-to-end performance improvement upon remediation.
Technical Deep Dive
▶ Watch: Extracting critical path functions and 3D behavior fingerprints (7:40)
The architecture of Eroica is divided into runtime detection, distributed fingerprint extraction, and centralized localization.
1. Triggered Profiling Pipeline
To maintain near-zero routine overhead, Eroica continuously monitors global iteration completion times. Full profiling data is activated across all workers simultaneously only when an iteration time degradation is detected.
2. Critical-Path Identification
Eroica focuses exclusively on functions that dictate the total training iteration time—namely, execution blocks that block the downstream progression of training. Functions are prioritized hierarchically:
- GPU kernels (executed when the accelerator is actively computing)
- Memory operations (host-to-device transfers, pin-memory management)
- Communication primitives (collective communication operations like all-reduce, send/receive)
- Python runtime functions
A function execution is classified as critical if and only if no higher-priority function is executing concurrently. Within this set, only functions consuming more than 1% of time on the critical path are selected for fingerprinting, restricting the tracked set to fewer than 20 functions per worker.
3. The 3D Behavior Fingerprint ($\beta, \mu, \sigma$)
For each critical function $F$ executed on worker $W$, Eroica constructs a three-dimensional vector:
- $\beta$ (Beta): The fraction of total execution time spent on the critical path. This indicates whether a given function dominates the performance profile (e.g., forward pass at 30%, all-reduce at 10%, data loading at 8%).
- $\mu$ (Mu): The average hardware utilization during the function's execution, filtered to remove idle waiting periods. The target hardware metric adapts to the function type—for instance, measuring GPU frequency for GPU kernels, and CPU utilization for Python host functions. When a function executes multiple times within a profiling window, $\mu$ is computed via a weighted average across all executions.
- $\sigma$ (Sigma): The standard deviation of hardware utilization during execution, capturing execution stability and identifying whether a function is being intermittently blocked by external resource contention.
4. Centralized Comparison and Localization
All generated fingerprints are uploaded to a lightweight centralized server running on just 8 CPU cores. The server organizes the data into a distributed tabular structure and evaluates anomalies using two distinct methods:
- Expected Range Checks: Domain-specific invariants check whether behaviors fall outside predetermined logical boundaries. For instance, $\beta$ for Python host functions should remain below 1% (as the CPU should never bottleneck GPU-bound training), and communication $\beta$ should stay under 30%. Violations are flagged immediately.
- Peer Outlier Detection: Because distributed workers executing identical code should exhibit clustered, regular distributions in their 3D fingerprints, Eroica computes pairwise distances using Manhattan distance. Points lying far outside the peer distribution are isolated as performance anomalies.
Once abnormal behaviors are isolated, Eroica feeds the structured findings into an AI auto-agent designed to map performance anomalies directly to relevant lines of source code or infrastructure configurations for automated remediation.
Experimental Setup & Results
▶ Watch: Comparing fingerprints and localizing abnormal behaviors (10:40)
Eroica was evaluated in production environments across Alibaba Cloud's large-scale GPU infrastructure consisting of approximately 100,000 GPUs. The system supports heterogeneous hardware environments featuring diverse GPU architectures, host CPU configurations, and distributed training frameworks.
While standard academic datasets and closed synthetic baselines are omitted in favor of production telemetry, the system's efficacy is demonstrated through large-scale operational deployments and concrete case studies:
- Scale of Operation: Deployed across clusters scaling up to 6,144 GPUs per job.
- Diagnostic Yield: Successfully diagnosed over 80 complex performance degradation cases that were impervious to existing monitoring or manual offline profiling tools.
- Case Study (3,400 GPU Video Generation Model):
- Eroica detected that 40 workers exhibited abnormal $\beta$ values for
send/receivecommunication primitives compared to the rest of the cluster, with one worker displaying distinct $\mu$ and $\sigma$ signatures—pinpointing a degraded network interface card (NIC). - It revealed that the remaining 3,360 workers exhibited widely varying communication $\beta$ values (ranging from 9% to 16%), exposing a cluster-level misconfiguration where affinity-based flow scheduling had not been deployed.
- It identified imbalanced input workloads across workers caused by variable video sequence durations, alongside excessive pin-memory execution times on three specific workers due to misconfigured data loader process counts.
- Remediating these issues based on Eroica's diagnostic output yielded a 34.4% end-to-end performance improvement for the training job.
Practical Implications
▶ Watch: Performance improvements and conclusion (15:44)
For infrastructure teams, model builders, and MLOps engineers operating large clusters, Eroica establishes a new blueprint for online observability:
- Eliminating the Profiling Trade-off: Teams no longer need to choose between wide, shallow monitoring and deep, narrow profiling. By abstracting execution into lightweight statistical fingerprints, systems can achieve continuous, cluster-wide deep visibility without saturating network or storage fabrics.
- Clock Desynchronization Resilience: By relying on relative peer comparisons and statistical distributions rather than absolute synchronized timestamps, Eroica avoids one of the most persistent engineering hurdles in distributed systems monitoring.
- Actionable AI Integration: Translating low-level hardware and runtime metrics into structured anomalies creates a clean interface for AI-driven remediation agents, reducing MTTR (Mean Time To Resolution) from days of manual trace analysis to automated root-cause localization.
- Limitations: While Eroica effectively diagnoses structural, hardware, and code-level bottlenecks, its dependency on peer-group consistency assumes that training jobs utilize symmetric SPMD or closely parallelized execution patterns. Highly dynamic asynchronous execution models may require adjustments to peer distribution baselines.
Key Takeaways
- Behavior Fingerprinting Bridges Monitoring and Profiling: Condensing critical-path execution into a 3D vector ($\beta, \mu, \sigma$) achieves a 100,000x data reduction while retaining fine-grained code and hardware visibility.
- Targeted Critical-Path Filtering: Restricting fingerprinting to functions consuming >1% of time on the critical path isolates the performance-defining operations while discarding irrelevant execution noise.
- Relative Peer Comparison Overcomes Clock Skew: Evaluating statistical outliers among workers running identical code eliminates the requirement for strict cluster-wide clock synchronization.
- Production Proven at Scale: Deployed continuously for 1.8 years across ~100,000 GPUs at Alibaba Cloud, handling jobs up to 6,144 GPUs and resolving 80+ production issues unreachable by legacy tools.
- Quantifiable End-to-End Gains: Real-world case studies demonstrate that resolving multi-faceted bottlenecks (network degradation, flow scheduling, workload imbalance) via Eroica outputs delivered a 34.4% performance boost.
About the Speaker(s)
Yu Guan presented this work on behalf of a large engineering and research team from Alibaba Group and the University of Illinois Urbana-Champaign. The author affiliations span core cloud infrastructure, distributed systems, and machine learning systems divisions within Alibaba Group, alongside academic collaboration with UIUC, reflecting a close integration of industrial production scale and rigorous systems research.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)