Should We Still Pretrain Encoders with Masked Language Modeling?
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2025Qwen3 Technical Reportcited by 8,820
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
30 more
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,261
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,178
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,073
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 849
- 2022MTEB: Massive Text Embedding Benchmarkcited by 640
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
- 2023The Falcon Series of Open Language Modelscited by 535
- 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 472
- 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 413
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 404
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 384
- 2020Revisiting Few-sample BERT Fine-tuningcited by 238
- 2024Generative Representational Instruction Tuningcited by 233
- 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
- 2019Mixout: Effective Regularization to Finetune Large-scale Pretrained Language Modelscited by 141
- 2025MMTEB: Massive Multilingual Text Embedding Benchmarkcited by 125
- 2017Bilateral Multi-Perspective Matching for Natural Language Sentencescited by 121
- 2022Should You Mask 15% in Masked Language Modeling?cited by 118
- 2025Gemini Embedding: Generalizable Embeddings from Geminicited by 94
- 2024Late Chunking: Contextual Chunk Embeddings Using Long-Context Embedding Modelscited by 73
- 2024Repetition Improves Language Model Embeddingscited by 72
- 2024GPT or BERT: why not both?cited by 27
- 2023Universal NER: A Gold-Standard Multilingual Named Entity Recognition Benchmarkcited by 26
- 2024Multi-Task Contrastive Learning for 8192-Token Bilingual Text Embeddingscited by 21
- 2025Context is Gold to find the Gold Passage: Evaluating and Training Contextual Document Embeddingscited by 13
Built on by
Citing papers per year: 2025: 6; 2026: 10.
16 papers.
Sort:
By area:
- 2025mmBERT: A Modern Multilingual Encoder with Annealed Language Learningcited by 45
- 2025Seq vs Seq: An Open Suite of Paired Encoders and Decoderscited by 38
- 2025ModernVBERT: Towards Smaller Visual Document Retrieverscited by 21
- 2026BidirLM: From Text to Omnimodal Bidirectional Encoders by Adapting and Composing Causal LLMscited by 5
- 2025Enhancing next token prediction based pre-training for jet foundation modelscited by 3
- 2026Efficient Pre-Training with Token Superpositioncited by 2
- 2026MulTaBench: Benchmarking Multimodal Tabular Learning with Text and Imagecited by 2
- 2026MoganBert-TR: A Turkish Encoder Foundation Model Trained from Scratch with a CLM-to-MLM Curriculumcited by 2
- 2026One Script Instead of Hundreds? On Pretraining Romanized Encoder Language Modelscited by 1
- 2026A Causal Language Modeling Detour Improves Encoder Continued Pretrainingcited by 1
- 2025GEP: A GCG-Based method for extracting personally identifiable information from chatbots built on small language modelscited by 0
- 2025BERnaT: Basque Encoders for Representing Natural Textual Diversitycited by 0
4 more
- 2026Avey-Bcited by 0
- 2026MoganColBERT-TR: A Late-Interaction Multi-Vector Retrieval Model for Turkishcited by 0
- 2026Towards Efficient Reasoning: Learning Causal Shortcuts for Diffusion Language Modelscited by 0
- 2026UltraBERT: Beyond the Limit of BERT Pre-Trainingcited by 0
- 2026UltraBERT: Beyond the Limit of BERT Pre-Training10 Oct 2026
- 2026Towards Efficient Reasoning: Learning Causal Shortcuts for Diffusion Language Models23 Sep 2026
- 2026MoganColBERT-TR: A Late-Interaction Multi-Vector Retrieval Model for Turkish26 Aug 2026
- 2026MoganBert-TR: A Turkish Encoder Foundation Model Trained from Scratch with a CLM-to-MLM Curriculum26 Aug 2026
- 2026A Causal Language Modeling Detour Improves Encoder Continued Pretraining12 May 2026
- 2026MulTaBench: Benchmarking Multimodal Tabular Learning with Text and Image11 May 2026
- 2026Efficient Pre-Training with Token Superposition7 May 2026
- 2026BidirLM: From Text to Omnimodal Bidirectional Encoders by Adapting and Composing Causal LLMs2 Apr 2026
- 2026Avey-B17 Feb 2026
- 2026One Script Instead of Hundreds? On Pretraining Romanized Encoder Language Models9 Jan 2026
- 2025Enhancing next token prediction based pre-training for jet foundation models3 Dec 2025
- 2025BERnaT: Basque Encoders for Representing Natural Textual Diversity3 Dec 2025
4 more
- 2025ModernVBERT: Towards Smaller Visual Document Retrievers1 Oct 2025
- 2025GEP: A GCG-Based method for extracting personally identifiable information from chatbots built on small language models25 Sep 2025
- 2025mmBERT: A Modern Multilingual Encoder with Annealed Language Learning8 Sep 2025
- 2025Seq vs Seq: An Open Suite of Paired Encoders and Decoders15 Jul 2025
- 2025ModernVBERT: Towards Smaller Visual Document Retrieverscited by 21
- 2025ModernVBERT: Towards Smaller Visual Document Retrievers1 Oct 2025
- 2025mmBERT: A Modern Multilingual Encoder with Annealed Language Learningcited by 45
- 2025Seq vs Seq: An Open Suite of Paired Encoders and Decoderscited by 38
- 2026BidirLM: From Text to Omnimodal Bidirectional Encoders by Adapting and Composing Causal LLMscited by 5
- 2025Enhancing next token prediction based pre-training for jet foundation modelscited by 3
- 2026Efficient Pre-Training with Token Superpositioncited by 2
- 2026MulTaBench: Benchmarking Multimodal Tabular Learning with Text and Imagecited by 2
- 2026MoganBert-TR: A Turkish Encoder Foundation Model Trained from Scratch with a CLM-to-MLM Curriculumcited by 2
- 2026One Script Instead of Hundreds? On Pretraining Romanized Encoder Language Modelscited by 1
- 2026A Causal Language Modeling Detour Improves Encoder Continued Pretrainingcited by 1
- 2025GEP: A GCG-Based method for extracting personally identifiable information from chatbots built on small language modelscited by 0
- 2025BERnaT: Basque Encoders for Representing Natural Textual Diversitycited by 0
- 2026Avey-Bcited by 0
12 most cited of 14 All 14 (JSON)
- 2026UltraBERT: Beyond the Limit of BERT Pre-Training10 Oct 2026
- 2026MoganColBERT-TR: A Late-Interaction Multi-Vector Retrieval Model for Turkish26 Aug 2026
- 2026MoganBert-TR: A Turkish Encoder Foundation Model Trained from Scratch with a CLM-to-MLM Curriculum26 Aug 2026
- 2026A Causal Language Modeling Detour Improves Encoder Continued Pretraining12 May 2026
- 2026MulTaBench: Benchmarking Multimodal Tabular Learning with Text and Image11 May 2026
- 2026Efficient Pre-Training with Token Superposition7 May 2026
- 2026BidirLM: From Text to Omnimodal Bidirectional Encoders by Adapting and Composing Causal LLMs2 Apr 2026
- 2026Avey-B17 Feb 2026
- 2026One Script Instead of Hundreds? On Pretraining Romanized Encoder Language Models9 Jan 2026
- 2025Enhancing next token prediction based pre-training for jet foundation models3 Dec 2025
- 2025BERnaT: Basque Encoders for Representing Natural Textual Diversity3 Dec 2025
- 2025GEP: A GCG-Based method for extracting personally identifiable information from chatbots built on small language models25 Sep 2025
12 newest of 14 All 14 (JSON)