# Benign Overfitting in Adversarial Training for Vision Transformers

비전 트랜스포머를 위한 적대적 학습에서의 양성 과적합

Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang · arXiv · 2026년 4월 21일

- **연구 문제** 적대적 학습을 받은 Vision Transformer에서 과적합이 있어도 일반화가 유지되는지를 이론과 실험으로 분석합니다.
- **연구 방법** 단순화된 두 층 ViT의 어텐션 투영 행렬만 경사하강법으로 적대적 학습시키고, 교란 반경에 따라 학습 동역학을 세 체제로 나누어 분석합니다.
- **주요 결과** 신호 대 잡음비와 교란 반경이 조건을 만족하면 강건 학습 손실이 ϵ 이하로 수렴하고 강건한 테스트 오차에 상한이 주어집니다. 교란이 커지면 어텐션이 균일하게 남아 선형 모델로 퇴화합니다.

## 적대적 학습의 일반화 문제와 ViT로의 확장

적대적 학습은 입력에 가해진 교란에 대해서도 모델이 안정적으로 분류하도록 돕는 대표적인 방어 기법입니다. 그러나 적대적 학습은 깨끗한 데이터의 정확도를 떨어뜨리는 강건성과 일반화의 상충 관계를 자주 동반합니다. 이 논문은 학습 데이터를 거의 0 손실로 보간하면서도 일반화가 잘 되는 benign overfitting이 적대적 학습에서도 나타날 수 있는지를 묻습니다. 기존 이론은 선형 모델과 두 층 신경망에서 이 현상을 다루었지만, 어텐션 헤드를 가진 Vision Transformer에 대한 분석은 거의 없었습니다. 어텐션은 쿼리·키·값 투영 행렬을 포함하므로 교란이 학습 동역학에 미치는 영향이 선형 층과 다르게 나타납니다.

## 단순화된 두 층 Transformer와 적대적 학습 알고리즘

논문은 자기 어텐션 층 하나와 고정된 선형 층으로 구성된 단순화된 두 층 Transformer를 사용합니다. 모델은 쿼리·키·값 행렬 W\_Q, W\_K, W\_V와 출력 벡터 w\_O로 정의되며, 어텐션 가중치는 softmax로 계산됩니다. 학습 손실은 0/1 손실 대신 로그 손실 ℓ(z)=log(1+exp(−z))를 쓰는 대리 손실입니다. 적대적 학습 알고리즘은 각 샘플에 대해 토큰별 ℓp-norm 교란 집합 안에서 손실을 최대화하는 예제를 만든 뒤, 그 예제의 기울기로 W\_Q, W\_K, W\_V만 갱신합니다. 출력 벡터 w\_O는 학습 중 고정됩니다.

![Table 1: Notations](https://refivu.com/papers/a90339d2-e025-49a0-97df-3e6493ad2bd1/figures/figure-735e5e0778f3e7f39f13694e37bfd07f.png?thumb=512)

**Table 1** .Notations

[원문](https://arxiv.org/abs/2604.19724v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang · Benign Overfitting in Adversarial Training for Vision Transformers · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

## 신호 대 잡음비와 교란 크기에 따른 정리

핵심 이론 결과인 Theorem 4.2는 조건 아래에서 두 경우를 구분합니다. 첫째 경우는 N·SNR²=Ω(1)이고 τ가 ∥µ∥2/log d\_h 정도 이하인 조건입니다. 이때 어텐션 헤드는 학습 가능하게 남습니다. 둘째 경우는 N·SNR²=Ω(1/ϵ)이고 τ가 ∥µ∥2/log d\_h보다 크지만 O(∥µ∥2) 이하인 조건입니다. 이때 어텐션 헤드의 파라미터는 거의 갱신되지 않아 어텐션 가중치가 균일하게 남고, ViT가 선형 모델로 퇴화합니다. 두 경우 모두 확률 1−d^{-1} 이상으로 강건 학습 손실이 ϵ 이하로 수렴하며, 깨끗한 테스트 오차와 강건한 테스트 오차에 exp 형태의 상한이 주어집니다.

## 교란 반경과 신호 강도에 따른 실험적 검증

합성 데이터 실험에서는 학습 샘플 수 N을 2에서 22까지, SNR을 0.16에서 16까지 바꾸어 깨끗한 테스트 정확도와 강건한 테스트 정확도를 히트맵으로 비교했습니다. 저자들은 N·SNR²=Ω(1) 경계가 고정확도 영역과 저정확도 영역을 나누는 것으로 보고합니다. 교란 반경 실험에서는 N=25, SNR=16 등의 설정 아래 τ/∥µ∥2를 0.02, 0.1, 0.5로 두었습니다. τ/∥µ∥2=0.02에서는 어텐션 엔트로피가 0에 가깝게 감소하고 학습 손실이 0으로 수렴하지만, τ/∥µ∥2=0.5에서는 손실이 줄지 않는다고 보고됩니다. 실데이터 실험에서는 MNIST, CIFAR-10, Tiny-ImageNet을 벡터로 변환해 사용했으며, 두 층 어텐션 모델과 실제 ViT-base 백본 모두에서 유사한 위상 전이가 관찰되었다고 보고됩니다.

![Figure 1: Clean and robust test accuracy under adversarial training across various signal-to-noise ratios ( SNR) and sample sizes (N). (a)&(b): results on synt…](https://refivu.com/papers/a90339d2-e025-49a0-97df-3e6493ad2bd1/figures/figure-ec6057da25f534e99bcb3b6037ec3340.png?thumb=512)

**Figure 1** .Clean and robust test accuracy under adversarial training across various signal-to-noise ratios ( SNR) and sample sizes (N). (a)&(b): results on synthetic data; (c)&(d): results on real-world data. High test accuracy is colored in yellow, whereas low test accuracy is colored in purple.

[원문](https://arxiv.org/abs/2604.19724v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang · Benign Overfitting in Adversarial Training for Vision Transformers · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Figure 3: Training dynamics with different perturbationτradius: attention entropy, training loss, andW V norm](https://refivu.com/papers/a90339d2-e025-49a0-97df-3e6493ad2bd1/figures/figure-f46924f1e225ca4a6cee9da93a7706a1.png?thumb=512)

**Figure 3** .Training dynamics with different perturbationτradius: attention entropy, training loss, andW V norm.

[원문](https://arxiv.org/abs/2604.19724v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang · Benign Overfitting in Adversarial Training for Vision Transformers · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

![Figure 4: Clean and robust test accuracy heatmaps on MNIST with APGD attack across various signal-to-noise ratios ( SNR) and sample sizes (N). (b)&(d) are a he…](https://refivu.com/papers/a90339d2-e025-49a0-97df-3e6493ad2bd1/figures/figure-a2c30215cbf109ffae1e2decfd4f6910.png?thumb=512)

**Figure 4** .Clean and robust test accuracy heatmaps on MNIST with APGD attack across various signal-to-noise ratios ( SNR) and sample sizes (N). (b)&(d) are a heatmap that applies a cutoff value 0.93.

[원문](https://arxiv.org/abs/2604.19724v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang · Benign Overfitting in Adversarial Training for Vision Transformers · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

![Figure 5: Clean and robust test accuracy heatmaps on CIFAR-10 with APGD attack across various signal-to-noise ratios ( SNR) and sample sizes (N). (b)&(d) are a…](https://refivu.com/papers/a90339d2-e025-49a0-97df-3e6493ad2bd1/figures/figure-6f35b34ecf22139b7e0b8be662333a66.png?thumb=512)

**Figure 5** .Clean and robust test accuracy heatmaps on CIFAR-10 with APGD attack across various signal-to-noise ratios ( SNR) and sample sizes (N). (b)&(d) are a heatmap that applies a cutoff value 0.65.

[원문](https://arxiv.org/abs/2604.19724v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang · Benign Overfitting in Adversarial Training for Vision Transformers · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

![Figure 6: Clean and robust test accuracy heatmaps on Tiny Imagenet with APGD attack across various signal-to-noise ratios ( SNR) and sample sizes (N). (b)&(d)…](https://refivu.com/papers/a90339d2-e025-49a0-97df-3e6493ad2bd1/figures/figure-cdbbdf33de380f8d732e532f624b04d1.png?thumb=512)

**Figure 6** .Clean and robust test accuracy heatmaps on Tiny Imagenet with APGD attack across various signal-to-noise ratios ( SNR) and sample sizes (N). (b)&(d) are a heatmap that applies a cutoff value 0.70.

[원문](https://arxiv.org/abs/2604.19724v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang · Benign Overfitting in Adversarial Training for Vision Transformers · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

![Figure 8: Clean and robust test accuracy of ViT-base under adversarial training across various signal-to-noise ratios (SNR) and sample sizes (N). Top row: clea…](https://refivu.com/papers/a90339d2-e025-49a0-97df-3e6493ad2bd1/figures/figure-5d037ab46accd7eb1dd05c33bffc2adb.png?thumb=512)

**Figure 8** .Clean and robust test accuracy of ViT-base under adversarial training across various signal-to-noise ratios (SNR) and sample sizes (N). Top row: clean test accuracy. Bottom row: robust test accuracy.

[원문](https://arxiv.org/abs/2604.19724v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang · Benign Overfitting in Adversarial Training for Vision Transformers · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

## 교란 상한과 적용 범위

Theorem 4.3은 교란 반경이 신호 강도 이상으로 커지면 어떤 분류기도 자명하지 않은 강건 정확도를 얻지 못한다고 제시합니다. 따라서 교란 반경의 상한 조건은 benign overfitting의 필수 가정으로 읽어야 합니다. 분석은 단순화된 두 층 ViT와 ℓ2 중심의 교란, 그리고 특정 가정 아래의 데이터 모델을 다룹니다. 실데이터 실험은 실제 ViT-base의 마지막 어텐션 층의 QKV만 갱신하는 설정 등 특정 조건에서 수행되었으므로, 다른 모델이나 전체 파라미터 학습에 그대로 확대할 수 없습니다.

## 논문 정보

- **저자**: Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 4월 21일
- **등록일**: 2026년 10월 29일
- **수정일**: 2026년 4월 21일
- **버전**: v1
- **arXiv**: 2604.19724
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2604.19724v1) · [원문 PDF ↗](https://arxiv.org/pdf/2604.19724v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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.

## 원문 인용

Jiaming Zhang, Meng Ding, Shaopeng Fu, Jingfeng Zhang, Di Wang (2026). Benign Overfitting in Adversarial Training for Vision Transformers. arXiv:2604.19724v1. https://arxiv.org/abs/2604.19724v1

**BibTeX**

```
@misc{zhang2026benign,
  title = {{Benign Overfitting in Adversarial Training for Vision Transformers}},
  author = {Jiaming Zhang and Meng Ding and Shaopeng Fu and Jingfeng Zhang and Di Wang},
  year = {2026},
  eprint = {2604.19724},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.19724v1}
}
```

## 이 논문의 용어

- [MNIST](https://refivu.com/terms/28b9bb66d1c6-mnist)
- [CIFAR-10](https://refivu.com/terms/19035a518d0a-cifar-10)
- [cross-entropy loss](https://refivu.com/terms/14067bdf8b9f-cross-entropy-loss)
- [adversarial training](https://refivu.com/terms/79bc85d56747-adversarial-training)
- [multi-head attention](https://refivu.com/terms/370ae5c971cd-multi-head-attention)
- [signal-to-noise ratio](https://refivu.com/terms/9b3a8b590fb6-signal-to-noise-ratio)
- [projected gradient descent](https://refivu.com/terms/2ec4a00aca90-projected-gradient-descent)
- [vision transformer](https://refivu.com/terms/143abf165d88-vision-transformer)
- [Tiny-ImageNet](https://refivu.com/terms/843b8ef2c427-tiny-imagenet)

## 다른 논문 해설

- [Towards Certified Unlearning for Deep Neural Networks](https://refivu.com/papers/850d7d8a-affd-45b9-b183-28ff19d787ac-towards-certified-unlearning-for-deep-neural-networks.md)
- [Focus and Dilution: The Multi-stage Learning Process of Attention](https://refivu.com/papers/e6b90367-c1c2-4867-8bbc-18e92193520d-focus-and-dilution-the-multi-stage-learning-process.md)
- [HEXST: Hexagonal Shifted-Window Transformer for Spatial Transcriptomics Gene Expression Prediction](https://refivu.com/papers/7c3bd06d-0848-44d9-94e6-1fc1eab7d611-hexst-hexagonal-shifted-window-transformer-for-spatial.md)
- [Multi-Scale Wavelet Transformers for Operator Learning of Dynamical Systems](https://refivu.com/papers/99516f77-526a-48c6-b49a-c6b19b348ddc-multi-scale-wavelet-transformers-for-operator-learning-of.md)
- [Caracal: Causal Architecture via Spectral Mixing](https://refivu.com/papers/58a28d0a-323e-43a7-adf0-1661f45ffcac-caracal-causal-architecture-via-spectral-mixing.md)
- [Slow and Steady Wins the Race: Maintaining Plasticity with Hare and Tortoise Networks](https://refivu.com/papers/8d54b0d0-5aab-4e32-962f-0d074d24697e-slow-and-steady-wins-the-race-maintaining-plasticity.md)
- [Intentional Updates for Streaming Reinforcement Learning](https://refivu.com/papers/19377172-88c8-4bfd-a5a6-121b40f60999-intentional-updates-for-streaming-reinforcement-learning.md)
- [Verification of Machine Unlearning is Fragile](https://refivu.com/papers/600c543e-20b2-4c40-82ed-7750fbbf4f46-verification-of-machine-unlearning-is-fragile.md)
- [Relative Entropy Estimation in Function Space: Theory and Applications to Trajectory Inference](https://refivu.com/papers/a9ff6320-ef26-4ee4-911f-4a8c39b902d5-relative-entropy-estimation-in-function-space-theory-and.md)
- [Tokenised Flow Matching for Hierarchical Simulation Based Inference](https://refivu.com/papers/800f60c6-69fb-48c9-b47d-699047fcdf96-tokenised-flow-matching-for-hierarchical-simulation-based.md)
- [Differentiable Conformal Training for LLM Reasoning Factuality](https://refivu.com/papers/f680eced-051e-4f77-b330-404301215d25-differentiable-conformal-training-for-llm-reasoning.md)
- [LATMiX: Learnable Affine Transformations for Microscaling Quantization of LLMs](https://refivu.com/papers/b9f5cf76-c781-42bd-8550-ff2ae7d4753f-latmix-learnable-affine-transformations-for-microscaling.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/a90339d2-e025-49a0-97df-3e6493ad2bd1-benign-overfitting-in-adversarial-training-for-vision)
