信息网络安全 ›› 2024, Vol. 24 ›› Issue (10): 1528-1536.doi: 10.3969/j.issn.1671-1122.2024.10.006

• 入选论文 • 上一篇    下一篇

深度学习框架模糊测试研究综述

张子涵1, 赖清楠2, 周昌令2()   

  1. 1.北京大学计算机学院,北京 100871
    2.北京大学计算中心,北京 100871
  • 收稿日期:2024-06-05 出版日期:2024-10-10 发布日期:2024-09-27
  • 通讯作者: 周昌令, zclfly@pku.edu.cn
  • 作者简介:张子涵(2000—),男,上海,硕士研究生,主要研究方向为软件测试|赖清楠(1990—),男,江西,工程师,硕士,主要研究方向为网络攻防对抗、人工智能、网络与信息安全|周昌令(1977—),男,重庆,高级工程师,博士,主要研究方向为网络安全与网络攻防、多智能体、网络大数据分析
  • 基金资助:
    国家自然科学基金(62173004)

Survey on Fuzzing Test in Deep Learning Frameworks

ZHANG Zihan1, LAI Qingnan2, ZHOU Changling2()   

  1. 1. School of Computer Science, Peking University, Beijing 100871, China
    2. Computing Center, Peking University, Beijing 100871, China
  • Received:2024-06-05 Online:2024-10-10 Published:2024-09-27

摘要:

随着深度学习技术在多个领域的广泛应用,其框架的安全性和稳定性也变得尤为重要。文章从用户角度出发,分析了不同用户群体可能遇到的漏洞类型及相应的模糊测试方法。首先介绍了深度学习框架的发展背景及其重要性;然后详细讨论了针对模型库、深度学习框架及编译器的模糊测试研究现状,梳理了如模型变异、权重生成、样例构造和模型测试等关键技术,并以PyTorch和MLIR的漏洞为例分析了漏洞形成的原因;最后展望了未来的研究方向,包括错误定位与自动修复技术、大语言模型增强的模糊测试。

关键词: 深度学习, 模糊测试, 测试程序生成, 机器学习

Abstract:

With the widespread application of deep learning technology in various fields, ensuring the security and stability of its frameworks has become crucial. This paper starts from the user’s perspective to analyze the types of vulnerabilities that different user groups may encounter and the corresponding fuzzing test methods. The article first introduced the development background and importance of deep learning frameworks, then discussed in detail the current state of testing research for model libraries, deep learning frameworks, and compilers, and reviewed key techniques such as model mutation, weight generation, sample construction, and model testing. Then the article analyzed the root cause of bug in PyTorch and MLIR. Finally, the article looked forward to future research directions, including error localization and automatic repair techniques, as well as fuzzing test enhanced by large language models.

Key words: deep learning, fuzzing test, test case generation, machine learning

中图分类号: