Infusing Knowledge into the Textual Entailment Task Using Graph Convolutional Networks

Pavan Kapanipathi, Veronika Thost, Siva Sankalp Patel, Spencer Whitehead, Ibrahim Abdelaziz, Avinash Balakrishnan, Maria Chang, Kshitij Fadnis, R. Chulaka Gunasekara, Bassem Makni, Nicholas Mattei, Kartik Talamadupula, Achille Fokoue

Abstract

Natural Language Inference (NLI) models often struggle with "common sense" reasoning where logical conclusions depend on external background knowledge not present in the training text. This paper introduces the KG-augmented Entailment System (KES), a modular framework designed to infuse external knowledge from ConceptNet into standard text-based models. KES extracts relevant subgraphs, filters noise using Personalized PageRank (PPR), and encodes structural relationships via Relational Graph Convolutional Networks (R-GCNs). Experimental results demonstrate that KES significantly improves performance on lexical reasoning tasks, achieving up to an 18-point absolute accuracy increase on the adversarial BreakingNLI dataset.

Introduction

The task of Textual Entailment requires determining if a hypothesis logically follows from a premise. While state-of-the-art models like BERT excel at pattern matching, they frequently fail when reasoning requires external lexical knowledge—for instance, understanding that a "girl" is a "child" or that "jumping" implies "playing." These models are often limited to the explicit information provided in their training corpora.

Integrating Knowledge Graphs (KGs) like ConceptNet offers a potential solution, but introduces two primary challenges: noise and structure. KGs are vast; a single word can connect to thousands of irrelevant concepts. Furthermore, simple lookups ignore the rich relational paths between concepts that are crucial for logical inference.

Figure 1: Mapping premise and hypothesis terms to external knowledge concepts in ConceptNet to bridge the common sense gap.

Methods

The proposed KES framework is modular, allowing it to augment any standard text-based model (e.g., LSTM, BERT). The system operates through a multi-stage knowledge infusion pipeline:

  1. Subgraph Extraction: Key terms from the premise and hypothesis are mapped to nodes in ConceptNet, and their immediate (1-hop) neighbors are retrieved.
  2. Personalized PageRank (PPR) Filtering: To mitigate noise, PPR scores nodes based on their relevance to the specific input sentence pair. Only nodes exceeding a threshold $\theta$ are retained to form a contextual subgraph.
  3. Relational GCN (R-GCN) Encoding: An R-GCN processes the filtered subgraph to capture structural meaning and relational paths (e.g., "girl" $\xrightarrow{IsA}$ "child"). Special "premise" and "hypothesis" supernodes are added to anchor concepts to their respective sentences.
  4. Final Classification: The resulting fixed-size graph representation ($g_{out}$) is concatenated with the text representation ($t_{out}$) and fed into a final classifier.
Figure 5: The complete KES pipeline, from initial text input and ConceptNet subgraph extraction to PPR filtering, R-GCN encoding, and final NLI classification.

Results

The authors evaluated KES across four benchmarks: SNLI, MultiNLI, SciTail, and BreakingNLI. The most significant improvements were observed on BreakingNLI, an adversarial dataset designed to test lexical knowledge by replacing words with synonyms or hyponyms.

On BreakingNLI, the addition of KES to a BERT + match-LSTM base model resulted in an accuracy jump from 59.42% to 77.59%. Similarly, a standard match-LSTM model improved from 65.11% to 78.72%. These results highlight the framework's ability to provide robustness against adversarial lexical shifts that typically cause text-only models to fail. On standard datasets like SNLI, gains were more modest (1-2%), suggesting these benchmarks may contain linguistic shortcuts that text-only models can exploit without deep reasoning.

Conclusion

KES demonstrates that infusing structured external knowledge can significantly bolster the reasoning capabilities of NLI models. The key to its success lies in the combination of effective noise filtering via PPR and structural encoding via R-GCNs. Future work will explore more advanced filtering techniques and the application of KES to broader tasks such as open-domain question answering.

Summary updated

BibTeX
@inproceedings{kapanipathi2020infusing,
  author = {Pavan Kapanipathi and Veronika Thost and Siva Sankalp Patel and Spencer Whitehead and Ibrahim Abdelaziz and Avinash Balakrishnan and Maria Chang and Kshitij Fadnis and R. Chulaka Gunasekara and Bassem Makni and Nicholas Mattei and Kartik Talamadupula and Achille Fokoue},
  title = {{Infusing Knowledge into the Textual Entailment Task Using Graph Convolutional Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6318},
}
Figure