Undivided Attention: Are Intermediate Layers Necessary for BERT?
Not on the map. Why?
Abstract (arXiv)
In recent times, BERT-based models have been extremely successful in solving a variety of natural language processing (NLP) tasks such as reading comprehension, natural language inference, sentiment analysis, etc. All BERT-based architectures have a self-attention block followed by a block of intermediate layers as the basic building component. However, a strong justification for the inclusion of these intermediate layers remains missing in the literature. In this work we investigate the importance of intermediate layers on the overall network performance of downstream tasks. We show that reducing the number of intermediate layers and modifying the architecture for BERT-BASE results in minimal loss in fine-tuning accuracy for downstream tasks while decreasing the number of parameters and training time of the model. Additionally, we use centered kernel alignment and probing linear classifiers to gain insight into our architectural modifications and justify that removal of intermediate layers has little impact on the fine-tuned accuracy.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 22 Dec 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 2; 2024: 0; 2025: 1.
6 papers.
- 2023Similarity of Neural Network Models: A Survey of Functional and Representational Measurescited by 128
- 2022The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language Modelscited by 115
- 2021Fine-Tuned Transformers Show Clusters of Similar Representations Across Layerscited by 29
- 2025Attention Is Not All You Need: The Importance of Feedforward Networks in Transformer Modelscited by 4
- 2023GIST: Generated Inputs Sets Transferability in Deep Learningcited by 1
- 2022Sparse*BERT: Sparse Models Generalize To New tasks and Domainscited by 0
- 2025Attention Is Not All You Need: The Importance of Feedforward Networks in Transformer Models10 May 2025
- 2023GIST: Generated Inputs Sets Transferability in Deep Learning1 Nov 2023
- 2023Similarity of Neural Network Models: A Survey of Functional and Representational Measures10 May 2023
- 2022Sparse*BERT: Sparse Models Generalize To New tasks and Domains25 May 2022
- 2022The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language Models14 Mar 2022
- 2021Fine-Tuned Transformers Show Clusters of Similar Representations Across Layers17 Sep 2021