paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Is neuron coverage a meaningful measure for testing deep neural networks?

神经元覆盖率是测试深度神经网络的有意义度量吗?
FSE Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2020匹配度 3/10 · 该论文关注深度神经网络测试中的神经元覆盖率有效性,属于 ML 测试/软件测试交叉,但不是静态分析、形式化验证、Agentic 程序或 LLM 与程序分析交叉,也不涉及浮点或贝叶斯程序分析。因此与研究方向核心匹配度较低,仅可存档。引用 155 inbox
Fabrice Harel-Canada, Lingxiao Wang, Muhammad Ali Gulzar, Quanquan Gu, Miryung Kim
crossref: 2026-09-12

AI 速览

一句话:实验表明提升神经元覆盖率反而降低缺陷检测、输入自然性与预测中立性,质疑其作为测试目标的合理性。

受传统代码覆盖率启发,神经元覆盖率(NC)被广泛用作深度学习系统的测试充分性准则,并隐含假定提高 NC 能改善测试套件质量。为检验这一假设,作者设计了一种可插入现有对抗攻击算法的多样性促进正则化器,用以自动生成提高 NC 的测试套件。随后从三个维度评估这些测试套件:(1) 是否能成功检测对抗攻击,(2) 是否产生自然输入,(3) 是否对特定类别预测存在偏好。大量实验得出的结论与预期相悖:提高 NC 反而使测试套件更难有效,表现为检测到的缺陷更少、输入更不自然、预测偏好更偏斜。该结果对将 NC 作为深度神经网络测试生成目标提出质疑,并呼吁同时考虑缺陷检测、输入自然性与输出中立性的新测试生成技术。

问题
深度学习测试中广泛使用神经元覆盖率(NC)作为充分性准则,并默认提高 NC 能提升测试套件质量,但这一假设缺乏严格实证检验。
方法
设计一种可插入现有对抗攻击算法的多样性促进正则化器,自动生成以提升 NC 为目标的测试套件,并从缺陷检测、自然性与预测中立性三方面进行评估。
评估
通过大量实验比较不同 NC 水平下的测试套件效果,发现 NC 越高,检测到的缺陷越少、输入越不自然、类别预测偏好越强。
原文摘要(Abstract)

Recent effort to test deep learning systems has produced an intuitive and compelling test criterion called neuron coverage (NC), which resembles the notion of traditional code coverage. NC measures the proportion of neurons activated in a neural network and it is implicitly assumed that increasing NC improves the quality of a test suite. In an attempt to automatically generate a test suite that increases NC, we design a novel diversity promoting regularizer that can be plugged into existing adversarial attack algorithms. We then assess whether such attempts to increase NC could generate a test suite that (1) detects adversarial attacks successfully, (2) produces natural inputs, and (3) is unbiased to particular class predictions. Contrary to expectation, our extensive evaluation finds that increasing NC actually makes it harder to generate an effective test suite: higher neuron coverage leads to fewer defects detected, less natural inputs, and more biased prediction preferences. Our results invoke skepticism that increasing neuron coverage may not be a meaningful objective for generating tests for deep neural networks and call for a new test generation technique that considers defect detection, naturalness, and output impartiality in tandem.

链接与引用

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

BibTeX
@inproceedings{paperbot5849,
  title = {Is neuron coverage a meaningful measure for testing deep neural networks?},
  author = {Fabrice Harel-Canada and Lingxiao Wang and Muhammad Ali Gulzar and Quanquan Gu and Miryung Kim},
  booktitle = {FSE},
  year = {2020},
  doi = {10.1145/3368089.3409754}
}