Abstract
Abductive reasoning is the process of making educated guesses to provide explanations for observations. Although many applications require the use of knowledge for explanations, the utilization of abductive reasoning in conjunction with structured knowledge, such as a knowledge graph, remains largely unexplored. To fill this gap, this paper introduces the task of complex logical hypothesis generation, as an initial step towards abductive logical reasoning with KG. In this task, we aim to generate a complex logical hypothesis so that it can explain a set of observations. We find that the supervised trained generative model can generate logical hypotheses that are structurally closer to the reference hypothesis. However, when generalized to unseen observations, this training objective does not guarantee better hypothesis generation. To address this, we introduce the Reinforcement Learning from Knowledge Graph (RLF-KG) method, which minimizes differences between observations and conclusions drawn from generated hypotheses according to the KG. Experiments show that, with RLF-KG's assistance, the generated hypotheses provide better explanations, and achieve state-of-the-art results on three widely used KGs.
Introduction
In artificial intelligence, reasoning is typically categorized into deduction (finding effects from rules and causes) and induction (finding rules from causes and effects). However, a third form—abductive reasoning—is essential for human-like intelligence. Abduction is the "inference to the best explanation," where one reverse-engineers a logical cause for a set of observations.
A new framework from researchers at HKUST and Amazon brings this capability to Knowledge Graphs (KGs) through the task of complex logical hypothesis generation. This task requires a model to generate a logical query that explains a set of observed entities within a KG, overcoming challenges like graph incompleteness and the combinatorially explosive search space of logical expressions.
Complex Logical Hypothesis Generation
The core objective is to find a logical expression $H$ such that the set of entities it retrieves from the KG matches a given set of observations. These hypotheses are complex, often involving multiple relations, intersections, and negations. Traditional search-based methods struggle with the sheer scale of possible logical combinations and the noise inherent in real-world KGs.
Methodology
The researchers propose a generative approach that treats hypothesis generation as a sequence-to-sequence problem, mapping observation sets to sequences of logical actions.
Supervised Learning and Tokenization
The model first learns from sampled observation-hypothesis pairs. Hypotheses are tokenized into action sequences (e.g., [Intersection], [Brand], [Apple]). A Transformer model is then trained using teacher forcing to predict these sequences from input observations.
Reinforcement Learning from Knowledge Graph (RLF-KG)
A critical finding was that structural similarity to a ground-truth hypothesis (mimicry) does not guarantee functional correctness (explanation). To ensure the generated hypotheses actually explain the data, the authors introduced RLF-KG. Using Proximal Policy Optimization (PPO), the model is fine-tuned with a reward based on the Jaccard Index, which measures the overlap between the observed entities and the results returned by the generated query. This forces the model to prioritize the logical utility of the hypothesis over mere structural resemblance.
Key Results
The framework was evaluated on three major benchmarks: FB15k-237, WN18RR, and DBpedia50.
- Improved Accuracy: On FB15k-237, the RLF-KG model achieved a Jaccard score of 0.666, significantly outperforming the supervised baseline of 0.56.
- Efficiency Gains: The generative approach is orders of magnitude faster than brute-force search. For instance, on FB15k-237, it reduced processing time from over 11 days to just 4.4 hours—a ~60x speedup.
- Robust Generalization: RL-tuned models performed better on unseen observations, demonstrating that the model learns the underlying logic of the graph rather than just memorizing training pairs.
Conclusion
By framing abductive reasoning as a generative task and grounding it with reinforcement learning, this research provides a scalable solution for explaining observations in Knowledge Graphs. This approach not only handles complex logical patterns but also demonstrates resilience to the incompleteness of real-world data. Future work will focus on dynamic KGs and using these models to automatically refine and complete existing knowledge structures.
Summary updated