How well does graph superoptimization transfer? Adapting tensor-graph superoptimizer to a Triton-based NPU
Weronika Hryniewska-Guzik, Mateusz Comblik, Daniel Murawski, Jakub Schmiegel, Maciej Świetlik, Maciej Kokociński, Tadeusz Kobus
Abstract
For automatic optimization systems, performance portability across increasingly diverse AI accelerators remains a challenge. We investigate how well graph-level superoptimization transfers across architectures by adapting Mirage from its CUDA-oriented design to the Huawei Ascend 910B3 through a Triton-based compilation stack. We evaluate the adapted system on transformer-relevant workloads, including matrix multiplication, softmax, RMSNorm+MatMul, gated MLP, FNN, and attention. The results show that graph-level optimization can successfully transfer and outperform available reference implementations by up to 87.0% on fused workloads. However, performance is highly dependent on tensor shape and workload structure, with substantial regressions for other configurations. We identify target-specific tensor partitioning, execution-resource modeling, backend lowering and fusion, and search and verification costs as key limitations. Our findings demonstrate that a portable graph representation and programming model do not imply a portable optimization space, motivating modular target-specific mechanisms within otherwise reusable compiler infrastructure.
Create a lesson
Related papers
Instruction-Aware Transfer of GPU Implementation Crossovers: a Tensor-Product Discontinuous Galerkin Operator on GB200, H100, and A100
Shared title terminology · Seiya Nishizawa, Yuta Kawai, Xuanzhengbo Ren
Dense Matrices Are Alike; Sparse Matrices Are Sparse in Their Own Way: A Structure-Adaptive Tile Cholesky Factorization
Shared title terminology · Esmail Abdul Fattah, Hatem Ltaief, Håvard Rue et al.
Strong aggregation of the Markov chains associated with matching models based on the automorphism group of their compatibility graphs
Shared title terminology · Moyi Yang, Jean-Michel Fourneau
Accelerating Transfer-Learning-Based Autotuning with Predictive LLVM IR Performance Ranking
Shared title terminology · Md Arafat Hossain, Thomas Randall, Akash Dutta et al.
Adaptation Fidelity of SPEC CPU2026
Shared title terminology · Doa'a Al-Otoom, Mahesh Madhav
A-Graph: A Unified Graph Representation for Cross-Stack Cost Modeling
Shared title terminology · Daniel Price, Prabhu Vellaisamy, Patricia Gonzalez et al.