Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

BERT's output layer recognizes all hidden layers? Some Intriguing Phenomena and a simple way to boost BERT (2001.09309v2)

Published 25 Jan 2020 in cs.CL and cs.LG

Abstract: Although Bidirectional Encoder Representations from Transformers (BERT) have achieved tremendous success in many NLP tasks, it remains a black box. A variety of previous works have tried to lift the veil of BERT and understand each layer's functionality. In this paper, we found that surprisingly the output layer of BERT can reconstruct the input sentence by directly taking each layer of BERT as input, even though the output layer has never seen the input other than the final hidden layer. This fact remains true across a wide variety of BERT-based models, even when some layers are duplicated. Based on this observation, we propose a quite simple method to boost the performance of BERT. By duplicating some layers in the BERT-based models to make it deeper (no extra training required in this step), they obtain better performance in the downstream tasks after fine-tuning.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (5)
  1. Wei-Tsung Kao (6 papers)
  2. Tsung-Han Wu (29 papers)
  3. Po-Han Chi (8 papers)
  4. Chun-Cheng Hsieh (2 papers)
  5. Hung-yi Lee (325 papers)
Citations (5)