TL;DR
This paper introduces "Embedding-based Ontology-Mediated Query Answering" (E-OMQA), a new task that combines inductive (learning from data) and deductive (using domain knowledge) reasoning for answering queries over incomplete Knowledge Graphs (KGs). They propose novel methods to integrate ontologies into KG embedding models, achieving significant performance improvements of up to 55% in query answering accuracy.
What Problem Does This Paper Address?
Knowledge Graphs (KGs) are powerful tools for representing information, but they are often incomplete. Answering complex queries over these KGs requires not only learning patterns from the existing data (inductive reasoning) but also applying domain knowledge, often formalized in ontologies, to infer missing information (deductive reasoning). Existing KG embedding methods primarily focus on inductive reasoning, failing to leverage the rich knowledge contained in ontologies. This gap limits their ability to provide complete and accurate answers, especially for queries that require inferential steps. The paper aims to bridge this gap by developing methods that enable both inductive and deductive reasoning within an embedding-based framework for query answering.
Methods
The core contribution is the formalization of the Embedding-based Ontology-Mediated Query Answering (E-OMQA) task. To address this, the authors propose two main strategies for integrating ontologies into existing KG embedding models:
- Ontology-Driven Data Augmentation: This involves creating richer training datasets by incorporating ontological knowledge. This includes:
- Query Rewriting: Generating generalizations and specializations of existing queries using ontology axioms to cover a wider range of inferential possibilities.
- Strategic Ontology-Based Sampling: Developing query shapes that are semantically meaningful and guided by the ontology, ensuring that relevant axioms are considered during training.
- Adaptation of Loss Functions: Modifying the training objective to explicitly enforce ontology axioms within the embedding space. This encourages the model to learn representations that respect the logical constraints defined by the ontology.
They evaluate these strategies on two prominent embedding models: Query2Box (a query-based model) and CQD (an atom-based model), creating ontology-aware versions (O2B and CQDASR).
Datasets
The authors introduce two novel benchmarks for E-OMQA:
- LUBM: Based on the Lehigh University Benchmark, this dataset features a rich ontology with various axiom types (concept/role inclusions, domain/range constraints).
- NELL: Based on the Never-Ending Language Learning KG, this dataset uses a simpler ontology with primarily inverse role inclusions.
Both datasets are augmented with inverse edges to create a more complete KG for evaluation.
Key Insights and Ideas
- The Necessity of Both Inductive and Deductive Reasoning: The paper strongly demonstrates that relying solely on inductive reasoning is insufficient for comprehensive query answering over incomplete KGs. Deductive reasoning, powered by ontologies, is crucial for uncovering deeper insights and answering more complex queries.
- Ontology-Driven Data Sampling is Key: Simply augmenting training data with generalizations isn't enough. Strategically sampling queries that are semantically aligned with the ontology significantly boosts performance, especially for complex ontologies like LUBM.
- Enforcing Axioms in the Embedding Space Works: Adapting the loss function to enforce ontological constraints directly within the embedding space leads to substantial improvements, indicating that models can learn to respect logical rules.
- Model-Specific Benefits: While both query-based (Query2Box) and atom-based (CQD) models benefit from ontology integration, the impact and optimal strategies can vary. For instance, atom-based models might achieve good results with just generalizations, while query-based models benefit more from strategic sampling.
Key Results
The proposed E-OMQA methods achieve significant improvements:
- Up to 55% improvement in HITS@3: This is the headline result, showcasing the effectiveness of combining inductive and deductive reasoning.
- O2B (Ontology-aware Query2Box) and CQDASR (Ontology-aware CQD with Adversarial Sets Regularization): These ontology-aware models consistently outperform their baseline counterparts across various training strategies and datasets.
- LUBM Dataset: O2B trained with the "onto" strategy improves the baseline by almost 50%, and CQD sees a 54% enhancement.
- NELL Dataset: Improvements are around 20% for Q2B and 25% for CQD.
- Ontology-Driven Sampling Impact: The "onto" training strategy, which leverages ontology-guided query generation, shows significant gains over simpler "gen" (generalizations) strategies, especially on LUBM.
- Query Rewriting Limitations: While a viable approach, query rewriting on pre-trained models yields only minor improvements (at most 10%), suggesting that end-to-end integration is more effective.
Limitations and Future Work
- Ontology Expressiveness: The performance gains are more pronounced with more expressive ontologies (like LUBM). The NELL ontology, being less expressive, leads to less significant improvements, and sometimes even performance degradation with certain strategies.
- Query Forms: The current work focuses on monadic existential positive FO queries. The authors plan to extend their methods to handle more complex query forms, including those with negation.
- Scalability: While the proposed methods improve accuracy, the scalability of E-OMQA for extremely large KGs and ontologies remains an area for future investigation.
- Generalizability: Evaluating the proposed approach on a wider range of embedding models and more complex ontological reasoning tasks is a natural next step.
Summary updated