Embedding Ontologies via Incorporating Extensional and Intensional Knowledge

Keyu Wang, Guilin Qi, Jiaoyan Chen, Yi Huang, Tianxing Wu

Abstract

Ontologies are central to the Semantic Web, yet existing embedding methods often fail to simultaneously capture hierarchical structure and textual semantics. We propose EIKE (Extensional and Intensional Knowledge Embedding), a framework that models ontologies in dual vector spaces. By representing extensional knowledge through geometric ellipsoids and intensional knowledge via pre-trained language models, EIKE achieves superior performance in triple classification and link prediction tasks.

Introduction

Ontologies organize knowledge into two distinct layers: intensional knowledge, which defines concepts and their hierarchical relationships (e.g., "Professor is a subclass of Academic Staff"), and extensional knowledge, which identifies specific instances belonging to those concepts (e.g., "Alice is an instance of Professor").

Current embedding techniques typically excel at either modeling hierarchy through geometric constraints or capturing semantic nuances through language models, but rarely both. EIKE bridges this gap by integrating both perspectives into a unified framework that respects both the "logic" and the "language" of an ontology.

The EIKE Framework

The core innovation of EIKE is the parallel modeling of knowledge in two distinct embedding spaces, allowing each type of knowledge to be represented with the most appropriate mathematical tool.

The EIKE framework pipeline, illustrating the flow from knowledge representation to joint training in dual spaces.

Dual-Space Modeling

  1. Extensional Space (Geometric): Concepts are modeled as ellipsoids and instances as point vectors. This spatial logic ensures that if an instance belongs to a concept, its point lies within the concept's ellipsoid. Similarly, subclass relationships are represented by the containment of one ellipsoid within another.
  2. Intensional Space (Semantic): This space leverages Sentence-BERT to encode the names and textual descriptions of concepts, capturing inherent properties and semantic similarities that structural data might miss.
Visualization of the Extensional Space (ellipsoids) and Intensional Space (vectors) used to model concepts and instances.

Virtual Instance Mapping and Joint Training

To bridge the two spaces, EIKE introduces "virtual instances" by mapping extensional point vectors into the intensional space using a learnable mapping matrix. The model is trained using a combined loss function that optimizes for SubClassOf, InstanceOf, and relational triples simultaneously.

Experimental Evaluation

The authors evaluated EIKE on three established benchmarks: YAGO39K, M-YAGO39K (augmented with transitive triples), and DB99K-242 (focused on dense subclass relations).

Key Results

EIKE demonstrated state-of-the-art (SOTA) performance across the board:

  • Triple Classification: On YAGO39K, EIKE achieved an accuracy of 89.26% for InstanceOf triples and 90.00% for SubClassOf triples, significantly outperforming previous geometry-only models.
  • Link Prediction: By improving concept-level understanding, EIKE showed marked gains in Hits@10 and MRR, proving that better semantic modeling translates to better instance-level reasoning.
  • Ablation Success: Variants using pre-trained language models (PRE) consistently outperformed those with random initialization (UNP), confirming that textual knowledge is a critical component for ontology embeddings.

Discussion and Future Work

The use of ellipsoids rather than simple spheres allows EIKE to handle anisotropy, accounting for the fact that concepts vary in "width" across different semantic dimensions. While the model currently focuses on SubClassOf and InstanceOf relations, future work aims to incorporate more complex properties like SubPropertyOf and explore dynamic modeling through Graph Neural Networks (GNNs).

Summary updated

BibTeX
@article{wang2024embedding,
  author = {Keyu Wang and Guilin Qi and Jiaoyan Chen and Yi Huang and Tianxing Wu},
  title = {{Embedding Ontologies via Incorporating Extensional and Intensional Knowledge}},
  journal = {Data Intell.},
  year = {2024},
  doi = {10.3724/2096-7004.di.2024.0088},
}
Figure