Pattern-Guided Graph Synthesis for Suppressing Known Defects in DL Compiler Fuzzing
Abstract
Fuzzing is effective at finding bugs in deep learning (DL) compilers, but existing fuzzers repeatedly trigger faults they have already uncovered. Current fuzzers diversify the generated programs, and downstream tools deduplicate bug reports post hoc, but neither stops a fuzzer from generating programs that re-trigger known defects. We present Reprise, a DL compiler fuzzer that suppresses reports of known defects during test generation. Reprise uses a deliberately lightweight generator that builds graphs in a unified intermediate representation (UIR) with local operator signatures. Instead of diversifying programs, Reprise distills each discovered defect into a semantic graph pattern that captures the operators, value constraints, graph context, and data flow required to trigger it. During graph synthesis, it regenerates any node that completes a known pattern, so known defect triggers are avoided before compilation and execution. We evaluate Reprise on three DL compilers: TVM, PyTorch Inductor, and ONNX Runtime. Against its unguided variant, patterns written for the dominant known defects reduce crash reports by 90.2% on TVM (254 to 25) and by 93.8% on PyTorch Inductor (594 to 37), with comparable branch coverage and 1.0-17.9% fewer executed tests. These results come from one run per configuration and concern the defects the patterns were distilled from. Reprise also found 25 previously unknown bugs across the three compilers, 24 of them within one month, of which 7 have been fixed and 12 more confirmed by developers. The replication package has been provided at [11].
Create a lesson
Metadata
- Categories
- cs.PL, cs.SE
Related papers
Tenon: A Unified Programming Framework for Retargetable PIM Compilation
Shared title terminologycs.PLNiansong Zhang, Shiran Guo, Zhiru Zhang
A Compilation Model for Divergent Parallel Workloads
Shared title terminologycs.PLAlexander J Root, Christophe Gyurgyik, Devanshu Ladsaria et al.
CompCert4Lean: Porting a Verified C Compiler to Lean in Six Weeks with Parallel Coding Agents
Shared title terminologycs.PLCong Wang, Zhiyang Chen, Fan Long et al.
Compiling Imperative Hardware Protocol Specifications to Hardware
Shared title terminologycs.PLNikil V. Shyamsunder, Ernest Ng, Adrian Sampson et al.
Compiling Matrix Formulas to Quantum Block Encodings
Shared title terminologycs.PLDaksh Shami, Charles Yuan
Super-Analysis for Aggressive yet Scalable Compiler Optimization
Shared title terminologycs.PLAmirali Ebrahimzadeh, Amir Shaikhha