paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Towards More Complete Constraints for Deep Learning Library Testing via Complementary Set Guided Refinement

面向更完整约束的深度学习库测试:基于互补集引导的精化
ISSTA Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis2024匹配度 4/10 · 论文面向深度学习库测试,用约束精化和遗传算法提升模糊测试完整性,属于PL+ML的测试/调试方向;但未涉及静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析,与画像核心方向仅边缘相关。引用 4 inbox
Gwihwan Go, Chijin Zhou, Quan Zhang, Xiazijian Zou, Heyuan Shi, Yu Jiang
crossref: 2026-09-12

AI 速览

一句话:提出互补集引导的约束精化方法,用遗传算法提升深度学习库测试约束完整性。

深度学习库在 AI 系统中非常重要,近期许多工作通过将张量操作的输入建模为约束来指导测试用例生成,以保证其可靠性。然而,这些约束可能缩小搜索空间,导致测试不完整。本文提出互补集引导的精化方法,其基本思想是检查约束的互补集是否能产生有效测试用例;如果能,则原约束不完整,需要精化。基于该思想,作者设计了自动约束精化工具 DeepConstr,采用遗传算法提升约束的完整性。在 PyTorch 和 TensorFlow 上评估,DeepConstr 发现 84 个未知 bug,其中 72 个被确认、51 个被修复。与最新 fuzzer 相比,DeepConstr 在 NNSmith 支持的算子中提升了 43.44% 的覆盖率,在 NeuRI 支持的算子中提升了 59.16%。

问题
现有深度学习库测试方法将张量操作输入建模为约束,但这些约束可能缩小搜索空间,导致测试不完整。
方法
提出互补集引导的约束精化,通过检验约束的互补集能否产生有效测试用例来判断不完整性,并实现遗传算法驱动的自动精化工具 DeepConstr。
评估
在 PyTorch 和 TensorFlow 上评估,发现 84 个未知 bug(72 确认、51 修复),并与 NNSmith、NeuRI 等最新 fuzzer 比较覆盖率提升。
原文摘要(Abstract)

Deep learning library is important in AI systems. Recently, many works have been proposed to ensure its reliability. They often model inputs of tensor operations as constraints to guide the generation of test cases. However, these constraints may narrow the search space, resulting in incomplete testing. This paper introduces a complementary set-guided refinement that can enhance the completeness of constraints. The basic idea is to see if the complementary set of constraints yields valid test cases. If so, the original constraint is incomplete and needs refinement. Based on this idea, we design an automatic constraint refinement tool, DeepConstr, which adopts a genetic algorithm to refine constraints for better completeness. We evaluated it on two DL libraries, PyTorch and TensorFlow. DeepConstr discovered 84 unknown bugs, out of which 72 were confirmed, with 51 fixed. Compared to state-of-the-art fuzzers, DeepConstr increased coverage for 43.44% of operators supported by NNSmith, and 59.16% of operators supported by NeuRI.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8613,
  title = {Towards More Complete Constraints for Deep Learning Library Testing via Complementary Set Guided Refinement},
  author = {Gwihwan Go and Chijin Zhou and Quan Zhang and Xiazijian Zou and Heyuan Shi and Yu Jiang},
  booktitle = {ISSTA},
  year = {2024},
  doi = {10.1145/3650212.3680364}
}