SliceGX: Layer-wise GNN Explanation with Model-slicing

Tingting Zhu, Tingyang Chen, Yinghui Wu, Arijit Khan, Xiangyu Ke
6/22/2025
cs.LGcs.DB

No official code found. Best implementation: jinzhaoqet/SliceGX (1 star, last commit 2026-01-27). 1 more below.

Abstract

Ensuring the trustworthiness of graph neural networks (GNNs) as black-box models requires effective explanation methods. Existing GNN explanations typically apply input perturbations to identify subgraphs that are responsible for the occurrence of the final output of GNNs. However, such approaches lack finer-grained, layer-wise analysis of how intermediate representations contribute to the final result, capabilities that are crucial for model diagnosis and architecture optimization. This paper introduces SliceGX, a novel GNN explanation approach that generates explanations at specific GNN layers in a progressive manner. Given a GNN M, a set of selected intermediate layers, and a target layer, SliceGX automatically segments M into layer blocks ("model slice") and discovers high-quality explanatory subgraphs in each layer block that clarifies the occurrence of output of M at the targeted layer. Although finding such layer-wise explanations is computationally challenging, we develop efficient algorithms and optimization techniques that incrementally generate and maintain these subgraphs with provable approximation guarantees. Additionally, SliceGX offers a SPARQL-like query interface, providing declarative access and search capacities for the generated explanations. Through experiments on large real-world graphs and representative GNN architectures, we verify the effectiveness and efficiency of SliceGX, and illustrate its practical utility in supporting model debugging.

View on arXivView PDF

Code Implementations(2)

00PythonJun 17, 20251 years ago
jinzhaoqet/SliceGXCommunity62%

This repository contains the source code for our paper: SliceGX: Layer-wise GNN Explanation with Model-slicing.

10PythonSep 30, 20258 months ago

Similar Papers

Cite this paper

@article{zhu2025slicegx,
  title  = {SliceGX: Layer-wise GNN Explanation with Model-slicing},
  author = {Tingting Zhu and Tingyang Chen and Yinghui Wu and Arijit Khan and Xiangyu Ke},
  year   = {2025},
  eprint = {2506.17977},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.17977v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.17977.svg)](https://codeofpaper.com/paper/2506.17977)

Discussion