Neural Reasoning for Robust Instance Retrieval in $\mathcal{SHOIQ}$

Louis Mozart Kamdem Teyou, Luke Friedrichs, N'Dah Jean Kouagou, Caglar Demir, Yasir Mahmood, Stefan Heindorf, Axel-Cyrille Ngonga NgomoarXiv 2025

TL;DR

Traditional symbolic reasoners for Description Logics are notoriously fragile when encountering real-world data imperfections like contradictions or missing facts. This paper introduces EBR (Embedding-Based Reasoner), a neuro-symbolic framework that approximates logical inference using knowledge graph embeddings. By combining neural link prediction with set-theoretic operations, EBR achieves high reasoning accuracy and demonstrates remarkable robustness against noisy and incomplete knowledge bases.

What Problem Does This Paper Address?

In semantic web technologies and ontology engineering, Description Logics (DLs)—specifically expressive fragments like $\mathcal{SHOIQ}$—provide the mathematical backbone for structured knowledge representation. To perform tasks like "concept learning" (finding a logical rule that classifies a set of instances), systems rely on symbolic reasoners (e.g., Pellet, HermiT) to retrieve instances of specific concepts.

However, symbolic reasoners operate under strict logical consistency. Real-world knowledge bases (KBs) are rarely perfect; they are often:

  1. Inconsistent: Containing contradictory assertions (e.g., an individual belonging to two disjoint classes).
  2. Incomplete: Missing true assertions due to sparse data.

When a symbolic reasoner encounters even a single contradiction, it can fail entirely or refuse to return results. To bridge this gap, the authors tackle the challenge of building a reasoner that degrades gracefully in the presence of noise and can infer missing data, without sacrificing the ability to handle complex, expressive DL queries.

Methods

EBR is not a new embedding model itself, but rather a reasoning framework built on top of existing Knowledge Graph Embedding (KGE) models.

The core workflow consists of two main steps:

  1. Knowledge Graph Construction & Embedding: The input DL knowledge base axioms (like class memberships and role assertions) are mapped into basic graph triples (e.g., (x, rdf:type, C)). A KGE model—such as ComplEx—is trained on this graph to learn continuous vector representations for entities and relations.
  2. Neural Semantics Mapping: Instead of trying to embed complex logical formulas directly, EBR uses a neural link predictor (with a sigmoid function) to estimate the truth probability of atomic concepts and existential restrictions. It then resolves complex $\mathcal{SHOIQ}$ expressions by applying standard set-theoretic operations (intersections, unions, complements) directly to these predicted atomic sets.

This hybrid approach ensures that the system benefits from the inductive power of neural embeddings (to fill in missing data and smooth over contradictions) while maintaining the structural compositionality of formal logic.

Datasets

The authors evaluated EBR across six benchmark datasets varying in size and domain complexity:

  • Large Datasets: Carcinogenesis (biological interactions), Mutagenesis (chemical compounds), Semantic Bible (structural text data), and Vicodi (historical relations).
  • Small Datasets: Family and Father (familial relationships).

Key Insights and Ideas

  • The Power of Expressive Embeddings: Simple translational embedding models like TransE fail completely at instance retrieval because they lack the mathematical capacity to capture hierarchical and relational semantics. Conversely, bilinear and complex-space models (like ComplEx, DeCaL, and Keci) excel, showing a clear convergence toward perfect retrieval as embedding dimensions increase.
Figure 1. Ebr average performance with different embed- ding models and dimensions on different datasets. All mod- els share the same legend shown once (right of the top-left panel).
  • Graceful Degradation over Hard Failure: While a single contradiction causes classical symbolic reasoners to halt or fail to resolve class memberships, EBR treats reasoning as a probabilistic thresholding problem. This allows it to bypass localized contradictions and maintain high global reasoning accuracy.
  • Compositional Hybridization: By restricting the neural network's job to predicting atomic assertions and letting exact set theory handle the logical connectives ($\sqcap, \sqcup, \neg$), EBR avoids the compounding errors often seen in pure end-to-end deep learning reasoners.

Key Results

  • Perfect Retrieval on Clean Data: On complete and consistent datasets, EBR achieves a perfect Jaccard similarity score of 1.00 relative to symbolic ground truths, provided the embedding dimension is sufficiently high ($\ge 128$).
  • Superior Robustness to Noise: When noise (contradictory axioms) was injected into the datasets, symbolic reasoners like Pellet failed completely. EBR, along with specialized reasoners like FIC, maintained stable, high Jaccard scores.
Jaccard scores under varying noise levels
  • Handling Incompleteness: In scenarios where data was intentionally removed, EBR consistently outperformed or matched alternative reasoners, successfully recovering missing instances via link prediction.
Jaccard scores under varying incompleteness levels
  • Downstream Concept Learning: When integrated into concept learning frameworks (like OCEL or CELOE) on an inconsistent version of the Carcinogenesis dataset, EBR enabled the learners to achieve perfect 1.00 F1-scores, whereas Pellet could not execute at all.

Limitations and Future Work

  • Training Overhead: Unlike symbolic reasoners that operate directly on the logic rules, EBR requires an initial training phase to learn the knowledge graph embeddings. Though its inference runtime is highly competitive, this upfront optimization cost must be factored in.
  • Open-World Thresholding: EBR relies on a probability threshold ($\gamma$) to determine if an assertion is true. While the authors noted that performance was robust across various choices of $\gamma$, highly dynamic or open-world KBs might require more sophisticated, adaptive thresholding techniques.
  • Future Extensions: The current implementation focuses on $\mathcal{SHOIQ}$. The authors suggest extending this framework to even more expressive description logics, such as $\mathcal{SROIQ}$ (the logic underlying OWL 2 DL), and exploring inductive generalization to entirely unseen entities.

Summary updated

BibTeX
@misc{teyou2025neural,
  author = {Louis Mozart Kamdem Teyou and Luke Friedrichs and N'Dah Jean Kouagou and Caglar Demir and Yasir Mahmood and Stefan Heindorf and Axel-Cyrille Ngonga Ngomo},
  title = {{Neural Reasoning for Robust Instance Retrieval in $\textbackslash\{\}mathcal\{SHOIQ\}$}},
  year = {2025},
  eprint = {2510.20457},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.20457},
}
Figure