Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
110 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Undivided Attention: Are Intermediate Layers Necessary for BERT? (2012.11881v2)

Published 22 Dec 2020 in cs.CL and cs.AI

Abstract: In recent times, BERT-based models have been extremely successful in solving a variety of 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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (2)
  1. Sharath Nittur Sridhar (16 papers)
  2. Anthony Sarah (10 papers)
Citations (11)

Summary

We haven't generated a summary for this paper yet.