IsoBN: Fine-Tuning BERT with Isotropic Batch Normalization

Wenxuan Zhou, Bill Yuchen Lin, Xiang Ren
5/2/2020
cs.CLcs.LG

Official code: INK-USC/IsoBN (12 stars, Python, last commit 2021-11-23).

Abstract

Fine-tuning pre-trained language models (PTLMs), such as BERT and its better variant RoBERTa, has been a common practice for advancing performance in natural language understanding (NLU) tasks. Recent advance in representation learning shows that isotropic (i.e., unit-variance and uncorrelated) embeddings can significantly improve performance on downstream tasks with faster convergence and better generalization.

Show full abstract

The isotropy of the pre-trained embeddings in PTLMs, however, is relatively under-explored. In this paper, we analyze the isotropy of the pre-trained [CLS] embeddings of PTLMs with straightforward visualization, and point out two major issues: high variance in their standard deviation, and high correlation between different dimensions. We also propose a new network regularization method, isotropic batch normalization (IsoBN) to address the issues, towards learning more isotropic representations in fine-tuning by dynamically penalizing dominating principal components. This simple yet effective fine-tuning method yields about 1.0 absolute increment on the average of seven NLU tasks.

View on arXivView PDF

Code Implementations(1)

INK-USC/IsoBNOfficial100%

IsoBN: Fine-Tuning BERT with Isotropic Batch Normalization

120Python, ShellMay 2, 20205 years ago

Similar Papers

Cite this paper

@article{zhou2020isobn,
  title  = {IsoBN: Fine-Tuning BERT with Isotropic Batch Normalization},
  author = {Wenxuan Zhou and Bill Yuchen Lin and Xiang Ren},
  year   = {2020},
  eprint = {2005.02178},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.02178}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2005.02178.svg)](https://codeofpaper.com/paper/2005.02178)

Discussion