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.
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:
- Subgraph Extraction: Key terms from the premise and hypothesis are mapped to nodes in ConceptNet, and their immediate (1-hop) neighbors are retrieved.
- 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.
- 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.
- Final Classification: The resulting fixed-size graph representation ($g_{out}$) is concatenated with the text representation ($t_{out}$) and fed into a final classifier.
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