GraphNet: A Large-Scale Computational Graph Dataset for Tensor Compiler Research
Xinqi Li, Yiqun Liu, Shan Jiang, Enrong Zheng, Huaijin Zheng, Wenhao Dai, Haodong Deng, Dianhai Yu, Yanjun Ma
TL;DR
GraphNet introduces a large-scale, real-world dataset of $2.7\mathrm{k}$ computational graphs spanning six task domains to enable systematic, cross-framework tensor-compiler evaluation. It proposes two metrics, the Speedup Score $S_t$ and the Error-aware Speedup Score $ES_t$, that jointly quantify runtime speedup, numerical correctness, and failure types under tunable tolerance levels, and demonstrates these metrics by benchmarking CINN and TorchInductor on CV and NLP workloads. The paper details a three-stage GraphNet pipeline (graph extraction, validation, and compiler evaluation) and a set of dataset constraints to ensure runnable, serializable, decomposable, statically analyzable graphs, with open-source tooling for extraction, validation, and evaluation. By providing a unified, reproducible platform across frameworks and backends, GraphNet aims to drive principled compiler optimization and to facilitate AI-assisted compiler research and high-level IR translation. The authors outline a roadmap to broaden framework and hardware support, refine task granularity, and extend to distributed scenarios, enhancing the dataset’s utility for the research and development of next-generation tensor compilers.
Abstract
We introduce GraphNet, a dataset of 2.7K real-world deep learning computational graphs with rich metadata, spanning six major task categories across multiple deep learning frameworks. To evaluate tensor compiler performance on these samples, we propose the benchmark metric Speedup Score S(t), which jointly considers runtime speedup and execution correctness under tunable tolerance levels, offering a reliable measure of general optimization capability. Furthermore, we extend S(t) to the Error-aware Speedup Score ES(t), which incorporates error information and helps compiler developers identify key performance bottlenecks. In this report, we benchmark the default tensor compilers, CINN for PaddlePaddle and TorchInductor for PyTorch, on computer vision (CV) and natural language processing (NLP) samples to demonstrate the practicality of GraphNet. The full construction pipeline with graph extraction and compiler evaluation tools is available at https://github.com/PaddlePaddle/GraphNet .
