安全与性能,为何不能兼得?面向AI软件部署的抵御异构攻击的双目标优化模型压缩
Safety and Performance, Why Not Both? Bi-Objective Optimized Model Compression against Heterogeneous Attacks Toward AI Software Deployment
AI总结:
针对AI模型压缩后易受攻击的问题,提出测试驱动稀疏训练框架SafeCompress,通过模拟攻击机制进行安全测试,在保持性能的同时实现安全压缩,有效抵御异构成员推理攻击。
摘要:
人工智能(AI)软件中深度学习模型的规模正在迅速增长,阻碍了其在资源受限设备(如智能手机)上的大规模部署。为了缓解这一问题,AI软件压缩发挥着至关重要的作用,其目标是在保持高性能的同时压缩模型大小。然而,大模型中的固有缺陷可能会被压缩后的模型继承。这些缺陷很容易被攻击者利用,因为压缩模型通常部署在大量设备上且缺乏充分保护。在本文中,我们旨在从安全与性能协同优化的角度解决安全模型压缩问题。具体而言,受软件工程中测试驱动开发(TDD)范式的启发,我们提出了一种名为SafeCompress的测试驱动稀疏训练框架。通过将攻击机制模拟为安全测试,SafeCompress能够遵循动态稀疏训练范式,自动将大模型压缩为小模型。随后,考虑到两种具有代表性的异构攻击机制,即黑盒成员推理攻击和白盒成员推理攻击,我们开发了两个具体实例,分别称为BMIA-SafeCompress和WMIA-SafeCompress。此外,通过扩展SafeCompress以防御攻击者同时进行黑盒和白盒成员推理攻击的场景,我们实现了另一个名为MMIA-SafeCompress的实例。我们在五个数据集上针对计算机视觉和自然语言处理任务进行了广泛实验。结果表明了我们框架的有效性和泛化能力。我们还讨论了如何将SafeCompress适配到成员推理攻击之外的其他攻击,展示了SafeCompress的灵活性。
英文摘要:
The size of deep learning models in artificial intelligence (AI) software is increasing rapidly, hindering 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 a big model may be inherited by the compressed one. Such defects may be easily leveraged by adversaries, since a compressed model is usually deployed in a large number of devices without adequate protection. In this article, we aim to address the safe model compression problem from the perspective of safety-performance co-optimization. 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 safety testing, SafeCompress can automatically compress a big model to a small one following the dynamic sparse training paradigm. Then, considering two kinds of representative and heterogeneous attack mechanisms, i.e., black-box membership inference attack and white-box membership inference attack, we develop two concrete instances called BMIA-SafeCompress and WMIA-SafeCompress. Further, we implement another instance called MMIA-SafeCompress by extending SafeCompress to defend against the occasion when adversaries conduct black-box and white-box membership inference attacks simultaneously. We conduct extensive experiments on five datasets for both computer vision and natural language processing tasks. The results show the effectiveness and generalizability of our framework. We also discuss how to adapt SafeCompress to other attacks besides membership inference attack, demonstrating the flexibility of SafeCompress.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。