Visualizing and Understanding the Effectiveness of BERT

By Yaru Hao, Li Dong, Furu Wei, Ke Xu. 2019

205 citations recorded by the source corpus.

Language model pre-training, such as BERT, has achieved remarkable results in many NLP tasks. However, it is unclear why the pre-training-then-fine-tuning paradigm can improve performance and generalization capability across different tasks. In this paper, we propose to visualize loss landscapes and optimization trajectories of fine-tuning BERT on specific datasets. First, we find that pre-training reaches a good initial point across downstream tasks, which leads to wider optima and easier optimization compared with training from scratch. We also demonstrate that the fine-tuning procedure is robust to overfitting, even though BERT is highly over-parameterized for downstream tasks. Second, the visualization results indicate that fine-tuning BERT tends to generalize better because of the flat and wide optima, and the consistency between the training loss surface and the generalization error surface. Third, the lower layers of BERT are more invariant during fine-tuning, which suggests that the layers that are close to input learn more transferable representations of language.

Subfields: Artificial Intelligence, Large Language Models, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Yonatan Belinkov
  3. Luke S. Zettlemoyer
  4. Jianfeng Gao
  5. Yejin Choi
  6. Percy Liang
  7. Furu Wei
  8. Zhe Gan

In Large Language Models

  1. Furu Wei
  2. Yonatan Belinkov
  3. Li Dong
  4. Hinrich Schütze
  5. Anna Rogers
  6. Anna Rumshisky
  7. Zhe Gan
  8. Olga Kovaleva

In Safety, Robustness & Interpretability

  1. Yonatan Belinkov
  2. Yejin Choi
  3. Ivan Titov
  4. Ellie Pavlick
  5. Swabha Swayamdipta
  6. Sebastian Riedel
  7. Weizhu Chen
  8. Hassan Sajjad

Citations in the corpus