InforMask: Unsupervised Informative Masking for Language Model Pretraining

Nafis Sadeq, Canwen Xu, Julian McAuley
10/21/2022
cs.CL

Official code: NafisSadeq/InforMask (11 stars, Python, last commit 2022-11-10).

Abstract

Masked language modeling is widely used for pretraining large language models for natural language understanding (NLU). However, random masking is suboptimal, allocating an equal masking rate for all tokens.

Show full abstract

In this paper, we propose InforMask, a new unsupervised masking strategy for training masked language models. InforMask exploits Pointwise Mutual Information (PMI) to select the most informative tokens to mask. We further propose two optimizations for InforMask to improve its efficiency. With a one-off preprocessing step, InforMask outperforms random masking and previously proposed masking strategies on the factual recall benchmark LAMA and the question answering benchmark SQuAD v1 and v2.

View on arXivView PDF

Code Implementations(1)

Code for EMNLP 2022 paper: InforMask: Unsupervised Informative Masking for Language Model Pretraining

111Python, ShellOct 14, 20224 years ago

Similar Papers

Cite this paper

@article{sadeq2022informask,
  title  = {InforMask: Unsupervised Informative Masking for Language Model Pretraining},
  author = {Nafis Sadeq and Canwen Xu and Julian McAuley},
  year   = {2022},
  eprint = {2210.11771},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.11771}
}

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

Discussion