论文标题

安全和性能,为什么不呢?双目标优化模型压缩到AI软件部署

Safety and Performance, Why not Both? Bi-Objective Optimized Model Compression toward AI Software Deployment

论文作者

Zhu, Jie, Wang, Leye, Han, Xiao

论文摘要

人工智能(AI)软件中深度学习模型的规模正在迅速增加,这阻碍了对资源限制设备(例如智能手机)的大规模部署。为了减轻此问题,AI软件压缩起着至关重要的作用,旨在压缩模型大小的同时保持高性能。但是,大型模型中的固有缺陷可能由压缩的缺陷继承。攻击者很容易利用此类缺陷,因为压缩模型通常部署在大量设备中而没有充分保护的设备中。在本文中,我们试图从安全性的合作观点来解决安全模型压缩问题。具体而言,受到软件工程中测试驱动开发(TDD)范式的启发,我们提出了一个称为SafeCompress的测试驱动的稀疏训练框架。通过模拟攻击机制作为安全测试,SafeCompress可以在动态稀疏训练范式之后自动将大型模型压缩为一个小型模型。此外,考虑到代表性攻击,即成员推理攻击(MIA),我们开发了一种混凝土安全模型压缩机制,称为MIA-SAFECSPRASS。进行了广泛的实验,以评估用于计算机视觉和自然语言处理任务的五个数据集上的MIA量压缩。结果验证了我们方法的有效性和概括。我们还讨论了如何使SafeCompress适应除MIA以外的其他攻击,并证明了SafeCompress的灵活性。

The size of deep learning models in artificial intelligence (AI) software is increasing rapidly, which hinders the large-scale deployment on resource-restricted devices (e.g., smartphones). To mitigate this issue, AI software compression plays a crucial role, which aims to compress model size while keeping high performance. However, the intrinsic defects in the big model may be inherited by the compressed one. Such defects may be easily leveraged by attackers, since the compressed models are usually deployed in a large number of devices without adequate protection. In this paper, we try to address the safe model compression problem from a safety-performance co-optimization perspective. Specifically, inspired by the test-driven development (TDD) paradigm in software engineering, we propose a test-driven sparse training framework called SafeCompress. By simulating the attack mechanism as the safety test, SafeCompress can automatically compress a big model to a small one following the dynamic sparse training paradigm. Further, considering a representative attack, i.e., membership inference attack (MIA), we develop a concrete safe model compression mechanism, called MIA-SafeCompress. Extensive experiments are conducted to evaluate MIA-SafeCompress on five datasets for both computer vision and natural language processing tasks. The results verify the effectiveness and generalization of our method. We also discuss how to adapt SafeCompress to other attacks besides MIA, demonstrating the flexibility of SafeCompress.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源