Bilinear Fusion of Commonsense Knowledge with Attention-Based NLI Models

Amit Gajbhiye, Thomas Winterbottom, Noura Al Moubayed, Steven Bradley · DOI

Abstract

We consider the task of incorporating real-world commonsense knowledge into deep Natural Language Inference (NLI) models. Existing external knowledge incorporation methods are limited to lexical level knowledge and lack generalization across NLI models, datasets, and commonsense knowledge sources. To address these issues, we propose a novel NLI model-independent neural framework, BiCAM. BiCAM incorporates real-world commonsense knowledge into NLI models. Combined with convolutional feature detectors and bilinear feature fusion, BiCAM provides a conceptually simple mechanism that generalizes well. Quantitative evaluations with two state-of-the-art NLI baselines on SNLI and SciTail datasets in conjunction with ConceptNet and Aristo Tuple KGs show that BiCAM considerably improves the accuracy the incorporated NLI baselines. For example, our BiECAM model, an instance of BiCAM, on the challenging SciTail dataset, improves the accuracy of incorporated baselines by 7.0% with ConceptNet, and 8.0% with Aristo Tuple KG.

Introduction

Natural Language Inference (NLI) is a fundamental task in natural language processing that involves determining whether a "premise" sentence entails, contradicts, or is neutral toward a "hypothesis" sentence. While modern deep learning models have achieved high performance by identifying linguistic patterns, they often struggle with inferences that require external, real-world knowledge. For example, to infer that "Two girls are decorating their Christmas tree" from "Two young girls hang tinsel on a tree," a model must understand that tinsel is a type of decoration.

Existing methods for integrating such knowledge are often restricted to simple word-level synonyms or require extensive modifications to the underlying model architecture. This paper introduces BiCAM (Bilinear fusion of Commonsense knowledge with Attention-based NLI Models), a plug-and-play framework designed to generalize across various models, datasets, and knowledge sources.

The BiCAM Framework

The BiCAM framework operates as a model-independent wrapper that enhances existing NLI architectures without requiring internal changes. The process follows a four-stage pipeline:

  1. Knowledge Retrieval: Relevant "triples" (e.g., tinsel — IsA — decoration) are retrieved from external Knowledge Graphs (KGs) using heuristic-based search.
  2. Knowledge Embedding: These triples are transformed into vector representations using Holographic Embeddings (HolE), which efficiently preserve relational information.
  3. Commonsense Encoding: A Convolutional Neural Network (CNN) processes the embedded triples. Unlike RNNs, which assume a long-term sequence, the CNN's sliding window is better suited for learning features from a list of independent facts.
  4. Bilinear Fusion: The core innovation is the use of Factorized Bilinear Pooling to fuse sentence features with knowledge features. This allows for complex, multiplicative interactions between the NLI model's internal state and external knowledge, resulting in a richer joint representation.
The BiCAM architecture illustrating the flow from knowledge retrieval and encoding to bilinear feature fusion and final classification.

Experimental Results

The researchers evaluated BiCAM using two primary benchmarks: the large-scale SNLI dataset and the more challenging, science-focused SciTail dataset. Knowledge was sourced from ConceptNet (general commonsense) and Aristo Tuple (scientific facts).

Performance Gains

BiCAM consistently improved the performance of baseline models like ESIM and Decomposable Attention. On the SNLI dataset, the BiECAM model (BiCAM + ESIM) achieved an accuracy of 88.8%, a 0.8% improvement over the baseline. The gains were even more pronounced on the SciTail dataset, where the addition of Aristo Tuple knowledge led to an 8.0% jump in accuracy (from 70.6% to 78.6%).

Quantitative results on SNLI and SciTail datasets, comparing BiCAM variants against several state-of-the-art baselines.

Key Insights

  • Bilinear Fusion vs. Concatenation: Ablation studies confirmed that bilinear pooling is superior to simple concatenation, as it enables the model to effectively cross-reference sentence segments with specific retrieved facts.
  • Knowledge Density: The study found that while 5–7 triples were sufficient for SNLI, the more complex SciTail dataset benefited from up to 15 triples. However, adding too much knowledge can introduce noise that eventually degrades performance.

Conclusion and Future Work

BiCAM demonstrates a robust method for infusing NLI models with external commonsense knowledge. While the current heuristic-based retrieval system is effective, it remains a potential bottleneck. Future research will explore the use of contextual word embeddings (e.g., BERT) to improve the relevance of retrieved knowledge and investigate scaling the framework to larger, more diverse knowledge bases.

Summary updated

BibTeX
@inproceedings{gajbhiye2020bilinear,
  author = {Amit Gajbhiye and Thomas Winterbottom and Noura Al Moubayed and Steven Bradley},
  title = {{Bilinear Fusion of Commonsense Knowledge with Attention-Based NLI Models}},
  booktitle = {ICANN},
  year = {2020},
  doi = {10.1007/978-3-030-61609-0\_50},
}
Figure