A Causal Language Modeling Detour Improves Encoder Continued Pretraining
When adapting an encoder to a new domain, the standard approach is to continue training with Masked Language Modeling (MLM). We show that temporarily switching to Causal Language Modeling (CLM) followed by a short MLM decay improves downstream performance. On biomedical texts with ModernBERT, this CLM detour outperforms MLM baselines trained on identical data and compute across 8 French and 11 English biomedical tasks, by +1.2-2.8pp and +0.3-0.8pp respectively, depending on model size. We investigate the reasons for these gains. We find that CLM's dense supervision impacts low transformer layers (0-7) far more than MLM does. Freezing low layers during CLM eliminates the downstream benefit...
| Authors | Rian Touchent, Eric de la Clergerie |
|---|---|
| Primary category | cs.CL |
| Published | 12 May 2026 |
| Last updated at source | 12 May 2026 |
Connected in the knowledge graph
- almanach/ModernCamemBERT-bio-baseModel · cited by
- almanach/ModernCamemBERT-bio-v2-baseModel · cited by
- almanach/ModernCamemBERT-bio-v2-largeModel · cited by
- almanach/ModernBERT-bio-baseModel · cited by
- almanach/ModernBERT-bio-largeModel · cited by
Models and datasets referencing this paper
Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 17 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.