Benign Overfitting in Adversarial Training for Vision Transformers

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Jiaming, Ding, Meng, Fu, Shaopeng, Zhang, Jingfeng, Wang, Di
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911612999303168
author Zhang, Jiaming
Ding, Meng
Fu, Shaopeng
Zhang, Jingfeng
Wang, Di
author_facet Zhang, Jiaming
Ding, Meng
Fu, Shaopeng
Zhang, Jingfeng
Wang, Di
contents Despite the remarkable success of Vision Transformers (ViTs) across a wide range of vision tasks, recent studies have revealed that they remain vulnerable to adversarial examples, much like Convolutional Neural Networks (CNNs). A common empirical defense strategy is adversarial training, yet the theoretical underpinnings of its robustness in ViTs remain largely unexplored. In this work, we present the first theoretical analysis of adversarial training under simplified ViT architectures. We show that, when trained under a signal-to-noise ratio that satisfies a certain condition and within a moderate perturbation budget, adversarial training enables ViTs to achieve nearly zero robust training loss and robust generalization error under certain regimes. Remarkably, this leads to strong generalization even in the presence of overfitting, a phenomenon known as \emph{benign overfitting}, previously only observed in CNNs (with adversarial training). Experiments on both synthetic and real-world datasets further validate our theoretical findings.
format Preprint
id arxiv_https___arxiv_org_abs_2604_19724
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Benign Overfitting in Adversarial Training for Vision Transformers
Zhang, Jiaming
Ding, Meng
Fu, Shaopeng
Zhang, Jingfeng
Wang, Di
Machine Learning
Artificial Intelligence
Despite the remarkable success of Vision Transformers (ViTs) across a wide range of vision tasks, recent studies have revealed that they remain vulnerable to adversarial examples, much like Convolutional Neural Networks (CNNs). A common empirical defense strategy is adversarial training, yet the theoretical underpinnings of its robustness in ViTs remain largely unexplored. In this work, we present the first theoretical analysis of adversarial training under simplified ViT architectures. We show that, when trained under a signal-to-noise ratio that satisfies a certain condition and within a moderate perturbation budget, adversarial training enables ViTs to achieve nearly zero robust training loss and robust generalization error under certain regimes. Remarkably, this leads to strong generalization even in the presence of overfitting, a phenomenon known as \emph{benign overfitting}, previously only observed in CNNs (with adversarial training). Experiments on both synthetic and real-world datasets further validate our theoretical findings.
title Benign Overfitting in Adversarial Training for Vision Transformers
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2604.19724