Unveil Benign Overfitting for Transformer in Vision: Training Dynamics, Convergence, and Generalization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jiang, Jiarui, Huang, Wei, Zhang, Miao, Suzuki, Taiji, Nie, Liqiang
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916491664818176
author Jiang, Jiarui
Huang, Wei
Zhang, Miao
Suzuki, Taiji
Nie, Liqiang
author_facet Jiang, Jiarui
Huang, Wei
Zhang, Miao
Suzuki, Taiji
Nie, Liqiang
contents Transformers have demonstrated great power in the recent development of large foundational models. In particular, the Vision Transformer (ViT) has brought revolutionary changes to the field of vision, achieving significant accomplishments on the experimental side. However, their theoretical capabilities, particularly in terms of generalization when trained to overfit training data, are still not fully understood. To address this gap, this work delves deeply into the benign overfitting perspective of transformers in vision. To this end, we study the optimization of a Transformer composed of a self-attention layer with softmax followed by a fully connected layer under gradient descent on a certain data distribution model. By developing techniques that address the challenges posed by softmax and the interdependent nature of multiple weights in transformer optimization, we successfully characterized the training dynamics and achieved generalization in post-training. Our results establish a sharp condition that can distinguish between the small test error phase and the large test error regime, based on the signal-to-noise ratio in the data model. The theoretical results are further verified by experimental simulation. To the best of our knowledge, this is the first work to characterize benign overfitting for Transformers.
format Preprint
id arxiv_https___arxiv_org_abs_2409_19345
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Unveil Benign Overfitting for Transformer in Vision: Training Dynamics, Convergence, and Generalization
Jiang, Jiarui
Huang, Wei
Zhang, Miao
Suzuki, Taiji
Nie, Liqiang
Machine Learning
Computer Vision and Pattern Recognition
Transformers have demonstrated great power in the recent development of large foundational models. In particular, the Vision Transformer (ViT) has brought revolutionary changes to the field of vision, achieving significant accomplishments on the experimental side. However, their theoretical capabilities, particularly in terms of generalization when trained to overfit training data, are still not fully understood. To address this gap, this work delves deeply into the benign overfitting perspective of transformers in vision. To this end, we study the optimization of a Transformer composed of a self-attention layer with softmax followed by a fully connected layer under gradient descent on a certain data distribution model. By developing techniques that address the challenges posed by softmax and the interdependent nature of multiple weights in transformer optimization, we successfully characterized the training dynamics and achieved generalization in post-training. Our results establish a sharp condition that can distinguish between the small test error phase and the large test error regime, based on the signal-to-noise ratio in the data model. The theoretical results are further verified by experimental simulation. To the best of our knowledge, this is the first work to characterize benign overfitting for Transformers.
title Unveil Benign Overfitting for Transformer in Vision: Training Dynamics, Convergence, and Generalization
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2409.19345