Encoder-Decoder Models Can Benefit from Pre-trained Masked Language Models in Grammatical Error Correction

Masahiro Kaneko, Masato Mita, Shun Kiyono, Jun Suzuki, Kentaro Inui
5/3/2020
cs.CL

Official code: kanekomasahiro/bert-gec (120 stars, Shell, MIT, last commit 2020-09-09).

Abstract

This paper investigates how to effectively incorporate a pre-trained masked language model (MLM), such as BERT, into an encoder-decoder (EncDec) model for grammatical error correction (GEC). The answer to this question is not as straightforward as one might expect because the previous common methods for incorporating a MLM into an EncDec model have potential drawbacks when applied to GEC.

Show full abstract

For example, the distribution of the inputs to a GEC model can be considerably different (erroneous, clumsy, etc.) from that of the corpora used for pre-training MLMs; however, this issue is not addressed in the previous methods. Our experiments show that our proposed method, where we first fine-tune a MLM with a given GEC corpus and then use the output of the fine-tuned MLM as additional features in the GEC model, maximizes the benefit of the MLM. The best-performing model achieves state-of-the-art performances on the BEA-2019 and CoNLL-2014 benchmarks. Our code is publicly available at: https://github.com/kanekomasahiro/bert-gec.

View on arXivView PDF

Code Implementations(1)

MIT
12023Shell, PythonApr 14, 20206 years agoMIT

Similar Papers

Cite this paper

@article{kaneko2020encoderdecoder,
  title  = {Encoder-Decoder Models Can Benefit from Pre-trained Masked Language Models in Grammatical Error Correction},
  author = {Masahiro Kaneko and Masato Mita and Shun Kiyono and Jun Suzuki and Kentaro Inui},
  year   = {2020},
  eprint = {2005.00987},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.00987}
}

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

Discussion