Abstract
Large-scale pre-trained language models (PLMs) often lack the specific world knowledge required for complex reasoning tasks. While existing knowledge-enhanced PLMs (K-PLMs) utilize Knowledge Graphs or Wikipedia, these sources are often noisy or difficult to maintain. We present DictBERT, a framework that leverages the high-density information found in dictionaries. By employing Dictionary Entry Prediction (DEP) and Entry Description Discrimination (EDD) through contrastive learning, DictBERT effectively maps lexical tokens to descriptive concepts. Furthermore, a modular "plugin" architecture with an Extra-hop Attention mechanism allows for efficient integration of dictionary knowledge into downstream tasks. Our experiments demonstrate that DictBERT significantly outperforms baseline models on knowledge-intensive benchmarks like CommonsenseQA and OpenBookQA, while simultaneously improving performance on the GLUE benchmark.
1. Introduction
While models such as BERT and RoBERTa demonstrate mastery over syntax and general linguistic patterns, they frequently struggle with "knowledge-driven" tasks that necessitate specific factual or world knowledge. Current attempts to bridge this "knowledge gap" typically rely on Knowledge Graphs (KGs) or Wikipedia. However, KGs are notoriously difficult to construct and maintain, and Wikipedia text often suffers from low knowledge density, requiring models to process significant amounts of irrelevant text to extract core facts.
DictBERT addresses these limitations by utilizing dictionaries as a primary knowledge source. Dictionaries provide concise, high-density information and mirror the human cognitive process of looking up unfamiliar terms to facilitate comprehension. By treating the dictionary as a flexible knowledge base, DictBERT enhances model performance without the overhead of massive, sparse datasets.
2. Methodology
The DictBERT framework consists of a specialized pre-training phase followed by a modular fine-tuning phase designed for efficient knowledge integration.
2.1 Pre-training Tasks
Two novel tasks are introduced to embed dictionary knowledge into the model:
- Dictionary Entry Prediction (DEP): The model is tasked with predicting a masked entry word (e.g., "forest") based on its definition (e.g., "a large area of land covered with trees"). This forces the model to map descriptive concepts directly to specific lexical tokens.
- Entry Description Discrimination (EDD): Utilizing contrastive learning, this task encourages the model to align the representation of a word with the definitions of its synonyms (positive samples) while distancing it from the definitions of its antonyms (negative samples). The use of antonyms as "hard negatives" provides a strong training signal, sharpening the model's semantic boundaries.
2.2 The Plugin Architecture
To avoid the common pitfall of "catastrophic forgetting" during fine-tuning, DictBERT acts as a frozen plugin. When processing input, the system identifies key entities and retrieves corresponding embeddings from DictBERT. A novel Extra-hop Attention mechanism is then used to fuse this external knowledge into the primary model. This allows the model to dynamically weigh the relevance of a definition based on the current context, which is particularly effective for polysemous words.
3. Experimental Setup
3.1 Datasets
DictBERT was pre-trained primarily using the Cambridge Dictionary (315,000 entries). For ablation studies, the authors scaled the knowledge base to over 1 million entries by combining Cambridge, Oxford, and Wiktionary data.
3.2 Evaluation Benchmarks
The model was evaluated across two main categories:
- Knowledge-Driven Tasks: CoNLL2003 (NER), TACRED (Relation Extraction), CommonsenseQA, and OpenBookQA.
- General Language Understanding: The GLUE benchmark (including CoLA, SST-2, and QQP).
4. Results and Discussion
DictBERT demonstrated substantial performance gains over strong baselines, including BERT-large and RoBERTa-large.
- Knowledge Benchmarks: The model achieved a 9.0% improvement on CommonsenseQA and a 7.1% improvement on OpenBookQA compared to BERT-large.
- General Performance: DictBERT improved average performance on the GLUE benchmark by 3.3%. This suggests that injecting specific dictionary knowledge does not degrade general linguistic capabilities, a frequent issue in other K-PLMs.
- Efficiency: By pre-computing dictionary embeddings into a lookup table, the framework reduced inference overhead by approximately 60ms per batch compared to standard encoder-based retrieval methods.
5. Conclusion
DictBERT proves that "density over volume" is a viable strategy for knowledge enhancement. By utilizing concise dictionary definitions and contrastive learning with antonyms, the model achieves superior performance on knowledge-heavy tasks. The modular plugin philosophy allows for high flexibility, potentially enabling the use of domain-specific dictionaries (e.g., medical or legal) without retraining the core model. Future work will focus on expanding the framework to multilingual dictionaries and improving entity identification to further refine the retrieval process.
Summary updated