arXiv:2501.13397cs.CLcs.LG2025-01ICML被引 4

改进掩码机制,让语言模型学得更准

ExLM: Rethinking the Impact of [MASK] Tokens in Masked Language Models

  • 用扩展掩码增强上下文,捕捉更丰富语义
  • 在文本和SMILES任务上显著提升性能
  • 适合追求更强表征能力的NLP研究者

掩码语言模型(MLMs)在自监督表示学习中取得显著成功。其训练方式是随机用[Mask]标记遮蔽输入序列的部分内容,并基于剩余上下文重建原始信息。本文分析发现,[Mask]标记会引入语义污染问题,即被破坏的上下文可能传递多重、模糊的含义,这是影响下游任务表现的关键因素。为此,我们提出一种新型增强上下文的掩码语言模型——ExLM。该方法扩展输入上下文中的[Mask]标记,并建模这些扩展状态之间的依赖关系,从而提升上下文容量,使模型能捕获更丰富的语义信息,有效缓解预训练阶段的语义污染问题。实验结果表明,ExLM在文本建模和SMILES建模任务中均实现显著性能提升。进一步分析证实,ExLM通过上下文增强丰富了语义表示,有效降低了传统MLMs中常见的语义多模性。

原文摘要 · Abstract (English)

Masked Language Models (MLMs) have achieved remarkable success in many self-supervised representation learning tasks. MLMs are trained by randomly masking portions of the input sequences with [MASK] tokens and learning to reconstruct the original content based on the remaining context. This paper explores the impact of [MASK] tokens on MLMs. Analytical studies show that masking tokens can introduce the corrupted semantics problem, wherein the corrupted context may convey multiple, ambiguous meanings. This problem is also a key factor affecting the performance of MLMs on downstream tasks. Based on these findings, we propose a novel enhanced-context MLM, ExLM. Our approach expands [MASK] tokens in the input context and models the dependencies between these expanded states. This enhancement increases context capacity and enables the model to capture richer semantic information, effectively mitigating the corrupted semantics problem during pre-training. Experimental results demonstrate that ExLM achieves significant performance improvements in both text modeling and SMILES modeling tasks. Further analysis confirms that ExLM enriches semantic representations through context enhancement, and effectively reduces the semantic multimodality commonly observed in MLMs.

语言模型掩码机制语义增强

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。