One-vs-the-Rest Loss to Focus on Important Samples in Adversarial Training

Sekitoshi Kanai, Shin'ya Yamaguchi, Masanori Yamada, Hiroshi Takahashi, Kentaro Ohno +1 more
7/21/2022
cs.LGcs.AIstat.ML

No confident code implementation found for this paper.

Abstract

This paper proposes a new loss function for adversarial training. Since adversarial training has difficulties, e.g., necessity of high model capacity, focusing on important data points by weighting cross-entropy loss has attracted much attention. However, they are vulnerable to sophisticated attacks, e.g., Auto-Attack. This paper experimentally reveals that the cause of their vulnerability is their small margins between logits for the true label and the other labels. Since neural networks classify the data points based on the logits, logit margins should be large enough to avoid flipping the largest logit by the attacks. Importance-aware methods do not increase logit margins of important samples but decrease those of less-important samples compared with cross-entropy loss. To increase logit margins of important samples, we propose switching one-vs-the-rest loss (SOVR), which switches from cross-entropy to one-vs-the-rest loss for important samples that have small logit margins. We prove that one-vs-the-rest loss increases logit margins two times larger than the weighted cross-entropy loss for a simple problem. We experimentally confirm that SOVR increases logit margins of important samples unlike existing methods and achieves better robustness against Auto-Attack than importance-aware methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kanai2022onevstherest,
  title  = {One-vs-the-Rest Loss to Focus on Important Samples in Adversarial Training},
  author = {Sekitoshi Kanai and Shin'ya Yamaguchi and Masanori Yamada and Hiroshi Takahashi and Kentaro Ohno and Yasutoshi Ida},
  year   = {2022},
  eprint = {2207.10283},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.10283v3}
}

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/2207.10283.svg)](https://codeofpaper.com/paper/2207.10283)

Discussion