Logit Pairing Methods Can Fool Gradient-Based Attacks

Marius Mosbach, Maksym Andriushchenko, Thomas Alexander Trost, Matthias Hein, Dietrich KlakowarXiv 2018

Introduction

Deep learning models are notoriously vulnerable to adversarial examples—inputs with imperceptible perturbations that trigger incorrect predictions. To address this, various defense mechanisms have been proposed. Among these, Logit Pairing methods, including Clean Logit Pairing (CLP), Logit Squeezing (LSQ), and Adversarial Logit Pairing (ALP), were introduced as efficient techniques for enhancing model robustness. This paper investigates whether these methods provide genuine security or merely create "obfuscated gradients" that mislead standard gradient-based attacks.

Methodology

The authors re-evaluate Logit Pairing defenses using a more rigorous suite of attacks designed to bypass gradient obfuscation:

  1. Hyperparameter Grid Search: Tuning step sizes and iterations for the Projected Gradient Descent (PGD) attack.
  2. Massive Random Restarts: Running PGD with up to 10,000 restarts to avoid local maxima.
  3. Gradient-Free Attacks: Utilizing Simultaneous Perturbation Stochastic Approximation (SPSA) to evaluate models without relying on backpropagation.
  4. Loss Surface Visualization: Mapping the loss landscape in 2D subspaces to qualitatively assess the difficulty of the optimization problem for an attacker.

The "Crumpled Paper" Effect

A key finding is that CLP and LSQ produce highly distorted, non-convex loss surfaces. While standard adversarial training results in a relatively smooth landscape, logit pairing creates a "jagged" surface filled with local maxima. This phenomenon, termed the "crumpled paper" effect, causes standard gradient-based attacks to converge to suboptimal local peaks, creating a false sense of robustness.

Loss surfaces for different training methods. Adversarial training (a) shows a smooth surface, while Logit Squeezing (b) and Clean Logit Pairing (c) exhibit significant distortion. Adversarial Logit Pairing (d) shows a sharp central peak.

Experimental Results

The study reveals that the perceived robustness of these models is highly sensitive to attack hyperparameters. For instance, on the MNIST dataset, the LSQ model's adversarial accuracy dropped from 70.6% to just 5.0% when the attack was properly tuned. Similarly, CLP's accuracy fell from 62.4% to 4.1%.

Heatmaps showing adversarial accuracy as a function of PGD iterations and step size. The defenses (b, c) show much higher sensitivity to attack parameters compared to standard adversarial training (a).

While Adversarial Logit Pairing (ALP) demonstrated more resilience than CLP or LSQ, its gains over standard adversarial training were marginal—often only 1-3% on datasets like CIFAR-10. Gradient-free SPSA attacks consistently outperformed PGD against these models, confirming that the primary "defense" mechanism was gradient distortion rather than true robustness.

Conclusion

The investigation concludes that most Logit Pairing methods do not provide significant genuine robustness. Instead, they rely on obfuscating gradients, a fragile defense that fails under rigorous evaluation. The authors advocate for stricter evaluation standards in adversarial machine learning, emphasizing the need for gradient-free testing and extensive hyperparameter sweeps to ensure that reported robustness is not merely an artifact of a distorted loss landscape.

Summary updated

BibTeX
@misc{mosbach2018logit,
  author = {Marius Mosbach and Maksym Andriushchenko and Thomas Alexander Trost and Matthias Hein and Dietrich Klakow},
  title = {{Logit Pairing Methods Can Fool Gradient-Based Attacks}},
  year = {2018},
  eprint = {1810.12042},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.12042},
}
Figure