Skip to main content
QUICK REVIEW

[Paper Review] Improving Adversarial Robustness in Weight-quantized Neural Networks

Chang Song, Elias Fallon|arXiv (Cornell University)|Dec 29, 2020
Adversarial Robustness in Machine LearningComputer Science38 references8 citations
TL;DR

This paper proposes a boundary-based retraining method combined with nonlinear mapping to simultaneously reduce adversarial and quantization losses in weight-quantized neural networks. By analyzing Lipschitz constants and optimizing for both robustness types, the method achieves 20.54% and 52.69% average accuracy improvement on MNIST and CIFAR-10 under white-box and black-box attacks, outperforming prior baselines by 7.55% and 27.84% respectively.

ABSTRACT

Neural networks are getting deeper and more computation-intensive nowadays. Quantization is a useful technique in deploying neural networks on hardware platforms and saving computation costs with negligible performance loss. However, recent research reveals that neural network models, no matter full-precision or quantized, are vulnerable to adversarial attacks. In this work, we analyze both adversarial and quantization losses and then introduce criteria to evaluate them. We propose a boundary-based retraining method to mitigate adversarial and quantization losses together and adopt a nonlinear mapping method to defend against white-box gradient-based adversarial attacks. The evaluations demonstrate that our method can better restore accuracy after quantization than other baseline methods on both black-box and white-box adversarial attacks. The results also show that adversarial training suffers quantization loss and does not cooperate well with other training methods.

Motivation & Objective

  • To address the vulnerability of adversarially-trained models to quantization loss in weight-quantized neural networks.
  • To develop a unified method that mitigates both adversarial and quantization-induced errors simultaneously.
  • To analyze the interplay between adversarial robustness and quantization robustness using Lipschitz constants as a metric.
  • To validate that adversarial training does not cooperate well with quantization-aware or other training techniques.
  • To propose a practical, effective defense strategy for real-world deployment on resource-constrained devices.

Proposed method

  • A boundary-based retraining method is used to minimize both adversarial and quantization losses in a joint optimization framework.
  • Nonlinear mapping is applied to the final layers to defend against white-box gradient-based attacks such as PGD and FGSM.
  • The Lipschitz constant of weight quantization error (∆W) is computed using the maximum singular value to measure error amplification per layer.
  • The method focuses retraining and nonlinear mapping on the last few layers, where quantization error amplification is most pronounced.
  • The approach is evaluated on MNIST and CIFAR-10 using standard adversarial attacks, including FGSM, PGD, and CW.
  • The method avoids combining adversarial training with quantization-aware training due to performance degradation from misaligned objectives.

Experimental results

Research questions

  • RQ1Why do adversarially-trained models suffer significant performance drops when quantized?
  • RQ2How can adversarial and quantization robustness be jointly optimized in weight-quantized networks?
  • RQ3What role do the Lipschitz constants of weight quantization errors play in identifying vulnerable layers?
  • RQ4Can nonlinear mapping effectively defend against white-box gradient-based adversarial attacks in quantized models?
  • RQ5Why does combining adversarial training with quantization-aware training lead to worse performance?

Key findings

  • The proposed method, F.L.+mu (Q), achieves an average accuracy improvement of 20.54% on MNIST and 52.69% on CIFAR-10 over the original quantized model under both black-box and white-box attacks.
  • Compared to the second-best baseline, F.L. (Q), the method improves average accuracy by 7.55% on MNIST and 27.84% on CIFAR-10.
  • Adversarially-trained models exhibit a Lipschitz constant of over 2 in the final layer on CIFAR-10, indicating strong quantization error amplification, while the proposed method keeps it below 1.
  • The nonlinear mapping increases the Lipschitz constant of the adversarial model by 34.29% in the last layer, confirming its sensitivity to quantization.
  • The last few layers, especially the final fully connected layer, show the highest quantization error amplification, making them critical targets for defense.
  • Combining adversarial training with quantization-aware training degrades performance, indicating poor alignment between their optimization objectives.

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.