用超网络实现扩散模型的高效可控测试生成
HyperNet-Adaptation for Diffusion-Based Test Case Generation
- 通过超网络实现无需数据集的直接控制生成过程
- 在无失败标注数据下仍能生成多样且真实的故障案例
- 相比搜索方法降低计算成本,适合大规模系统测试
深度学习系统广泛应用亟需真实场景下的可靠性评估。传统基于梯度的对抗攻击引入微小扰动,难以反映实际故障,且多关注鲁棒性而非功能行为。生成式测试方法虽可替代,但常受限于简单数据集或输入域。尽管扩散模型能生成高保真图像,其计算开销大、可控性差,限制了在大规模测试中的应用。本文提出HyNeA,一种基于扩散模型的生成式测试方法,通过超网络实现无需数据集的直接高效控制。该方法不依赖特定架构的条件机制或数据驱动的微调,采用独特训练策略,支持实例级调优以识别引发故障的测试用例,无需包含类似故障样本的数据集。实验表明,与现有生成式测试工具相比,HyNeA显著提升可控性与测试多样性,并可在缺乏故障标注数据的领域实现良好泛化。
原文摘要 · Abstract (English)
The increasing deployment of deep learning systems requires systematic evaluation of their reliability in real-world scenarios. Traditional gradient-based adversarial attacks introduce small perturbations that rarely correspond to realistic failures and mainly assess robustness rather than functional behavior. Generative test generation methods offer an alternative but are often limited to simple datasets or constrained input domains. Although diffusion models enable high-fidelity image synthesis, their computational cost and limited controllability restrict their applicability to large-scale testing. We present HyNeA, a generative testing method that enables direct and efficient control over diffusion-based generation. HyNeA provides dataset-free controllability through hypernetworks, allowing targeted manipulation of the generative process without relying on architecture-specific conditioning mechanisms or dataset-driven adaptations such as fine-tuning. HyNeA employs a distinct training strategy that supports instance-level tuning to identify failure-inducing test cases without requiring datasets that explicitly contain examples of similar failures. This approach enables the targeted generation of realistic failure cases at substantially lower computational cost than search-based methods. Experimental results show that HyNeA improves controllability and test diversity compared to existing generative test generators and generalizes to domains where failure-labeled training data is unavailable.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。