Completion Reasoning Emulation for the Description Logic EL+

Aaron Eberhart, Monireh Ebrahimi, Lu Zhou, Cogan Shimizu, Pascal HitzlerarXiv 2019

TL;DR

Researchers at Kansas State University have developed a way to train Long Short-Term Memory (LSTM) networks to emulate the step-by-step reasoning process of the description logic $\mathcal{EL}^+$. By focusing on emulating the structure of reasoning rather than just predicting final answers, this approach offers a more transparent, "debuggable" alternative to traditional black-box neural-symbolic systems.

What Problem Does This Paper Address?

The integration of inductive machine learning (which learns from patterns) and deductive logic (which follows strict rules) is a major hurdle in AI. Most current "neural-symbolic" systems treat reasoning as a black box: you feed in a knowledge base, and the network spits out an answer.

However, in formal logic, the path to the answer is just as important as the answer itself. Standard neural networks lack transparency; if they get an answer wrong, it’s nearly impossible to tell if the failure happened because the network didn't understand the data or because it failed to apply a specific logical rule. Furthermore, many systems rely on "embeddings" that group similar concepts together, which can inadvertently "cheat" by helping the network guess answers based on similarity rather than actual logical derivation.

Methods

The authors focus on $\mathcal{EL}^+$, a lightweight description logic used in large-scale ontologies like SNOMED CT. Reasoning in $\mathcal{EL}^+$ involves repeatedly applying a set of completion rules (shown in the table below) until no new facts can be derived.

Table 2: EL+ Completion Rules

To emulate this, they designed three LSTM-based architectures:

  1. Flat: A baseline that maps inputs directly to outputs for each reasoning step.
  2. Deep: A stacked LSTM where a hidden layer is sized to match the "supports" (intermediate facts) of the reasoning process.
  3. Piecewise: Two separate systems trained independently—one to derive intermediate supports from the knowledge base, and another to derive the final completion from those supports.

Crucially, the team avoided traditional embeddings. Instead, they used a Statement Encoding method that maps axioms into 4-tuples of normalized floating-point numbers. This ensures the names are arbitrary and the network must learn the structural logic of the axioms rather than relying on pre-existing semantic similarities.

Figure 3: Deep Architecture

Datasets

The models were evaluated on two types of data:

  • Synthetic Data: A custom generation procedure created semi-random $\mathcal{EL}^+$ knowledge bases of moderate difficulty, ensuring every completion rule was used at least once.
  • SNOMED 2012: A real-world medical ontology. Because SNOMED is massive, the authors sampled connected subsets that required a minimum number of reasoning steps to solve.

Key Insights and Ideas

  • Emulation over Prediction: By training the network to produce intermediate "supports," the authors created a system where you can inspect the network's "thoughts" mid-way through. This allows for a form of "debugging" in neural networks.
  • The F1-Score Trap: The authors argue that standard metrics like F1-score are insufficient for logic. A network might get a concept name slightly wrong (e.g., predicting "C9" instead of "C11") but still correctly identify the logical shape of the required axiom.
  • Robustness to Noise: The "Deep" architecture proved remarkably resilient. Even when the test data was corrupted by 10-30%, the system's performance degraded gracefully rather than crashing, suggesting it had truly learned the underlying reasoning patterns.

Key Results

The "Deep" architecture generally outperformed the others, particularly on synthetic data. On the more challenging, unbalanced SNOMED data, the "Piecewise" system showed unique strengths, staying above random performance levels even under high data corruption (up to 80-90%).

Training curves (shown below) demonstrate that the models successfully minimized mean squared error over thousands of epochs, though the real-world SNOMED data proved significantly harder to master than the synthetic sets.

Figure 5: Synthetic Training

The authors also utilized specialized distance metrics (Atomic and Predicate Levenshtein distances) to prove that even when the LSTM "missed" the exact correct answer, its predictions were structurally "close" to the truth, validating that it was learning the logic rather than just memorizing strings.

Limitations and Future Work

While $\mathcal{EL}^+$ is computationally tractable, it is a relatively simple logic. The authors acknowledge that scaling this approach to more expressive logics like $\mathcal{EL}^{++}$ (which includes features like "Self" restrictions) or the full Web Ontology Language (OWL) will require new encoding strategies.

Additionally, the sampling method for SNOMED introduced some bias toward specific rules (rules 3, 5, and 6), making it harder for the network to learn a balanced representation of all reasoning patterns. Future work will look at more expressive logics and different ways to segment networks to improve explainability.

Summary updated

BibTeX
@misc{eberhart2019completion,
  author = {Aaron Eberhart and Monireh Ebrahimi and Lu Zhou and Cogan Shimizu and Pascal Hitzler},
  title = {{Completion Reasoning Emulation for the Description Logic EL+}},
  year = {2019},
  eprint = {1912.05063},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.05063},
}
Figure