一句话:提出规范感知的批量模糊测试框架,用张量化批量迭代与自适应扰动缩放显著提升 DNN 测试吞吐与反例发现率。
深度神经网络在自动驾驶、医疗诊断等安全关键领域广泛部署,但其高维参数空间难以系统评估未见输入上的可靠性。现有覆盖引导的顺序模糊测试沿用传统软件测试的“每次一个输入”设计,并对所有输入维度施加统一扰动预算,既限制了吞吐量,也削弱了输入空间探索的精度。本文提出一种规范感知的批量模糊测试框架,用自适应扰动缩放替代固定全局扰动半径:从规范定义的可行区间(上下界之差)经共享缩放因子导出变异步长,既可作全局标量(各向同性),也可作逐维步长(各向异性),使扰动与约束结构保持一致,从而在异构特征尺度下更有效探索输入空间。作者将输入约束与输出性质检查作为不可训练层嵌入网络,得到包装模型,可在单次批量迭代中处理 B 个规范实例。在 TrafficSigns、Cifar100、TinyImageNet 三个基准、六个网络、逾 400 条规范上的评估显示,相同时间预算下吞吐量最高提升 40 倍,发现违规数最多为顺序基线的 4 倍。
Deep neural networks (DNNs) 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 DNN 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 є, our approach derives mutation step sizes from specification-defined feasible ranges (i.e., 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), enabling perturbations to remain 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, which substantially improves fuzzing efficiency and exploration of counterexamples. 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 40× higher throughput and 4× more violations than the sequential baseline under the same time budget, demonstrating significantly improved effectiveness in specification-guided fuzzing.