Graph Fusion Optimization Based on PyTorch Inductor

Inductor is a new compilation backend introduced by PyTorch in 2022, consisting primarily of modules for graph analysis, operator fusion, scheduling optimization, and low-level code generation. The inductor’s operator fusion module can merge multiple operators into a single, larger fused operator to reduce memory access overhead. However, it currently lacks support for fusion across kernel boundaries, limiting the exploitation of further optimization opportunities. To address this issue, this paper proposes a kernel fusion optimization method based on operator characteristics. The method constructs candidate fusion pairs by extracting operator features such as computational scale and dependency relationships. It also employs a cost evaluation and fusion decision mechanism to automatically perform cross-kernel fusion. Experiments were conducted on the NVIDIA 3060 and A100 platforms. The results show that approximately $30 \%$ of the kernels in the tested models can be effectively fused using the proposed optimization method. The fused kernels achieve an average speedup of 1.6 on the A100 platform and 1.3 on the 3060 platform, while ensuring computational correctness.

Authors

Institutions

Publication Details

Published
2025-06-20
DOI
https://doi.org/10.1109/icecai66283.2025.11170583
Primary Topic
Industrial Technology and Control Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Graph Fusion Optimization Based on PyTorch Inductor

Yingying Li, Ziming Dong, Lin Han, Jianan Li et al.
Industrial Technology and Control Systems
article

Graph Fusion Optimization Based on PyTorch Inductor

Yingying Li, Ziming Dong, Lin Han, Jianan Li, Wei Gao, Can Liu
article en

Abstract

Inductor is a new compilation backend introduced by PyTorch in 2022, consisting primarily of modules for graph analysis, operator fusion, scheduling optimization, and low-level code generation. The inductor’s operator fusion module can merge multiple operators into a single, larger fused operator to reduce memory access overhead. However, it currently lacks support for fusion across kernel boundaries, limiting the exploitation of further optimization opportunities. To address this issue, this paper proposes a kernel fusion optimization method based on operator characteristics. The method constructs candidate fusion pairs by extracting operator features such as computational scale and dependency relationships. It also employs a cost evaluation and fusion decision mechanism to automatically perform cross-kernel fusion. Experiments were conducted on the NVIDIA 3060 and A100 platforms. The results show that approximately $30 \%$ of the kernels in the tested models can be effectively fused using the proposed optimization method. The fused kernels achieve an average speedup of 1.6 on the A100 platform and 1.3 on the 3060 platform, while ensuring computational correctness.

PLA Information Engineering University (CN), Zhengzhou University (CN)
Openalex Percentile: Top 67%
Industrial Technology and Control Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.