Abstract
Knowledge Graph Question Answering (KGQA) remains a challenging task for Large Language Models (LLMs) due to the vast and complex nature of entity-level graphs. Traditional "forward-thinking" approaches often struggle with abstract conceptual targets and redundant reasoning paths. This paper introduces Ontology-Guided Reverse Thinking (ORT), a novel framework that leverages the high-level schema (ontology) of a Knowledge Graph to perform reverse reasoning. By working backward from the question's goal to its conditions, ORT identifies precise reasoning paths, significantly improving accuracy and efficiency across standard benchmarks like WebQSP and CWQ.
Introduction
Knowledge Graph Question Answering (KGQA) involves retrieving factual answers from structured databases using natural language. While LLMs excel at linguistic understanding, navigating the rigid, multi-million entity structures of Knowledge Graphs (KGs) often results in information loss or hallucinations. The core difficulty lies in bridging the gap between abstract natural language and concrete graph entities.
The Forward-Thinking Bottleneck
Most existing KGQA methods employ a "forward-thinking" strategy: identifying entities in the question and searching outward for a path to the answer. However, this approach often fails when the target of a question is a concept rather than a specific entity. For instance, if a user asks for a "stadium," forward-searching models may struggle to identify the correct node among millions of possibilities because "stadium" is a conceptual label in the ontology, not a unique entity name.
As shown in Figure 1, traditional methods often become lost in the "noise" of the entity graph. In contrast, ORT utilizes the KG's high-level blueprint—the ontology—to map out a logical route before diving into the granular data.
The ORT Framework
The ORT framework operates in three distinct phases, mimicking human reverse-reasoning processes:
- Condition and Aim Recognition: The LLM extracts "Conditions" (known entities like "Ireland team") and "Aims" (target concepts like "stadium") from the query.
- Ontology-Guided Reverse Thinking: Instead of searching the entity graph, the system queries the KG Ontology. It starts at the "Aim" label and traces backward to find paths connecting to the "Condition" labels. This search space is orders of magnitude smaller and more efficient.
- Guided Answer Mining: The abstract paths found in the ontology act as a map. The system follows these specific routes in the actual KG to retrieve real entities, which the LLM then summarizes into a final answer.
To ensure logical consistency, ORT includes rigorous pruning steps (as seen in Figure 2) to remove cycles and semantically irrelevant paths, ensuring the LLM only considers the most viable evidence.
Experimental Results
ORT was evaluated on the WebQSP and ComplexWebQuestions (CWQ) datasets using the Freebase knowledge graph. As a plug-and-play method, it demonstrated remarkable versatility across models like GPT-4o and DeepSeek-v3.
- WebQSP: ORT achieved a 25% improvement in Hit@1 accuracy over base LLM performance.
- CWQ: On complex, multi-hop questions, ORT outperformed existing non-fine-tuned methods like MindMap by an average of 20.18%.
Conclusion
Ontology-Guided Reverse Thinking represents a paradigm shift in KGQA. By treating the KG ontology as a high-level map, ORT bypasses the noise of entity-level searching. While challenges remain regarding entity overflow in very broad categories, ORT provides a robust, model-agnostic enhancement for any LLM-based reasoning system.
Summary updated