On the Necessity of Attention-FFN Split in Vision Transformers
Junhyeok Kim, Jinyeong Kim, Jae Wan Park, Seong Jae Hwang
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Training Vision Transformers to Focus: Emergence of Spatial Attention Head SpecializationarXiv · 2026
- Exploiting Biases in Attention for TransformersarXiv · 2026
- Beyond Head Importance: Collective Computation in Video TransformersarXiv · 2026
- Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer LearningarXiv · 2026
- Dissecting Representation Structure in Vision Transformers: A Rigorous Architectural StudyarXiv · 2026
- Probing Transformer Representations Layer by Layer, Module by ModulearXiv · 2026