Publications

Detailed Information

A Static Analyzer for Detecting Tensor Shape Errors in Deep Neural Network Training Code

Cited 2 time in Web of Science Cited 1 time in Scopus
Authors

Jhoo, Ho Young; Kim, Sehoon; Song, Woosung; Park, Kyuyeon; Lee, DongKwon; Yi, Kwangkeun

Issue Date
2022-05
Publisher
IEEE Computer Society
Citation
2022 ACM/IEEE 44TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2022), pp.337-338
Abstract
We present an automatic static analyzer PyTea that detects tensor-shape errors in PyTorch code. The tensor-shape error is critical in the deep neural net code; much of the training cost and intermediate results are to be lost once a tensor shape mismatch occurs in the midst of the training phase. Given the input PyTorch source, PyTea statically traces every possible execution path, collects tensor shape constraints required by the tensor operation sequence of the path, and decides if the constraints are unsatisfiable (hence a shape error can occur). PyTea's scalability and precision hinges on the characteristics of real-world PyTorch applications: the number of execution paths after PyTea's conservative pruning rarely explodes and loops are simple enough to be circumscribed by our symbolic abstraction. We tested PyTea against the projects in the official PyTorch repository and some tensor-error code questioned in the StackOverflow. PyTea successfully detects tensor shape errors in these codes, each within a few seconds.
ISSN
2574-1926
URI
https://hdl.handle.net/10371/185667
DOI
https://doi.org/10.1109/ICSE-Companion55297.2022.9793771
Files in This Item:
There are no files associated with this item.
Appears in Collections:

Altmetrics

Item View & Download Count

  • mendeley

Items in S-Space are protected by copyright, with all rights reserved, unless otherwise indicated.

Share