Connecting the Dots: A Knowledgeable Path Generator for Commonsense Question Answering

Peifeng Wang, Nanyun Peng, Filip Ilievski, Pedro A. Szekely, Xiang Ren · DOI

Abstract

This paper introduces a Knowledgeable Path Generator (PG) that bridges the gap between structured knowledge graphs (KGs) and pre-trained language models (LMs) for commonsense reasoning. By fine-tuning GPT-2 to "extrapolate" over existing KG paths, the system generates novel, multi-hop relational paths that provide interpretable and context-aware evidence for answering complex questions. The approach outperforms systems relying solely on static, often sparse, knowledge bases, particularly in low-resource scenarios.

Introduction

Commonsense Question Answering (QA) is challenging because the "obvious" facts required for reasoning are rarely explicitly stated. For instance, answering "Where would you find fungus growing?" requires knowing that fungus thrives in moist environments and that a cave is a moist geological feature.

Current solutions typically rely on either Pre-trained LMs (e.g., RoBERTa), which act as "black boxes" prone to statistical shortcuts, or Knowledge Graphs (e.g., ConceptNet), which offer structured facts but suffer from sparsity and a lack of contextual relevance. This research aims to create a "Neural KG"—a system with the generalization power of an LM that produces the structured, symbolic output of a KG.

Methodology

The authors propose a framework that fuses unstructured evidence (question text) with structured evidence (generated knowledge paths).

The Path Generator (PG)

The core innovation is the use of GPT-2 fine-tuned on symbolic paths sampled from ConceptNet. Symbolic triplets (e.g., [fungus, AtLocation, moist_place]) are converted into natural language-like sequences. At inference time, given a question and answer entity, the PG "imagines" a multi-hop path connecting them, effectively completing the KG on the fly.

The PG framework: (1) Entity recognition, (2) GPT-2 path generation, and (3) Knowledge path aggregation.

Reasoning and Fusion

Generated paths are processed by a Relational Network (RN). An attention mechanism, guided by the question's context, weights these paths. This structured knowledge is then fused with the LM's internal representation to predict the final answer.

Key Results and Insights

The model was evaluated on CommonsenseQA (CSQA) and OpenBookQA (OBQA). On CSQA, the PG-augmented model achieved a 6% improvement over static KG baselines. At the time of publication, an ALBERT-backed version reached 78.2% on CSQA and 81.8% on OBQA.

Inductive Bias and Low-Resource Performance

A critical finding is the PG's strong inductive bias. When training data is scarce (e.g., 20% of the training set), the performance gain from the PG is significantly more pronounced compared to standard baselines, as shown in the accuracy curves below.

Accuracy comparison across different training set proportions for CSQA and OBQA, highlighting the PG-Full model's superiority.

Interpretability and Path Quality

Because the model outputs symbolic paths, its reasoning is human-verifiable. Human evaluations confirmed that paths from the "Global" PG (trained on the entire KG) were significantly more valid (~88-89%) than those from models trained without pre-trained LM knowledge.

Conclusion and Future Work

The Knowledgeable Path Generator successfully addresses the sparsity of traditional KGs by leveraging the generative capabilities of LMs. While the system shows state-of-the-art performance, future work could address entity ambiguity in the grounding phase and explore more sophisticated embedding fusion techniques to better balance structured and unstructured evidence.

Summary updated

BibTeX
@inproceedings{wang2020connecting,
  author = {Peifeng Wang and Nanyun Peng and Filip Ilievski and Pedro A. Szekely and Xiang Ren},
  title = {{Connecting the Dots: A Knowledgeable Path Generator for Commonsense Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.369},
}
Figure