DictBERT:基于对比学习的词典描述知识增强语言模型预训练
DictBERT: Dictionary Description Knowledge Enhanced Language Model Pre-training via Contrastive Learning
摘要:
虽然预训练语言模型(PLM)在各种自然语言处理(NLP)任务上取得了最先进的性能,但在处理知识驱动的任务时,它们缺乏知识。尽管为将知识注入PLM做出了许多努力,但这个问题仍然存在。为了应对这一挑战,我们提出了\textbf{DictBERT},一种新的方法,增强PLM与字典知识,这是更容易获得比知识图(KG)。在预训练过程中,我们提出了两个新的预训练任务,通过对比学习将字典知识注入PLM:\textit{dictionary entry prediction}和\textit{entry description discrimination}。在微调中,我们使用预先训练的DictBERT作为一个插件知识库(KB)检索隐含的知识,识别输入序列中的条目,并注入检索到的知识到输入,以提高其表示通过一个新的额外的跳注意力机制。我们评估我们的方法上的各种知识驱动和语言理解的任务,包括NER,关系提取,常识QA,OpenBookQA和GLUE。实验结果表明,该模型对典型PLM的性能有明显的改善:BERT-large的性能分别提高了0.5%、2.9%、9.0%、7.1%和3.3%,对RoBERTa-large的性能也有明显的改善。
英文摘要:
Although pre-trained language models (PLMs) have achieved state-of-the-art performance on various natural language processing (NLP) tasks, they are shown to be lacking in knowledge when dealing with knowledge driven tasks. Despite the many efforts made for injecting knowledge into PLMs, this problem remains open. To address the challenge, we propose \textbf{DictBERT}, a novel approach that enhances PLMs with dictionary knowledge which is easier to acquire than knowledge graph (KG). During pre-training, we present two novel pre-training tasks to inject dictionary knowledge into PLMs via contrastive learning: \textit{dictionary entry prediction} and \textit{entry description discrimination}. In fine-tuning, we use the pre-trained DictBERT as a plugin knowledge base (KB) to retrieve implicit knowledge for identified entries in an input sequence, and infuse the retrieved knowledge into the input to enhance its representation via a novel extra-hop attention mechanism. We evaluate our approach on a variety of knowledge driven and language understanding tasks, including NER, relation extraction, CommonsenseQA, OpenBookQA and GLUE. Experimental results demonstrate that our model can significantly improve typical PLMs: it gains a substantial improvement of 0.5\%, 2.9\%, 9.0\%, 7.1\% and 3.3\% on BERT-large respectively, and is also effective on RoBERTa-large.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。