# Neural Mask Generator: Learning to Generate Adaptive Word Maskings for Language Model Adaptation

Source: [Neural Mask Generator: Learning to Generate Adaptive Word Maskings for Language Model Adaptation](<https://www.sota2.com/research/paper/68fa686c1e209131cea1c0c5>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T22:37:00.137Z

Authors: Minki Kang, Moonsu Han, Sung Ju Hwang

Published: 2020-10-06T13:27:01.000Z

## Abstract

We propose a method to automatically generate a domain- and task-adaptive maskings of the given text for self-supervised pre-training, such that we can effectively adapt the language model to a particular target task (e.g. question answering). Specifically, we present a novel reinforcement learning-based framework which learns the masking policy, such that using the generated masks for further pre-training of the target language model helps improve task performance on unseen texts. We use off-policy actor-critic with entropy regularization and experience replay for reinforcement learning, and propose a Transformer-based policy network that can consider the relative importance of words in a given text. We validate our Neural Mask Generator (NMG) on several question answering and text classification datasets using BERT and DistilBERT as the language models, on which it outperforms rule-based masking strategies, by automatically learning optimal adaptive maskings.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2010.02705>)

[PDF](<https://arxiv.org/pdf/2010.02705.pdf>)
