paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Revisiting Neuron Coverage for DNN Testing: A Layer-Wise and Distribution-Aware Criterion

重访DNN测试中的神经元覆盖:一种逐层且分布感知的准则
ICSE 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE)2023匹配度 2/10 · 该论文研究DNN测试覆盖准则与输入变异,属于机器学习测试/调试方向,而非用户核心关注的静态分析在ML/Agentic程序中的应用、LLM/Agent改进静态分析、浮点程序分析或贝叶斯程序分析。与用户画像交叉点很少。引用 45 inbox
Yuanyuan Yuan, Qi Pang, Shuai Wang
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出逐层、分布感知的DNN测试覆盖准则NLC,以层输出分布多样性指导输入变异并更有效发现错误。

现有DNN覆盖准则多基于单个神经元输出或输出差异,但研究表明其与测试集质量相关性有限。本文认为DNN通过分层结构近似分布进行预测,应从层视角依据近似分布刻画行为,并用层输出分布评估测试集、指导输入变异以增加分布多样性。作者总结覆盖准则的八项设计需求,提出Neural Coverage (NLC)。NLC将单个DNN层而非神经元作为基本计算单元,刻画神经元输出分布的四个关键性质。在分类与生成任务、图像与文本数据上,NLC与测试集多样性显著相关,发现预测错误能力有前景;基于NLC的输入变异可暴露更高质量、更多样的错误行为。

问题
现有神经元覆盖准则与测试集质量相关性弱,难以有效评估DNN测试输入并指导输入变异。
方法
从层视角建模DNN对输入分布的近似,总结八项设计需求,提出NLC:以层为基本计算单元并刻画神经元输出分布的四个关键性质,用分布多样性指导输入变异。
评估
在分类与生成任务以及图像与文本数据上,评估NLC与测试集多样性的相关性、发现预测错误的能力,以及NLC引导变异暴露错误行为的质量与多样性。
原文摘要(Abstract)

Various deep neural network (DNN) coverage criteria have been proposed to assess DNN test inputs and steer input mutations. The coverage is characterized via neurons having certain outputs, or the discrepancy between neuron outputs. Nevertheless, recent research indicates that neuron coverage criteria show little correlation with test suite quality. In general, DNNs approximate distributions, by incorporating hierarchical layers, to make predictions for inputs. Thus, we champion to deduce DNN behaviors based on its approximated distributions from a layer perspective. A test suite should be assessed using its induced layer output distributions. Accordingly, to fully examine DNN behaviors, input mutation should be directed toward diversifying the approximated distributions. This paper summarizes eight design requirements for DNN coverage criteria, taking into account distribution properties and practical concerns. We then propose a new criterion, Neural Coverage (nlc),that satisfies all design requirements. NLC treats a single DNN layer as the basic computational unit (rather than a single neuron) and captures four critical properties of neuron output distributions. Thus, NL C accurately describes how DNNs comprehend inputs via approximated distributions. We demonstrate that NLC is significantly correlated with the diversity of a test suite across a number of tasks (classification and generation) and data formats (image and text). Its capacity to discover DNN prediction errors is promising. Test input mutation guided by NLC results in a greater quality and diversity of exposed erroneous behaviors.

链接与引用

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

BibTeX
@inproceedings{YuanPW23,
  title = {Revisiting Neuron Coverage for DNN Testing: A Layer-Wise and Distribution-Aware Criterion},
  author = {Yuanyuan Yuan and Qi Pang and Shuai Wang},
  booktitle = {ICSE},
  year = {2023},
  doi = {10.1109/icse48619.2023.00107}
}