UltraBERT:超越BERT预训练极限 UltraBERT: Beyond the Limit of BERT Pre-Training 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-10
👁️ 预览文献
💡 AI 中文简介
这项研究重新审视了双向编码器(BERT类模型)的预训练设计,发现三个关键规律:训练数据超过几万亿词元后下游任务性能会饱和;低掩码率利于分类任务而高掩码率利于检索任务;剪枝蒸馏在低掩码率下提升分类但高掩码率下损害检索。据此提出UltraBERT,在同一批次中为低、高掩码率分别设置语言模型头,并只在低掩码率分支做蒸馏。它是首个在分类和检索任务上同时达到最优的单一编码器,GLUE得分91.0,BEIR得分47.7。
领域自然语言处理(预训练语言模型)
适合谁读需要一定专业背景(熟悉BERT预训练与微调流程的读者)
核心贡献1. 系统揭示编码器预训练的规模饱和规律、掩码率与任务类型的匹配关系,以及剪枝蒸馏在不同掩码率下的差异化影响;2. 提出双语言模型头加低掩码率蒸馏的预训练方案,首次让单一编码器在分类与检索两类任务上同时取得最优。
关键数据GLUE 91.0,BEIR 47.7;训练数据超过数万亿词元后下游性能饱和;低掩码率利于分类、高掩码率利于检索。
推荐理由如果你关心BERT类模型还能被推到多远,这篇用扎实实验给出可操作的预训练配方,并首次让一个编码器同时称霸分类和检索。
关键词["双向编码器", "预训练", "掩码语言建模", "知识蒸馏", "文本检索", "文本分类"]

原文摘要

查看英文原文摘要

Recent bidirectional encoders have been modernized with innovations from causal large language models (LLMs). However, the pretraining recipe itself remains inherited from small-scale conventions, leaving encoders underoptimized, with no single model performing competitively across both classification and retrieval tasks. In this work, we investigate how far encoder performance can be pushed by revisiting core design choices in training, revealing three key findings: (1) Encoders saturate on downstream tasks beyond a few trillion tokens, indicating that additional compute past this point does not help. (2) Across model sizes, lower masking ratios benefit classification while higher ones benefit retrieval, contradicting prior work suggesting larger ratios for larger models. (3) Distillation with pruning improves classification at low masking ratios but degrades retrieval at high ones. Guided by these findings, we present UltraBERT, a single encoder that assigns separate LM heads to low and high masking ratios within a batch and restricts the distillation objective to the low ratio. To our knowledge, UltraBERT is the first encoder to achieve state of the art on both classification and retrieval tasks, reaching 91.0 on GLUE and 47.7 on BEIR. Together, these results show how far encoder performance can be pushed and provide a principled basis for compute allocation, masking ratio design, and knowledge transfer in bidirectional models.