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.


翻译:当将编码器适应新领域时,标准方法是使用掩码语言模型(MLM)继续训练。我们证明,暂时切换至因果语言模型(CLM)后再进行短期的MLM衰减,能够提升下游任务性能。在生物医学文本上使用ModernBERT,这种CLM绕路法在8项法语和11项英语生物医学任务中,均优于在相同数据和算力下训练的MLM基线,分别提升+1.2-2.8个百分点和+0.3-0.8个百分点(依模型规模而定)。我们探究了这些增益的原因。发现CLM的密集监督对低层Transformer层(0-7层)的影响远大于MLM。在CLM期间冻结低层会消除下游收益;冻结中层则保留收益。表征变化会持续至MLM衰减阶段(即使该阶段长度与CLM阶段相当),且随模型容量扩展而增强。我们发布ModernCamemBERT-bio和ModernBERT-bio,作为Base和Large规模的生物医学编码器。

0
下载
关闭预览

相关内容

具有动能的生命体。
大语言模型的因果性
专知会员服务
40+阅读 · 2024年10月22日
Llama-3-SynE:实现有效且高效的大语言模型持续预训练
专知会员服务
36+阅读 · 2024年7月30日
预训练语言模型fine-tuning近期进展概述
专知会员服务
40+阅读 · 2021年4月9日
【AAAI2021】预训练语言模型最新进展,附113页ppt和视频
专知会员服务
65+阅读 · 2021年2月23日
绝对干货!NLP预训练模型:从transformer到albert
新智元
14+阅读 · 2019年11月10日
一大批中文(BERT等)预训练模型等你认领!
PaperWeekly
15+阅读 · 2019年6月25日
ELMo的朋友圈:预训练语言模型真的一枝独秀吗?
自然语言处理中的语言模型预训练方法
PaperWeekly
14+阅读 · 2018年10月21日
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Arxiv
0+阅读 · 5月25日
VIP会员
最新内容
《最强大的军事网状网络》
专知会员服务
0+阅读 · 36分钟前
《预测陆军征兵任务分配》110页
专知会员服务
1+阅读 · 44分钟前
分层反无人机系统发展新趋势
专知会员服务
9+阅读 · 9月3日
何为协作武器?
专知会员服务
10+阅读 · 9月1日
相关基金
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员