融合双视角不确定性度量与双代理模型池的DNN测试排序
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

TP311

基金项目:

国家自然科学基金(62262025); 赣鄱俊才支持计划-主要学科学术和技术带头人领军人才(20243BCE51024)


Fusion of Dual-view Uncertainty Metric and Dual-surrogate Model Pool for DNN Test Prioritization
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    深度神经网络(deep neural network, DNN)测试需要大量的测试数据来保证其质量, 但大多数测试输入缺乏标注信息, 且对其进行标注会带来高昂的人工代价. 现有研究提出测试输入优先级方法, 筛选高优先级的测试输入进行标注以降低人工标注成本. 然而, 它们均仅从单一不确定性视角或模型静态行为上考虑测试输入. 一方面, 局限于固定的单一不确定性度量, 会片面刻画测试输入的错误失效风险, 从而降低排序的准确性. 另一方面, 对模型内部结构微小扰动的刻画不充分, 难以揭示其对决策边界动态变化的影响, 易忽视模型的深层脆弱性, 从而降低早期故障检测效率. 基于此, 提出一种融合双视角不确定性度量与双代理模型池的DNN测试输入优先级排序新方法. 该方法以预测测试输入误分类概率, 并构建输入侧与模型侧的风险协同排序机制为核心目标. 首先, 在输入侧, 为突破单一不确定性指标与静态评估的局限, 利用测试时增强(test-time augmentation, TTA)实施动态鲁棒性评估, 并设计双视角不确定性指标, 以识别测试输入在不同扰动下的潜在失效风险, 提高排序整体性能; 其次, 在模型侧, 构建结合深度集成与模型变异微调的双代理模型池, 量化多模型间的预测分歧, 并设计模型内部结构的动态扰动机制, 暴露模型的深层脆弱性, 以提升早期故障检测效率. 最后, 将输入侧潜在失效风险特征与模型侧决策边界脆弱性特征统一表示为误分类特征, 据此特征, 利用轻量级元模型预测测试输入的错误概率并进行排序, 以降低人工标注成本. 通过与9个已有方法在5个实验对象上的对比发现, 所提方法是可行高效的, 在APFD与RAUC-100指标上分别平均提升约11.92%、28.85%.

    Abstract:

    Deep neural network (DNN) testing requires a large amount of test data to ensure the quality of DNNs. However, most test inputs lack label information, and annotating them incurs high manual labeling costs. Existing studies have proposed test input prioritization methods to select high-priority test inputs for annotation, thus reducing such costs. Nevertheless, these methods consider test inputs only from a single uncertainty perspective or on the basis of static model behavior. On the one hand, relying on a fixed single uncertainty metric provides only a partial characterization of the failure risk of test inputs, thus compromising prioritization accuracy. On the other hand, inadequate characterization of minor perturbations to the model’s internal structure fails to reveal their impact on dynamic changes in the decision boundary. This tends to overlook the deep-seated vulnerabilities of the model, consequently degrading early fault detection efficiency. To address these issues, this study proposes a novel DNN test prioritization approach that integrates a dual-view uncertainty measurement mechanism and a dual-surrogate model pool. The approach focuses on predicting the misclassification probabilities of test inputs and establishing a collaborative risk-ranking mechanism between the input and model sides. First, on the input side, to overcome the limitations of single uncertainty metrics and static evaluations, test-time augmentation (TTA) is utilized to conduct dynamic robustness evaluations. Meanwhile, dual-view uncertainty metrics are designed to identify the potential failure risks of test inputs under different perturbations, enhancing overall prioritization performance. Second, on the model side, a dual-surrogate model pool combining deep ensembles and model mutation fine-tuning is constructed to quantify prediction disagreement among multiple models. A dynamic perturbation mechanism for the model’s internal structure is also designed to expose deep-seated vulnerabilities, thus improving early fault detection efficiency. Finally, the potential failure-risk features extracted from the input side and the decision-boundary vulnerability features extracted from the model side are jointly represented as misclassification features. Based on these features, a lightweight meta-model is employed to predict the misclassification probabilities of test inputs and rank them, thus reducing manual labeling costs. Comparisons with 9 existing methods on 5 experimental subjects show that the proposed model is feasible and efficient, with average improvements of approximately 11.92% and 28.85% in APFD and RAUC-100, respectively.

    参考文献
    相似文献
    引证文献
引用本文

钱忠胜,范赋宇,刘金平,李玉龙,刘凯强.融合双视角不确定性度量与双代理模型池的DNN测试排序.软件学报,,():1-32

复制
相关视频

分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2026-05-13
  • 最后修改日期:2026-07-14
  • 录用日期:
  • 在线发布日期: 2026-11-04
  • 出版日期:
文章二维码
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号