Complex Reasoning over Logical Queries on Commonsense Knowledge Graphs

Tianqing Fang, Zeming Chen, Yangqiu Song, Antoine Bosselut

Abstract

While Large Language Models (LLMs) demonstrate proficiency in retrieving isolated facts, they often struggle with complex commonsense reasoning that requires integrating multiple events or inferring hidden contexts. This paper introduces $COM^2$ (Complex COmmonsense), a massive dataset designed to bridge this gap. By transforming abstract logical queries from Commonsense Knowledge Graphs (CSKGs) into natural language narratives, $COM^2$ provides a training suite that significantly enhances a model's multi-hop reasoning capabilities. Experimental results show that relatively small models fine-tuned on $COM^2$ can rival or outperform much larger models, including GPT-4, on specialized reasoning benchmarks.

1. Introduction

Large Language Models have become the standard for many natural language tasks, yet their ability to perform "complex commonsense reasoning" remains a significant hurdle. Most existing Commonsense Knowledge Graphs, such as ATOMIC 20/20, are structured as collections of isolated triples (e.g., "PersonX falls" $\rightarrow$ "PersonX gets hurt"). These are essentially context-free. In contrast, real-world reasoning involves narratives where multiple events interact. For example, understanding the intention of a person who is both "tired of skydiving" and "wants to find something new" requires abductive reasoning across two distinct states. The primary bottleneck in training models for these scenarios has been the lack of large-scale, high-quality datasets that capture these complex interactions.

2. The $COM^2$ Framework

To address the data scarcity problem, the authors developed a pipeline to distill complex reasoning from existing graphs without the prohibitive cost of manual human annotation.

2.1 Graph Densification and Filtering

The process begins with the ATOMIC 20/20 graph. To overcome the "sparsity" problem—where nodes are too disconnected to form complex chains—the researchers merged semantically similar nodes. To ensure the quality of the synthetic data, they employed Vera, an off-the-shelf plausibility scorer, to prune low-quality or noisy triples from the graph.

2.2 Logical Query Sampling

Rather than focusing on single edges, the framework samples complex logical structures:

  • Intersections (2i, 3i): Identifying a common cause or effect shared by multiple events.
  • Projections (2p): Following a chain of events to determine the "effect of an effect."
  • Negated Queries: Reasoning about outcomes when a specific expected event is hindered or absent.

2.3 Verbalization and Distractor Sampling

The "secret sauce" of $COM^2$ is the transformation of abstract graph structures into fluent natural language. Using a combination of handcrafted rules and LLM-based verbalization (ChatGPT), the researchers turned dry graph queries into story-like contexts. To create a robust multiple-choice task, they sampled "adversarial" distractors—answers that might seem plausible in isolation but are logically incorrect given the specific multi-event context of the question.

3. Experimental Setup and Datasets

The resulting $COM^2$ dataset contains approximately 790,000 question-answer pairs for training, complemented by a manually verified set of 1,300 examples for evaluation. To test the generalization of models trained on $COM^2$, the researchers utilized several out-of-domain benchmarks, including:

  • a-NLI (Abductive Natural Language Inference)
  • CSQA (CommonsenseQA)
  • PIQA, SIQA, and WinoGrande

4. Key Insights and Results

4.1 Bridging the Context Gap

The study highlights that LLM failures are often not due to a lack of factual knowledge, but a failure to link those facts within a narrative. Verbalizing graph queries into stories effectively "grounds" the logic, allowing models to better navigate complex event chains.

4.2 The Power of Intersection Queries

A significant finding was that training on intersection queries (finding commonalities between events) provided a stronger signal for general intelligence than training on simple chains (projections). This suggests that abductive reasoning—inferring a shared cause—is a more potent training mechanism for downstream reasoning tasks.

4.3 Small Models vs. Large Language Models

One of the most striking results was the performance of DeBERTa-v3-Large (435M parameters). When fine-tuned on $COM^2$, this relatively small model achieved performance levels that rivaled or exceeded GPT-4 on complex reasoning benchmarks. On the a-NLI benchmark, the addition of $COM^2$ data improved accuracy by 1.8% over strong baselines. Furthermore, in zero-shot settings, $COM^2$-trained models outperformed specialized models and high-end API-based LLMs in multi-event scenarios.

5. Conclusion and Future Work

$COM^2$ demonstrates that structured knowledge from graphs can be successfully distilled into natural language training data to solve multi-hop reasoning challenges. While the approach is limited by the inherent noise in base graphs like ATOMIC and the difficulty of evaluating generative reasoning via lexical overlap, it opens new doors for specialized domains. Future research may apply this logical query approach to scientific or medical knowledge graphs to determine if these reasoning benefits generalize to expert-level fields.

Summary updated

BibTeX
@inproceedings{fang2024complex,
  author = {Tianqing Fang and Zeming Chen and Yangqiu Song and Antoine Bosselut},
  title = {{Complex Reasoning over Logical Queries on Commonsense Knowledge Graphs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.613},
}
Figure