Box Embeddings for the Description Logic EL++

Bo Xiong, Nico Potyka, Trung-Kien Tran, Mojtaba Nayyeri, Steffen Staab

Abstract

Recently, increasing efforts are put into learning continual representations for symbolic knowledge bases (KBs). However, these approaches either only embed the data-level knowledge (ABox) or suffer from inherent limitations when dealing with concept-level knowledge (TBox), i.e., they cannot faithfully model the logical structure present in the KBs. We present BoxEL, a geometric KB embedding approach that allows for better capturing the logical structure (i.e., ABox and TBox axioms) in the description logic $\mathcal{EL}^{++}$. BoxEL models concepts in a KB as axis-parallel boxes that are suitable for modeling concept intersection, entities as points inside boxes, and relations between concepts/entities as affine transformations. We show theoretical guarantees (soundness) of BoxEL for preserving logical structure. Namely, the learned model of BoxEL embedding with loss 0 is a (logical) model of the KB. Experimental results on (plausible) subsumption reasonings and a real-world application for protein-protein prediction show that BoxEL outperforms traditional knowledge graph embedding methods as well as state-of-the-art $\mathcal{EL}^{++}$ embedding approaches.

Introduction: The Geometric Dead-Ends of Ball Embeddings

Knowledge Bases (KBs) are foundational to modern AI, comprising facts about individuals (ABox) and logical rules about concepts (TBox). While Knowledge Graph Embeddings (KGEs) like TransE excel at modeling facts, they struggle with the complex logical structures found in Description Logics like $\mathcal{EL}^{++}$, which underpin massive ontologies like SNOMED CT and the Gene Ontology.

Previous geometric approaches, such as ELEm, represented concepts as $n$-dimensional balls. However, these models face two significant "geometric dead-ends":

  1. Intersection Failure: The intersection of two balls is rarely a ball. Consequently, these models cannot faithfully represent a concept defined as the intersection of two others (e.g., $Father \equiv Parent \sqcap Male$).
  2. Scaling Issues: Using simple translations to model relations makes it impossible to map a large concept into a smaller one without forcing them to be the same size, contradicting the hierarchical nature of real-world relationships.
Comparison of ball-based and box-based embeddings for logical intersection and existential restriction.

The BoxEL Framework: Geometry Meets Logic

BoxEL reimagines the geometry of logic by modeling concepts as axis-parallel hyperrectangles (boxes). This choice is functional: the intersection of two axis-parallel boxes is always another axis-parallel box, allowing for a closed-form representation of logical conjunctions.

Key Components of BoxEL

  • Entities as Points: Unlike models that treat everything as a volume, BoxEL treats individuals as zero-volume points located inside concept boxes.
  • Affine Transformations: Relations are modeled as $T(x) = Dx + b$. The diagonal matrix $D$ allows for scaling (shrinking or expanding the volume of a concept), while the vector $b$ handles translation. This flexibility allows the model to map distinct entities to a single target, as seen in relations like has_nationality.
  • Soundness Guarantee: The framework provides a mathematical proof of soundness. If the model's loss function reaches zero, the resulting geometric arrangement is guaranteed to be a valid logical model of the original KB.
  • Optimization: To facilitate training via gradient descent, BoxEL utilizes a "softplus volume" approximation. This prevents the vanishing gradient problem that occurs when boxes become disjoint during training.
Geometric representation of ABox and TBox axioms in the BoxEL framework.

Experimental Evaluation

The model was evaluated on two primary tasks: subsumption reasoning (ontology completion) and protein-protein interaction (PPI) prediction. For subsumption reasoning, the authors used three major biomedical ontologies: Gene Ontology (GO), GALEN, and Anatomy. For PPI prediction, they combined Gene Ontology rules with factual interaction data from the STRING database for Yeast and Human datasets.

Key Results

BoxEL demonstrated superior performance across all benchmarks:

  • Ontology Accuracy: On the GALEN dataset, BoxEL achieved an accuracy of 0.788, nearly doubling the performance of the previous state-of-the-art ELEm (0.480).
  • Ranking Performance: In subsumption reasoning, BoxEL consistently outperformed KGEs (TransE, DistMult) in Mean Rank and AUC.
  • PPI Prediction: In the Yeast dataset, BoxEL achieved a Filtered AUC of 0.94, outperforming competitive baselines like BoxE and OPA2Vec. Its strength in "Mean Rank" suggests it is significantly better at avoiding catastrophic misclassifications than its predecessors.

Conclusion

BoxEL acts as a critical bridge between symbolic logic and neural embeddings. By aligning geometry with logical requirements—specifically through the use of boxes for intersections and affine transformations for scaling—it provides a rigorous yet flexible framework for modeling complex ontologies. Future work may extend BoxEL to Statistical $\mathcal{EL}$, leveraging box volumes to handle uncertain or probabilistic logical statements.

Summary updated

BibTeX
@misc{xiong2022box,
  author = {Bo Xiong and Nico Potyka and Trung-Kien Tran and Mojtaba Nayyeri and Steffen Staab},
  title = {{Box Embeddings for the Description Logic EL++}},
  year = {2022},
  eprint = {2201.09919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.09919},
}
Figure