paper-with-me

홈 › Papers

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

2021-12-16 · Ho Young Jhoo, Sehoon Kim, Woosung Song, Kyuyeon Park, DongKwon Lee, Kwangkeun Yi

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.

📄 PDF Abstract BibTeX arXiv:2112.09037

Code (1)

ropas/pytea 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Pruning 설명 없음

Similar Papers 제목 키워드 기반

KNighter: Transforming Static Analysis with LLM-Synthesized Checkers

2025-03-12 · Chenyuan Yang, Zijie Zhao, Zichen Xie, Haoyu Li 외

Static analysis is a powerful technique for bug detection in critical systems like operating system kernels. However, designing and implementing static analyzers is challenging, time-consuming, and typically limited to p…

ShapeFlow: Dynamic Shape Interpreter for TensorFlow

2020-11-26 · Sahil Verma, Zhendong Su

We present ShapeFlow, a dynamic abstract interpreter for TensorFlow which quickly catches tensor shape incompatibility errors, one of the most common bugs in deep learning code. ShapeFlow shares the same APIs as TensorFl…

TensorAnalyzer: Identification of Urban Patterns in Big Cities using Non-Negative Tensor Factorization

2022-10-06 · Jaqueline Silveira, Germain García, Afonso Paiva, Marcelo Nery 외

Extracting relevant urban patterns from multiple data sources can be difficult using classical clustering algorithms since we have to make a suitable setup of the hyperparameters of the algorithms and deal with outliers.…

ClusteringDecision MakingTensor Decomposition

IntelliSA: An Intelligent Static Analyzer for IaC Security Smell Detection Using Symbolic Rules and Neural Inference

2026-01-21 · Qiyue Mei, Michael Fu arxiv

Infrastructure as Code (IaC) enables automated provisioning of large-scale cloud and on-premise environments, reducing the need for repetitive manual setup. However, this automation is a double-edged sword: a single misc…

Knowledge Distillation

Can Large Language Models Find And Fix Vulnerable Software?

2023-08-20 · David Noever

In this study, we evaluated the capability of Large Language Models (LLMs), particularly OpenAI's GPT-4, in detecting software vulnerabilities, comparing their performance against traditional static code analyzers like S…