arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.09187cs.CRcs.AIcs.LG
收藏

针对深度学习商业框架的量化后门

Quantization Backdoors to Deep Learning Commercial Frameworks

The University of Adelaide(阿德莱德大学);Data61, CSIRO(联邦科学与工业研究组织数据61所);Nanjing University of Science and Technology(南京理工大学);The University of Western Australia(西澳大学);Hunan University(湖南大学)

Hua Ma, Huming Qiu, Yansong Gao, Zhi Zhang, Alsharif Abuadbba, Minhui Xue, Anmin Fu, Zhang Jiliang, Said Al-Sarawi, Derek Abbott

AI总结:

本文揭示TFLite与PyTorch Mobile的训练后量化可激活全精度模型中的休眠后门,使int-8模型在触发输入上接近100%攻击成功。

摘要:

当前,由于边缘物联网(IoT)设备具有低延迟和高隐私保护能力,将深度学习(DL)模型部署到无处不在的边缘IoT设备上的需求正在迅速增长。然而,DL模型通常体积庞大且需要大规模计算,这使其无法直接部署到资源受限、且不支持32位浮点(float-32)运算的IoT设备上。由商业框架(即一组工具包)提供支持的模型量化是一种实用解决方案,它能够轻松地将大型高精度模型(例如float-32)后量化为小型低精度模型(例如int-8),同时保持模型推理精度,从而使DL能够部署到移动设备和嵌入式系统上。但是,这些框架的可用性可能受到安全漏洞威胁。本研究揭示,标准量化工具包可能被滥用来激活后门。我们证明,一个在触发器存在时不表现出任何后门效应的全精度后门模型——因为后门处于休眠状态——可以被默认的i)TensorFlow-Lite(TFLite)量化(迄今为止唯一可用于生产环境的量化框架)以及ii)发布beta版本的PyTorch Mobile框架激活。当每个float-32模型通过标准TFLite或PyTorch Mobile框架的训练后量化转换为int-8格式模型时,量化模型中的后门会被激活;在带有触发器的输入上,其攻击成功率稳定接近100%,而在无触发器输入上则表现正常。本工作强调,当终端用户使用设备端训练后模型量化框架时,会出现一种隐蔽的安全威胁;这提醒安全研究人员,即使DL模型通过了前端后门检查,也需要在量化后对其进行跨平台彻底审查。

英文摘要:

Currently, there is a burgeoning demand for deploying deep learning (DL) models on ubiquitous edge Internet of Things (IoT) devices attributed to their low latency and high privacy preservation. However, DL models are often large in size and require large-scale computation, which prevents them from being placed directly onto IoT devices, where resources are constrained and 32-bit floating-point (float-32) operations are unavailable. Commercial framework (i.e., a set of toolkits) empowered model quantization is a pragmatic solution that enables DL deployment on mobile devices and embedded systems by effortlessly post-quantizing a large high-precision model (e.g., float-32) into a small low-precision model (e.g., int-8) while retaining the model inference accuracy. However, their usability might be threatened by security vulnerabilities. This work reveals that the standard quantization toolkits can be abused to activate a backdoor. We demonstrate that a full-precision backdoored model which does not have any backdoor effect in the presence of a trigger -- as the backdoor is dormant -- can be activated by the default i) TensorFlow-Lite (TFLite) quantization, the only product-ready quantization framework to date, and ii) the beta released PyTorch Mobile framework. When each of the float-32 models is converted into an int-8 format model through the standard TFLite or Pytorch Mobile framework's post-training quantization, the backdoor is activated in the quantized model, which shows a stable attack success rate close to 100% upon inputs with the trigger, while it behaves normally upon non-trigger inputs. This work highlights that a stealthy security threat occurs when an end user utilizes the on-device post-training model quantization frameworks, informing security researchers of cross-platform overhaul of DL models post quantization even if these models pass front-end backdoor inspections.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑