Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutation
Not on the map. Why?
Abstract (arXiv)
In the past decade, Deep Learning (DL) systems have been widely deployed in various domains to facilitate our daily life. Meanwhile, it is extremely challenging to ensure the correctness of DL systems (e.g., due to their intrinsic nondeterminism), and bugs in DL systems can cause serious consequences and may even threaten human lives. In the literature, researchers have explored various techniques to test, analyze, and verify DL models, since their quality directly affects the corresponding system behaviors. Recently, researchers have also proposed novel techniques for testing the underlying operator-level DL libraries (such as TensorFlow and PyTorch), which provide general binary implementations for each high-level DL operator for running various DL models on many platforms. However, there is still limited work targeting the reliability of the emerging tensor compilers, which aim to directly compile high-level tensor computation graphs into high-performance binaries for better efficiency, portability, and scalability. In this paper, we target the important problem of tensor compiler testing, and have proposed Tzer, a practical fuzzing technique for the widely used TVM tensor compiler. Tzer focuses on mutating the low-level Intermediate Representation (IR) for TVM due to the limited mutation space for the high-level IR. More specifically, Tzer leverages both general-purpose and tensor-compiler-specific mutators guided by coverage feedback for evolutionary IR mutation; furthermore, Tzer also performs pass mutation in tandem with IR mutation for more effective fuzzing. Our results show that Tzer substantially outperforms existing fuzzing techniques on tensor compiler testing, with 75% higher coverage and 50% more valuable tests than the 2nd-best technique. To date, Tzer has detected 49 previously unknown bugs for TVM, with 37 bugs confirmed and 25 bugs fixed (PR merged).
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 24 of its 75 references that are in the map. First posted on arXiv 21 Feb 2022.
Builds on
24 of 75 references.
References · 24
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2018OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fieldscited by 1,161
- 2019A Survey of Deep Learning Techniques for Autonomous Drivingcited by 401
- 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 307
- 2017Recent Trends in Deep Learning Based Natural Language Processingcited by 262
- 2017DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Carscited by 249
- 2014cuDNN: Efficient Primitives for Deep Learningcited by 240
- 2019PifPaf: Composite Fields for Human Pose Estimationcited by 120
- 2018Glow: Graph Lowering Compiler Techniques for Neural Networkscited by 73
- 2018TensorFuzz: Debugging Neural Networks with Coverage-Guided Fuzzingcited by 67
12 more
- 2020MLIR: A Compiler Infrastructure for the End of Moore's Lawcited by 64
- 2018TVM: An Automated End-to-End Optimizing Compiler for Deep Learningcited by 62
- 2018The Art, Science, and Engineering of Fuzzing: A Surveycited by 61
- 2018DeepBillboard: Systematic Physical-World Testing of Autonomous Driving Systemscited by 50
- 2020The Deep Learning Compiler: A Comprehensive Surveycited by 46
- 2018Evaluating Fuzz Testingcited by 29
- 2022Free Lunch for Testing: Fuzzing Deep-Learning Libraries from Open Sourcecited by 27
- 2017FairFuzz: Targeting Rare Branches to Rapidly Increase Greybox Fuzz Testing Coveragecited by 20
- 2020Compiling ONNX Neural Network Models Using MLIRcited by 18
- 2016Skeletal Program Enumeration for Rigorous Compiler Testingcited by 6
- 2021Fast and Flexible Human Pose Estimation with HyperPosecited by 5
- 2020SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedbackcited by 4
Built on by
Citing papers per year: 2022: 1; 2023: 4; 2024: 0; 2025: 3; 2026: 1.
9 papers.
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Modelscited by 37
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 29
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 6
- 2026Where Agent Frameworks Fall Short: Examining Functional Challenges and Usability Concernscited by 3
- 2025DiTOX: Fault Detection and Localization in the ONNX Optimizercited by 1
- 2025TTrace: Lightweight Error Checking and Diagnosis for Distributed Trainingcited by 1
- 2023Exploring Robustness of Image Recognition Models on Hardware Acceleratorscited by 0
- 2025Verifying Computational Graphs in Production-Grade Distributed Machine Learning Frameworkscited by 0
- 2026Where Agent Frameworks Fall Short: Examining Functional Challenges and Usability Concerns25 Feb 2026
- 2025Verifying Computational Graphs in Production-Grade Distributed Machine Learning Frameworks12 Sep 2025
- 2025TTrace: Lightweight Error Checking and Diagnosis for Distributed Training10 Jun 2025
- 2025DiTOX: Fault Detection and Localization in the ONNX Optimizer3 May 2025
- 2023WhiteFox: White-Box Compiler Fuzzing Empowered by Large Language Models24 Oct 2023
- 2023Exploring Robustness of Image Recognition Models on Hardware Accelerators2 Jun 2023
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation2 May 2023
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inference4 Feb 2023
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilers26 Jul 2022