Skip to main content
QUICK REVIEW

[Paper Review] DictBERT: Dictionary Description Knowledge Enhanced Language Model Pre-training via Contrastive Learning

Qianglong Chen, Feng-Lin Li|arXiv (Cornell University)|Aug 1, 2022
Topic ModelingComputer Science7 citations
TL;DR

DictBERT enhances pre-trained language models with dictionary knowledge via contrastive learning, introducing two novel pre-training tasks—dictionary entry prediction and entry description discrimination—to improve representation learning. It achieves state-of-the-art gains of +3.3% on BERT-large and +0.9% on GLUE by using a plugin KB with an extra-hop attention mechanism for knowledge infusion in downstream tasks.

ABSTRACT

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 extbf{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: extit{dictionary entry prediction} and extit{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.

Motivation & Objective

  • To address the lack of factual knowledge in pre-trained language models (PLMs) for knowledge-intensive NLP tasks.
  • To explore the feasibility and effectiveness of using easily accessible dictionary knowledge instead of complex knowledge graphs (KGs) or noisy Wikipedia sources.
  • To develop a method that enhances both knowledge injection and general language understanding in PLMs.
  • To design a practical, scalable approach that can be easily deployed in industrial and academic settings.

Proposed method

  • Proposes two novel pre-training tasks: dictionary entry prediction (masking entry and predicting from description) and entry description discrimination (contrastive learning using synonyms/antonyms as positive/negative samples).
  • Uses contrastive learning to improve robustness of entry representations by distinguishing between semantically similar (positive) and dissimilar (negative) descriptions.
  • Introduces a plugin knowledge base mechanism where pre-trained DictBERT retrieves entry information during fine-tuning for downstream tasks.
  • Employs an extra-hop attention mechanism to effectively fuse retrieved dictionary knowledge into input representations.
  • Supports multiple knowledge infusion strategies: concatenation, LWA (learnable weighted attention), and EHA (extra-hop attention) for flexible integration.
  • Leverages semi-structured dictionary data—more accessible and knowledge-dense than Wikipedia or KGs—enabling practical deployment.

Experimental results

Research questions

  • RQ1Can dictionary knowledge, as a form of external knowledge, significantly improve the performance of pre-trained language models on knowledge-intensive tasks?
  • RQ2Is contrastive learning effective for learning robust representations of dictionary entries from their descriptions?
  • RQ3Does using a PLM enhanced with dictionary knowledge improve both knowledge-specific and general language understanding tasks?
  • RQ4How does the performance of DictBERT compare to existing K-PLMs that use knowledge graphs or Wikipedia?
  • RQ5Can the proposed plugin-based knowledge infusion mechanism outperform direct fine-tuning with the pre-trained model?

Key findings

  • DictBERT achieves a +3.3% improvement on BERT-large across CommonsenseQA, OpenBookQA, and GLUE benchmarks, significantly outperforming existing K-PLMs.
  • The model improves RoBERTa-large by +0.9% on the GLUE benchmark, demonstrating broad applicability beyond specific tasks.
  • The ablation study confirms that pre-training with dictionary knowledge is essential, as using BERT-large as a plugin yields only marginal gains.
  • Contrastive learning (entry description discrimination) contributes +0.4% average improvement, validating its role in representation learning.
  • The extra-hop attention mechanism (EHA) achieves the highest performance, with +6.1% on CSQA and +7.7% on OBQA over BERT-large.
  • Using a larger dictionary (1M entries from Cambridge, Oxford, and Wiktionary) leads to a +0.23% average improvement, showing scalability and robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.