Understanding and simplifying bug-inducing inputs for deep-learning compilers
Liu, Jiawei
This item is only available for download by members of the University of Illinois community. Students, faculty, and staff at the U of I may log in with your NetID and password to view the item. If you are trying to access an Illinois-restricted dissertation or thesis, you can request a copy through your library's Inter-Library Loan office or purchase a copy directly from ProQuest.
Permalink
https://hdl.handle.net/2142/124525
Description
Title
Understanding and simplifying bug-inducing inputs for deep-learning compilers
Author(s)
Liu, Jiawei
Issue Date
2024-04-18
Director of Research (if dissertation) or Advisor (if thesis)
Zhang, Lingming
Department of Study
Computer Science
Discipline
Computer Science
Degree Granting Institution
University of Illinois at Urbana-Champaign
Degree Name
M.S.
Degree Level
Thesis
Keyword(s)
Compiler Testing
Test Reduction
Deep Learning Compilers
Abstract
With the recent evolution of parallel computing and compilation techniques, deep learning (DL) models have increasingly been deployed using DL compilers to achieve real-time performance in resource-constrained environments. The compiler stack is complex and initially drafted, making the debugging of DL compilers challenging, especially given the limited time and number of compiler experts available. Complicating matters further, the massive and often duplicated bug reports (e.g., fuzzing bugs) may contain obscure or even no error messages (e.g., semantic bugs) for models consisting of thousands of layers. This situation makes it extremely challenging to understand and localize compiler failures. To address this emerging challenge, we propose new techniques for automatically reducing and deduplicating DL compiler bug reports: We define the test-case reduction problem in DL compilers for general graph-level inputs and propose sub-graph minimality as the reduction target. Based on the Delta Debugging framework, we perform validity-preserving graph partitioning guided by heuristics from error-prone patterns. Using graph matching, we deduplicate test cases with graph isomorphism and expedite reductions by matching minimized graphs against incoming ones. We have integrated our techniques into a new tool, NNReduce, which is the first graph-level reducer with a sub-graph minimality guarantee, implemented for ONNX model formats. We applied NNReduce to reduce and deduplicate both fuzzer-generated and real-world bug reports, creating a new dataset for extensive evaluation. Our results show that NNReduce can reduce test cases by up to 3.14× (for fuzzing bugs) and 90.9x (for real-world bugs) smaller than the existing half-automated reduction tool, Polygraphy by NVIDIA. NNReduce also improves error-message-based deduplication by achieving up to a 2.36x smaller distinct set of bug reports.
Use this login method if you
don't
have an
@illinois.edu
email address.
(Oops, I do have one)
IDEALS migrated to a new platform on June 23, 2022. If you created
your account prior to this date, you will have to reset your password
using the forgot-password link below.