Enhancing Pre-Trained Language Representations with Rich Knowledge for Machine Reading Comprehension

An Yang, Quan Wang, Jing Liu, Kai Liu, Yajuan Lyu, Hua Wu, Qiaoqiao She, Sujian LiACL 2019

Abstract

An Yang, Quan Wang, Jing Liu, Kai Liu, Yajuan Lyu, Hua Wu, Qiaoqiao She, Sujian Li. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.

2019.

Introduction

While pre-trained language models (LMs) like BERT have revolutionized Natural Language Processing, they often exhibit a "knowledge gap." These models are masters of linguistic patterns and local context but frequently lack the "world knowledge" or "commonsense" required for genuine comprehension. For example, understanding that a "Trump administration’s ban" refers to a "US-designated state sponsor" requires knowing that Trump leads the US—a relationship BERT might struggle to infer unless explicitly stated. This paper introduces KT-NET (Knowledge and Text fusion NET), a framework designed to effectively "inject" structured, symbolic knowledge from external databases into the continuous vector space of deep neural networks.

The KT-NET Architecture

KT-NET operates through four primary stages to fuse linguistic patterns with structured knowledge:

  1. BERT Encoding: The passage and question are processed through a standard BERT model to generate deep, context-aware representations.
  2. Knowledge Integration Layer: This core innovation retrieves potentially relevant concepts from two Knowledge Bases (KBs): WordNet (lexical relations) and NELL (factual beliefs). It uses a bilinear attention mechanism to adaptively select the most relevant knowledge and employs a "knowledge sentinel" vector to ignore external data when it isn't helpful for a specific word.
  3. Self-Matching Layer: This layer facilitates interaction between the BERT-encoded text and the selected KB embeddings. It models both direct interactions (word-to-word) and indirect interactions (via intermediate concepts), creating a rich, knowledge-aware representation.
  4. Output Layer: A standard linear layer predicts the start and end boundaries of the answer span within the passage.
Architecture of the KT-NET model showing the integration of BERT encoding with external Knowledge Bases (KBs).

Experimental Setup

The model was evaluated on two major extractive Machine Reading Comprehension (MRC) benchmarks:

  • ReCoRD: A large-scale dataset requiring commonsense reasoning, where questions are sentences from news articles with missing entities.
  • SQuAD 1.1: The industry-standard benchmark consisting of questions posed by crowdworkers on Wikipedia articles.

Key Insights and Analysis

KT-NET demonstrates that knowledge is most effective when treated globally rather than locally. By using pre-trained KB embeddings, the model understands the global position of an entity within the entire Knowledge Base. Furthermore, the authors found that hybrid KBs are powerful: integrating both WordNet and NELL performed best on ReCoRD, while WordNet alone was more effective for SQuAD 1.1, which relies more heavily on lexical understanding.

Qualitative analysis via attention heatmaps shows that KT-NET's internal representations are more "meaning-aware" than vanilla BERT. While BERT may assign similar scores to many words, KT-NET learns to distinguish and link them based on KB-verified relationships, such as connecting "administration" and "government."

Attention heatmaps comparing KT-NET and vanilla BERT, demonstrating KT-NET's ability to capture semantic relationships via KB integration.

Results

At the time of its submission (March 2019), KT-NET set new benchmarks across both datasets:

  • ReCoRD: Ranked 1st place on the leaderboard, achieving an Exact Match (EM) of 73.01 and an F1 score of 74.76 on the hidden test set, outperforming competitive baselines like DocQA and SAN.
  • SQuAD 1.1: Became the best-performing single model on the leaderboard, achieving 85.94 EM and 92.43 F1 on the test set.
  • Consistency: KT-NET consistently outperformed the vanilla BERT baseline, proving that the integration of external knowledge provides a significant and reliable performance boost.

Limitations and Future Work

The authors identify several avenues for future research. Currently, KB embeddings are fixed during training; allowing them to fine-tune alongside the language model might improve results. Additionally, the system's reliance on string matching for entity linking creates a retrieval bottleneck. Future work could explore integrating even larger or more diverse KBs, such as ConceptNet, to cover a wider array of commonsense reasoning scenarios.

Summary updated

BibTeX
@inproceedings{yang2019enhancing,
  author = {An Yang and Quan Wang and Jing Liu and Kai Liu and Yajuan Lyu and Hua Wu and Qiaoqiao She and Sujian Li},
  title = {{Enhancing Pre-Trained Language Representations with Rich Knowledge for Machine Reading Comprehension}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=8F2OiZa38At},
}

Loading related content...

Figure