arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.25239cs.SE
收藏

基于张量的批量模糊测试与自适应扰动缩放用于深度神经网络

Tensor-Based Batch Fuzzing with Adaptive Perturbation Scaling for Deep Neural Networks

University of New South Wales(新南威尔士大学)

Guanqin Zhang, Yulei Sui

AI总结:

提出一种基于张量的批量模糊测试框架,通过自适应扰动缩放和规范感知的批量处理,显著提升深度神经网络测试吞吐量和违规发现效率。

摘要:

深度神经网络越来越多地部署在自动驾驶和医疗诊断等安全关键领域,但其不透明的高维参数空间使得系统评估模型在未见输入上的可靠性变得困难。现有的面向DNN的覆盖引导顺序模糊测试框架继承了传统软件模糊测试的“一次一输入”设计,并在所有输入维度上应用均匀的扰动预算,限制了测试吞吐量(即单位时间处理的输入数量)和输入空间探索的精度。我们提出了一种新的规范感知的批量模糊测试框架,具有自适应扰动缩放,解决了这两个限制。我们的方法不依赖于固定的全局扰动半径epsilon,而是使用共享的比例因子从规范定义的可变范围(上下界之间的差距)推导出变异步长。这种缩放可以应用为全局标量(各向同性)或每维步长(各向异性),使扰动与底层约束结构保持一致。因此,模糊器可以更有效地探索具有异构特征尺度的输入空间,涵盖批次中的所有规范。我们将输入约束和输出属性检查直接嵌入到网络中作为不可训练层,得到一个包装模型,该模型在单次批量迭代中处理B个规范实例,显著提高了模糊测试效率和反例探索。我们在三个基准测试上广泛评估了我们的框架,涵盖了TrafficSigns、Cifar100和TinyImageNet上的六个网络和超过400个规范。我们的基于张量的模糊测试在相同时间预算下,吞吐量比顺序基线高出40倍,违规数量多出4倍,展示了在规范引导的模糊测试中显著提高的有效性。

英文摘要:

Deep neural networks are increasingly deployed in safety-critical domains such as autonomous driving and medical diagnosis, yet their opaque, high-dimensional parameter spaces make it difficult to systematically assess model reliability on unseen inputs. Existing coverage-guided sequential fuzzing frameworks for DNNs inherit a one-input-per-iteration design from traditional software fuzzing and apply uniform perturbation budgets across all input dimensions, limiting both testing throughput (i.e., inputs processed per unit time) and the precision of input-space exploration. We present a new specification-aware batch fuzzing framework with adaptive perturbation scaling that addresses both limitations. Rather than relying on a fixed global perturbation radius epsilon, our approach derives mutation step sizes from specification-defined feasible ranges (the gap between lower and upper bounds) using a shared scale factor. This scaling can be applied either as a global scalar (isotropic) or as per-dimension step sizes (anisotropic), keeping perturbations consistent with the underlying constraint structure. As a result, the fuzzer can explore input spaces with heterogeneous feature scales more effectively across all specifications in the batch. We embed input constraints and output property checks directly into the network as non-trainable layers, yielding a wrapped model that processes B specification instances in a single batched iteration, substantially improving fuzzing efficiency and counterexample exploration. We evaluate our framework extensively on three benchmarks, covering six networks and over 400 specifications across TrafficSigns, Cifar100, and TinyImageNet. Our tensor-based fuzzing achieves up to 40X higher throughput and 4X more violations than the sequential baseline under the same time budget, demonstrating significantly improved effectiveness in specification-guided fuzzing.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑