GNN2R: Weakly-Supervised Rationale-Providing Question Answering over Knowledge Graphs

Ruijie Wang, Luca Rossetto, Michael Cochez, Abraham Bernstein · DOI

Introduction

Knowledge Graph Question Answering (KGQA) systems are essential for applications requiring high trustworthiness and verifiability. However, most existing systems function as "black boxes," returning a single entity as an answer without explaining the underlying reasoning path. Providing explicit, human-readable reasoning subgraphs is challenging because datasets rarely include intermediate step annotations. GNN2R (Graph Neural Network to Rationale) addresses this gap by generating high-quality explanations using only final answers as training signals.

Figure 1: An example of a KGQA query where the system provides both the final answer and a reasoning subgraph as a rationale.

Methodology

GNN2R employs a two-step approach that balances structural graph efficiency with the semantic capabilities of language models (LMs).

Step I: GNN-based Coarse Reasoning

The framework utilizes a specialized Graph Neural Network (GNN) architecture to represent KG entities and questions in a joint embedding space. A core innovation is the Layerwise Question Encoder, which generates distinct "reference" embeddings for each GNN layer. This allows the model to attend to different semantic components of a complex question as it traverses the graph. For instance, in a multi-hop query, different layers can focus on different relations or entities mentioned in the text. This stage effectively prunes the massive KG into a manageable set of candidate answers and relevant subgraphs, significantly reducing the search space for the subsequent language model step.

Figure 2: The GNN2R architecture, featuring the Layerwise Question Encoder and attentional message propagation modules.

Step II: LM-based Explicit Reasoning

To overcome the lack of annotated subgraphs, GNN2R uses weak supervision. Candidate subgraphs linking topic entities to answers are extracted and verbalized into natural language. A fine-tuned Sentence Transformer then evaluates these expressions against the original question to identify the most semantically consistent reasoning path. This allows the system to bridge the "semantic gap" between structured graph data and natural language queries.

Evaluation and Results

The model was evaluated on four major KGQA benchmarks using Freebase: WebQuestionsSP (WQSP), ComplexWebQuestions (CWQ), PathQuestion (PQ), and PathQuestion-Large (PQL). These datasets cover a range of difficulty levels, from simple two-hop questions to complex four-hop queries.

GNN2R consistently outperformed state-of-the-art (SOTA) baselines like NSM and TransferNet in both accuracy and explanation quality:

  • Accuracy: On the CWQ dataset, GNN2R achieved a 7.2% improvement in Hits@1. On the more challenging PQL-3hop subset, the improvement reached a staggering 13.7%.
  • Rationale Quality: The model showed massive gains in F1 scores for generated reasoning subgraphs, including an 81% improvement on PQL-2hop compared to existing methods.
  • Efficiency: Despite the added complexity of generating rationales, the system remains computationally efficient, with an average response time of 222.1ms on a single consumer-grade GPU (NVIDIA 2080 Ti).

Discussion and Key Insights

A primary challenge in KGQA is translating structural triples into a format that can be compared directly against a user's query. GNN2R addresses this by using an LM to "read" graph paths. Furthermore, the authors introduced a self-generated supervision method where candidate subgraphs are converted into logical queries; paths leading to the correct answer serve as positive training examples for the LM.

While GNN2R excels at multi-hop reasoning, it currently struggles with complex operations like counting or sorting. Future work aims to integrate logical query generation (e.g., SPARQL) and explore zero-shot capabilities with Large Language Models to further reduce training data requirements.

Summary updated

BibTeX
@misc{wang2023gnn,
  author = {Ruijie Wang and Luca Rossetto and Michael Cochez and Abraham Bernstein},
  title = {{GNN2R: Weakly-Supervised Rationale-Providing Question Answering over Knowledge Graphs}},
  year = {2023},
  eprint = {2312.02317},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.02317},
}
Figure