Ordering Heuristics for Description Logic Reasoning

Dmitry Tsarkov, Ian HorrocksIJCAI 2005

Abstract

We present a new architecture for Description Logic implementations, a range of new optimisation techniques and an empirical analysis of their effectiveness.

Introduction

Description Logics (DLs) provide the formal foundation for the Semantic Web and modern ontologies like OWL. To determine the consistency of logical statements, reasoners typically employ tableaux algorithms to construct a model. Traditionally, these algorithms have relied on recursive, top-down expansion methods. However, this approach faces significant challenges in modern, expressive logics where inverse roles allow constraints to flow both up and down the model tree. Furthermore, recursive methods often lack a global perspective, making it difficult to prioritize logical structures that might lead to faster contradictions.

The ToDo List Architecture

To address these limitations, we introduced a novel "ToDo list" architecture in the FaCT++ reasoner. By replacing the traditional recursive stack with priority queues, the system can strategically manage expansion rules. This architecture enables the implementation of two primary types of heuristics:

  • Rule-ordering Heuristics: These determine the priority of different logical rule types (e.g., processing conjunctions before disjunctions). A notable strategy is aEO, which deprioritizes disjunctions and existential quantifiers.
  • Expansion-ordering Heuristics: These guide non-deterministic choices—such as which branch of an "OR" statement to explore first—based on criteria like concept size (Sd) or maximum quantifier depth (Dd).

Empirical Evaluation and Results

The effectiveness of these heuristics was evaluated using real-world ontologies (DOLCE, WineFood, and GALEN) and the DL’98 artificial test suite. The results demonstrate that performance is highly sensitive to the specific "shape" of the ontology's logic.

Performance of rule-ordering heuristics on real-world ontologies. The aEO strategy consistently outperforms others, particularly on the complex GALEN ontology.

On the GALEN ontology, which is notoriously difficult due to its circular existential cycles, the best rule-ordering strategy was nearly ten times faster than the worst. By prioritizing rules that avoid premature model expansion, previously intractable segments of GALEN became manageable.

In artificial benchmarks, the impact of heuristic choice was even more dramatic. As seen in the DL'98 test suite results, performance differences can exceed two orders of magnitude depending on the strategy employed.

Performance of rule-ordering heuristics on the DL'98 test suite. Note the extreme variance in processing times, such as the 100x speedup for the d4_n test using the aEO strategy.

Despite this variability, the researchers identified aEO rule-ordering and Sd/Dd expansion-ordering as robust default settings that provide consistent performance across a wide range of typical ontologies.

Conclusion

The transition to a ToDo list architecture with priority-based heuristics represents a significant advancement in DL reasoning. While no single heuristic is optimal for every case, strategic rule and expansion ordering can yield massive performance improvements. Future work will focus on developing automated methods to analyze an ontology's syntactic structure and dynamically select the optimal heuristic.

Summary updated

BibTeX
@inproceedings{tsarkov2005ordering,
  author = {Dmitry Tsarkov and Ian Horrocks},
  title = {{Ordering Heuristics for Description Logic Reasoning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
  url = {https://openreview.net/forum?id=ry-9iVGuWB},
}
Figure