Skip to main content
QUICK REVIEW

[Paper Review] Representation Deficiency in Masked Language Modeling

Meng Yu, Jitin Krishnan|arXiv (Cornell University)|Feb 4, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper identifies a representation deficiency in Masked Language Modeling (MLM) where model capacity is wasted on learning [MASK] token representations, reducing expressiveness for real tokens. The authors propose MAE-LM, which excludes [MASK] tokens from the encoder by using a Masked Autoencoder architecture, resulting in improved dimension utilization and consistent gains over MLM across GLUE and SQuAD benchmarks across model sizes and pretraining settings.

ABSTRACT

Masked Language Modeling (MLM) has been one of the most prominent approaches for pretraining bidirectional text encoders due to its simplicity and effectiveness. One notable concern about MLM is that the special $ exttt{[MASK]}$ symbol causes a discrepancy between pretraining data and downstream data as it is present only in pretraining but not in fine-tuning. In this work, we offer a new perspective on the consequence of such a discrepancy: We demonstrate empirically and theoretically that MLM pretraining allocates some model dimensions exclusively for representing $ exttt{[MASK]}$ tokens, resulting in a representation deficiency for real tokens and limiting the pretrained model's expressiveness when it is adapted to downstream data without $ exttt{[MASK]}$ tokens. Motivated by the identified issue, we propose MAE-LM, which pretrains the Masked Autoencoder architecture with MLM where $ exttt{[MASK]}$ tokens are excluded from the encoder. Empirically, we show that MAE-LM improves the utilization of model dimensions for real token representations, and MAE-LM consistently outperforms MLM-pretrained models across different pretraining settings and model sizes when fine-tuned on the GLUE and SQuAD benchmarks.

Motivation & Objective

  • To investigate the impact of [MASK] tokens on representation capacity in MLM-pretrained models.
  • To identify a previously unknown issue where model dimensions are monopolized by [MASK] token representations, reducing expressiveness for real tokens.
  • To propose a method that improves the utilization of model dimensions for real token representations in pretraining and fine-tuning.
  • To demonstrate that excluding [MASK] from the encoder enhances downstream performance without increasing model size.

Proposed method

  • Propose MAE-LM, a pretraining method based on the Masked Autoencoder (MAE) architecture, where [MASK] tokens are excluded from the encoder input.
  • Use a separate auxiliary decoder during pretraining to reconstruct original tokens from masked positions and encoder outputs, without affecting downstream inference.
  • Train the model via MLM objective on masked sequences, but ensure the encoder processes only real tokens, thus freeing model dimensions for real token representations.
  • The encoder learns contextual representations using only real tokens, avoiding allocation of capacity to [MASK] tokens.
  • The auxiliary decoder is discarded during fine-tuning, ensuring compatibility with standard downstream tasks.

Experimental results

Research questions

  • RQ1Does the presence of [MASK] tokens in MLM pretraining lead to a representation deficiency that limits model expressiveness for real tokens?
  • RQ2Why do model dimensions allocated to [MASK] tokens reduce the capacity for representing real tokens in downstream tasks?
  • RQ3Can excluding [MASK] tokens from the encoder improve the utilization of model dimensions for real token representations?
  • RQ4Does MAE-LM outperform standard MLM pretraining across diverse model sizes and pretraining settings?

Key findings

  • MLM pretraining results in a representation deficiency where some model dimensions are exclusively used for [MASK] tokens, reducing capacity for real token representations.
  • The representation deficiency arises because [MASK] tokens monopolize specific directions in the representation space, limiting the model’s ability to express diverse real token features.
  • MAE-LM improves the utilization of model dimensions for real token representations by excluding [MASK] from the encoder input.
  • MAE-LM consistently outperforms MLM-pretrained models across multiple pretraining settings and model sizes on the GLUE benchmark.
  • MAE-LM achieves consistent improvements on the SQuAD benchmark, demonstrating enhanced generalization to downstream NLP tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.