arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.12438cs.CLcs.AI
收藏

通过因果语言模型的绕行提升编码器持续预训练

A Causal Language Modeling Detour Improves Encoder Continued Pretraining

Sorbonne Université / INRIA Paris ALMAnaCH Team(索邦大学 / 巴黎INRIA ALMAnaCH团队);INRIA Paris ALMAnaCH Team(巴黎INRIA ALMAnaCH团队)

Rian Touchent, Eric de la Clergerie

AI总结:

本文通过在持续预训练中临时切换到因果语言模型并随后进行短时掩码语言模型衰减,提升了下游任务性能,特别是在生物医学文本上表现更优。

摘要:

当将编码器适应到新领域时,标准方法是通过掩码语言模型(MLM)继续训练。我们证明,临时切换到因果语言模型(CLM)并随后进行短时MLM衰减可以提升下游性能。在使用ModernBERT的生物医学文本上,这种CLM绕行在8个法语和11个英语生物医学任务中,相比相同数据和计算资源训练的MLM基线,分别提升了+1.2-2.8个百分点和+0.3-0.8个百分点,具体取决于模型大小。我们调查了这些收益的原因。发现CLM的密集监督对低变压器层(0-7)影响远大于MLM。在CLM期间冻结低层会消除下游收益;冻结中层则能保留该收益。表示变化在MLM衰减阶段持续存在,即使其长度与CLM阶段相同,且随模型容量扩大而扩大。我们发布了ModernCamemBERT-bio和ModernBERT-bio作为最先进的生物医学编码器,在Base和Large规模上。

英文摘要:

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; freezing mid layers preserves it. The representational changes persist through the MLM decay phase, even when it matches the CLM phase in length, and they scale with model capacity. We release ModernCamemBERT-bio and ModernBERT-bio as state-of-the-art biomedical encoders in Base and Large sizes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑