Deriving Language Models from Masked Language Models

Lucas Torroba Hennigen, Yoon Kim
5/24/2023
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Masked language models (MLM) do not explicitly define a distribution over language, i.e., they are not language models per se. However, recent work has implicitly treated them as such for the purposes of generation and scoring. This paper studies methods for deriving explicit joint distributions from MLMs, focusing on distributions over two tokens, which makes it possible to calculate exact distributional properties. We find that an approach based on identifying joints whose conditionals are closest to those of the MLM works well and outperforms existing Markov random field-based approaches. We further find that this derived model's conditionals can even occasionally outperform the original MLM's conditionals.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hennigen2023deriving,
  title  = {Deriving Language Models from Masked Language Models},
  author = {Lucas Torroba Hennigen and Yoon Kim},
  year   = {2023},
  eprint = {2305.15501},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.15501v1}
}

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

Discussion