GRANITE: A Graph Neural Network Model for Basic Block Throughput Estimation
Ondrej Sykora, Phitchaya Mangpo Phothilimthana, Charith Mendis et al. · IEEE International Symposium on Workload Characterization · 2022
Analytical hardware performance models yield swift estimation of desired hardware performance metrics. However, developing these analytical models for modern processors with sophisticated microarchitectures is an extremely laborious task and requires a firm understanding of target microarchitecture’s internal structure. In this paper, we introduce GRANITE1, a new machine learning model that estimates the throughput of basic blocks across different microarchitectures. GRANITE uses a graph representation of basic blocks that captures both structural and data dependencies between instructions. This representation is processed using a graph neural network that takes advantage of the relational information captured in the graph and learns a rich neural representation of the basic block that allows more precise throughput estimation. Our results establish a new state-of-the-art for basic block performance estimation with an average test error of 6.9% across a wide range of basic blocks and microarchitectures for the x86-64 target. Compared to recent work, this reduced the error by 1.7% wile improving training and inference throughput by approximately 3.0×. In addition, we propose the use of multitask learning with independent multi-layer feed forward decoder networks. Our results show that this technique further improves precision of all learned models while significantly reducing per-microarchitecture training costs. We perform an extensive set of ablation studies and comparisons with prior work, concluding a set of methods to achieve high accuracy for basic block performance estimation.1GRANITE: A GRAph Neural network model for basIc block Throughput Estimation
Cited by 14 works. doi:10.1109/iiswc55918.2022.00012 Open-access PDF
Authors
References
- Deep Residual Learning for Image Recognition
- Long Short-Term Memory
- Adam: A Method for Stochastic Optimization
- Detecting Functionality-Specific Vulnerabilities via Retrieving Individual Functionality-Equivalent APIs in Open-Source Repositories
- Multitask Learning
- In-Datacenter Performance Analysis of a Tensor Processing Unit
- Graph neural networks: A review of methods and applications
- Neural Message Passing for Quantum Chemistry
- LLVM: a compilation framework for lifelong program analysis & transformation
- A Comprehensive Survey on Graph Neural Networks