Logical Expressivity and Explanations for Monotonic GNNs with Scoring Functions

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Morris, Matthew, Cucala, David J. Tena, Grau, Bernardo Cuenca
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916909253918720
author Morris, Matthew
Cucala, David J. Tena
Grau, Bernardo Cuenca
author_facet Morris, Matthew
Cucala, David J. Tena
Grau, Bernardo Cuenca
contents Graph neural networks (GNNs) are often used for the task of link prediction: predicting missing binary facts in knowledge graphs (KGs). To address the lack of explainability of GNNs on KGs, recent works extract Datalog rules from GNNs with provable correspondence guarantees. The extracted rules can be used to explain the GNN's predictions; furthermore, they can help characterise the expressive power of various GNN models. However, these works address only a form of link prediction based on a restricted, low-expressivity graph encoding/decoding method. In this paper, we consider a more general and popular approach for link prediction where a scoring function is used to decode the GNN output into fact predictions. We show how GNNs and scoring functions can be adapted to be monotonic, use the monotonicity to extract sound rules for explaining predictions, and leverage existing results about the kind of rules that scoring functions can capture. We also define procedures for obtaining equivalent Datalog programs for certain classes of monotonic GNNs with scoring functions. Our experiments show that, on link prediction benchmarks, monotonic GNNs and scoring functions perform well in practice and yield many sound rules.
format Preprint
id arxiv_https___arxiv_org_abs_2508_14091
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Logical Expressivity and Explanations for Monotonic GNNs with Scoring Functions
Morris, Matthew
Cucala, David J. Tena
Grau, Bernardo Cuenca
Machine Learning
Artificial Intelligence
Logic in Computer Science
03B70
I.2.6; G.2.2; I.2.4; I.2.3
Graph neural networks (GNNs) are often used for the task of link prediction: predicting missing binary facts in knowledge graphs (KGs). To address the lack of explainability of GNNs on KGs, recent works extract Datalog rules from GNNs with provable correspondence guarantees. The extracted rules can be used to explain the GNN's predictions; furthermore, they can help characterise the expressive power of various GNN models. However, these works address only a form of link prediction based on a restricted, low-expressivity graph encoding/decoding method. In this paper, we consider a more general and popular approach for link prediction where a scoring function is used to decode the GNN output into fact predictions. We show how GNNs and scoring functions can be adapted to be monotonic, use the monotonicity to extract sound rules for explaining predictions, and leverage existing results about the kind of rules that scoring functions can capture. We also define procedures for obtaining equivalent Datalog programs for certain classes of monotonic GNNs with scoring functions. Our experiments show that, on link prediction benchmarks, monotonic GNNs and scoring functions perform well in practice and yield many sound rules.
title Logical Expressivity and Explanations for Monotonic GNNs with Scoring Functions
topic Machine Learning
Artificial Intelligence
Logic in Computer Science
03B70
I.2.6; G.2.2; I.2.4; I.2.3
url https://arxiv.org/abs/2508.14091