DynaMO:通过耦合混淆的深度学习算子保护移动端深度学习模型
DynaMO: Protecting Mobile DL Models through Coupling Obfuscated DL Operators
AI总结:
针对移动端深度学习模型易被逆向工程的问题,本文提出动态模型混淆策略 DynaMO,通过对随机耦合算子的权重进行线性变换实现完全动态混淆,显著提升模型安全性且开销可忽略。
摘要:
在移动应用中部署深度学习模型已变得越来越普遍。然而,现有研究表明,攻击者可以轻易地对应用中的移动端深度学习模型进行逆向工程,以窃取知识产权或发起有效攻击。近期提出的一种方法——模型混淆(Model Obfuscation),旨在通过混淆深度学习模型的表示(如权重和计算图)来防御此类逆向工程,同时不影响模型性能。现有的模型混淆方法要么使用静态方法来混淆模型表示,要么使用半动态方法,但需要用户通过额外的输入参数来恢复模型信息。然而,这些静态方法或半动态方法无法为端侧深度学习模型提供足够的保护。由于静态和半动态混淆方法必须在运行时恢复正确的模型信息和中间结果,攻击者可以利用动态分析来挖掘推理代码中的敏感信息。我们使用一种插桩方法和工具 DLModelExplorer 评估了现有混淆策略的脆弱性,该工具能够在运行时动态提取正确的敏感模型信息。实验表明,该工具能够实现非常高的攻击性能。为了防御此类基于动态插桩的攻击,我们提出了 DynaMO,一种类似于同态加密的动态模型混淆策略。混淆和恢复过程可以通过对随机耦合的合格算子的权重进行简单线性变换来完成,这是一种完全动态的混淆策略。实验表明,与现有的混淆策略相比,我们提出的策略能够显著提高模型安全性,同时仅对端侧模型产生可忽略的开销。
英文摘要:
Deploying DL models on mobile Apps has become ever-more popular. However, existing studies show attackers can easily reverse-engineer mobile DL models in Apps to steal intellectual property or generate effective attacks. A recent approach, Model Obfuscation, has been proposed to defend against such reverse engineering by obfuscating DL model representations, such as weights and computational graphs, without affecting model performance. These existing model obfuscation methods use static methods to obfuscate the model representation, or they use half-dynamic methods but require users to restore the model information through additional input arguments. However, these static methods or half-dynamic methods cannot provide enough protection for on-device DL models. Attackers can use dynamic analysis to mine the sensitive information in the inference codes as the correct model information and intermediate results must be recovered at runtime for static and half-dynamic obfuscation methods. We assess the vulnerability of the existing obfuscation strategies using an instrumentation method and tool, DLModelExplorer, that dynamically extracts correct sensitive model information at runtime. Experiments show it achieves very high attack performance. To defend against such attacks based on dynamic instrumentation, we propose DynaMO, a Dynamic Model Obfuscation strategy similar to Homomorphic Encryption. The obfuscation and recovery process can be done through simple linear transformation for the weights of randomly coupled eligible operators, which is a fully dynamic obfuscation strategy. Experiments show that our proposed strategy can dramatically improve model security compared with the existing obfuscation strategies, with only negligible overheads for on-device models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。