TL;DR
KELM is a fine-tuning-based framework that integrates multi-relational Knowledge Graphs (KGs) directly into pre-trained language models without requiring expensive re-pretraining. By constructing a Unified Knowledge-enhanced Text Graph (UKET) and applying hierarchical message passing, it dynamically embeds relational graph context and resolves ambiguous entity mentions. On reading comprehension benchmarks like ReCoRD and MultiRC, KELM substantially outperforms vanilla BERT and prior knowledge-injected fine-tuning baselines.
What Problem Does This Paper Address?
Standard pre-trained language models (PLMs) such as BERT struggle to master factual, relational knowledge purely from statistical word co-occurrences in text. Existing knowledge-enhanced PLMs (e.g., ERNIE, LUKE) address this by injecting structured KGs, but they suffer from three major shortcomings:
- Expensive pre-training: Most approaches require modifying pre-training objectives and running massive pre-training passes (costing hundreds of GPU days), which hinders quick adaptation to new domains.
- Static knowledge context: Prior works often freeze pre-trained KG embeddings (like TransE or BILINEAR), failing to adjust graph representations dynamically based on surrounding textual context.
- Knowledge ambiguity: Many models rely on simplistic 1-to-1 string matching or Wikipedia hyperlinks, faltering when a single text mention matches multiple entities in a KG (e.g., "Ford" meaning the 38th U.S. President vs. a shallow river crossing).
Methods
KELM integrates external knowledge strictly during the downstream fine-tuning phase at the output layer of the PLM using three key components:
[ Injected KG(s) ] [ Mention-to-Entity Links ] [ Text Sequence ]
│ │ │
1. rGCN Encoder 2. Attentive Selection 3. Self-Attention
(Multi-hop Graph Context) (Resolves Polysemy & Sentinel) (Token Interactions)
└──────────────────────────────────┴──────────────────────────────┘
│
[ Downstream Task Head ]
- Unified Knowledge-Enhanced Text Graph (UKET): Represents text and knowledge under a unified hierarchical graph composed of three parts:
- KG-only subgraphs: $K$-hop subgraphs extracted around entities mentioned in the text.
- Entity-link-to-token graph: Bipartite links between tokenized entity mentions in text and their matching candidate entities in the KG.
- Text-only graph: A fully connected token graph representing text sequence interactions.
- Hierarchical Message Passing (HMP):
- Dynamic KG Embedding: A multi-relational graph convolutional network (rGCN) updates entity representations over the extracted KG topology, capturing multi-hop neighborhood structures.
- Semantic Entity Disambiguation: A GAT-like attention layer uses the PLM's token hidden states to query candidate entity embeddings, dynamically weighting the correct entity sense. An untrainable zero-initialized "sentinel node" is added to each mention to absorb noise when no KG entity is relevant.
- Cross-Token Interactions: Enriched token vectors (concatenated text and KG states) interact via self-attention across the fully connected word graph.
- Two-Stage Fine-Tuning: The PLM backbone is initially frozen to train the HMP knowledge module, followed by joint end-to-end fine-tuning.
Datasets
The authors evaluated KELM primarily on Machine Reading Comprehension (MRC) and commonsense tasks from SuperGLUE:
- ReCoRD: Extractive-style commonsense MRC dataset sourced from CNN/Daily Mail articles.
- MultiRC: Multi-sentence, multiple-choice reading comprehension spanning 7 diverse domains.
- COPA (Appendix): Choice of Plausible Alternatives (commonsense causal reasoning).
- SQuAD 1.1 (Appendix): Extractive QA over Wikipedia.
External Knowledge Bases: WordNet (lexical relations) and NELL (concept/belief network). No new datasets were introduced.
Key Insights and Ideas
- Graph Structure over Sequence Serialization: Prior fine-tuning or light pre-training models (like K-BERT or CoLAKE) flatten KG subgraphs into linearized word sequences, losing structural multi-hop geometry. UKET keeps graph topology intact via relational GCNs.
- Context-Sensitive Disambiguation: By allowing token representations to attend over candidate KG nodes, KELM successfully infers parts-of-speech and semantic sense (e.g., weighting
ban.n.04at 0.72 over verb forms likeban.v.02at 0.21 in nominal contexts). - In-Domain Pre-training Diminishes KG Gains: The authors observed that injecting general KGs like WordNet provides huge boosts on out-of-domain tasks (e.g., BERT evaluated on ReCoRD or COPA), but only marginal gains on in-domain tasks where the base LM was already exposed to that text domain during pre-training (e.g., SQuAD for BERT, or ReCoRD for RoBERTa).
Key Results
- ReCoRD: KELM (with $\text{BERT}_{\text{large}}$) achieved 76.2 EM / 76.7 F1 on the test set, substantially beating vanilla $\text{BERT}_{\text{large}}$ (71.3 / 72.0) and previous fine-tuning SOTA KT-NET (73.0 / 74.8).
- MultiRC: Achieved 27.2 EM / 70.8 F1 on the test set, improving over vanilla $\text{BERT}_{\text{large}}$ (24.1 / 70.0) and KT-NET (25.4 / 71.1).
- COPA: Boosted test accuracy from 70.6% ($\text{BERT}_{\text{large}}$) to 78.0% with WordNet injection.
Limitations and Future Work
- Cross-KG Discrepancies: While HMP resolves ambiguity within a single KG, it does not reconcile semantic conflicts when an entity mention links to divergent concepts across different KGs simultaneously.
- Concatenation-Based Fusion: Combining multiple KG sources via simple embedding concatenation risks noise accumulation when multiple KGs are injected.
- Computational Overhead: The deeper hierarchical message-passing paths increase fine-tuning time by roughly 30% compared to simpler knowledge-attention baselines like KT-NET.
Summary updated