mlsanityData to 14 Oct 2026

Exploration of Masked and Causal Language Modelling for Text Generation

arXiv 2405.12630 ↗First posted 21 May 2024cs.CL cs.AIcited by 7

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have revolutionised the field of Natural Language Processing (NLP) and have achieved state-of-the-art performance in practically every task in this field. However, the prevalent approach used in text generation, Causal Language Modelling (CLM), which generates text sequentially from left to right, inherently limits the freedom of the model, which does not decide when and where each token is generated. In contrast, Masked Language Modelling (MLM), primarily used for language understanding tasks, can generate tokens anywhere in the text and any order. This paper conducts an extensive comparison of MLM and CLM approaches for text generation tasks. To do so, we pre-train several language models of comparable sizes on three different datasets, namely 1) medical discharge summaries, 2) movie plot synopses, and 3) authorship verification datasets. To assess the quality of the generations, we first employ quantitative metrics and then perform a qualitative human evaluation to analyse coherence and grammatical correctness. In addition, we evaluate the usefulness of the generated texts by using them in three different downstream tasks: 1) Entity Recognition, 2) Text Classification, and 3) Authorship Verification. The results show that MLM consistently outperforms CLM in text generation across all datasets, with higher quantitative scores and better coherence in the generated text. The study also finds textitno strong correlation between the quality of the generated text and the performance of the models in the downstream tasks. With this study, we show that MLM for text generation has great potential for future research and provides direction for future studies in this area.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 19 of its 33 references that are in the map. First posted on arXiv 21 May 2024.

Builds on

19 of 33 references.

References · 19

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  6. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  7. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  8. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  9. 2020Domain-Specific Language Model Pretraining for Biomedical Natural Language Processingcited by 1,009
  10. 2021A Survey of Data Augmentation Approaches for NLPcited by 409
  11. 2018Deterministic Non-Autoregressive Neural Sequence Modeling by Iterative Refinementcited by 195
  12. 2019BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Modelcited by 185
7 more
  1. 2021A Survey on Data Augmentation for Text Classificationcited by 111
  2. 2021SciFive: a text-to-text transformer model for biomedical literaturecited by 99
  3. 2022A Survey on Non-Autoregressive Generation for Neural Machine Translation and Beyondcited by 64
  4. 2019Data Augmentation for BERT Fine-Tuning in Open-Domain Question Answeringcited by 21
  5. 2021BERT-CoQAC: BERT-based Conversational Question Answering in Contextcited by 13
  6. 2018MPST: A Corpus of Movie Plot Synopses with Tagscited by 11
  7. 2021ExBERT: An External Knowledge Enhanced BERT for Natural Language Inferencecited by 4

Built on by

Cited by year

Citing papers per year: 2024: 3; 2025: 4.

7 papers.