paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Semantic-Based Neural Network Repair

基于语义的神经网络修复
ISSTA Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis2023匹配度 6/10 · 论文将可执行语义(PL技术)用于神经网络修复,属于PL与ML交叉,与用户“机器学习与程序语言”方向有交集,且兼具形式化语义与工程实现。但未涉及用户核心关注的静态分析在Agentic程序、浮点程序分析、贝叶斯程序分析或LLM改进分析,主题更偏向神经网络修复,匹配度中等。引用 6 inbox
Richard Schumi, Jun Sun
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出基于深度学习层可执行语义的自动修复方法,递归搜索全局最小修改以修复错误神经网络。

神经网络常通过 TensorFlow、PyTorch 等框架手工编程或由 AutoML 自动生成,而不同层的组合需满足非平凡的约束,因此极易出错。本文提出一种自动修复错误神经网络的方法,其核心挑战在于找到使网络重新合法的极小修改:由于改动某一层会级联影响后续层,算法必须递归搜索才能得到「全局」最小修改。作者基于深度学习层的可执行语义建模四类常见错误,并据此实现修复流程。评估覆盖两种使用场景:修复自动生成的神经网络与手工编写但含常见模型缺陷的真实网络。结果显示,对一组由现有 AI 框架测试方法随机生成的神经网络可实现 100% 修复,平均耗时 21.08 秒;对一组真实神经网络 bug 可修复 93.75%,平均耗时 3 分 40 秒。

问题
在框架中组合不同神经网络层时,层间存在非平凡约束,手工编写或自动生成的网络常因违反这些约束而无效,且修改一层会级联影响后续层,如何自动找到极小且全局有效的修复是难点。
方法
基于深度学习层的可执行语义对网络进行建模,针对四类常见错误,递归搜索能够使网络重新合法的「全局」最小层修改。
评估
在两类场景上评估:修复自动生成的神经网络(100% 修复,平均 21.08 秒)与修复真实神经网络 bug 集合(93.75% 修复,平均 3 分 40 秒)。
原文摘要(Abstract)

Recently, neural networks have spread into numerous fields including many safety-critical systems. Neural networks are built (and trained) by programming in frameworks such as TensorFlow and PyTorch. Developers apply a rich set of pre-defined layers to manually program neural networks or to automatically generate them (e.g., through AutoML). Composing neural networks with different layers is error-prone due to the non-trivial constraints that must be satisfied in order to use those layers. In this work, we propose an approach to automatically repair erroneous neural networks. The challenge is in identifying a minimal modification to the network so that it becomes valid. Modifying a layer might have cascading effects on subsequent layers and thus our approach must search recursively to identify a ''globally'' minimal modification. Our approach is based on an executable semantics of deep learning layers and focuses on four kinds of errors which are common in practice. We evaluate our approach for two usage scenarios, i.e., repairing automatically generated neural networks and manually written ones suffering from common model bugs. The results show that we are able to repair 100% of a set of randomly generated neural networks (which are produced with an existing AI framework testing approach) effectively and efficiently (with an average repair time of 21.08s) and 93.75% of a collection of real neural network bugs (with an average time of 3min 40s).

链接与引用

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

BibTeX
@inproceedings{abs-2306-07995,
  title = {Semantic-Based Neural Network Repair},
  author = {Richard Schumi and Jun Sun},
  booktitle = {ISSTA},
  year = {2023},
  doi = {10.1145/3597926.3598045}
}