Presented at ACL 2024, this research explores a critical frontier in Knowledge Graph (KG) research: Abductive Reasoning. While traditional KG tasks focus on deduction (answering specific queries) or induction (learning general rules), abduction involves "reverse-engineering" an explanation for a set of observed entities. This paper proposes a novel framework to generate complex logical hypotheses that explain why specific entities are grouped together.
The Challenge of Abductive Reasoning
In a typical KG scenario, a deductive system might predict a user's next follow based on existing patterns. An abductive system, however, seeks the underlying cause: "Why does this user follow these five specific people?" Answering this requires generating a first-order logic formula, such as: "These individuals are all actors and screenwriters born in Los Angeles."
Current approaches to this problem face three significant hurdles:
- Search Explosion: Brute-force searching for a logical formula that fits a set of entities is computationally prohibitive, as the search space grows exponentially with logical complexity.
- KG Incompleteness: Real-world KGs often have missing edges. Traditional search-based methods fail when the logical "path" to an explanation is broken or incomplete.
- The "Mimicry" Trap: Standard supervised generative models, like Transformers, are adept at mimicking the structure of a logical hypothesis but often fail to produce one that is factually grounded in the graph data.
Methodology: The RLF-KG Framework
To address these issues, the authors introduce RLF-KG, a reinforcement learning framework that uses the Knowledge Graph itself as a reward signal. This ensures that generated hypotheses are not just structurally plausible, but factually accurate. The process follows a three-step pipeline:
1. Synthetic Data Sampling
Because labeled abductive reasoning datasets are scarce, the researchers generate a massive synthetic dataset. They take existing logical patterns (e.g., Intersection, Negation) and execute them on a KG to find sets of entities that satisfy them, creating millions of (Observation, Hypothesis) pairs.
2. Supervised Fine-Tuning (SFT)
The model (testing both Encoder-Decoder and Decoder-only architectures) is trained to translate a sequence of observed entities into a sequence of "actions." These actions represent the construction of a logical formula.
3. Reinforcement Learning from KG Feedback
This is the core innovation. Using Proximal Policy Optimization (PPO), the model is rewarded based on the Jaccard similarity between the original observations and the results returned when the generated hypothesis is executed against the KG. This grounds the model's generation in actual graph facts, penalizing "hallucinated" explanations that do not yield the correct entities.
Experimental Results
The researchers evaluated RLF-KG on three standard benchmarks: FB15k-237 (world facts), WN18RR (lexical relationships), and DBpedia50 (Wikipedia data). They tested 13 distinct logical patterns, including complex structures with existential quantifiers and negations.
- Superior Accuracy: RLF-KG consistently outperformed pure supervised baselines. On FB15k-237, the Jaccard score—a measure of explanatory quality—improved from 0.565 to 0.666.
- Efficiency Gains: The generative approach is orders of magnitude faster than search-based methods. On the WN18RR dataset, a search-based baseline required 4,084 minutes for inference, while the generative model completed the same task in just 32 minutes.
- Generalization: The model demonstrated a robust ability to generate valid explanations for "unseen" observations, suggesting it learns the underlying logic of the graph rather than just memorizing training pairs.
Conclusion and Future Directions
RLF-KG demonstrates that treating the Knowledge Graph as a "teacher" through reinforcement learning can bridge the gap between structural mimicry and factual truth. While the current work relies on 13 pre-defined logical templates and assumes a static KG, it provides a scalable foundation for abductive reasoning. Future work may involve integrating these capabilities into Large Language Models (LLMs) to enhance their "common sense" reasoning and explanatory power in complex data environments.
Summary updated