Skip to main content
QUICK REVIEW

[Paper Review] Quantization Backdoors to Deep Learning Models.

Hua Ma, Huming Qiu|arXiv (Cornell University)|Aug 20, 2021
Adversarial Robustness in Machine LearningComputer Science44 references8 citations
TL;DR

This paper reveals that standard post-training quantization using TensorFlow Lite can activate backdoors in previously dormant, full-precision deep learning models, leading to a 100% attack success rate on triggered inputs after quantization to int-8, despite passing frontend detection tools like Neural Cleanse and STRIP. The work exposes a critical security risk in on-device model quantization pipelines.

ABSTRACT

There is currently a burgeoning demand for deploying deep learning (DL) models on ubiquitous edge Internet of Things devices attributing 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 operations are unavailable. Model quantization is a pragmatic solution, which enables DL deployment on mobile devices and embedded systems by effortlessly post-quantizing a large high-precision model into a small low-precision model while retaining the model inference accuracy. This work reveals that the standard quantization operation can be abused to activate a backdoor. We demonstrate that a full-precision backdoored model that does not have any backdoor effect in the presence of a trigger -- as the backdoor is dormant -- can be activated by the default TensorFlow-Lite quantization, the only product-ready quantization framework to date. We ascertain that all trained float-32 backdoored models exhibit no backdoor effect even in the presence of trigger inputs. State-of-the-art frontend detection approaches, such as Neural Cleanse and STRIP, fail to identify the backdoor in the float-32 models. When each of the float-32 models is converted into an int-8 format model through the standard TFLite 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 behaves normally upon non-trigger inputs. This work highlights that a stealthy security threat occurs when end users utilize the on-device post-training model quantization toolkits, informing security researchers of cross-platform overhaul of DL models post quantization even if they pass frontend inspections.

Motivation & Objective

  • To investigate whether standard post-training quantization can inadvertently activate latent backdoors in full-precision deep learning models.
  • To evaluate the effectiveness of existing front-end backdoor detection methods—Neural Cleanse and STRIP—on float-32 models with hidden backdoors.
  • To demonstrate that quantization frameworks like TensorFlow Lite can serve as an attack vector by transforming dormant backdoors into active threats.
  • To highlight the security implications of relying on on-device quantization toolkits without end-to-end trust in the model pipeline.

Proposed method

  • Training full-precision (float-32) deep learning models with embedded backdoors that remain dormant during inference on clean inputs.
  • Applying standard TensorFlow Lite post-training quantization to convert float-32 models into int-8 models without retraining.
  • Evaluating the behavior of the quantized models on both triggered and non-triggered inputs to detect backdoor activation.
  • Testing the efficacy of state-of-the-art backdoor detection methods—Neural Cleanse and STRIP—on the original float-32 models before quantization.
  • Measuring attack success rate and model accuracy on both clean and trigger inputs across multiple datasets and model architectures.
  • Analyzing the quantization process to identify how numerical transformations enable backdoor activation.

Experimental results

Research questions

  • RQ1Can standard post-training quantization frameworks like TensorFlow Lite activate previously dormant backdoors in full-precision deep learning models?
  • RQ2Do existing front-end backdoor detection techniques such as Neural Cleanse and STRIP successfully identify backdoors in float-32 models that are later activated during quantization?
  • RQ3What is the attack success rate of backdoors after quantization to int-8 using TFLite, and how does it vary between triggered and non-triggered inputs?
  • RQ4Why do standard quantization procedures fail to preserve the integrity of backdoor detection in the model pipeline?
  • RQ5To what extent does the quantization process itself introduce new attack surfaces by enabling previously inactive backdoors?

Key findings

  • All float-32 backdoored models showed no signs of backdoor behavior during inference, even when presented with trigger inputs, indicating the backdoor remained dormant.
  • After post-training quantization to int-8 using TensorFlow Lite, the backdoor was successfully activated, achieving a stable attack success rate of nearly 100% on triggered inputs.
  • The quantized models maintained normal accuracy on non-triggered inputs, confirming the stealthiness of the attack post-quantization.
  • State-of-the-art detection methods, including Neural Cleanse and STRIP, failed to detect the backdoor in the original float-32 models, despite their known effectiveness on other backdoor variants.
  • The results demonstrate that the quantization process itself can serve as a trigger for latent backdoors, creating a critical security gap in on-device model deployment pipelines.
  • This work reveals a previously unknown attack surface in the model quantization pipeline, where trust in the quantization toolkit can lead to undetected backdoor activation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.