SynPerf: A Hybrid Analytical-ML Framework for GPU Performance Prediction

Kaixuan Zhang, Yunfan Cui, Shuhao Zhang, Chutong Ding, Shiyou Qian, Luping Wang, Jian Cao, Ju Ren, Cheng Huang, Guodong Yang, Liping Zhang

Abstract

The rapid expansion of Transformer-based large language models has dramatically increased the need for high-performance GPUs. As a result, there is growing demand for fast, accurate, and widely generalizable GPU performance models to support next-generation hardware selection and system-level exploration. However, current data-driven methods are limited, exhibiting poor generalization across hardware and inadequate modeling of complex production-level kernels common in modern inference stacks. To address these issues, we present SynPerf, a unified GPU modeling framework. This approach first employs an analytical model to quantify a given kernel's demands on the GPU's heterogeneous instruction pipelines. These analytical features are then fed into a machine learning (ML) model to capture complex cross-pipeline interactions and resource dependencies, enabling high-fidelity performance prediction. Our evaluation across 11 GPU types from four generations of major architectures on two widely-used serving systems demonstrates that SynPerf delivers high fidelity and strong generalizability. It achieves accurate predictions, with only 6.1% average error at the kernel level and 8.5% for end-to-end inference -- reducing the error of state-of-the-art methods by 6.7x and 4.4x, respectively. We also demonstrate SynPerf's value "beyond simulation" by utilizing its performance ceiling to diagnose implementation shortcomings and guide the optimization of a production fused MoE Triton kernel, achieving up to 1.7x speedup.

Introduction: The Hardware-Software Co-Evolution Crisis

As Transformer-based models explode in scale, system architects face a significant challenge. New GPU architectures, such as NVIDIA’s Hopper or Blackwell, are released faster than they can be comprehensively benchmarked. This creates a critical need for performance models that are both fast and accurate to support hardware selection and system-level exploration.

Existing performance models generally fall into three categories, each with significant drawbacks:

  1. Cycle-accurate simulators: While they offer high fidelity, they are extremely slow, making them impractical for large-scale design space exploration.
  2. Analytical models (e.g., Roofline): These are fast but rely on oversimplified assumptions. They often fail to capture the complexity of modern "fused" kernels (like FlashAttention) or the contention between different hardware pipelines.
  3. Pure Data-driven (ML) models: These models are fast but struggle to generalize to new hardware because they lack an understanding of the underlying GPU architecture.

The core issue identified by the authors is "mismatched granularity." Current models often treat GPU execution as a monolithic event, ignoring the complex interplay of heterogeneous instruction pipelines such as Tensor cores, FMA units, and memory controllers.

GPU hardware hierarchy and heterogeneous instruction pipelines.

The SynPerf Framework

SynPerf addresses these limitations through a hybrid approach that integrates deep architectural analysis with machine learning. The framework consists of a four-stage pipeline designed to "weave" domain knowledge into a predictive model.

The SynPerf hybrid analytical-ML framework pipeline.

1. Kernel Decomposer

The process begins by breaking down a kernel—such as a GEMM or Attention operation—into fundamental "tasks," which are the basic schedulable units of work. For open-source kernels, SynPerf extracts logic directly from the code. For closed-source libraries like cuBLAS, it employs empirical profiling to reverse-engineer the task partitioning strategies.

2. Scheduling Simulator

This stage models how tasks are assigned to Streaming Multiprocessors (SMs). It supports standard hardware-based Round-Robin scheduling as well as the "persistent kernel" software schedulers frequently used in high-performance libraries to minimize overhead.

3. Feature Analyzer

The Feature Analyzer is the analytical heart of SynPerf. Rather than relying on a single "roofline" metric, it calculates separate theoretical cycles for every major instruction pipeline:

  • Tensor: For matrix-multiplication-heavy operations.
  • FMA: For standard floating-point math.
  • XU: For special functions (e.g., exponentials, reciprocals).
  • MIO: For memory input/output operations.

4. Performance Estimator

Finally, a lightweight Multi-Layer Perceptron (MLP) takes these analytical features as input. Because these features are grounded in hardware specifications (like bandwidth and throughput), the ML model can effectively learn non-linear interactions—such as resource contention and stalls—while maintaining the ability to generalize to entirely new GPU architectures.

Datasets and Evaluation

To validate SynPerf, the authors constructed a massive dataset of approximately 1 million samples. They profiled six key LLM kernels (Attention, GEMM, RMSNorm, SiLU&Mul, Scaled MM, and Fused MoE) across 11 different NVIDIA GPU types spanning four generations: Ampere, Ada, Hopper, and Blackwell.

The training set included established GPUs like the A100 and H800. Crucially, the testing set included "unseen" architectures like the H100, H200, and the Blackwell-based RTX PRO 6000 S to rigorously test the model's generalizability.

Key Insights: Multi-Dimensional Bottlenecks

A central insight of this work is that a single bottleneck rarely exists in isolation. A kernel might be limited by Tensor cores during one phase of execution and by Memory I/O in another. By providing the ML model with theoretical cycles for every pipeline, SynPerf identifies the true "choke point" dynamically.

Furthermore, the authors utilized Quantile Regression to train a version of the model that predicts the 80th percentile (P80) of performance. This acts as a "Potential Performance Ceiling," representing the best possible performance an optimized implementation could achieve on a given hardware.

Results and Real-World Impact

SynPerf demonstrates state-of-the-art performance across multiple metrics:

  • Kernel-Level Accuracy: It achieved a 6.1% average error on seen GPUs and 11.4% on completely unseen architectures, representing a 6.7× reduction in error compared to previous methods like Neusight.
  • End-to-End Inference: For full LLM inference (e.g., Llama-3, Qwen-2.5), SynPerf maintained an 8.5% error rate, outperforming baselines by 4.4×.
  • Efficiency: Predictions take only seconds on a standard CPU, enabling rapid system-level exploration.

Beyond prediction, SynPerf provides actionable insights for optimization. By comparing actual performance to the P80 ceiling, the authors identified that the A40 GPU was underperforming on MoE kernels. This diagnosis led to the optimization of a production Fused MoE Triton kernel, resulting in a 1.7× speedup.

Conclusion and Future Work

SynPerf represents a significant step forward in GPU performance modeling by combining the speed of ML with the physical grounding of analytical models. While currently focused on NVIDIA GPUs, the underlying principles are generalizable. Future work includes extending the framework to other vendors (AMD, Intel), modeling complex distributed patterns like Expert Parallelism, and developing automated tools to suggest optimal kernel configurations.

Summary updated

BibTeX
@inproceedings{zhang2026synperf,
  author = {Kaixuan Zhang and Yunfan Cui and Shuhao Zhang and Chutong Ding and Shiyou Qian and Luping Wang and Jian Cao and Ju Ren and Cheng Huang and Guodong Yang and Liping Zhang},
  title = {{SynPerf: A Hybrid Analytical-ML Framework for GPU Performance Prediction}},
  booktitle = {ISCA},
  year = {2026},
  doi = {10.1109/isca66397.2026.00126},
}
Figure