DKPLM: Decomposable Knowledge-Enhanced Pre-trained Language Model for Natural Language Understanding

Taolin Zhang, Chengyu Wang, Nan Hu, Minghui Qiu, Chengguang Tang, Xiaofeng He, Jun Huang

Abstract

Standard Pre-trained Language Models (PLMs) often lack specific factual knowledge, particularly regarding rare or "long-tail" entities. While Knowledge-Enhanced PLMs (KEPLMs) attempt to address this by integrating structured Knowledge Graphs (KGs), they typically introduce significant computational overhead during inference. This paper introduces DKPLM (Decomposable Knowledge-Enhanced Pre-trained Language Model), which bridges the gap between massive KGs and lightweight LMs. By injecting structured knowledge exclusively during pre-training and focusing on long-tail entities, DKPLM achieves state-of-the-art performance on knowledge-intensive tasks while maintaining the inference efficiency of standard models.

Introduction

Pre-trained Language Models like BERT and RoBERTa excel at capturing linguistic nuances but frequently falter when tasks require specific factual or commonsense knowledge. This is especially true for entities that appear infrequently in the training corpus. Existing KEPLMs integrate information from KGs but suffer from two primary issues: high computational costs due to persistent knowledge encoders and KG lookups during inference, and "information noise" caused by indiscriminate knowledge injection for well-known entities.

The Decomposable Framework

DKPLM proposes a "decomposable" architecture where knowledge injection is confined to the pre-training phase. This ensures the resulting model remains "clean" and computationally efficient for downstream fine-tuning and inference.

Comparison of PLMs, KEPLMs, and DKPLM workflows.

As shown in Figure 1, unlike traditional KEPLMs that require knowledge sources and encoders at every stage, DKPLM integrates these components only during pre-training. This allows the model to function as a standard PLM during inference, significantly reducing latency.

Methodology

The DKPLM framework relies on three core technical innovations:

  1. Knowledge-aware Long-tail Entity Detection: Instead of augmenting every entity, DKPLM uses a scoring mechanism to identify "long-tail" entities—those that are rare in text but well-represented in the KG. This targeted approach reduces noise and focuses the model's learning capacity where it is most needed.
  2. Pseudo Token Representation Injection: For identified rare entities, the model replaces standard embeddings with "pseudo tokens." These are generated by encoding the entity's KG triples (e.g., Durant -> plays for -> Brooklyn Nets) using the PLM's own encoder. This method "bakes" structured knowledge directly into the model's weights without introducing new parameters.
  3. Relational Knowledge Decoding: To reinforce the understanding of injected facts, a new pre-training task is introduced. The model is tasked with reconstructing missing components of a KG triple (e.g., predicting the tail entity given the head and relation).
Detailed architecture of the DKPLM framework.

Figure 2 illustrates the end-to-end pipeline, from entity processing and long-tail detection to the integration of pseudo-token embeddings within the Transformer layers.

Experimental Results

DKPLM was pre-trained on English Wikipedia aligned with WikiData5M and evaluated across several benchmarks, including LAMA (factual probing), Open Entity (entity typing), and TACRED (relation extraction).

Performance and Efficiency

  • Knowledge Probing: DKPLM outperformed strong baselines like ERNIE-THU and KnowBERT, showing a 1.57% average increase in top-1 accuracy on LAMA datasets.
  • Relation Extraction: On the TACRED benchmark, DKPLM achieved a state-of-the-art F1 score of 73.07%, a 1.46% improvement over previous models.
  • Inference Speed: Efficiency tests confirmed that DKPLM is nearly as fast as a standard RoBERTa-base. For 1,000 samples, DKPLM took 1.61 seconds, significantly faster than KEPLER (1.86s) and ERNIE-THU (1.95s).

Conclusion

DKPLM demonstrates that "less is more" in knowledge enhancement. By focusing on long-tail entities and decomposing the knowledge injection process, the model avoids the pitfalls of information noise and computational bloat. The result is a highly efficient, knowledge-rich model that sets new standards for natural language understanding tasks. Future work will explore more sophisticated triple selection methods and scaling the decomposable mechanism to larger model architectures.

Summary updated

BibTeX
@inproceedings{zhang2022dkplm,
  author = {Taolin Zhang and Chengyu Wang and Nan Hu and Minghui Qiu and Chengguang Tang and Xiaofeng He and Jun Huang},
  title = {{DKPLM: Decomposable Knowledge-Enhanced Pre-trained Language Model for Natural Language Understanding}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i10.21425},
}
Figure