paperbot · PL 论文追踪

全部论文 待读 收藏

P0 Detecting numerical bugs in neural network architectures

检测神经网络架构中的数值缺陷
FSE Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2020匹配度 8/10 · 该论文将抽象解释静态分析应用于神经网络架构中的数值缺陷检测,直接对应 PL→AI 方向中“在机器学习系统中应用静态分析”的核心兴趣,且兼具理论形式化(抽象解释)与工程实现(DEBAR 工具、真实架构评估)。但未涉及 LLM/Agent 程序或浮点精度分析,因此并非完全正中当前所有核心问题。引用 65 inbox
Yuhao Zhang, Luyao Ren, Liqian Chen, Yingfei Xiong, Shing-Chi Cheung, Tao Xie
crossref: 2026-09-12

AI 速览

一句话:首次面向神经网络架构,提出基于抽象解释的静态分析以检测数值缺陷。

论文首次尝试在架构层面静态检测深度学习软件的数值缺陷。作者提出基于抽象解释的分析方法 DEBAR,分别对张量和数值进行抽象,并结合张量分区与逐元素仿射关系分析(以及区间分析)以兼顾检测精度与可扩展性。在含已知缺陷的神经网络架构和真实架构上评估:DEBAR 对已知缺陷全部检出且无误报,每个架构耗时 1.7–2.3 秒;在真实架构上报告 529 条警告,其中 299 条为真阳性,且精度优于其他张量与数值抽象技术。

问题
如何在神经网络架构层面静态检测数值缺陷,从而发现模型层面难以发现的错误。
方法
提出基于抽象解释的 DEBAR,使用张量分区和逐元素仿射关系分析分别抽象张量与数值,并与区间分析组合。
评估
在已知缺陷架构和真实架构上评估,报告检出率、误报与耗时,并与其它张量/数值抽象技术进行精度对比。
原文摘要(Abstract)

Detecting bugs in deep learning software at the architecture level provides additional benefits that detecting bugs at the model level does not provide. This paper makes the first attempt to conduct static analysis for detecting numerical bugs at the architecture level. We propose a static analysis approach for detecting numerical bugs in neural architectures based on abstract interpretation. Our approach mainly comprises two kinds of abstraction techniques, i.e., one for tensors and one for numerical values. Moreover, to scale up while maintaining adequate detection precision, we propose two abstraction techniques: tensor partitioning and (elementwise) affine relation analysis to abstract tensors and numerical values, respectively. We realize the combination scheme of tensor partitioning and affine relation analysis (together with interval analysis) as DEBAR, and evaluate it on two datasets: neural architectures with known bugs (collected from existing studies) and real-world neural architectures. The evaluation results show that DEBAR outperforms other tensor and numerical abstraction techniques on accuracy without losing scalability. DEBAR successfully detects all known numerical bugs with no false positives within 1.7–2.3 seconds per architecture. On the real-world architectures, DEBAR reports 529 warnings within 2.6–135.4 seconds per architecture, where 299 warnings are true positives.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot5856,
  title = {Detecting numerical bugs in neural network architectures},
  author = {Yuhao Zhang and Luyao Ren and Liqian Chen and Yingfei Xiong and Shing-Chi Cheung and Tao Xie},
  booktitle = {FSE},
  year = {2020},
  doi = {10.1145/3368089.3409720}
}