paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Fault Localization for Buggy Deep Learning Framework Conversions in Image Recognition

图像识别中有缺陷的深度学习框架转换的故障定位
ASE 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE)2023匹配度 4/10 · 论文关注深度学习框架转换过程中的故障定位与修复,属于 ML 系统测试/调试与编译器工具链,与画像中“静态分析用于 ML 系统/Agentic 程序”只有边缘关联;它不涉及 LLM、Agentic、浮点程序分析或贝叶斯程序分析。虽然基于 TVM 且具有工程落地属性,但核心问题与用户当前追踪方向距离较远。引用 7 inbox
Nikolaos Louloudakis, Perry Gibson, José Cano, Ajitha Rajan
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出四阶段深度学习框架转换故障定位与修复方法,在 TVM 上修复权重精度错误,使转换误差归零。

深度神经网络部署时,开发者常将模型从一个深度学习框架转换到另一个框架,但该过程容易出错并损害目标模型准确率。本文先对 MobileNetV2、ResNet101 和 InceptionV3 在 PyTorch、Keras、TensorFlow 与 TFLite 间的转换进行差分分析,发现大量模型崩溃及最高 72% 的输出标签差异。为缓解此类错误,作者提出一种面向预训练图像识别模型的深度学习框架转换故障定位与修复方法,包含转换工具、模型参数、模型超参数和图表示四个分析阶段,并提出相应修复策略。该方法实现于 Apache TVM 深度学习编译器之上,并以 InceptionV3 从 TF 到 TFLite 的转换进行初步故障定位验证。结果发现一个常见 DNN 转换工具引入权重精度误差、降低模型准确率;修复该问题后转换误差降至零。

问题
DNN 模型跨深度学习框架转换容易出错,可能导致模型崩溃或输出标签不一致,进而影响目标模型准确率。
方法
提出四阶段故障定位方法,依次分析转换工具、模型参数、模型超参数和图表示,并给出故障修复策略;方法在 Apache TVM 上实现。
评估
先对 MobileNetV2、ResNet101、InceptionV3 跨 PyTorch、Keras、TF、TFLite 转换做差分分析,再以 InceptionV3 从 TF 到 TFLite 的转换进行初步故障定位,发现并修复转换工具的权重精度错误,使转换误差归零。
原文摘要(Abstract)

When deploying Deep Neural Networks (DNNs), developers often convert models from one deep learning framework to another (e.g., TensorFlow to PyTorch). However, this process is error-prone and can impact target model accuracy. To identify the extent of such impact, we perform and briefly present a differential analysis against three DNNs widely used for image recognition (MobileNetV2, ResNet101, and InceptionV3)converted across four well-known deep learning frameworks (PyTorch, Keras, TensorFlow (TF), and TFLite), which revealed numerous model crashes and output label discrepancies of up to 72%. To mitigate such errors, we present a novel approach towards fault localization and repair of buggy deep learning framework conversions, focusing on pre-trained image recognition models. Our technique consists of four stages of analysis: 1) conversion tools, 2) model parameters, 3) model hyperparameters, and 4) graph representation. In addition, we propose various strategies towards fault repair of the faults detected. We implement our technique on top of the Apache TVM deep learning compiler, and we test it by conducting a preliminary fault localization analysis for the conversion of InceptionV3 from TF to TFLite. Our approach detected a fault in a common DNN converter tool, which introduced precision errors in weights, reducing model accuracy. After our fault localization, we repaired the issue, reducing our conversion error to zero.

链接与引用

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

BibTeX
@inproceedings{LouloudakisGCR23,
  title = {Fault Localization for Buggy Deep Learning Framework Conversions in Image Recognition},
  author = {Nikolaos Louloudakis and Perry Gibson and José Cano and Ajitha Rajan},
  booktitle = {ASE},
  year = {2023},
  doi = {10.1109/ase56229.2023.00147}
}