How to Fine-Tune BERT for Text Classification?

Chi Sun, Xipeng Qiu, Yige Xu, Xuanjing Huang
5/14/2019
cs.CL

Official code: xuyige/BERT4doc-Classification (640 stars, Apache-2.0, last commit 2021-10-19).

Abstract

Language model pre-training has proven to be useful in learning universal language representations. As a state-of-the-art language model pre-training model, BERT (Bidirectional Encoder Representations from Transformers) has achieved amazing results in many language understanding tasks. In this paper, we conduct exhaustive experiments to investigate different fine-tuning methods of BERT on text classification task and provide a general solution for BERT fine-tuning. Finally, the proposed solution obtains new state-of-the-art results on eight widely-studied text classification datasets.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code and source for paper ``How to Fine-Tune BERT for Text Classification?``

640101PythonFeb 5, 20205 years agoApache-2.0
bertnatural-language-processingtext-classification

Cite this paper

@article{sun2019finetune,
  title  = {How to Fine-Tune BERT for Text Classification?},
  author = {Chi Sun and Xipeng Qiu and Yige Xu and Xuanjing Huang},
  year   = {2019},
  eprint = {1905.05583},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.05583}
}

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/1905.05583.svg)](https://codeofpaper.com/paper/1905.05583)

Discussion