Skip to main content
QUICK REVIEW

[论文解读] Dict-BERT: Enhancing Language Model Pre-training with Dictionary

Wenhao Yu, Chenguang Zhu|arXiv (Cornell University)|Oct 13, 2021
Topic ModelingComputer Science被引用 17
一句话总结

Dict-BERT 通过在预训练过程中整合罕见词的词典定义,增强了预训练语言模型的语义表征。它引入了两种新颖的自监督任务——词级对比学习和句级定义判别,使在 GLUE 和特定领域基准上的表现达到当前最先进水平,相较于 BERT 平均准确率提升 +1.15%,在罕见词理解方面也取得显著提升。

ABSTRACT

Pre-trained language models (PLMs) aim to learn universal language representations by conducting self-supervised training tasks on large-scale corpora. Since PLMs capture word semantics in different contexts, the quality of word representations highly depends on word frequency, which usually follows a heavy-tailed distributions in the pre-training corpus. Therefore, the embeddings of rare words on the tail are usually poorly optimized. In this work, we focus on enhancing language model pre-training by leveraging definitions of the rare words in dictionaries (e.g., Wiktionary). To incorporate a rare word definition as a part of input, we fetch its definition from the dictionary and append it to the end of the input text sequence. In addition to training with the masked language modeling objective, we propose two novel self-supervised pre-training tasks on word and sentence-level alignment between input text sequence and rare word definitions to enhance language modeling representation with dictionary. We evaluate the proposed Dict-BERT model on the language understanding benchmark GLUE and eight specialized domain benchmark datasets. Extensive experiments demonstrate that Dict-BERT can significantly improve the understanding of rare words and boost model performance on various NLP downstream tasks.

研究动机与目标

  • 为解决预训练语言模型中由于罕见词在训练语料中频率过低而导致的嵌入优化不佳问题。
  • 通过引入罕见词词典定义的外部知识,增强语言模型的预训练过程。
  • 设计在词级和句级均能将输入文本与罕见词定义对齐的自监督预训练目标。
  • 通过知识注意力机制,确保在微调过程中词典定义不会扭曲原始句子的语义。
  • 在通用 NLP 基准和特定领域数据集上评估该方法的有效性。

提出的方法

  • 在预训练期间,将罕见词的词典定义附加到输入文本序列的末尾。
  • 引入词级对比目标,以最大化罕见词表示与其定义之间的互信息。
  • 提出句级判别目标,用于区分正确定义与随机污染的定义。
  • 在微调过程中应用知识注意力机制,仅将注意力限制在对应罕见词及其定义上。
  • 利用 Wiktionary 获取通过词频阈值识别出的罕见词的定义。
  • 采用两阶段训练流程:带增强输入的预训练,以及带知识感知注意力的微调。

实验结果

研究问题

  • RQ1在预训练语言模型中整合罕见词的词典定义,能否改善这些罕见词的语义表征?
  • RQ2将输入文本与词定义进行自监督对齐,是否能提升下游 NLP 任务的性能?
  • RQ3与全注意力机制相比,微调过程中使用知识注意力机制对模型性能有何影响?
  • RQ4与原始 BERT 相比,该方法在罕见词理解任务上的性能提升程度如何?
  • RQ5该方法在多样化领域(包括专业领域和低资源场景)中是否具备泛化能力?

主要发现

  • 在从零开始预训练的情况下,Dict-BERT 在 GLUE 基准上的平均准确率相比原始 BERT 提升 +1.15%。
  • 在八项特定领域数据集上进行领域自适应预训练时,Dict-BERT 相比 BERT-DAPT 和 RoBERTa-DAPT 的 F1 分数提升 +0.5% 至 +0.7%。
  • 在 WNLaMPro 基准上,对于罕见词 (0,10),Dict-BERT 将 MRR 提升 +23.93%,P@3 提升 +28.30%,相比原始 BERT。
  • 知识注意力机制始终优于全注意力机制,有效防止了附加定义带来的语义扭曲。
  • 当选择最罕见的 10% 词汇作为定义注入目标时,性能最为稳定,但 5%、10% 和 15% 的比例下结果均表现稳健。
  • 消融实验表明,对比目标和判别目标均对性能提升有显著贡献,完整模型优于缺少任一组件的变体。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。