Skip to main content
QUICK REVIEW

[Paper Review] Adversarial Detection and Correction by Matching Prediction Distributions

Giovanni Vacanti, Arnaud Van Looveren|arXiv (Cornell University)|Feb 21, 2020
Adversarial Robustness in Machine LearningComputer Science22 references13 citations
TL;DR

This paper proposes an unsupervised adversarial detection and correction method using an autoencoder trained with a Kullback-Leibler divergence loss to match classifier prediction distributions between original and reconstructed inputs. It achieves near-perfect detection of strong grey-box attacks (e.g., Carlini-Wagner, SLIDE) on MNIST and Fashion-MNIST, and remains highly effective on CIFAR-10, even under white-box conditions, while also detecting data corruptions on CIFAR-10-C.

ABSTRACT

We present a novel adversarial detection and correction method for machine learning classifiers.The detector consists of an autoencoder trained with a custom loss function based on the Kullback-Leibler divergence between the classifier predictions on the original and reconstructed instances.The method is unsupervised, easy to train and does not require any knowledge about the underlying attack. The detector almost completely neutralises powerful attacks like Carlini-Wagner or SLIDE on MNIST and Fashion-MNIST, and remains very effective on CIFAR-10 when the attack is granted full access to the classification model but not the defence. We show that our method is still able to detect the adversarial examples in the case of a white-box attack where the attacker has full knowledge of both the model and the defence and investigate the robustness of the attack. The method is very flexible and can also be used to detect common data corruptions and perturbations which negatively impact the model performance. We illustrate this capability on the CIFAR-10-C dataset.

Motivation & Objective

  • To develop a robust, unsupervised adversarial detection and correction method that does not require prior knowledge of attack types or model defenses.
  • To improve detection of adversarial examples by focusing on the classifier’s output probability distribution rather than input reconstruction error.
  • To evaluate the method’s effectiveness against powerful grey-box and white-box attacks on diverse datasets like MNIST, Fashion-MNIST, and CIFAR-10.
  • To extend the method’s utility beyond adversarial attacks to detect harmful data corruptions and distribution shifts in real-world deployment.
  • To provide a flexible, general-purpose defense mechanism applicable to any differentiable classifier across data modalities.

Proposed method

  • The method employs an autoencoder trained with a custom loss function based on the Kullback-Leibler (KL) divergence between the classifier’s prediction probabilities on the original input and the reconstructed input.
  • The autoencoder learns to generate a symmetric, artifact-free reconstruction that preserves the original classifier’s output distribution, effectively removing adversarial perturbations.
  • An adversarial score is computed as the KL divergence between the classifier’s predictions on the original and reconstructed inputs, serving as a detection signal.
  • The defense is trained in an unsupervised manner, requiring no labeled adversarial examples or knowledge of the attack strategy.
  • The method is extended to detect data drift by measuring adversarial scores on corrupted inputs, such as those in the CIFAR-10-C benchmark.
  • The approach is modular and can be enhanced via ensemble learning using multiple autoencoders with diverse architectures to improve robustness.

Experimental results

Research questions

  • RQ1Can a defense mechanism based on matching prediction distributions between original and reconstructed inputs effectively detect strong grey-box adversarial attacks?
  • RQ2How effective is the method in detecting white-box attacks where the attacker has full knowledge of both the model and defense?
  • RQ3Does the adversarial score derived from KL divergence between prediction distributions generalize to detecting common data corruptions and distribution shifts?
  • RQ4To what extent does model ensembling improve the robustness of the detection system against transferable attacks?
  • RQ5Can the method be applied universally across different data modalities and classifier architectures without architectural or hyperparameter tuning?

Key findings

  • The method achieves near-complete neutralization of Carlini-Wagner and SLIDE attacks on MNIST and Fashion-MNIST, with detection AUC values exceeding 0.95 in most cases.
  • On CIFAR-10, the method maintains high detection performance under white-box attacks, achieving AUC values of 0.7673 (C&W), 0.7268 (SLIDE), and up to 0.85 for FGSM across different ε values.
  • The adversarial score effectively detects data corruptions in CIFAR-10-C, with harmful instances (misclassified due to corruption) showing adversarial scores 2.91x to 5.87x higher than unaffected instances.
  • A Kolmogorov-Smirnov test confirms the statistical significance of the difference in adversarial scores between corrupted and uncorrupted instances, with p-value = 0.0.
  • The method demonstrates low transferability of white-box attacks across diverse autoencoder architectures, suggesting inherent robustness to attack transfer.
  • The approach remains effective even when the attacker has full knowledge of the defense mechanism, indicating strong resilience to white-box threats.

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.