[Paper Review] Variance-reduced Language Pretraining via a Mask Proposal Network
This paper proposes MAP-Net, a mask proposal network that reduces gradient variance in self-supervised language pretraining by learning to sample informative masked positions instead of using uniform random masking. By approximating an importance-sampling distribution proportional to gradient norms, MAP-Net accelerates convergence and improves performance, achieving BERT-level accuracy in 600k steps compared to BERT's 1000k steps on GLUE benchmarks.
Self-supervised learning, a.k.a., pretraining, is important in natural language processing. Most of the pretraining methods first randomly mask some positions in a sentence and then train a model to recover the tokens at the masked positions. In such a way, the model can be trained without human labeling, and the massive data can be used with billion parameters. Therefore, the optimization efficiency becomes critical. In this paper, we tackle the problem from the view of gradient variance reduction. In particular, we first propose a principled gradient variance decomposition theorem, which shows that the variance of the stochastic gradient of the language pretraining can be naturally decomposed into two terms: the variance that arises from the sample of data in a batch, and the variance that arises from the sampling of the mask. The second term is the key difference between selfsupervised learning and supervised learning, which makes the pretraining slower. In order to reduce the variance of the second part, we leverage the importance sampling strategy, which aims at sampling the masks according to a proposal distribution instead of the uniform distribution. It can be shown that if the proposal distribution is proportional to the gradient norm, the variance of the sampling is reduced. To improve efficiency, we introduced a MAsk Proposal Network (MAPNet), which approximates the optimal mask proposal distribution and is trained end-to-end along with the model. According to the experimental result, our model converges much faster and achieves higher performance than the baseline BERT model.
Motivation & Objective
- To address the inefficiency of uniform random masking in self-supervised language pretraining, which leads to high gradient variance and slow convergence.
- To formally decompose gradient variance in pretraining into data-batch and mask-sampling components, focusing on reducing the latter.
- To design a differentiable, end-to-end trainable mask proposal network (MAP-Net) that learns to sample informative, high-impact masked positions.
- To improve pretraining efficiency and downstream performance by reducing optimization variance without requiring additional labeled data.
- To demonstrate that variance-reduced pretraining enables faster convergence and higher accuracy on standard NLP benchmarks.
Proposed method
- Proposes a principled gradient variance decomposition theorem, separating variance into data-batch and mask-sampling components.
- Introduces importance sampling as a variance reduction strategy, where optimal mask sampling probability is proportional to gradient norm.
- Designs MAP-Net as a neural network that takes a sentence and outputs a probability distribution over positions for mask sampling.
- Trains MAP-Net and the main model jointly in an adversarial manner, using model loss as a proxy for gradient norm to guide mask selection.
- Uses pairwise preference learning to optimize MAP-Net based on relative performance on different masked inputs, avoiding reinforcement learning.
- Employs a decoupled training objective where MAP-Net learns to generate challenging masks that yield high loss, pushing the model to learn deeper representations.
Experimental results
Research questions
- RQ1Can gradient variance in language pretraining be formally decomposed into distinct components related to data sampling and mask sampling?
- RQ2Does using a non-uniform, importance-sampled mask distribution reduce optimization variance and accelerate convergence in self-supervised pretraining?
- RQ3Can a learnable mask proposal network (MAP-Net) effectively approximate the optimal importance distribution for mask sampling?
- RQ4Does training with MAP-Net lead to faster convergence and improved downstream performance compared to uniform masking in BERT?
- RQ5Can MAP-Net learn to select semantically meaningful and informative masked tokens, such as content-rich words and morphological variants?
Key findings
- MAP-Net significantly reduces gradient variance in pretraining by learning to sample informative mask positions, leading to faster convergence.
- The model trained with MAP-Net achieves a GLUE average score of 82.11 at 800k steps, outperforming BERT's 81.68 at 1000k steps.
- The 600k checkpoint of the MAP-Net model matches the 1000k checkpoint performance of BERT, demonstrating a 25% reduction in training steps for equivalent performance.
- Visualizations show that MAP-Net preferentially masks content words like nouns and verbs, and avoids redundant masking of word variants (e.g., 'computer', 'computing', 'computation'), promoting deeper contextual learning.
- The method reduces pretraining cost and energy consumption, contributing to environmental sustainability by minimizing computational waste.
- The approach is effective across multiple downstream tasks, with consistent improvements on RTE, SST-2, QNLI, and the overall GLUE benchmark.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.