[论文解读] Representation Deficiency in Masked Language Modeling
本文揭示了掩码语言建模(MLM)中的一种表示能力缺陷,即模型容量被浪费在学习 [MASK] 标记的表示上,从而降低了真实标记的表达能力。作者提出了 MAE-LM,通过采用掩码自编码器(MAE)架构,将 [MASK] 标记排除在编码器之外,从而提升了特征维度的利用效率,并在不同模型规模和预训练设置下,于 GLUE 和 SQuAD 基准上均实现了稳定提升。
Masked Language Modeling (MLM) has been one of the most prominent approaches for pretraining bidirectional text encoders due to its simplicity and effectiveness. One notable concern about MLM is that the special $ exttt{[MASK]}$ symbol causes a discrepancy between pretraining data and downstream data as it is present only in pretraining but not in fine-tuning. In this work, we offer a new perspective on the consequence of such a discrepancy: We demonstrate empirically and theoretically that MLM pretraining allocates some model dimensions exclusively for representing $ exttt{[MASK]}$ tokens, resulting in a representation deficiency for real tokens and limiting the pretrained model's expressiveness when it is adapted to downstream data without $ exttt{[MASK]}$ tokens. Motivated by the identified issue, we propose MAE-LM, which pretrains the Masked Autoencoder architecture with MLM where $ exttt{[MASK]}$ tokens are excluded from the encoder. Empirically, we show that MAE-LM improves the utilization of model dimensions for real token representations, and MAE-LM consistently outperforms MLM-pretrained models across different pretraining settings and model sizes when fine-tuned on the GLUE and SQuAD benchmarks.
研究动机与目标
- 研究 [MASK] 标记对 MLM 预训练模型中表示能力的影响。
- 识别出此前未知的问题:模型维度被 [MASK] 标记表示所垄断,从而降低了真实标记的表达能力。
- 提出一种方法,以提升预训练和微调过程中模型维度对真实标记表示的利用效率。
- 证明从编码器中排除 [MASK] 可提升下游性能,且不增加模型参数量。
提出的方法
- 提出 MAE-LM,一种基于掩码自编码器(MAE)架构的预训练方法,其中 [MASK] 标记被排除在编码器输入之外。
- 在预训练过程中使用一个独立的辅助解码器,从掩码位置和编码器输出中重建原始标记,且不影响下游推理。
- 通过 MLM 目标在掩码序列上进行训练,但确保编码器仅处理真实标记,从而释放模型维度用于真实标记表示。
- 编码器仅使用真实标记学习上下文表示,避免将容量分配给 [MASK] 标记。
- 在微调阶段丢弃辅助解码器,以确保与标准下游任务的兼容性。
实验结果
研究问题
- RQ1MLM 预训练中 [MASK] 标记的存在是否导致表示缺陷,从而限制了真实标记的表达能力?
- RQ2为何分配给 [MASK] 标记的模型维度会降低下游任务中真实标记的表示能力?
- RQ3从编码器中排除 [MASK] 标记能否提升模型维度对真实标记表示的利用效率?
- RQ4MAE-LM 是否在多种模型规模和预训练设置下均优于标准 MLM 预训练?
主要发现
- MLM 预训练导致表示缺陷,部分模型维度被专用于 [MASK] 标记,从而降低了真实标记表示的容量。
- 该缺陷源于 [MASK] 标记垄断了表示空间中的特定方向,限制了模型表达多样化真实标记特征的能力。
- MAE-LM 通过将 [MASK] 排除在编码器输入之外,提升了模型维度对真实标记表示的利用效率。
- 在 GLUE 基准上,MAE-LM 在多种预训练设置和模型规模下均持续优于 MLM 预训练模型。
- MAE-LM 在 SQuAD 基准上也实现了稳定提升,表明其在下游 NLP 任务中具备更强的泛化能力。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。