paper-with-me

Papers

Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagation

2023-02-20 · Bobby He, James Martens, Guodong Zhang, Aleksandar Botev, Andrew Brock, Samuel L Smith, Yee Whye Teh

Skip connections and normalisation layers form two standard architectural components that are ubiquitous for the training of Deep Neural Networks (DNNs), but whose precise roles are poorly understood. Recent approaches such as Deep Kernel Shaping have made progress towards reducing our reliance on them, using insights from wide NN kernel theory to improve signal propagation in vanilla DNNs (which we define as networks without skips or normalisation). However, these approaches are incompatible with the self-attention layers present in transformers, whose kernels are intrinsically more complicated to analyse and control. And so the question remains: is it possible to train deep vanilla transformers? We answer this question in the affirmative by designing several approaches that use combinations of parameter initialisations, bias matrices and location-dependent rescaling to achieve faithful signal propagation in vanilla transformers. Our methods address various intricacies specific to signal propagation in transformers, including the interaction with positional encoding and causal masking. In experiments on WikiText-103 and C4, our approaches enable deep transformers without normalisation to train at speeds matching their standard counterparts, and deep vanilla transformers to reach the same performance as standard ones after about 5 times more iterations.

📄 PDF Abstract BibTeX arXiv:2302.10322

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

MiMu: Mitigating Multiple Shortcut Learning Behavior of Transformers

2025-04-14 · Lili Zhao, Qi Liu, Wei Chen, Liyi Chen 외

Empirical Risk Minimization (ERM) models often rely on spurious correlations between features and labels during the learning process, leading to shortcut learning behavior that undermines robustness generalization perfor…

Keep It SimPool: Who Said Supervised Transformers Suffer from Attention Deficit?

2023-09-13 · ICCV 2023 1 · Bill Psomas, Ioannis Kakogeorgiou, Konstantinos Karantzalos, Yannis Avrithis

Convolutional networks and vision transformers have different forms of pairwise interactions, pooling across layers and pooling at the end of the network. Does the latter really need to be different? As a by-product of p…

Image ClassificationImage RetrievalMetric LearningObject Discovery+3

Vision Transformers Need More Than Registers

2026-02-25 · Cheng Shi, Yizhou Yu, Sibei Yang arxiv

Vision Transformers (ViTs), when pre-trained on large-scale data, provide general-purpose representations for diverse downstream tasks. However, artifacts in ViTs are widely observed across different supervision paradigm…

Overcoming Statistical Shortcuts for Open-ended Visual Counting

2020-06-17 · Corentin Dancette, Remi Cadene, Xinlei Chen, Matthieu Cord

Machine learning models tend to over-rely on statistical shortcuts. These spurious correlations between parts of the input and the output labels does not hold in real-world settings. We target this issue on the recent op…

Vision Transformers with Patch Diversification

2021-04-26 · Chengyue Gong, Dilin Wang, Meng Li, Vikas Chandra 외

Vision transformer has demonstrated promising performance on challenging computer vision tasks. However, directly training the vision transformers may yield unstable and sub-optimal results. Recent works propose to impro…

DiversityImage ClassificationSemantic Segmentation