Learning Contextualized Knowledge Structures for Commonsense Reasoning

Jun Yan, Mrigank Raman, Aaron Chan, Tianyu Zhang, Ryan A. Rossi, Handong Zhao, Sungchul Kim, Nedim Lipka, Xiang Ren

Introduction

Large pre-trained language models (PLMs) like BERT and RoBERTa have revolutionized natural language processing, yet they frequently falter on tasks requiring commonsense reasoning (CSR). CSR involves understanding "self-evident" truths—such as the fact that "printing requires paper"—which are often omitted from text corpora. To bridge this gap, researchers typically augment PLMs with structured Knowledge Graphs (KGs) like ConceptNet. However, KGs present two primary challenges: sparsity, where critical links between concepts are missing, and noise, where heuristic extraction pulls in irrelevant facts that distract the model.

The Hybrid Graph Network (HGN)

To address these limitations, we propose the Hybrid Graph Network (HGN). HGN unifies extracted knowledge with generated links to create a dense, contextualized reasoning structure. The framework operates in three distinct stages:

  1. Hybrid Graph Construction: The model identifies concepts within the question and candidate answers, extracting existing edges from ConceptNet. For concept pairs lacking a direct link, HGN utilizes a GPT-2 based generator to "imagine" missing relationships, resulting in a "hybrid" graph that combines factual extraction with generative inference.
  2. Contextualized Reasoning: HGN employs a message-passing architecture that facilitates information flow between nodes and edges. A key innovation is the use of Global Edge Attention. Unlike standard local attention mechanisms, HGN normalizes weights across the entire graph, allowing it to effectively "prune" entire neighborhoods of irrelevant concepts.
  3. Entropy Regularization: To ensure the model makes decisive choices, an entropy loss term is added. This penalizes non-discriminative edge weights, forcing the model to prioritize the most contextually relevant reasoning paths.
The overall architecture of the Hybrid Graph Network (HGN), which combines text encoding with a contextualized hybrid knowledge graph for scoring question-answer pairs.

Experimental Evaluation

HGN was evaluated on four major commonsense benchmarks: CommonsenseQA, CODAH, OpenBookQA, and QASC. Using various text encoders (BERT, RoBERTa, and ALBERT), HGN consistently provided performance gains over standard fine-tuning and existing KG-augmented methods.

Key Results

  • State-of-the-Art Performance: HGN achieved top rankings on the CommonsenseQA and OpenBookQA leaderboards. On CommonsenseQA specifically, HGN (with RoBERTa-Large) reached 73.64% accuracy, a significant improvement over the 68.69% baseline.
  • Data Efficiency: A notable strength of HGN is its performance in low-resource scenarios. The model maintains high accuracy even when trained on a fraction of the available data, suggesting that structured knowledge provides a more efficient learning signal than raw text alone.
Test accuracy of HGN compared to baselines across varying percentages of the training set, demonstrating superior performance and data efficiency.

Discussion and Future Work

The success of HGN highlights the importance of joint modeling for extracted and generated knowledge. By treating these sources as a single structure, the model can better identify valid reasoning paths. Furthermore, global pruning and entropy regularization are essential for managing the noise inherent in automated KG expansion.

Future research will explore increasing relation expressiveness by incorporating open-domain relations and developing context-aware generation processes to further reduce initial graph noise. While the computational overhead of global attention is a factor, the gains in reasoning precision make HGN a powerful tool for advancing machine commonsense.

Summary updated

BibTeX
@inproceedings{yan2021learning,
  author = {Jun Yan and Mrigank Raman and Aaron Chan and Tianyu Zhang and Ryan A. Rossi and Handong Zhao and Sungchul Kim and Nedim Lipka and Xiang Ren},
  title = {{Learning Contextualized Knowledge Structures for Commonsense Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.354},
}
Figure