mlsanityData to 14 Oct 2026

Should We Still Pretrain Encoders with Masked Language Modeling?

arXiv 2507.00994 ↗First posted 1 Jul 2025cs.CLcited by 16

Not on the map. Why?

Abstract (arXiv)

Learning high-quality text representations is fundamental to a wide range of NLP tasks. While encoder pretraining has traditionally relied on Masked Language Modeling (MLM), recent evidence suggests that decoder models pretrained with Causal Language Modeling (CLM) can be effectively repurposed as encoders, often surpassing traditional encoders on text representation benchmarks. However, it remains unclear whether these gains reflect an inherent advantage of the CLM objective or arise from confounding factors such as model and data scale. In this paper, we address this question through a series of large-scale, carefully controlled pretraining ablations, training a total of 38 models ranging from 210 million to 1 billion parameters, and conducting over 15,000 fine-tuning and evaluation runs. We find that while training with MLM generally yields better performance across text representation tasks, CLM-trained models are more data-efficient and demonstrate improved fine-tuning stability. Building on these findings, we experimentally show that a biphasic training strategy that sequentially applies CLM and then MLM, achieves optimal performance under a fixed computational training budget. Moreover, we demonstrate that this strategy becomes more appealing when initializing from readily available pretrained CLM models, reducing the computational burden needed to train best-in-class encoder models. We release all project artifacts at https://hf.co/MLMvsCLM to foster further research.

Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 42 of its 55 references that are in the map. First posted on arXiv 1 Jul 2025.

Builds on

42 of 55 references.

References · 42

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  6. 2025Qwen3 Technical Reportcited by 8,820
  7. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  8. 2020Scaling Laws for Neural Language Modelscited by 6,586
  9. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  10. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  11. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  12. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
30 more
  1. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
  2. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
  3. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
  4. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  5. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,261
  6. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
  7. 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,178
  8. 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,073
  9. 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 849
  10. 2022MTEB: Massive Text Embedding Benchmarkcited by 640
  11. 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
  12. 2023The Falcon Series of Open Language Modelscited by 535
  13. 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 472
  14. 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 413
  15. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 404
  16. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 384
  17. 2020Revisiting Few-sample BERT Fine-tuningcited by 238
  18. 2024Generative Representational Instruction Tuningcited by 233
  19. 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
  20. 2019Mixout: Effective Regularization to Finetune Large-scale Pretrained Language Modelscited by 141
  21. 2025MMTEB: Massive Multilingual Text Embedding Benchmarkcited by 125
  22. 2017Bilateral Multi-Perspective Matching for Natural Language Sentencescited by 121
  23. 2022Should You Mask 15% in Masked Language Modeling?cited by 118
  24. 2025Gemini Embedding: Generalizable Embeddings from Geminicited by 94
  25. 2024Late Chunking: Contextual Chunk Embeddings Using Long-Context Embedding Modelscited by 73
  26. 2024Repetition Improves Language Model Embeddingscited by 72
  27. 2024GPT or BERT: why not both?cited by 27
  28. 2023Universal NER: A Gold-Standard Multilingual Named Entity Recognition Benchmarkcited by 26
  29. 2024Multi-Task Contrastive Learning for 8192-Token Bilingual Text Embeddingscited by 21
  30. 2025Context is Gold to find the Gold Passage: Evaluating and Training Contextual Document Embeddingscited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 10.

16 papers.

Sort:

By area: