NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Simple and Interpretable Probabilistic Classifiers for Knowledge Graphs

Christian Riefolo, Nicola Fanizzi, Claudia d'AmatoarXiv 2024

TL;DR

This paper introduces simple, interpretable probabilistic classifiers designed specifically for Knowledge Graphs (KGs) with incomplete data. By combining Multivariate Bernoulli models with Expectation-Maximization (EM) and hierarchical structures, the authors create models that not only perform well on classification tasks but can also be converted directly into human-readable logic rules and axioms.

What Problem Does This Paper Address?

Knowledge Graphs are powerful but notoriously messy. They often operate under the Open-World Assumption (OWA): just because a fact isn't explicitly stated doesn't mean it's false—it might just be unknown. Standard machine learning models often struggle with this inherent incompleteness.

Furthermore, modern KG research leans heavily on representation learning (embeddings). While effective, these methods are "black boxes." It is nearly impossible for a human expert to look at a high-dimensional embedding vector and understand why a resource was classified a certain way. The authors aim to bridge this gap by developing models that are both robust to missing data and transparent enough to explain their decisions through logic.

Methods

The authors propose an inductive approach based on simple belief networks. The process follows three main steps:

  1. Boolean Encoding: Individuals in the KG are mapped to $D$-dimensional binary vectors based on their membership in specific classes or properties (features). If the membership is unknown due to the OWA, it's treated as a missing value.
  2. Probabilistic Modeling:
    • Multivariate Bernoulli Naive Bayes (MBNB): A basic model that assumes features are conditionally independent given the target class. Multivariate Bernoulli Naive Bayes Model
    • Hierarchical Bernoulli Model (HBM): A more sophisticated two-tier network. The bottom tier uses a mixture of Bernoullis (latent variables $z$) to capture correlations between features, while the top tier performs the classification. This helps overcome the "independence" limitation of standard Naive Bayes. Hierarchical Bernoulli Model
  3. Handling Incompleteness: The authors employ the Expectation-Maximization (EM) algorithm to iteratively estimate missing feature values and model parameters, making the classifier resilient to the "holes" in the KG.
  4. Rule Extraction: A standout feature of this work is the ability to convert the learned probabilities into Description Logic (DL) axioms. For example, a model can generate a rule like: "If an individual has features A and B, it likely belongs to Class C."
Fig. 1. Multivariate Bernoulli Naive Bayes Model as a belief network
Fig. 3. Hierarchical Bernoulli Model

Datasets

The models were evaluated on four real-world ontologies:

  • KRKZeroOne: A small ontology derived from a UCI chess dataset.
  • NTNames: New Testament Names.
  • Financial: An ontology describing financial domains.
  • LUBM: The Lehigh University Benchmark, a standard for KG performance.

The authors created 10 random classification problems for each ontology, ensuring a mix of positive, negative, and unlabeled instances to test the models' limits.

Key Insights and Ideas

  • Generative vs. Discriminative: Generative models (like MBNB) are naturally better suited for incomplete data than discriminative models (like Logistic Regression) because they model the joint distribution of inputs and outputs, allowing for easier marginalization of missing features.
  • Interpretability is a Feature, Not a Trade-off: By using Bernoulli variables, the model parameters correspond directly to the probability of a specific logic feature being present. This allows the model to be "decompiled" into human-readable rules that domain experts can verify.
  • Latent Layers Capture Complexity: The HBM's use of latent variables allows it to group individuals into sub-clusters before classification, which helps model complex classes where features are highly correlated.

Key Results

  • MBNB-EM was the top performer: Integrating the EM algorithm for missing data significantly boosted performance across all metrics (Precision, Recall, F1-measure).
  • Outperforming Baselines: Both MBNB and HBM generally outperformed Logistic Regression (LogReg) with $L_1$ regularization. While LogReg is often a go-to for simple tasks, its performance suffered when forced to be "interpretable" (sparse) in the face of incomplete data.
  • Scalability: Performance tended to improve with larger datasets, as more individuals provided better estimates for the latent variables and parameters.
  • Statistical Significance: A Friedman-Nemenyi test confirmed that the MBNB models were significantly better than the baseline on most datasets.

Limitations and Future Work

The authors identify several areas for improvement:

  • Feature Selection: The current feature selection phase is unsupervised (based on variance). Moving to supervised methods might help identify more relevant logic features.
  • Complex Definitions: The models currently struggle with "nested" logic restrictions, which are rare in KGs but theoretically important.
  • Hyperparameter Tuning: The Hierarchical model (HBM) requires careful tuning of the number of latent components, which can be computationally expensive.
  • Hybrid Features: Future work aims to integrate continuous (Gaussian) features to handle numerical data alongside Boolean logic features.

Summary updated

BibTeX
@misc{riefolo2024simple,
  author = {Christian Riefolo and Nicola Fanizzi and Claudia d'Amato},
  title = {{Simple and Interpretable Probabilistic Classifiers for Knowledge Graphs}},
  year = {2024},
  eprint = {2407.07045},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.07045},
}
Figure