Skip to main content
QUICK REVIEW

[Paper Review] To compress or not to compress: Understanding the Interactions between Adversarial Attacks and Neural Network Compression

Yiren Zhao, Ilia Shumailov|arXiv (Cornell University)|Sep 29, 2018
Adversarial Robustness in Machine LearningComputer Science23 references17 citations
TL;DR

This paper investigates the transferability of adversarial attacks between compressed (pruned and quantized) and uncompressed deep neural networks. It finds that adversarial samples remain highly transferable across compression types, though reduced integer precision in quantization marginally limits attack success, suggesting compression does not significantly enhance security against adversarial examples.

ABSTRACT

As deep neural networks (DNNs) become widely used, pruned and quantised models are becoming ubiquitous on edge devices; such compressed DNNs are popular for lowering computational requirements. Meanwhile, recent studies show that adversarial samples can be effective at making DNNs misclassify. We, therefore, investigate the extent to which adversarial samples are transferable between uncompressed and compressed DNNs. We find that adversarial samples remain transferable for both pruned and quantised models. For pruning, the adversarial samples generated from heavily pruned models remain effective on uncompressed models. For quantisation, we find the transferability of adversarial samples is highly sensitive to integer precision.

Motivation & Objective

  • To understand how adversarial attacks transfer between compressed and uncompressed deep neural networks.
  • To evaluate whether model compression techniques like pruning and quantization provide unintended defensive properties against adversarial attacks.
  • To develop a compression-aware attack taxonomy for systematic evaluation of transferability across different compression levels.
  • To identify whether specific compression parameters (e.g., sparsity, bit-width) influence adversarial sample effectiveness.

Proposed method

  • Used dynamic network surgery (DNS) for structured pruning to generate pruned models at varying sparsity levels.
  • Applied post-training quantization with varying bit-widths (e.g., 4-bit, 8-bit) to compress models, focusing on integer and fractional bit reductions.
  • Generated adversarial examples using three attack methods: FGSM, I-FGSM, and DeepFool on both baseline and compressed models.
  • Measured transferability by evaluating adversarial examples generated on compressed models against the original baseline model and vice versa.
  • Analyzed the impact of weight and activation clipping due to quantization on attack performance and feature space shifts.
  • Conducted ablation studies to isolate the effects of integer vs. fractional bit reductions on adversarial transferability.

Experimental results

Research questions

  • RQ1To what extent are adversarial samples transferable between pruned and unpruned models?
  • RQ2How does quantization, particularly reductions in integer precision, affect the transferability of adversarial attacks?
  • RQ3Does pruning at high sparsity levels reduce the effectiveness of adversarial examples generated from the baseline model?
  • RQ4Why does DeepFool struggle more on quantized models compared to FGSM and I-FGSM?
  • RQ5What role does activation and weight clipping in quantized models play in limiting adversarial transferability?

Key findings

  • Adversarial samples remain highly transferable between compressed and uncompressed models for both pruning and quantization.
  • At high sparsity levels, adversarial examples generated from uncompressed models show marginally reduced effectiveness on pruned models.
  • For quantization, reducing integer bitwidths of weights and activations marginally limits transferability in fast-gradient-based attacks.
  • The defensive effect in quantized models arises primarily from integer bit reduction, not fractional bit truncation.
  • Clipping of activations and weights due to low-precision quantization alters the feature space, making it harder for attackers to overdrive specific neurons.
  • DeepFool struggles significantly on quantized models due to the discrete nature of quantized values, requiring larger perturbations to shift to neighboring levels.

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.