Manuscript Offprint

arXiv:2611.08789

TopoSHAP: Shapley for Explainable and Efficient Topological Deep Learning

Mathilde Papillon, Nina Miolane

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Topological deep learning (TDL) extends learning on graphs, such as molecules or social networks, to higher-order structures, such as rings in a molecule or groups in a social network. Explaining which of these structures drive a model's predictions, and which architectural components matter most for its performance, remains challenging. We introduce TopoSHAP, an efficient and general explanation framework that addresses both questions across topological domains and model architectures. TopoSHAP-cell assigns Shapley values to topological data cells and extracts compact explanations. These explanations match or outperform graph-based counterparts on GraphXAI benchmark data while running up to 112×112\times faster. They also reveal advantageous topological feature design, leading to measured improvements in explanation recovery and predictive accuracy. On the architecture side, TopoSHAP-neighbor explains how neighborhoods contribute to model performance, and turns these evaluations into a backward-elimination search that identifies smaller, competitive architectures early in training. This is up to 11.3×11.3\times cheaper than traditional TDL training sweeps.

1 INTRODUCTION

Graph neural networks (GNNs) learn from relational data, such as molecules and social networks (Kipf and Welling, 2017). They achieve this by explicitly modeling pairwise interactions between the nodes (atoms, people) of the data. However, real-world systems often exhibit interactions that are inherently multiway. For instance, atoms can form rings which have critical functional roles; people can form groups whose nature goes beyond pairwise relationships. These higher-order interactions are not explicitly represented in standard GNNs. Topological neural networks (TNNs) address this limitation by explicitly modeling higher-order structure (Hajji et al., 2023; Papillon et al., 2023). In particular, topological deep learning (TDL) uses combinatorial complexes to organize interactions into cells of different ranks: atoms are rank-0 cells, bonds are rank-1 cells, and rings are rank-2 cells. At each layer, TNNs update each cell feature based on the features of its neighboring cells. On standardized topological benchmarks, TNNs often match or exceed GNN accuracy (Telyatnikov et al., 2025).

As TDL moves towards domain-specific applications like chemistry and materials science (Paparmarkou et al., 2024), practitioners face two black box challenges. First, they need to understand which structures drive these predictions. For a molecular model, for example, one may be compelled to reveal the chemical features and molecular structures the model deems relevant to the target property. Second, TDL practitioners do not know a priori what topological relations, or neighborhoods, matter for their task. Current TDL pipelines rely on an expensive hyperparameter search to identify the best architecture (Papillon et al., 2025; Bernárdez et al., 2025). This is not only expensive but also fails to provide practical insight as to why a specific architecture worked better.

Machine learning explainers are a promising avenue to opening these black boxes. They investigate model behavior by attributing predictions to parts of the input (Doshi-Velez and Kim, 2017; Ribeiro et al., 2016; Lundberg and Lee, 2017). However, existing post-hoc explainers are limited to graph (Sinha et al., 2025; Ying et al., 2019; Luo et al., 2020; Yuan et al., 2021; Muschalik et al., 2025) and

Figure

Figure 1: TopoSHAP explains a Topological Neural Network's predictions and performance. A. TopoSHAP-cell considers the cells of the input combinatorial complex as players (1). Given certain coalitions SiS_i of those players (2), it evaluates the model's predictions (3). Averaging marginal contributions over coalitions outputs one Shapley value per cell and a sub-complex best preserving the prediction (4). B. TopoSHAP-neighbor manipulates the neighborhoods that contribute to feature updates in the TNN (1). It briefly trains a model with all neighborhoods, then masks coalitions of them (2) to measure neighborhood impact on test performance (3). Averaging marginal contributions over coalitions outputs one attribution value per neighborhood and a subset of that preserves model performance (4).

hypergraph (Maleki et al., 2023; Su et al., 2024) neural networks. We propose the first explainer for general topological domains, encompassing both prediction and performance explanation.

Contributions. We introduce TopoSHAP, a unified game-theoretic framework for explaining TDL models, which attributes both predictions and performance to the cells and neighborhoods of a combinatorial complex. TopoSHAP is available at github.com/mathildepapillon/toposhap.

  • We explain predictions across ranks. We formulate a cooperative game in which cells of every rank are players, producing per-cell Shapley attributions and compact explanations. Across both outputs, we match or outperform graph explanation methods on GraphXAI benchmarks. We also propose the first explanations of topological benchmark datasets going beyond hypergraphs. We call this component TopoSHAP-cell.

  • We use cell attributions to improve topological features. Rank-specific attributions show that topological features, typically built by aggregating node features, retain information about lower-rank cells. Using this finding, we design new topological features and match or improve explanation recovery on GraphXAI benchmarks.

  • We explain performance and use it to select architectures. We formulate a second game in which a model's neighborhood-specific modules are players and test performance is the payoff. We propose an inexpensive backward-elimination procedure that selects neighborhood-specific modules for full training. This reduces training compute by up to an order of magnitude relative to standard TDL training sweeps. We call this component TopoSHAP-neighbor.

References (61)