BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Model

WS 2019  ·  Alex Wang, Kyunghyun Cho ·

We show that BERT (Devlin et al., 2018) is a Markov random field language model. This formulation gives way to a natural procedure to sample sentences from BERT. We generate from BERT and find that it can produce high-quality, fluent generations. Compared to the generations of a traditional left-to-right language model, BERT generates sentences that are more diverse but of slightly worse quality.

PDF Abstract WS 2019 PDF WS 2019 Abstract

Results from the Paper


  Submit results from this paper to get state-of-the-art GitHub badges and help the community compare results to other papers.

Methods