Improving Unsupervised Commonsense Reasoning Using Knowledge-Enabled Natural Language Inference

Canming Huang, Weinan He, Yongmei LiuEMNLP 2021

Abstract

Large pre-trained language models (LMs) often rely on extensive task-specific supervision for commonsense reasoning, which can lead to "shortcut learning" based on dataset biases. This paper introduces a novel framework that addresses commonsense reasoning in an unsupervised setting by reframing it as a Natural Language Inference (NLI) task. By leveraging transfer learning from large-scale NLI datasets and injecting relevant external knowledge from ATOMIC 2020 and ConceptNet, the proposed approach achieves state-of-the-art unsupervised performance on the WinoWhy and CommonsenseQA benchmarks.

Introduction

While supervised learning has pushed the boundaries of commonsense reasoning, the reliance on human-annotated data is costly and often fails to generalize. The authors seek to solve commonsense tasks through zero-shot transfer. The primary challenges involve creating a unified framework for diverse reasoning tasks and bridging the knowledge gap between questions and answers without explicit training.

The Knowledge-Enabled NLI Framework

The authors propose a three-step pipeline to unify reasoning tasks and incorporate world knowledge.

Overview of the NLI-based reasoning pipeline with knowledge injection.
  1. NLI as a Common Framework: Diverse tasks are converted into an NLI format (Premise $\rightarrow$ Hypothesis). In the WinoWhy task, for instance, a provided reason serves as the Premise, while the resolved sentence acts as the Hypothesis.
  2. Transfer Learning: A RoBERTa model is first fine-tuned on large-scale NLI datasets like MNLI or QNLI. This allows the model to master the fundamental concept of "entailment" before encountering specific commonsense problems.
  3. Knowledge Injection: Relevant "triples" are retrieved from external Knowledge Bases (KBs) such as ATOMIC 2020 and ConceptNet. These triples are converted into natural language sentences using templates and appended to the NLI input.

Knowledge Retrieval and Injection

To ensure the model receives pertinent information, the authors use semantic similarity to identify the "Top-K" most relevant KB sentences. These are then injected into the NLI input sequence: [CLS] Premise [SEP] KB Sentence [SEP] Hypothesis [SEP]. This structured approach allows the model to utilize external facts to bridge the reasoning gap.

Experimental Setup

The framework was evaluated on two primary benchmarks:

  • WinoWhy: Based on the Winograd Schema Challenge, requiring models to validate human justifications for pronoun resolutions.
  • CommonsenseQA: A 5-choice multiple-choice task testing everyday knowledge.

External knowledge was sourced from ATOMIC 2020 (social/procedural knowledge) and ConceptNet (general taxonomic knowledge).

Results and Analysis

The experimental results demonstrate the effectiveness of combining NLI transfer learning with external knowledge injection.

Performance comparison on the WinoWhy benchmark.

On the WinoWhy benchmark, the framework achieved a new state-of-the-art (SOTA) unsupervised accuracy of 73.47% using RoBERTa-Large with QNLI and ATOMIC knowledge. This represents a significant improvement over the previous SOTA of 58.18%. Similarly, on CommonsenseQA, the model reached 52.09% accuracy, far exceeding the near-random performance (~20%) of a standard non-fine-tuned RoBERTa model.

Key Insights

  • NLI as a Reasoning Proxy: NLI is "reasoning-complete," requiring a deep understanding of syntax, semantics, and pragmatics.
  • Knowledge Quality vs. Quantity: Accuracy improves with added knowledge up to a certain "Top-K" threshold, after which irrelevant sentences introduce noise.
  • Knowledge Specificity: Ablation studies revealed that "Behavior" and "Event-Centered" knowledge from ATOMIC were most effective, whereas "Physical-Entity" knowledge occasionally hindered performance.

Discussion and Limitations

Despite its success, the framework faces challenges with numerical reasoning ("Quantity") and distinguishing between opposites ("Antonyms"). Language models often struggle with these concepts because antonyms frequently appear in similar linguistic contexts. Future work will focus on refining knowledge selection and improving the representation of numerical and relational concepts.

Summary updated

BibTeX
@inproceedings{huang2021improving,
  author = {Canming Huang and Weinan He and Yongmei Liu},
  title = {{Improving Unsupervised Commonsense Reasoning Using Knowledge-Enabled Natural Language Inference}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.420},
}
Figure