On the Necessity of Attention-FFN Split in Vision Transformers
Not on the map. Why?
Abstract (arXiv)
The standard Transformer architecture relies on a rigid pattern that alternates Attention and Feed-Forward Network (FFN) layers. Despite its widespread adoption, the inductive bias imposed by this strict separation has not been systematically examined. In this work, we investigate the necessity of the Attention-FFN dichotomy in Vision Transformers (ViTs). To facilitate this analysis, we introduce the AttenFeed module, a unified component that integrates the functional properties of both Attention and FFN. Based on this module, we devise the unified Vision Transformer (uViT), which replaces the conventional alternating Attention-FFN structure with a sequence of AttenFeed modules. We then use uViT as a control group that relaxes the Attention-FFN dichotomy of the standard ViT and systematically compare the two models across multiple datasets and model scales. Our experiments reveal that the Attention-FFN dichotomy can hinder performance at smaller model scales due to the rigid parameter allocation of ViTs. The AttenFeed module and uViT serve as new analytical tools for understanding the Attention-FFN structure and offer theoretical insights into the heuristically designed architecture of conventional ViTs.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 26 of its 82 references that are in the map. First posted on arXiv 7 Oct 2026.
Builds on
26 of 82 references.
References · 26
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023GPT-4 Technical Reportcited by 18,132
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2017Decoupled Weight Decay Regularizationcited by 1,722
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2023Vision Transformers Need Registerscited by 844
- 2022How Do Vision Transformers Work?cited by 305
- 2021DeepViT: Towards Deeper Vision Transformercited by 288
- 2024Massive Activations in Large Language Modelscited by 277
14 more
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024What Matters in Transformers? Not All Attention is Neededcited by 83
- 2024ReLU2 Wins: Discovering Efficient Activation Functions for Sparse LLMscited by 66
- 2025ConceptAttention: Diffusion Transformers Learn Highly Interpretable Featurescited by 48
- 2024Sparsing Law: Towards Large Language Models with Greater Activation Sparsitycited by 22
- 2023GELU Activation Function in Deep Learning: A Comprehensive Mathematical Analysis and Performancecited by 16
- 2024Towards Understanding Inductive Bias in Transformers: A View From Infinitycited by 13
- 2025SkipGPT: Dynamic Layer Pruning Reinvented with Token Awareness and Module Decouplingcited by 11
- 2023A Theoretical Explanation of Activation Sparsity through Flat Minima and Adversarial Robustnesscited by 7
- 2025UMoE: Unifying Attention and FFN with Shared Expertscited by 6
- 2025Attention-Only Transformers via Unrolled Subspace Denoisingcited by 5
- 2025Universal Properties of Activation Sparsity in Modern Large Language Modelscited by 5
- 2023Attention-Only Transformers and Implementing MLPs with Attention Headscited by 1
Built on by
Not cited yet.