A Subgraph Retrieval Method for Complex Questions Based on Hybrid Semantics and Path Representation

Hao Ji-fei, Bo ChengITM 2024

Abstract: Current subgraph retrieval methods generally fall into two categories: those that rely on semantic matching, which use only surface-level semantic information of relations and lack flexibility; and those based on personalized PageRank algorithms, which fail to leverage the semantic connection between the relation and the question, rendering them susceptible to noisy data. To address these issues, this paper introduces a novel retrieval model that employs hybrid semantics of relations and path representations. Specifically, hybrid semantics involves merging relational and entity information within a knowledge graph to extract the deep semantics of relations and enhance semantic representation by integrating it with the explicit descriptive text of the relations. Path representation merges the semantics of the current relation with those of preceding ones to form a complete path representation. This representation is then semantically matched with the question to compute a score, which determines whether the relation should form part of the subgraph. We integrated our subgraph retrieval model with the Neural Symbolic Machine (NSM) reasoning model and evaluated it on the publicly available CWQ and WebQSP datasets. The experimental results demonstrate that our method performs exceptionally well on these datasets, validating the efficacy of utilizing deep semantics and path representations for the retrieval of subgraphs in response to complex questions.

Introduction

In Knowledge Base Question Answering (KBQA), the objective is to extract answers to natural language queries from structured graphs like Freebase. For complex, multi-hop questions, researchers typically employ a two-stage pipeline: subgraph retrieval followed by reasoning. Subgraph retrieval narrows the vast knowledge graph to a manageable, relevant neighborhood, while the reasoning component identifies the specific answer within that subset.

Existing retrieval methods often suffer from significant limitations. Personalized PageRank (PPR) approaches rely heavily on graph topology but ignore question semantics, leading to the inclusion of irrelevant "noisy" nodes. Conversely, standard semantic matching methods compare questions to individual relations but often rely on surface-level text, neglecting the broader context of the traversal path. Inaccurate retrieval creates a bottleneck: subgraphs that are too sparse miss the answer, while those that are too dense overwhelm the reasoning model with noise.

Methodology

To overcome these challenges, this paper proposes a trainable retrieval model centered on two innovations: Hybrid Semantics and Path Representation.

The proposed subgraph retrieval architecture utilizing RoBERTa and semantic fusion.

Hybrid Semantics enriches relational data by concatenating the "ontology" of connected entities (e.g., "person.born.country") and integrating explicit descriptive text for each relation. These inputs are processed via a RoBERTa language model to generate deep semantic embeddings. Path Representation then fuses these current relation semantics with the history of preceding relations in the traversal. This ensures the model understands the sequential context of the path before deciding the next step. The system is integrated with a Neural Symbolic Machine (NSM) and trained using weak supervision, learning to reconstruct paths from topic entities to known answers.

Experimental Setup

The model was evaluated on two benchmark datasets:

  • WebQSP (WebQuestions Semantic Parses): Primarily consists of 1- or 2-hop questions.
  • CWQ (Complex WebQuestions): Designed for multi-hop reasoning with complex constraints, offering a more rigorous test of retrieval capabilities.

Results and Analysis

The proposed method demonstrates that context and ontological constraints are vital for effective retrieval. By treating retrieval as a sequential journey rather than isolated choices, the model achieves high accuracy with smaller, more informative subgraphs.

Comparison of Answer Existence Rate (ER) and Answer Coverage Rate (CR) across different retrieval models.

As shown in the experimental results, the model significantly outperforms baselines. On the CWQ dataset, it achieved an Answer Existence Rate (ER) of 89.7% and an Answer Coverage Rate (CR) of 89.9%, a substantial improvement over the 77.6% ER of standard PPR. When integrated with the NSM reasoner, the model reached a Hits@1 score of 49.3% on CWQ, a 3% improvement over the baseline. Ablation studies confirmed that mining hidden semantics via entity ontologies was the most critical factor, providing a 2.6% boost to end-to-end accuracy.

Conclusion

This research highlights the efficacy of deep semantics and path-aware representations in subgraph retrieval for complex KBQA. While the model excels on static benchmarks, future work will address the challenges of incomplete or evolving real-world knowledge graphs, focusing on adaptability and further scalability for deeper multi-hop queries.

Summary updated

BibTeX
@inproceedings{jifei2024subgraph,
  author = {Hao Ji-fei and Bo Cheng},
  title = {{A Subgraph Retrieval Method for Complex Questions Based on Hybrid Semantics and Path Representation}},
  booktitle = {ITM},
  year = {2024},
  doi = {10.1051/itmconf/20246000017},
}
Figure