mlsanityData to 14 Oct 2026

Attention Is Not All You Need: The Importance of Feedforward Networks in Transformer Models

arXiv 2505.06633 ↗First posted 10 May 2025cs.CL cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

Decoder-only transformer networks have become incredibly popular for language modeling tasks. State-of-the-art models can have over a hundred transformer blocks, containing billions of trainable parameters, and are trained on trillions of tokens of text. Each transformer block typically consists of a multi-head attention (MHA) mechanism and a two-layer fully connected feedforward network (FFN). In this paper, we examine the importance of the FFN during the model pre-training process through a series of experiments, confirming that the FFN is important to model performance. Furthermore, we show that models using a transformer block configuration with three-layer FFNs with fewer such blocks outperform the standard two-layer configuration delivering lower training loss with fewer total parameters in less time.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 13 of its 20 references that are in the map. First posted on arXiv 10 May 2025.

Builds on

13 of 20 references.

References · 13

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  5. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  6. 2016Pointer Sentinel Mixture Modelscited by 3,096
  7. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  8. 2022What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization?cited by 150
  9. 2019Augmenting Self-attention with Persistent Memorycited by 93
  10. 2024Understanding the Expressive Power and Mechanisms of Transformer for Sequence Modelingcited by 25
  11. 2024Star Attention: Efficient LLM Inference over Long Sequencescited by 25
  12. 2023One Wide Feedforward is All You Needcited by 15
1 more
  1. 2020Undivided Attention: Are Intermediate Layers Necessary for BERT?cited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.