TL;DR
CtrlHGen introduces the first framework for controllable abductive reasoning in knowledge graphs, allowing users to steer the generation of logical hypotheses using semantic and structural constraints. By employing a novel sub-logical decomposition strategy and smoothed reinforcement learning rewards, it successfully generates complex logical explanations that far outperform general-purpose LLMs in structural accuracy and adherence to user intent.
What Problem Does This Paper Address?
Abductive reasoning is the process of "inferring to the best explanation"—for example, given a set of symptoms, what is the most likely underlying pathology? In the context of Knowledge Graphs (KGs), this means generating a formal logical query (a hypothesis) that, when executed against the graph, returns the observed entities.
While recent models can generate these hypotheses, they suffer from a lack of controllability. On a massive KG, a single observation might have thousands of valid but irrelevant explanations. A researcher might want an explanation that focuses on a specific drug (semantic control) or one that is simple and easy to verify (structural control).
The authors identify two major hurdles in achieving this controllability:
- Hypothesis Space Collapse: As logical hypotheses become longer and more complex, the number of valid candidates in the KG drops exponentially, making it extremely difficult for models to learn these "needle-in-a-haystack" structures.
- Reward Oversensitivity: In reinforcement learning for symbolic logic, a tiny mistake (like picking the wrong relation) often results in a Jaccard score of zero. This "all-or-nothing" feedback makes training unstable.
Methods: The CtrlHGen Framework
The authors propose CtrlHGen, a framework trained in a two-stage paradigm consisting of Supervised Fine-Tuning followed by Reinforcement Learning. Its core innovations include:
- Sub-logical Decomposition (Data Augmentation): To fight "space collapse," the authors break complex logical patterns into simpler sub-components. If a complex hypothesis $H$ explains observation $O$, its sub-parts $H_{sub}$ explain a subset of that observation $O_{sub}$. Training on these building blocks allows the model to progressively learn how to compose intricate logical chains.
- Smoothed Semantic Rewards: Instead of relying solely on the brittle Jaccard similarity, the authors incorporate Dice and Overlap coefficients. These metrics provide a "softer" gradient, rewarding the model for getting close to the target set of entities even if the intersection isn't perfect.
- Condition-Adherence Reward: A specific reward term is added to ensure the model follows user constraints (e.g., "use exactly 3 relations" or "include the entity Yahoo").
- GRPO (Group Relative Policy Optimization): The model is fine-tuned using this modern RL algorithm, which optimizes the model based on the relative performance of a group of sampled hypotheses for the same observation.
Key Insights and Ideas
- LLMs are "Vibe-Based," Not Logic-Based: One of the most striking findings is that even state-of-the-art models like GPT-4o, Grok-3, and DeepSeek-V3 perform poorly on this task. They often capture the "semantic theme" of an observation but fail to produce a logically valid query that actually retrieves the correct entities from a graph.
- Decomposition as a Curriculum: By decomposing complex logic, the model essentially undergoes a curriculum learning process. It learns the "grammar" of simple relations before trying to write "logical paragraphs."
- Structural vs. Semantic Control: The paper finds that structural constraints (like enforcing a specific logical pattern) are generally easier for the model to satisfy and lead to higher semantic accuracy than purely semantic constraints (like forcing the inclusion of a specific entity).
Datasets and Key Results
The researchers evaluated CtrlHGen on three standard Knowledge Graph benchmarks adapted for abductive reasoning tasks: DBpedia50, WN18RR, and FB15k-237. They used 13 predefined logical patterns (ranging from simple 1-hop paths to complex structures with intersections and negations) to sample observation-hypothesis pairs.
CtrlHGen significantly outperformed both the previous state-of-the-art (AbductiveKGR) and powerful LLMs:
- Superior Accuracy: On the FB15k-237 dataset, CtrlHGen achieved a Jaccard score of 64.3, whereas the best-performing LLM (GPT-5/Thinking) only reached 18.7, even when provided with a 2-hop subgraph of the entities.
- High Controllability: The model achieved over 96% accuracy in adhering to user-specified control conditions (like relation counts or specific patterns).
- Robustness to Complexity: Thanks to the sub-logical decomposition, the model maintained high performance even as the logical hypotheses grew in length and included negations ($\neg$) or intersections ($\wedge$).
Limitations and Future Work
- Open-World Incompleteness: While the model assumes an "open-world" (missing triples are unknown, not necessarily false), real-world KGs are notoriously noisy and incomplete, which can still lead to "hallucinated" logical paths.
- Sampling Bias: The training relies on 13 predefined logical patterns. While these cover many use cases, they may not capture every possible way a human might want to structure an explanation.
- Multi-round Integration: While the authors demonstrated a "multi-round dialogue" case study using an LLM to select control tokens, a more end-to-end integrated system for interactive scientific discovery remains a future goal.
Summary updated