Skip to main content
Back

Alibaba Cloud's EROICA Diagnoses 97.5% of GPU Cluster Failures Without Stopping Training

Alibaba Cloud's EROICA diagnoses GPU training slowdowns across 100,000-GPU clusters in under 7 minutes, achieving 97.5% success on issues that stumped every existing tool

Pro
Paper, Full Access
  • What it is: EROICA is the first online profiling-based system that diagnoses GPU training slowdowns across an entire cluster simultaneously, without stopping training.
  • Scale: Deployed on ~100,000 GPUs at Alibaba Cloud for 1.5 years; diagnosed 80 hard cases with a 97.5% success rate.
  • Core trick: Compresses per-worker profiling data from ~3 GB to 30 KB using 3-number behavior pattern summaries (critical-path time, mean utilization, std deviation), enabling cluster-wide comparison.
  • Speed: Full end-to-end diagnosis of a 3,400-GPU job in 3 minutes; scales to a hypothetical 1,000,000-GPU job in 7 minutes.
  • Catches what others miss: Finds code bugs (garbage collection races, CPU bottlenecks), hardware faults (NIC down, GPU throttling), and mixed issues simultaneously — existing tools only caught 29.6% of production issues.
  • Limitation: Cannot diagnose interference from processes outside the training container; complex user-defined function bugs still require human code inspection.

Training a large model across tens of thousands of GPUs is one of the most operationally complex things you can do in computing. When something slows down, figuring out why is a nightmare: the culprit could be a flaky NIC on one machine out of thousands, a Python garbage collection race, a misconfigured data loader, or a throttling GPU buried in a specific rack. EROICA, a new system from Alibaba Cloud and UIUC presented at NSDI '26, is the first tool that can diagnose all of these problems online, across an entire GPU cluster, without stopping training.

The gap nobody had closed

Before EROICA, engineers had two imperfect options. Online monitors like DCGM or MegaScale watch hardware counters (GPU utilization, NIC throughput, etc.) at coarse granularity, typically once per second. They cover the whole cluster but can only detect broad symptoms, not root causes. Offline profilers like Torch Profiler or Nsight Systems record everything at microsecond resolution, but generate so much data (100+ MB per worker per second) that running them on a 10,000-GPU job produces roughly 1 TB of data every second. That is untenable, so engineers profile a handful of workers in a test environment instead.

The problem is that reproducing production issues in a testbed is not always possible or timely. User code is often confidential and cannot be disclosed to the GPU cluster provider. There are still 7.4% of performance issues that cannot be reproduced at all, and for the ones that eventually get reproduced, it takes days to months of effort. Meanwhile, the cluster keeps burning compute budget.

In production, only 29.6% of performance issues can be diagnosed and root-caused by existing online monitoring tools. The rest require manual investigation or offline profiling, both of which are slow and incomplete. Over nine months on a ~100,000-GPU cluster, 44.4% of performance issues were caused by hardware and 48.2% by software, meaning any tool that only watches hardware will miss roughly half of all problems by design.

The core insight: behavior patterns, not raw traces

EROICA's key observation is that large model training is highly repetitive and symmetric. Every training iteration runs the same functions in the same order. In a healthy run, every worker executing the same function should show similar hardware utilization and timing. A worker that deviates is the one with the problem.

Instead of collecting raw profiling traces (which are enormous), EROICA summarizes the runtime behavior pattern of each function on each worker as a compact 3-dimensional vector: the fraction of time the function spends on the critical path (β), the average hardware resource utilization during execution (μ), and the standard deviation of that utilization (σ). These three numbers capture whether a function is taking too long, whether the hardware it uses is performing poorly, and whether the hardware is behaving erratically.

The compression is dramatic. The size of runtime behavior patterns (30 KB) is 10⁵× smaller than the raw profiling data (~3 GB) for a single worker. This means that even for a 10,000-worker job, the total data to analyze is only 300 MB, which fits on a single CPU core.

Timeline diagram showing EROICA daemon system phases: localization, summarization, profiling, data collection, and training

A critical design choice is that all three dimensions of the behavior pattern are independent of absolute timestamps. This means EROICA can compare workers across machines without any clock synchronization, which is important because NTP clock errors on production hosts can be ~10 milliseconds, while many GPU functions execute in microseconds.

How it works, step by step

EROICA runs as a daemon alongside each training worker. To use it, the user only needs to add import Eroica to the training script. No other code changes are needed. Behind that single import, EROICA hooks into PyTorch's dataloader.next() and optimizer.step() calls to track iteration timing without touching user logic.

  1. Degradation detection. EROICA continuously monitors iteration durations. It triggers profiling when the average of the last 50 iterations exceeds the recent best by more than 5%, or when training appears to be blocked entirely.
  2. Synchronized profiling. When a slowdown is detected, rank-0 broadcasts a unified start/stop iteration ID to all workers via TCP. Every worker starts profiling simultaneously for a 20-second window, using Torch Profiler for Python/CUDA events and Nsight Systems for hardware metrics at 10 kHz.
  3. Pattern summarization. Each worker's daemon processes its raw profiling data locally, computing the (β, μ, σ) vector for every function on the critical path. Only these compact summaries are uploaded, not the raw traces.
  4. Localization. A central algorithm compares patterns across all workers. It flags a function on a specific worker as abnormal if its behavior deviates from the expected range (based on production experience) or if it is a statistical outlier compared to its peers, using Median Absolute Deviation to avoid sensitivity to the outliers themselves.
Flowchart showing EROICA's iteration detection and performance degradation detection pipeline

Identifying abnormal function executions for a 3,400-GPU training job takes only 3 minutes, and the system can analyze a 1,000,000-GPU job in 7 minutes. The profiling, summarization, and localization steps are all parallelized across workers, so only the final localization step scales with cluster size, and even that runs on a single CPU core.

What it found in production

EROICA has been deployed as a production service for GPU clusters of ~100,000 GPUs for 1.5 years, diagnosing a variety of difficult performance issues with 97.5% success. The team evaluated it against 80 serious performance issues that existing tools had failed to diagnose. Here is a breakdown of what those issues actually were:

CategoryRoot CauseCases
HardwareGPU throttling, CPU, Network10
MisconfigurationsPyTorch, Communication, Dataloader15
User codeLow-efficiency implementations45

The case studies show just how subtle these bugs can be. In one job running on 3,072 H800 GPUs, EROICA simultaneously found three separate problems: slow data loading from object storage, a CPU-bottlenecked forward pass, and asynchronous Python garbage collection causing random workers to stall and force everyone else to wait. The customer had already used Torch Profiler and Nsight Systems offline, but none of the three problems were detected, because each only manifested in a few random workers per iteration, not all workers.

In another job on 3,400 GPUs, EROICA found four simultaneous problems: suboptimal network flow scheduling, a downed NIC on a newly added host whose monitoring agent had not been updated, excessive pin_memory calls on three workers causing cluster-wide stalls, and load imbalance from variable-length video inputs. With all fixes applied, the input data processing rate improved from 7,173 samples/day to 9,644 samples/day, a 34% end-to-end performance improvement.

EROICA also demonstrated an early AIOps integration: in a robotics training job that had deadlocked, EROICA's output was fed directly as a prompt to Cursor (Sonnet 4.5), which immediately identified a distributed deadlock caused by a debug print statement that triggered an implicit all-gather on a sharded array. Cursor then automatically generated the fix.

Overhead: nearly zero in practice

The profiling window itself (20 seconds) does introduce overhead during that window, but profiling does not affect the performance of production LMTs in most configurations; summarization and localization complete within three minutes. Pattern summarization, uploading, and root cause localization occur outside the training process, introducing zero overhead to the training task.

The one exception: small models with high tensor parallelism (like GPT-3 7B with TP=2) see 11-16% overhead during the profiling window because those configurations are CPU-heavy and profiling competes for CPU. However, these configurations are not used in production at scale.

Memory profiling visualization of transformer layers 20, 21, 22 showing module hierarchy and memory allocation patterns

Where it falls short

EROICA is not a silver bullet. The paper documents two failure modes explicitly:

  • External process interference. If a background process on the host (outside the training container) contends for GPU resources, EROICA will see the symptom (slower kernels) but not the cause, because it only profiles the training process. One case study shows this took a team of 20 engineers a full month to debug via binary search across hundreds of commits.
  • Complex user-defined functions. When EROICA flags a slow Python function with complex internal logic, it can identify that the function is the bottleneck but cannot automatically explain why. Human code inspection is still required.

EROICA does not ensure detecting problems outside the training task. For example, a background process running on the physical host may incidentally consume too many resources, leading to a performance issue for the training task in the container on that host. The team plans to address this by expanding the diagnosis scope to all LMT-related processes on the host automatically.

The bigger picture

What makes EROICA significant is not just the 97.5% success rate, but the class of problems it can find. Existing online monitors can only detect general symptoms but cannot pinpoint fine-grained root causes such as which line of code or which network link caused the degradation. EROICA closes that gap without requiring engineers to reproduce issues in a testbed, without needing access to user code, and without stopping the training run.

The paper is published as part of NSDI '26, and the system was built from roughly 7,000 lines of Python. No public code release has been announced, as it is deployed as a production service inside Alibaba Cloud's GPU infrastructure. For teams running large-scale training on their own clusters, the paper's methodology, especially the behavior pattern summarization and differential observability approach, is detailed enough to serve as a blueprint for building something similar.