Attention Is All You Need
Ashish Vaswani, Noam Shazeer et al.
2.8k
Citations
105
Influential Citations
Communications of the ACM
Venue
2021
Year
Despite their massive size, successful deep artificial neural networks can exhibit a remarkably small gap between training and test performance. Conventional wisdom attributes small generalization error either to properties of the model family or to the regularization techniques used during training. Through extensive systematic experiments, we show how these traditional approaches fail to explain why large neural networks generalize well in practice. Specifically, our experiments establish that state-of-the-art convolutional networks for image classification trained with stochastic gradient methods easily fit a random labeling of the training data. This phenomenon is qualitatively unaffected by explicit regularization and occurs even if we replace the true images by completely unstructured random noise. We corroborate these experimental findings with a theoretical construction showing that simple depth two neural networks already have perfect finite sample expressivity as soon as the number of parameters exceeds the number of data points as it usually does in practice. We interpret our experimental findings by comparison with traditional models. We supplement this republication with a new section at the end summarizing recent progresses in the field since the original version of this paper.
This paper fundamentally challenges the classical bias-variance tradeoff and traditional notions of overfitting in deep learning. By showing that large neural networks can memorize random labels and noise while still generalizing well on real data, it forces the community to rethink why deep networks work. The findings have profound implications for understanding generalization, regularization, and the role of model capacity.
The work is highly cited (2785 citations) and has become a cornerstone in the debate on implicit regularization. It highlights that explicit regularization (e.g., weight decay, dropout) is not the primary driver of generalization, shifting focus to properties of the optimization algorithm (SGD) and the data distribution.
The key result is that a standard ConvNet (e.g., AlexNet) can achieve 100% training accuracy on CIFAR-10 with randomly shuffled labels, while test accuracy remains near chance (10%). This holds even when images are replaced by random noise. Explicit regularization (weight decay, dropout, data augmentation) does not qualitatively change this behavior. The theoretical result shows that a depth-two network with ReLU activations and d parameters can shatter any set of n points if d >= 2n, matching the empirical regime.
This paper has reshaped the field's understanding of generalization in deep learning. It motivated extensive research into implicit regularization (e.g., SGD's tendency to find low-norm solutions), the lottery ticket hypothesis, and the role of data structure. It also spurred new theoretical frameworks such as neural tangent kernels and the study of overparameterized models. Practitioners now recognize that large models can memorize but still generalize, leading to practical guidelines like using more data and careful tuning of optimization rather than heavy regularization.
Ashish Vaswani, Noam Shazeer et al.
Jakubův, Jan, Chvalovský, Karel et al.
Pauli Virtanen, Ralf Gommers et al.
Tom B. Brown, Benjamin Mann et al.