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

Evaluating Cross-Architecture Performance Modeling of Distributed ML Workloads Using StableHLO

Jonas Svedas, Nathan Laubeuf, Ryan Harvey, Arjun Singh, Changhai Man, Abubakr Nada, Tushar Krishna, James Myers, Debjyoti Bhattacharjee

TL;DR

This paper introduces a unified simulation methodology that uses MLIR’s StableHLO dialect as a common workload representation for distributed machine learning performance modeling. By decoupling the workload description from architecture-specific simulators, the proposed framework allows researchers to evaluate the same ML model across different hardware targets (GPUs and TPUs) and simulation fidelities (analytical, profiling, and simulation-based). The results demonstrate that this approach accurately preserves relative performance trends while drastically reducing the engineering overhead of cross-platform evaluation.

What Problem Does This Paper Address?

As large-scale distributed machine learning (ML) workloads continue to scale, predicting their performance across diverse hardware architectures is critical for system design. However, the current simulation ecosystem is highly fragmented. GPU and TPU simulators have evolved independently, each requiring distinct software stacks, workload abstractions, and trace formats.

Consequently, when developers want to transition a workload from a fast, early-stage analytical model to a high-fidelity hardware simulator, or compare performance between a GPU and a TPU, they must repeatedly rewrite or approximate the workload. This fragmentation makes cross-validation incredibly difficult: it is often impossible to tell whether a performance discrepancy stems from actual architectural differences or simply from inconsistencies in how the workload was represented.

Methods

The authors address this fragmentation by building a unified evaluation pipeline based on StableHLO, an operation-level intermediate representation (IR) designed for machine learning compilers.

Fig. 2: Overview of the StableHLO-based evaluation methodology for distributed ML performance modeling. Workloads are represented in StableHLO, subjected to compiler optimizations and slicing, and mapped through a common compute API to multiple compute backends, including analytical, simulation-based, and profiling-based estimators. The resulting latencies are added to a trace and input to a network simulation backend modeling distributed execution. This workflow enables reuse of a single workload representation across simulation fidelities, accelerator architectures, and modeling tools, supporting cross-correlation and validation of performance results.

As illustrated in the methodology overview above, the pipeline operates in four distinct stages:

  1. Workload Export: Distributed ML workloads are exported directly into StableHLO with their sharding annotations and collective communication primitives intact.
  2. Optimization & Slicing: The raw StableHLO is passed through compiler optimization tools (like OpenXLA's hlo-opt) to simulate realistic compilation effects. It is then sliced into distinct compute and communication regions using either linear or dependency-aware splitting algorithms.
  3. Compute Estimation: Slices are mapped via a unified Compute API to various performance estimators. These range from fast analytical roofline models to cycle-accurate systolic-array simulators (like COCOSSim and ONNXim) and real-device profiling.
  4. Network Simulation: The annotated compute latencies and communication sizes are converted into standardized Chakra traces and fed into network simulators like ASTRA-sim to model full-system distributed execution.

To make this computationally feasible, the framework implements a latency caching mechanism. Because modern ML models rely on repetitive structures (like stacked transformer blocks), the framework caches the latency of identical compute regions, reducing evaluation times by up to ~90%.

Datasets

The methodology was evaluated using three representative distributed training workloads exported from JAX, Flax, and MaxText:

  • ResNet (variants 18 to 200): 11M–65M parameters, utilizing FP16 precision and standard Data Parallelism (DP).
  • Llama-3.1 (0.1B to 3B): Utilizing BF16 precision and Fully Sharded Data Parallel (FSDP) configurations.
  • Llama-2 (7B): A large-scale workload utilizing BF16 and Data Parallelism, scaled across 16 to 128 nodes.

Key Insights and Ideas

  • Relative Trends Matter More Than Absolute Accuracy: While absolute accuracy varies across simulation fidelities, StableHLO consistently preserves relative performance trends (such as speedups across hardware generations). This makes it highly valuable for early-stage architectural exploration.
  • The "Slicing Penalty" in Profiling: Slicing a workload into isolated compute regions for profiling introduces a pessimistic bias. Because the regions are evaluated in isolation, the compiler cannot perform global, end-to-end optimizations like operator fusion, leading to overestimated latencies.
  • The Simulator-Compiler Mismatch: High-fidelity, instruction-level simulators like Accel-Sim face a severe compatibility gap with modern ML compiler stacks (like XLA and IREE). Generating compatible PTX/SASS code requires manual modifications, and simulation times can exceed 15 hours per kernel, making end-to-end simulation at scale impractical.

Key Results

  • GPU Generation Scaling: When predicting relative speedups across four generations of NVIDIA GPUs (A100 $\rightarrow$ H100 $\rightarrow$ H200 $\rightarrow$ B200) for Llama-3 workloads, the profiling-based estimator achieved a remarkably low mean absolute error of 4.3%, compared to 12.0% for the analytical model.
  • Scale-Out Performance: In large-scale Llama-2 configurations (up to 128 GPUs), the analytical estimator maintained a stable 26% error relative to the reference hardware, successfully capturing the qualitative increase in communication bottlenecks at scale.
  • TPU Evaluation: On an 8-core TPUv3 system, the analytical estimator achieved an absolute error of 19–24% across all model sizes. Integrating the cycle-accurate COCOSSim simulator captured the overall trend but exhibited higher deviations (27–38%) due to a lack of visibility into proprietary, TPU-specific compiler scheduling.

Limitations and Future Work

The authors acknowledge several inherent limitations of using StableHLO for performance simulation. Because StableHLO was designed as a high-level interchange format rather than a simulation IR, it does not encode backend-specific details such as low-level memory placement, scratchpad allocation, or hardware scheduling. Furthermore, capturing optimized workloads often requires selectively disabling certain compiler passes to ensure the code can be successfully raised back into StableHLO.

Future work will focus on developing intermediate-fidelity GPU performance models that better balance accuracy and scalability, as well as improving the framework's visibility into low-level compiler decisions to close the gap between analytical and simulation-based predictors.

Summary updated

BibTeX
@misc{svedas2026evaluating,
  author = {Jonas Svedas and Nathan Laubeuf and Ryan Harvey and Arjun Singh and Changhai Man and Abubakr Nada and Tushar Krishna and James Myers and Debjyoti Bhattacharjee},
  title = {{Evaluating Cross-Architecture Performance Modeling of Distributed ML Workloads Using StableHLO}},
  year = {2026},
  eprint = {2604.12090},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.12090},
}

Loading related content...

Figure