Manuscript Offprint

arXiv:2610.10303

On the Necessity of Attention-FFN Split in Vision Transformers

Junhyeok Kim, Jinyeong Kim, Jae Wan Park, Seong Jae Hwang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1. Introduction

The Transformer architecture (Vaswani et al., 2017) has demonstrated exceptional performance across diverse domains, establishing itself as a universal architecture (Devlin et al., 2019; Achiam et al., 2023; Dosovitskiy, 2020; Radford et al., 2021; Peebles & Xie, 2023; Baevski et al., 2020; Jumper et al., 2021). Although originally developed for machine translation, it is highly encouraging that the Transformer exhibits robust performance even in disparate fields. In particular, Vision Transformer (ViT) (Dosovitskiy, 2020) has achieved results surpassing those of Convolutional Neural Networks (CNNs) (LeCun et al., 1998; Krizhevsky et al., 2012; He et al., 2016), which had long served as the de facto standard in the computer vision domain.

This success of ViT is largely attributed to the attention mechanism. Unlike CNNs, which structurally enforce a locality inductive bias (Scherer et al., 2010; Schmidhuber, 2015; Bengio et al., 2017), attention-based models are required to learn this property directly from data. While this absence of structural constraints poses an additional learning challenge, the lack of bias grants the model the freedom to learn superior mechanisms from scratch. Consequently, ViTs not only outperform CNNs in capturing long-range dependencies (d'Ascoli et al., 2022; Edelman et al., 2022b) but also exhibit advantageous emergent properties such as register tokens (Darcet et al., 2023) that are absent in traditional CNNs.

As inductive bias has played a pivotal role in the advancement of Transformers, some research have been dedicated to understanding the biases intrinsic to the architecture. Briefly, it has been observed that Transformers exhibit a structural bias toward symmetric functions (Lavie et al., 2024) and tend to concentrate attention on a sparse subset of tokens (Edelman et al., 2022a). Despite these findings, the inductive bias imposed by the most fundamental structural choice of the Transformer, alternation of Attention and Feed-Forward Network (FFN), remains largely unexplored.

Moreover, recent studies on Mixture-of-Experts (MoE) provide evidence that this “baked-in” alternating structure of Attention and FFN may not be indispensable (Luo et al., 2025; Zhao et al., 2025; He et al., 2025; 2024). For instance, SkipGPT (Zhao et al., 2025) trained a router to conditionally drop attention or FFN blocks, revealing that consecutive interactions (e.g., Attention-Attention or FFN-FFN) are occasionally more effective than the standard alternating pattern. These studies motivate an investigation into when the Attention–FFN structure in Transformers is necessary and when it may be redundant.

Given these observations, understanding the inductive bias imposed by the repeating Attention–FFN structure of the Transformer becomes crucial. Therefore, we aim to analyze this “Attention–FFN dichotomy” in ViT. To achieve this, (i) we formulate the AttenFeed module, a single component ca-

1^{1}Department of Artificial Intelligence, Yonsei University, Seoul, Republic of Korea. Correspondence to: Seong Jae Hwang seong-jae@yonsei.ac.kr.

Preprint. October 8, 2026.

Figure

(a) standard Transformer

Figure

(b) unified Transformer

Figure 1. Architecture illustrations. (a) shows a layer of the standard Transformer, and (b) shows a layer of the unified Transformer, a control architecture for studying the Attention–FFN dichotomy.

pable of exhibiting the properties of both Attention and FFN. (ii) Then we build the unified Vision Transformer (uViT) composed of a sequence of AttenFeed modules, thereby removing the strict Attention–FFN dichotomy. (iii) Lastly, we compare uViT with ViT to analyze under what circumstances and to what extent the conventional Attention–FFN dichotomy facilitates the learning process.

To formulate the AttenFeed module, we start from the interpretation of UMoE (Yang et al., 2025) that views the standard Attention as an FFN with no activation function. By incorporating a non-linear activation function into standard attention, we enable its interpretation as a conventional FFN. In Section 4.1, we mathematically demonstrate that the AttenFeed module is a generalized form of both Attention and FFN. Then, in Sections 4.2 to 4.4, we experimentally show that the AttenFeed module simultaneously possesses the properties of both Attention and FFN. These results confirm that AttenFeed relaxes the Attention–FFN dichotomy, subsuming the functionalities of both.

Next, we design uViT, an architecture composed of a sequence of AttenFeed modules (Figure 1b). Since the AttenFeed module relaxes the structural inductive bias imposed by the Attention–FFN separation in conventional ViTs, we hypothesize that uViT exhibits weaker inductive bias than standard ViTs. We empirically validate this conjecture in Section 5.1. Consequently, uViT serves as a control group for investigating the Attention–FFN dichotomy of ViTs, as it subsumes the functional properties of both Attention and FFN while relaxing the strict structural constraints.

Finally, we pretrain both ViT and uViT on various datasets and compare their performance in Section 5.2. The results show that while uViT significantly outperforms ViT at smaller model scales, the performance gap between the two architectures narrows and becomes marginal as the model capacity increases. The experiments in Section 5 confirm that the inductive bias imposed by the Attention–FFN dichotomy in standard ViTs actually hinders performance at smaller scales.

The significance of our proposed AttenFeed module extends beyond the mere integration of standard Attention and FFN. Rather, it aims to open a new avenue for theoretically and empirically investigating the heuristically established alternating Attention–FFN structure of Transformers (Wang et al., 2025; Yu et al., 2023). We anticipate that the AttenFeed module and uViT will facilitate a more systematic investigation into the architectural inductive biases that have long underpinned the success of ViT.

Our main contributions are summarized as follows:

o Formulation of the AttenFeed Module. We propose the AttenFeed module, a unified component mathematically and empirically proven to generalize the properties of both standard Attention and FFNs.

○ Introduction of uViT. We design the unified Vision Transformer (uViT) composed entirely of AttenFeed modules, effectively removing the strict Attention–FFN dichotomy of standard Transformers.

o Analysis of Inductive Bias at Scale. Through experiments using uViT, we reveal that the conventional Attention–FFN dichotomy acts as a restrictive inductive bias that impedes effective learning at smaller model scales.

References (88)