paperbot · PL 论文追踪

全部论文 待读 收藏

P0 Detecting TensorFlow Program Bugs in Real-World Industrial Environment

在真实工业环境中检测 TensorFlow 程序缺陷
ASE 2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE)2021匹配度 8/10 · 论文面向工业 TensorFlow 程序的静态缺陷检测,提出基于约束的形状分析工具 ShapeTracer,并在工业平台部署,契合画像中“PL→AI:在机器学习系统中应用静态分析”以及工业落地偏好;但不涉及 LLM/Agentic 程序、浮点或贝叶斯程序分析,因此不是完全正中核心。引用 14 inbox
Chen Liu, Jie Lu, Guangwei Li, Ting Yuan, Lian Li, Feng Tan, Jun Yang, Liang You, Jingling Xue
crossref: 2026-09-12

AI 速览

一句话:通过大规模实证研究并提出基于约束的 ShapeTracer,检测工业 TensorFlow 程序的形状相关缺陷。

深度学习在工业界广泛应用,但程序缺陷可能导致严重故障与资源浪费。本文针对工业 TensorFlow 程序进行缺陷检测,首先对 12,289 个失败的 TensorFlow 作业开展实证研究,发现现有静态工具可有效检测排名前三的 Python 缺陷类型,检测率为 72.55%。针对 TensorFlow 特有的形状相关错误,作者首次提出基于约束的检测方法并实现工具 ShapeTracer。该工具在 60 个工业 TensorFlow 程序上评估:每个程序分析不超过 3 秒,成功检测 40 个程序缺陷且无假阳性。ShapeTracer 已部署于 platform-X 平台,并将开源发布。

问题
工业 TensorFlow 程序中存在多种缺陷,尤其是形状相关错误,现有静态工具覆盖不足且难以在真实环境中高效检测。
方法
对 12,289 个失败作业进行实证研究,并提出基于约束的方法及工具 ShapeTracer 来检测 TensorFlow 形状相关错误。
评估
在 60 个工业 TensorFlow 程序上评估,ShapeTracer 每个程序分析不超过 3 秒,检测出 40 个缺陷且无假阳性,并已部署在 platform-X。
原文摘要(Abstract)

Deep learning has been widely adopted in industry and has achieved great success in a wide range of application areas. Bugs in deep learning programs can cause catastrophic failures, in addition to a serious waste of resources and time.This paper aims at detecting industrial TensorFlow program bugs. We report an extensive empirical study on 12,289 failed TensorFlow jobs, showing that existing static tools can effectively detect 72.55% of the top three types of Python bugs in industrial TensorFlow programs. In addition, we propose (for the first time) a constraint-based approach for detecting TensorFlow shape-related errors (one of the most common TensorFlow-specific bugs), together with an associated tool, ShapeTracer. Our evaluation on a set of 60 industrial TensorFlow programs shows that ShapeTracer is efficient and effective: it analyzes each program in at most 3 seconds and detects effectively 40 out of 60 industrial TensorFlow program bugs, with no false positives. ShapeTracer has been deployed in the platform-X platform and will be released soon.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot6618,
  title = {Detecting TensorFlow Program Bugs in Real-World Industrial Environment},
  author = {Chen Liu and Jie Lu and Guangwei Li and Ting Yuan and Lian Li and Feng Tan and Jun Yang and Liang You and Jingling Xue},
  booktitle = {ASE},
  year = {2021},
  doi = {10.1109/ase51524.2021.9678891}
}