Generating Less Certain Adversarial Examples Improves Robust Generalization

Minxing Zhang, Michael Backes, Xiao Zhang
10/6/2023
4 citations
cs.LG

Official code: TrustMLRG/AdvCertainty (2 stars, Python, last commit 2024-05-23).

Abstract

This paper revisits the robust overfitting phenomenon of adversarial training. Observing that models with better robust generalization performance are less certain in predicting adversarially generated training inputs, we argue that overconfidence in predicting adversarial examples is a potential cause.

Show full abstract

Therefore, we hypothesize that generating less certain adversarial examples improves robust generalization, and propose a formal definition of adversarial certainty that captures the variance of the model's predicted logits on adversarial examples. Our theoretical analysis of synthetic distributions characterizes the connection between adversarial certainty and robust generalization. Accordingly, built upon the notion of adversarial certainty, we develop a general method to search for models that can generate training-time adversarial inputs with reduced certainty, while maintaining the model's capability in distinguishing adversarial examples. Extensive experiments on image benchmarks demonstrate that our method effectively learns models with consistently improved robustness and mitigates robust overfitting, confirming the importance of generating less certain adversarial examples for robust generalization. Our implementations are available as open-source code at: https://github.com/TrustMLRG/AdvCertainty.

View on arXivView PDF

Code Implementations(1)

An extragradient-type method for generating less certain adversarial examples to improve robust generalization

20PythonOct 6, 20232 years ago

Similar Papers

Cite this paper

@article{zhang2023generating,
  title  = {Generating Less Certain Adversarial Examples Improves Robust Generalization},
  author = {Minxing Zhang and Michael Backes and Xiao Zhang},
  year   = {2023},
  eprint = {2310.04539},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.04539v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.04539.svg)](https://codeofpaper.com/paper/2310.04539)

Discussion