Manuscript Offprint
arXiv:2610.20662Graph Additive Models disentangling feature, topology, and interactions
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Graph Neural Additive Networks (GNANs) have emerged as an effective, interpretable-by-design graph architecture for learning on graphs. They achieve model transparency by combining per-feature shape functions with a simple distance-based reweighting. Despite the effectiveness of GNAN, we identify the following limitations: i) node-wise relevance scores are computed as a weighted aggregation over all graph nodes, allowing irrelevant nodes to inherit spurious relevance from relevant ones; ii) graph topology is encoded only through shortest-path distances, and structurally distinct graphs may have identical distances; iii) feature and distance information are combined multiplicatively, thus entangling feature, distance, and interaction effects into a single, rescalable term. To address these limitations, we introduce AMIGA, which represents topology through a vocabulary of mined motifs and decomposes the contribution of each node into three additive channels: a feature channel, a structural channel, and a feature–structure interaction channel. We center these channels around a training-data baseline that gives every graph equal weight, regardless of its size, making the decomposition well defined and unique. Across ten graph classification and regression benchmarks, AMIGA outperforms GNAN on most datasets and narrows the gap to standard black-box GNNs. Because every channel is centered and attached to a single node, the explanations of AMIGA stay local to the node that generates them and reconstruct the model output exactly while providing interpretability at different levels of granularity. Code is publicly available online .
1 INTRODUCTION
Graph Neural Networks (GNNs) have emerged as a powerful tool for learning on graphs (Scarselli et al., 2008; Bacciu et al., 2020), with applications in high-stakes scenarios like power grid analysis (Varbella et al., 2024), health forecasting (Hu et al., 2024), software vulnerability detection (Lekeufack Foulefack & Marchetto, 2024), and drug discovery (Wong et al., 2024). However, the lack of transparency in black-box GNNs has motivated interpretable architectures that trade predictive performance for model transparency (Rudin, 2019).
The prominent examples of these interpretable-by-design architectures are Graph Neural Additive Networks (GNANs) (Bechler-Speicher et al., 2024), which extend Generalized Additive Models (Hastie & Tibshirani, 1986) to graphs. They learn one univariate function per feature, and linearly combine these over all nodes, scaling the contribution of each node by a learnable, univariate distance function. This composition of simple, univariate functions gives users full knowledge of how the model aggregated information, and of which features are mostly relevant, enabling model-level understanding and debugging. GNANs have been further extended to temporal, heterogeneous data (Bechler-Speicher et al., 2025), to incorporate parameter-efficient transformations (Siddartha Reddy et al., 2025), and to Graph Retrieval-Augmented Generation for LLMs (Sade et al., 2026).
*Corresponding author: antonio.longa@uit.no
https://anonymous.4open.science/r/AMIGA-2C36/
Despite the effectiveness of GNANs, in this work we identify the following three limitations that can hinder both their downstream performance and their interpretability: i) the node-wise importance scores extracted by GNAN for node i do not represent its own contribution, but are a blurred aggregation of the importances of every node; ii) GNAN relies exclusively on shortest-path distances to encode graph structure, potentially missing other informative topological properties. iii) GNAN multiplies the univariate feature function with the shortest-path distance reweighting, resulting in a less interpretable mixture of feature, distance, and interaction effects.
To overcome these limitations, we introduce the Attribute-Motif Interaction Graph Additive model (AMIGA). AMIGA relies on motifs automatically discovered from the training set, with each node contributing based on its features and on which motifs it appears in. The model linearly combines three additive channels – feature, structural, and feature–structure interaction – each centered under a graph-balanced reference distribution that assigns equal mass to each training graph, ensuring the three channels form a unique canonical decomposition. Summarizing, our main contributions are:
• We identify three limitations of current graph additive models: node-wise importance scores do not isolate node-local contributions, shortest-path distances miss richer topology, and multiplicative feature–distance coupling obscures the separate feature, distance, and interaction effects.
• We introduce AMIGA, an interpretable-by-design GNN that replaces distance-based aggregation with automatically mined motifs, enabling the model to capture richer structural patterns while providing disentangled feature- and motif-based contributions.
• We develop a graph-balanced centering scheme that makes the additive decomposition well-defined and unique, allowing predictions to be decomposed into separate attribute, structural, and attribute–structure interaction contributions.
Across ten graph classification and regression benchmarks, AMIGA outperforms GNAN on eight datasets and G-NAMRFF on nine. Furthermore, in a controlled experiment, AMIGA successfully recovers the known task composition from label supervision alone, and achieves an explanation accuracy of 0.99 and 1.00 of AUCROC score on two synthetic datasets with known ground-truth explanations. Although black-box GNNs remain stronger on most real-world benchmarks, AMIGA narrows the gap while providing an exact, interpretable decomposition of every prediction.
Motif- and Subgraph-Based Graph Representations. Recurring subgraphs, or motifs, capture higher-order structure in complex networks (Milo et al., 2002). Standard message-passing GNNs are bounded by the 1-WL test and can therefore fail to distinguish graphs that differ in simple substructures, such as triangles (Xu et al., 2018; Morris et al., 2019; Chen et al., 2020). Subgraph- and motif-aware methods address this limitation by augmenting nodes with local substructure counts (Bouritsas et al., 2023), processing collections of subgraphs (Bevilacqua et al., 2022), or constructing motif vocabularies for richer node and graph representations (Yu & Gao, 2022; Wang et al., 2023; 2025). Similarly to previous work integrating motif vocabularies, AMIGA achieves this whilst keeping the feature and interaction effects separate, enabling model transparency by design.
3 PRELIMINARIES
3.1 GRAPH NEURAL ADDITIVE MODELS
Consider a graph , where each node has a feature vector . GNANs (Bechler-Speicher et al., 2024) learn one univariate shape function , usually implemented as an MLP, for each feature , together with a shared univariate function that controls how information is weighted across the graph. Let denote the shortest-path distance from a node to a node , and let be the number of nodes at distance of node . GNAN assigns node the feature-wise representation:
A later extension to this framework, namely G-NAMRFF (Siddartha Reddy et al., 2025), replaces GNAN's all-pairs distance weighting with a polynomial graph filter . For each node , it applies an RFF-parameterized univariate response to every filtered feature coordinate and computes . See Siddartha Reddy et al. (2025) for details. For graph-level prediction, both models sum the node-wise representations into followed by a task-specific activation function, like the sigmoid.
To explain a prediction, GNANs extract the importance score of node i by summing Equation 1 over features and over every node in the graph, as follows:
3.2 LIMITATIONS OF CURRENT GRAPH NEURAL ADDITIVE MODELS
Both GNAN and G-NAMRFF share these limitations:
Node-wise relevance scores are blurred. GNAN computes the relevance score of node i by aggregating feature contributions from all nodes j, weighted by their distance from i, see Equation 2. Consequently, this score does not represent node i's own feature contribution, but in conjunction with every other node in the graph. For example, a node with zero feature contribution on its own can receive a non-zero relevance score just because it is close to a node with a positive score. Figure 1a illustrates this case: node u carries positive contribution , whilst node v carries none . With a distance weighting of one from a node to itself and 0.5 between u and v, Equation 2 gives and , even though the only nonzero feature contribution originates from u. G-NAMRFF faces a similar issue, as it mixes neighboring features within its finite receptive field before assigning relevance scores.
GNAN and G-NAMRFF can miss relevant topological information. GNAN represents topology through shortest-path distance. This can identify how far nodes lie from one another, but it does not determine which sub-

(a) GNAN's local explanation.

(b) and the triangular prism.
Figure 1: Two limitations of GNAN: (a) node relevance mixes neighboring feature contributions; (b) shortest-path profiles cannot distinguish from the triangular prism.
graphs connect them. For instance, Figure 1b shows an example of the graph and the triangular prism, where both have six nodes with the same distance profile from every node. Hence, Equation 1 scores them identically for every and , even though only the prism contains a triangle. Laplacian filtering does not resolve this limitation in general: with constant node features, both graphs are 3-regular, so and G-NAMRFF also maps them identically.
Training-only motif discovery
Graphs
Degree-preserving
randomized graphs

If statistically significant, select P as a motif
Node participation:
Channels → Graph prediction
Visualizing the model
feature contribution
Figure 2: Overview of AMIGA. Left: motifs are selected when they occur significantly more often than in randomly rewired training graphs with unchanged node degrees. Each node is then described by its participation in the selected motifs. Center: each node contribution is decomposed into feature, structural, and feature–motif interaction channels, and then pooled into the graph score. Right: this decomposition represents the model-level explanation of AMIGA, and enables full model transparency by independently inspecting feature, structural, and interaction contributions, allowing the model’s computations to be exactly reconstructed.
Features, topology, and interaction effects are mixed. GNAN combines the feature and distance function multiplicatively. This product, however, does not separate the effect of features from that of topological information, and how these interact. Consider the following example, with and . Then, yields which is composed of a constant term, a feature-only term, a distance-only term, and a joint term. Crucially, all these terms are implicit in the multiplication. In addition, the individual factors also lack a fixed scale, such that for any nonzero , . This implies that, although the two univariate functions and hence the explanations change, the prediction remains the same. Interpreting their absolute magnitudes is, therefore, difficult and requires an explicit reference convention. G-NAMRFF replaces the GNAN product with , but features and topology have already been mixed inside its argument, and therefore the same argument above applies.
4 AMIGA: ATTRIBUTE-MOTIF INTERACTION GRAPH ADDITIVE MODEL
Figure 2 summarizes AMIGA, which replaces distance-based structural summaries with a motif vocabulary and decomposes each node contribution into feature, structural, and interaction effects. Using the training set only, AMIGA selects induced motifs that occur significantly more often than in randomized training graphs that preserve the degree of every node. The resulting vocabulary P is fixed and used unchanged for validation and test graphs. Each node v is represented by its attributes and its normalized motif-membership counts . AMIGA then computes
The three terms capture feature, structural, and feature–motif interaction contributions. Their shape functions are centered under a graph-balanced training reference, yielding node-local contributions that reconstruct exactly.
4.1 MOTIF DISCOVERY AND NODE PARTICIPATION
Using only, we enumerate connected, unlabeled graphlets with and count their induced occurrences. We retain candidates whose training-set counts are enriched relative to degree-preserving rewired replicas after Benjamini–Hochberg correction at level . The resulting vocabulary is frozen for validation and test graphs. Appendix B.2 gives the empirical test, enumeration settings, vocabulary sizes, and runtimes.
For , let denote its induced occurrences and let . We use , with and estimated from the training nodes.
The logarithm compresses large counts, while standardization aligns motif scales. Raw counts and occurrences are retained to localize the resulting explanations.
4.2 FEATURE, STRUCTURAL, AND INTERACTION CHANNELS
Each channel is built from centered univariate shape functions, defined precisely in Section 4.3:
The interaction therefore expands as . Accordingly, the node-level interaction contribution is . Every interaction term involves one feature and one motif. The model learns interaction shapes, while exposing all dM feature-motif pairs. Although the dM pairwise functions could instead be learned directly, we favor the factorized form since humans can only track a few items at once (Cowan, 2001). This keeps the number of independently inspectable functions traceable as d and M grow. The uncentered functions , , , and are parameterized by small univariate MLPs for numerical features and motif coordinates. For categorical features, and are scalar lookup tables with one learned value per category; when a categorical variable is supplied as a one-hot vector, the full group is treated as a single variable. The centered shape functions used above are obtained from these uncentered functions as described in Section 4.3, and each can be inspected directly.
4.3 GRAPH-BALANCED CANONICALIZATION
Equation 3 separates the node score into feature, structural, and interaction channels. This decomposition is not identifiable because constants can be shifted between the channels and the intercept without changing the represented function. We remove this ambiguity by centering the channels. Centering, however, requires choosing a reference distribution. A simple average over all training nodes would give larger graphs greater weight. We therefore define a graph-balanced reference distribution by averaging first within each graph and then across graphs:
These averages define the graph-balanced empirical distributions and of features and motif participation, respectively. We center every feature shape under and every motif shape under . For example,
and analogously for and . Hence . For categorical variables, these expectations use their graph-balanced empirical frequencies.
Let be the product of the graph-balanced marginals. Under , and are sampled independently. We use as the reference distribution for centering, which makes the separation into feature, structural, and interaction components unique. This choice does not assume that and are independent in the observed data. Their empirical joint distribution may contain dependencies and may exclude some pairs included in the product support.
Theorem 1 (Canonical modality decomposition) Let and . For any function , there exist unique functions , , and and a unique constant such that, for every ,
with
The four terms are pairwise orthogonal under the inner product .
For , the canonical interaction is
The proof is given in Appendix A.1. For the centered model, Theorem 1 yields , , , and . Hence, the three modality-level channels , , and are uniquely determined on the empirical product support. This uniqueness applies to the channels as whole functions. It does not extend to their coordinate-wise representations through , , , and , since different collections of shape functions may produce the same modality-level channels. Therefore, each term exactly describes the contribution produced by the fitted parameterization, although an equivalent parameterization may distribute the same interaction differently across feature–motif pairs.
To promote sparse explanations and choose a balanced magnitude within the remaining reciprocal-rescaling class, we minimize , where sums the graph-balanced mean absolute values of the centered shape responses and . Along the rescaling , , the interaction and every feature–motif contribution remain unchanged, while the equal penalties on the two factors favor a balanced scale; Appendix A.3 gives the full penalty and calculation.
4.4 FACTORIZED MOTIF EXPLANATIONS
Factorized Motif Explanations (FME) read the quantities already computed by the model. No surrogate model or post-hoc approximation is required.
Graph and node explanations. The three graph-level channel totals are
which reconstruct the score, . At node level, FME reports the three terms , , , or their sum .
Motif and feature–motif explanations. The contribution of motif type m to the structural channel, and of feature–motif pair to the interaction, are
with and . The first identity ranks reusable motif templates; the second produces a matrix of feature–motif contributions.
Exactness and occurrence explanations. The identities above exactly reconstruct the graph score and the structural and interaction channels. For each node and motif type, FME computes the change in the structural and interaction contributions of the node when motif participation moves from zero to the observed level. It then distributes this change equally across all occurrences of the motif that contain the node. Adding the zero-participation baseline terms recovers the original motif contributions. These allocations remain valid when motif occurrences overlap and are equivariant to vertex relabeling. Their definitions and verification are given in Appendix A.2. They describe the model computation and should not be interpreted as the causal effects of deleting a motif.
5 EXPERIMENTAL EVALUATION
We evaluate AMIGA along three axes: whether it recovers known feature, structural, and interaction effects; whether its explanations identify ground-truth predictive patterns; and whether its transparency preserves useful predictive performance.
Experimental Protocol. We evaluate four graph-classification datasets (Mutagenicity, NCI1, PROTEINS, and PTC-MR) and six graph-regression datasets (BA-Reg 1, BA-Reg 2, Crippen, QM9- , QM9-HOMO, and QM9- ). We compare AMIGA with standard, widely used black-box GNNs like GCN (Kipf & Welling, 2016), GIN (Xu et al., 2018), and Graph Transformer (Shi et al., 2020), and

Figure 3: AMIGA can recover known effects from only label supervision. (a) True and learned node-level channel contributions. (b) Graph-level channel totals for one test graph. (c) Node-level total contributions for the same graph. (d–g) Active and inactive main effects. (h–i) True and learned , shown with common axes and color scale.
with the interpretable GNAN and G-NAMRFF baselines under the same splits and preprocessing. For each seed, motif discovery, normalization, and centering use only the corresponding training split. Checkpoints are selected on validation performance. Results are mean standard deviation over five seeds, using AUROC for classification and MAE for regression. Dataset statistics and preprocessing are reported in Appendix B.1; optimization, hyperparameter selection, and training details are given in Appendix B.3.
5.1 RECOVERING KNOWN EFFECTS
We first test whether graph-level supervision suffices to recover a known node-level decomposition. We generate 2,000 Erdős–Rényi graphs with 12 nodes and edge probability sampled uniformly from [0.1, 0.4]. Node features are independent of the graph topology. Let and denote the numbers of induced three-node paths and triangles containing node . The target is
where with equals of the standard deviation of the training targets. We fix the motif vocabulary to three-node paths and triangles, isolating effect recovery from motif discovery.
For comparison with the ground truth, we exactly re-anchor the learned components at and , using their resulting uncentered forms, leaving every prediction unchanged. Because all graphs have 12 nodes, the resulting per-node constant can be absorbed into the graph intercept. Under this reference, only , and are active; , and all other feature–motif interactions are zero. We report in Appendix B.5 the experimental details and prediction-preserving zero-reference transformation used in this analysis.
AMIGA obtains a test MAE of , and Figure 3 reports a visualization example. Over test nodes, the RMSEs of the recovered feature, structural, and interaction contributions are 0.088, 0.037, and 0.065, respectively. The learned shapes recover the sinusoidal feature effect, the saturating path effect, and the sign-changing triangle interaction, while the inactive effects remain near zero.
5.2 EXPLANATION PLAUSIBILITY
Faithfulness follows directly from the additive identities in Section 4.4, as the reported contributions reconstruct the model score exactly. We additionally measure plausibility, i.e., how well the explanation recovers a “ground-truth” pattern (Longa et al., 2025). This measures the agreement between the provided node-wise explanations and the
Table 1: Explanation AUROC on BA-Reg 1 and BA-Reg 2, averaged over 5 seeds.
| Model | BA-Reg 1 | BA-Reg 2 |
|---|---|---|
| GIN + GNNExpl. | 0.94 ± 0.11 | 0.72 ± 0.19 |
| GIN + IG | 0.88 ± 0.11 | 0.22 ± 0.11 |
| GNAN | 0.71 ± 0.12 | 0.45 ± 0.16 |
| G-NAMRFF | 0.50 ± 0.11 | 0.54 ± 0.08 |
| AMIGA (ours) | 0.99 ± 0.02 | 1.00 ± 0.00 |
data ground truth, measured via the AUROC metric. This evaluation is restricted to BA-Reg 1 and BA-Reg 2, since they are the only datasets with annotated ground truth explanations. The node-scoring rules, post-hoc baseline settings, and per-graph AUROC aggregation are detailed in Appendix B.4. As shown in Table 1, AMIGA achieves an AUROC of on BA-Reg 1 and on BA-Reg 2, outperforming both interpretable baselines and the post-hoc GNNExplainer (Ying et al., 2019) and Integrated Gradients (Sundararajan et al., 2017) methods on both tasks.
5.3 PREDICTIVE PERFORMANCE
Table 2 reports predictive performance across the ten benchmarks. AMIGA improves on GNAN on eight of the ten benchmarks and on G-NAMRFF on nine. It outperforms both interpretable baselines on three of four classification datasets and obtains the lowest overall MAE on BA-Reg 1 and BA-Reg 2. Black-box GNNs remain stronger on most real-world tasks, yet AMIGA narrows the performance gap in eight of the ten datasets while retaining an exact decomposition of every prediction into feature, structural, and interaction contributions. Training-time results in Appendix B.3 show that AMIGA has the lowest runtime on nine of ten datasets. Channel ablations in Appendix C show that the full model is best on nine of ten datasets and isolate complementary roles for the interaction channel on BA-Reg 1 and the structural channel on BA-Reg 2.
Table 2: Predictive performance averaged over five seeds. Classification rows report test AUROC ( ); regression rows report test MAE ( ). Bold marks the best result within each model group.
| Dataset | Black-box models | Interpretable models | ||||
|---|---|---|---|---|---|---|
| GCN | GIN | GTrans | GNAN | G-NAMRFF | AMIGA (ours) | |
| Graph classification: AUROC ↑ | ||||||
| Mutagenicity | 0.851 ± 0.005 | 0.868 ± 0.018 | 0.849 ± 0.010 | 0.751 ± 0.002 | 0.698 ± 0.068 | 0.828 ± 0.015 |
| NCI1 | 0.840 ± 0.017 | 0.868 ± 0.013 | 0.807 ± 0.007 | 0.651 ± 0.045 | 0.734 ± 0.042 | 0.768 ± 0.020 |
| PROTEINS | 0.791 ± 0.010 | 0.811 ± 0.012 | 0.697 ± 0.020 | 0.821 ± 0.008 | 0.786 ± 0.036 | 0.733 ± 0.046 |
| PTC-MR | 0.524 ± 0.037 | 0.518 ± 0.044 | 0.593 ± 0.056 | 0.501 ± 0.029 | 0.555 ± 0.056 | 0.574 ± 0.026 |
| Graph regression: MAE ↓ | ||||||
| BA-Reg 1 | 231.6 ± 57.9 | 108.4 ± 23.8 | 327.0 ± 8.4 | 372.1 ± 16.5 | 441.2 ± 16.3 | 4.2 ± 1.2 |
| BA-Reg 2 | 0.43 ± 0.03 | 0.17 ± 0.14 | 4.91 ± 0.00 | 8.87 ± 8.83 | 4.91 ± 0.00 | 0.01 ± 0.01 |
| Crippen | 0.28 ± 0.03 | 0.18 ± 0.03 | 0.62 ± 0.06 | 0.88 ± 0.10 | 1.20 ± 0.22 | 0.46 ± 0.18 |
| QM9-α | 0.67 ± 0.02 | 0.44 ± 0.01 | 2.14 ± 0.10 | 2.66 ± 0.10 | 3.46 ± 0.13 | 3.35 ± 0.03 |
| QM9-HOMO | 0.16 ± 0.00 | 0.12 ± 0.00 | 0.14 ± 0.00 | 0.35 ± 0.04 | 0.33 ± 0.03 | 0.24 ± 0.01 |
| QM9-μ | 0.64 ± 0.00 | 0.53 ± 0.01 | 0.56 ± 0.00 | 0.87 ± 0.01 | 0.91 ± 0.03 | 0.85 ± 0.01 |
6 FROM GLOBAL RULES TO A LOCAL EXPLANATION
Next, we showcase an example of how AMIGA provides explanations for the Mutagenicity dataset. Explanations are read directly from the model, without a surrogate or post-hoc approximation. Because AMIGA channels are centered using graph-balanced training marginals, zero defines a common reference that gives every training graph equal weight, regardless of its size; positive and negative contributions respectively raise and lower the model score relative to this reference.
Global Decision Rules. Figure 4 reveals a sparse, context-dependent decision rule. Most nonzero feature and structural effects are concentrated in a small set of atom types and motifs. For motif , the structural effect increases with node participation . Its overall motif-related contribution, however, also depends on the participating atom, because the interaction changes both magnitude and sign across atom types. As participation increases, the interaction becomes positive for fluorine and negative for iodine, bromine, and sulfur. The same motif can therefore raise or lower the model score depending on the atom in which it occurs. The feature-only and structure-only channels capture the corresponding main effects, while the interaction channel additionally captures how the effect of motif participation varies across atom types.
Local Explanations. Figure 5 contextualizes the global rule above over a molecule. Each row decomposes an atom contribution into feature, structural, and interaction effects. The nitrogen node

Figure 4: Global response functions learned by AMIGA on Mutagenicity. Left: centered atom-type effects . Center: structural effects against the number of motif occurrences containing a node. Right: interaction between atom identity and motif . Positive and negative values raise and lower the positive-class logit relative to the graph-balanced reference.
contributes -0.40 through its atom type. The dominant repeated signal is the bromine interaction identified above: it contributes -0.64 to each bromine node , , and , driving each node total to -0.87. At graph level, the feature channel contributes , while the structural contributions largely cancel, yielding . The interaction channel dominates with . Hence , and adding the bias term gives the exact graph score . To conclude, this example shows how to contextualize the global decision rule above into a local interpretation of each node's relevance, for a given molecular graph.
| f[atom] | (M1) | (M2) | (M3) | (M4) | (atom,M1) | (atom,M2) | (atom,M3) | (atom,M4) | z = F+S+I | |
|---|---|---|---|---|---|---|---|---|---|---|
| v0·C | 0.07 | 0.47 | -0.54 | 0.30 | 0.03 | 0.03 | -0.16 | 0.07 | 0.01 | 0.29 |
| v1·N | -0.40 | 0.30 | -0.45 | 0.30 | 0.03 | -0.23 | 0.28 | -0.16 | -0.03 | -0.35 |
| v2·Br | -0.01 | -0.33 | -0.19 | 0.30 | 0.08 | -0.26 | 0.35 | -0.64 | -0.16 | -0.87 |
| v3·Br | -0.01 | -0.33 | -0.19 | 0.30 | 0.08 | -0.26 | 0.35 | -0.64 | -0.16 | -0.87 |
| v4·Br | -0.01 | -0.33 | -0.19 | 0.30 | 0.08 | -0.26 | 0.35 | -0.64 | -0.16 | -0.87 |
| v5·O | -0.17 | -0.39 | 0.61 | -0.25 | 0.08 | 0.28 | -0.55 | 0.35 | -0.03 | -0.08 |
| v6·O | -0.17 | -0.39 | 0.61 | -0.25 | 0.08 | 0.28 | -0.55 | 0.35 | -0.03 | -0.08 |
| Σ | -0.70 | -1.01 | -0.34 | 1.02 | 0.45 | -0.42 | 0.05 | -1.31 | -0.57 | -2.83 |
| S(G) | 0.67 | |||||||||
| -2.16 | ||||||||||
Figure 5: Example of the exact AMIGA decomposition for one molecular graph. Rows correspond to atoms; columns report the feature contribution, motif contributions, atom–motif interaction contributions, and node total . The bottom row aggregates each component across nodes. Adding the bias reconstructs exactly. Outlined cells mark the contributions discussed in the text.
7 CONCLUSION
We introduced AMIGA, an interpretable-by-design graph model that replaces distance-only summaries with mined motifs. Graph-balanced centering yields canonical feature, structural, and interaction channels, while Factorized Motif Explanations reconstruct predictions exactly from graph to feature–motif level. Across ten benchmarks, AMIGA outperformed GNAN and G-NAMRFF on eight and nine datasets, respectively. It also recovered known generative effects from graph-level supervision and identified ground-truth explanatory nodes on two synthetic tasks. These results show that richer structural modeling can coexist with exact model transparency.
Limitations. These results open several directions for extending AMIGA. Enriching the motif vocabulary and exploring more expressive, explicitly decomposable interactions may help close the remaining accuracy gap with black-box GNNs on several real-world benchmarks. Scalable counting algorithms or sampling-based motif estimates could extend the vocabulary beyond the small induced graphlets supported by the current exact enumeration procedure. Finally, Factorized Motif Explanations provide a faithful decomposition of the learned score and a starting point for formulating hypotheses about motif effects. Testing these hypotheses through controlled graph interventions, with explicit causal assumptions, is a promising direction toward causal analysis; the current allocations themselves do not estimate causal effects.
AI USE STATEMENT
In this work, we used OpenAI Codex with the GPT-5.6 Sol model. Within the research workflow, Codex assisted with interpreting model outputs and presenting the corresponding model explanations. It also helped draft portions of the manuscript, edit the text for clarity and readability, and prove mathematical claims by drafting portions of the proofs presented in Appendix A. The research questions, hypotheses, theoretical framework, mathematical claims, methodology, and experiments were developed by the authors.
The authors independently reviewed and verified all AI-assisted interpretations against the underlying model outputs, checked every step of each AI-assisted proof, and revised the final explanations and arguments. We did not use generative AI to implement methods, generate synthetic data, clean or reformat datasets, translate content, run experiments, or produce the reported experimental results. Generative AI performed no analysis of data or results beyond the assistance with model-output interpretation disclosed above. All AI-assisted content was reviewed and verified by the authors. We take responsibility for the final content of this work, including all text, interpretations, mathematical claims, proofs, explanations, and other artifacts produced with the aid of generative AI.
REPRODUCIBILITY STATEMENT
Sections 4.1–4.4 define the model, canonicalization procedure, and explanation identities. Appendix A provides the proofs and technical derivations. Appendix B reports the datasets, preprocessing, motif-discovery procedure, optimization settings, hyperparameter selection, random seeds, and evaluation protocols. Appendix C provides the channel ablations.
REFERENCES
Steve Azzolin, Sagar Malhotra, Andrea Passerini, and Stefano Teso. Beyond topological self-explainable GNNs: A formal explainability perspective. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 2045–2080. PMLR, 13–19 Jul 2025. URL https://proceedings.mlr.press/v267/azzolin25a.html.
Steve Azzolin, Stefano Teso, Bruno Lepri, Andrea Passerini, and Sagar Malhotra. GNN explanations that do not explain and how to find them. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=HBcgLe6NZD.
Davide Bacciu, Federico Errica, Alessio Micheli, and Marco Podda. A gentle introduction to deep learning for graphs. Neural Networks, 129:203–221, 2020. ISSN 0893-6080. doi: https://doi.org/10.1016/j.neunet.2020.06.006. URL https://www.sciencedirect.com/science/article/pii/S0893608020302197.
Maya Bechler-Speicher, Amir Globerson, and Ran Gilad-Bachrach. The intelligible and effective graph neural additive network. Advances in Neural Information Processing Systems, 37:90552–90578, 2024.
Maya Bechler-Speicher, Andrea Zerio, Maor Huri, Marie Vibeke Vestergaard, Ran Gilad-Bachrach, Tine Jess, Samir Bhatt, and Aleksejs Sazonovs. Superman: Interpretable and expressive networks over temporally sparse heterogeneous data. arXiv preprint arXiv:2505.19193, 2025.
Beatrice Bevilacqua, Fabrizio Frasca, Derek Lim, Balasubramaniam Srinivasan, Chen Cai, Gopinath Balamurugan, Michael M. Bronstein, and Haggai Maron. Equivariant subgraph aggregation networks. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=dFbKQaRk15w.
Giorgos Bouritsas, Fabrizio Frasca, Stefanos Zafeiriou, and Michael M. Bronstein. Improving graph neural network expressivity via subgraph isomorphism counting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(1):657–668, 2023. doi: 10.1109/TPAMI.2022.3154319.
Zhengdao Chen, Lei Chen, Soledad Villar, and Joan Bruna. Can graph neural networks count substructures? Advances in neural information processing systems, 33:10383–10395, 2020.
Marc Christiansen, Lea Villadsen, Zhiqiang Zhong, Stefano Teso, and Davide Mottin. How faithful are self-explainable gnns? arXiv preprint arXiv:2308.15096, 2023.
Nelson Cowan. The magical number 4 in short-term memory: a reconsideration of mental storage capacity. Behavioral & Brain Sciences, 24(1):87, 2001.
Trevor Hastie and Robert Tibshirani. Generalized additive models. Statistical science, 1(3):297–310, 1986.
Xinyue Hu, Zenan Sun, Yi Nian, Yichen Wang, Yifang Dang, Fang Li, Jingna Feng, Evan Yu, Cui Tao, et al. Self-explainable graph neural network for alzheimer disease and related dementias risk prediction: Algorithm development and validation study. JMIR aging, 7(1):e54748, 2024.
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
Rosmaël Zidane Lekeufack Foulefack and Alessandro Marchetto. A rapid review on graph-based learning vulnerability detection. In International Conference on the Quality of Information and Communications Technology, pp. 355–372. Springer, 2024.
Antonio Longa, Steve Azzolin, Gabriele Santin, Giulia Cencetti, Pietro Lio, Bruno Lepri, and Andrea Passerini. Explaining the explainers in graph neural networks: a comparative study. ACM Computing Surveys, 57(5):1–37, 2025.
Siqi Miao, Mia Liu, and Pan Li. Interpretable and generalizable graph learning via stochastic attention mechanism. In International conference on machine learning, pp. 15524–15543. PMLR, 2022.
George A Miller. The magical number seven, plus or minus two: Some limits on our capacity for processing information. Psychological review, 63(2):81, 1956.
Ron Milo, Shai Shen-Orr, Shalev Itzkovitz, Nadav Kashtan, Dmitri Chklovskii, and Uri Alon. Network motifs: simple building blocks of complex networks. Science, 298(5594):824–827, 2002.
Christopher Morris, Martin Ritzert, Matthias Fey, William L Hamilton, Jan Eric Lenssen, Gaurav Rattan, and Martin Grohe. Weisfeiler and leman go neural: Higher-order graph neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pp. 4602–4609, 2019.
Christopher Morris, Nils M Kriege, Franka Bause, Kristian Kersting, Petra Mutzel, and Marion Neumann. Tudataset: A collection of benchmark datasets for learning with graphs. arXiv preprint arXiv:2007.08663, 2020.
Alessio Ragno, Biagio La Rosa, and Roberto Capobianco. Prototype-based interpretable graph neural networks. IEEE Transactions on Artificial Intelligence, 5(4):1486–1495, 2024. doi: 10.1109/TAI.2022.3222618.
Alessio Ragno, Marc Plantevit, and Céline Robardet. On logic-based self-explainable graph neural networks. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 116138–116166. Curran Associates, Inc., 2025. doi: 10.52202/085713-3873. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/a8c893712cb7858e49631fb03c941f8d-Paper-Conference.pdf.
Raghunathan Ramakrishnan, Pavlo O Dral, Matthias Rupp, and O Anatole Von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific data, 1(1):140022, 2014.
Cynthia Rudin. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature machine intelligence, 1(5):206–215, 2019.
Yoav Kor Sade, Arvindh Arun, Rishi Puri, Steffen Staab, and Maya Bechler-Speicher. Ex-graphrag: Interpretable evidence routing for graph-augmented llms. arXiv preprint arXiv:2605.21994, 2026.
Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE transactions on neural networks, 20(1):61–80, 2008.
Yunsheng Shi, Zhengjie Huang, Shikun Feng, Hui Zhong, Wenjin Wang, and Yu Sun. Masked label prediction: Unified message passing model for semi-supervised classification. arXiv preprint arXiv:2009.03509, 2020.
Thummaluru Siddartha Reddy, Vempalli Naga Sai Saketh, and Mahesh Chandran. Interpretable and parameter efficient graph neural additive models with random fourier features. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 97717–97743. Curran Associates, Inc., 2025. doi: 10.52202/085713-3266. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/8caa0e69d7e5bef025e118da9ff35a6c-Paper-Conference.pdf.
Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. In International conference on machine learning, pp. 3319–3328. PMLR, 2017.
Anna Varbella, Kenza Amara, Blazhe Gjorgiev, Mennatallah El-Assady, and Giovanni Sansavini. Powergraph: A power grid benchmark dataset for graph neural networks. Advances in Neural Information Processing Systems, 37:110784–110804, 2024.
Runze Wang, Yuting Ma, Xingyue Liu, Zijie Xing, and Yanming Shen. Motif-driven molecular graph representation learning. Expert Systems with Applications, 269:126484, 2025.
Yifei Wang, Shiyang Chen, Guobin Chen, Ethan Shurberg, Hang Liu, and Pengyu Hong. Motif-based graph representation learning with application to chemical molecules. In Informatics, volume 10, pp. 8. MDPI, 2023.
Sebastian Wernicke and Florian Rasche. Fanmod: a tool for fast network motif detection. Bioinformatics, 22(9):1152–1153, 2006.
Felix Wong, Erica J Zheng, Jacqueline A Valeri, Nina M Donghia, Melis N Anahtar, Satotaka Omori, Alicia Li, Andres Cubillos-Ruiz, Aarti Krishnan, Wengong Jin, et al. Discovery of a structural class of antibiotics with explainable deep learning. Nature, 626(7997):177–185, 2024.
Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? arXiv preprint arXiv:1810.00826, 2018.
Zhitao Ying, Dylan Bourgeois, Jiaxuan You, Marinka Zitnik, and Jure Leskovec. Gnnexplainer: Generating explanations for graph neural networks. Advances in neural information processing systems, 32, 2019.
Zhaoning Yu and Hongyang Gao. Molecular representation learning via heterogeneous motif graph neural networks. In International conference on machine learning, pp. 25581–25594. PMLR, 2022.
Jiaxing Zhang, Zhuomin Chen, Hao Mei, Longchao Da, Dongsheng Luo, and Hua Wei. Regexplainer: Generating explanations for graph neural networks in regression tasks. Advances in Neural Information Processing Systems, 37:79282–79306, 2024.
Zaixi Zhang, Qi Liu, Hao Wang, Chengqiang Lu, and Cheekong Lee. Protgnn: Towards self-explaining graph neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 36, pp. 9127–9135, 2022.
A PROOFS AND TECHNICAL DETAILS
A.1 PROOF OF THEOREM 1
All expectations below are taken with respect to the graph-balanced marginals or their product . Define
The last identity gives Equation 4. Moreover,
For every ,
The same calculation gives
The four components are pairwise orthogonal under . The zero-mean identities make each nonconstant component orthogonal to the constant component. For the remaining pairs,
For uniqueness, subtract two decompositions satisfying the stated constraints. Denote the differences by , , , and . They are pairwise orthogonal by the argument above and satisfy
Taking the -expectation of the square gives
Every term is nonnegative, so every term is zero. Each point in the empirical support has positive mass. Therefore,
for every , and , respectively. This proves uniqueness.
Finally, consider and define
Then
The four terms are, respectively, the constant, feature, structural, and interaction components. The last term has zero graph-balanced mean in either argument. By uniqueness,
A.2 OCCURRENCE ALLOCATION AND PERMUTATION INVARIANCE
Let denote the transformed value at zero motif participation, and define
For an occurrence , define
Since node v belongs to exactly occurrences of motif m,
where the final equality follows because implies . The same argument gives
Adding the zero-participation terms therefore yields
This argument applies separately to each motif type and is unaffected by overlapping occurrences. Finally, under any vertex permutation , the map is a bijection between corresponding motif occurrences and preserves , , and . Hence graph-level contributions are invariant, while node and occurrence explanations are transported equivariantly.
A.3 SPARSITY PENALTY AND RECIPROCAL-SCALE BALANCING
The sparsity penalty used in the training objective is
The terms involving and promote sparse main-effect explanations. The terms involving and also select a magnitude within the reciprocal-rescaling class of the factorized interaction.
Define
Under and , the interaction remains unchanged, while its contribution to the penalty becomes
For , the arithmetic–geometric mean inequality gives
with equality when
Thus, among equivalent factorizations, the penalty selects the magnitude that equalizes the two penalized factors. The global sign remains unidentified, but it cancels in every product and therefore does not affect any reported feature–motif contribution. If either or is zero, the interaction vanishes almost everywhere under the reference distribution, and its scale is immaterial.
B EXPERIMENTAL DETAILS
B.1 DATASETS AND PREPROCESSING
We use Mutagenicity, NCI1, PROTEINS, and PTC-MR from TUDataset Morris et al. (2020) for binary classification, loaded with PyTorch Geometric 2.7.0. Regression benchmarks comprise BA-Reg 1, BA-Reg 2, and Crippen from Zhang et al. (2024), together with the , , and HOMO targets from QM9 Ramakrishnan et al. (2014). BA-Reg 1 targets the sum of node features inside planted house motifs; BA-Reg 2 targets the number of planted houses. Crippen targets the dimensionless Wildman–Crippen log . QM9 reports in Debye, in , and HOMO energy in eV. Label 1 defines the positive class; for Mutagenicity, it denotes non-mutagenic compounds.
We remove self-loops and represent each input as a simple undirected graph. For AMIGA, each one-hot group is treated as one categorical variable and mapped through a learned lookup table. Numerical features are standardized coordinate-wise using training-node statistics, with unit scale for constant coordinates. Regression targets are standardized on the training graphs and returned to their original units before computing MAE. All statistics, motif discovery, and motif normalization are fitted on the training split and then frozen.
We use a 70/15/15 train/validation/test split for each of five seeds, . Each seed determines both the data split and model training. The three QM9 tasks share the same graph indices within each seed. Reported results are averaged over these five seeds, with preprocessing fitted independently on each training split.
Table 3: Dataset statistics. B and R denote binary classification and regression. Edges count undirected pairs; feature dimensions are shown before and after AMIGA encoding.
| Dataset | Task | Train/Val/Test | Avg. nodes | Avg. edges | Features |
|---|---|---|---|---|---|
| Mutagenicity | B | 3035/651/651 | 30.32 | 30.77 | 14 → 1 |
| NCI1 | B | 2877/616/617 | 29.87 | 32.30 | 37 → 1 |
| PROTEINS | B | 779/167/167 | 39.06 | 72.82 | 4 → 2 |
| PTC-MR | B | 240/52/52 | 14.29 | 14.69 | 18 → 1 |
| BA-Reg 1 | R | 700/150/150 | 25.00 | 25.00 | 10 → 10 |
| BA-Reg 2 | R | 700/150/150 | 120.00 | 128.90 | 10 → 10 |
| Crippen | R | 788/169/170 | 25.66 | 26.04 | 14 → 1 |
| QM9 (μ, α, HOMO) | R | 91581/19625/19625 | 18.03 | 18.66 | 11 → 7 |
B.2 MOTIF DISCOVERY PROTOCOL
For a candidate graphlet , define
and let
be its total training-set count. If denotes the corresponding count in the -th degree-preserving randomized training set, its one-sided empirical -value is
Candidates are selected when their Benjamini–Hochberg adjusted -value is at most and their observed count exceeds the null mean.
We consider all 29 connected, non-isomorphic unlabeled graphlets with . Their induced occurrences are enumerated exactly over each seed-specific training split using igraph's ESU implementation (Wernicke & Rasche, 2006).
Each null replica independently rewires every training graph from its original state using simple-graph double-edge swaps, with attempts. Degrees are preserved, while self-loops and
Table 4: Selected motif-vocabulary sizes across the five seed-specific training splits. The three QM9 targets share the same seed-specific vocabulary because they use identical graph indices within each seed.
| Dataset | Selected | Dataset | Selected |
|---|---|---|---|
| Mutagenicity | 4 | BA-Reg 1 | 7 |
| NCI1 | 7 | BA-Reg 2 | 5 |
| PROTEINS | 21 | Crippen | 4 |
| PTC-MR | 6 | QM9 (all targets) | 7 |
Table 5: Wall-clock time required to enumerate all 29 candidate graphlets, averaged over the five seed-specific training splits. The QM9 time is averaged over the three equivalent measurements.
| Dataset | Selected motifs | Enumeration time (s) |
|---|---|---|
| Mutagenicity | 4 | 0.148 |
| NCI1 | 7 | 0.128 |
| PROTEINS | 21 | 0.164 |
| PTC-MR | 6 | 0.005 |
| BA-Reg 1 | 7 | 0.044 |
| BA-Reg 2 | 5 | 0.580 |
| Crippen | 4 | 0.028 |
| QM9 (all targets) | 7 | 2.523 |
parallel edges are forbidden. We generate replicas with seed 31415. A candidate is selected when its Benjamini–Hochberg adjusted enrichment -value is at most 0.05 and its observed count exceeds the null mean. No vocabulary cap is imposed. We repeat motif discovery independently for each evaluation seed. For seed , candidate counts, degree-preserving null graphs, and motif selection are computed using only the corresponding training split . The resulting vocabulary and motif-normalization statistics are frozen and applied to the validation and test graphs of the same split. No validation or test graph is used for motif discovery or normalization.
For each selected motif, the mean and population standard deviation of are computed over all training nodes. Standard deviations below are set to one. The vocabulary and normalization statistics are then frozen. Synthetic effect recovery bypasses discovery and uses a fixed vocabulary containing the three-node path and triangle.
We additionally measure the wall-clock time required for this exact enumeration over the complete training split. As reported in Table 5, enumerating all 29 candidate graphlets takes less than 0.6 seconds on every dataset except QM9, where all 91,581 training graphs are processed in 2.52 seconds.
B.3 TRAINING AND MODEL SELECTION
All models are trained with AdamW for at most 500 epochs, with early-stopping patience 50. We use binary cross-entropy with logits for classification and mean squared error on standardized targets for regression. Graphs are shuffled at each epoch, and gradients are clipped to a global norm of five. For AMIGA, graph-balanced centering statistics are refreshed before training and after each epoch.
Checkpoints are selected using the validation objective employed during training. Improvements smaller than are ignored, and the best checkpoint is restored for test evaluation. Final regression performance is reported as MAE in the original target scale.
For each dataset, we randomly sample and evaluate 30 hyperparameter configurations for AMIGA, GNAN, GCN, GIN, and Graph Transformer. Configurations are sampled from the search space defined by depth , hidden dimension , dropout , learning rate , weight decay , and batch size . For AMIGA, the search space additionally includes the sparsity coefficient
Table 6: Wall-clock training time in seconds, averaged over the five final runs and rounded to the nearest second. Hyperparameter search and motif discovery are excluded. Lower is better; the best result is bold.
| Dataset | GCN | GIN | GTrans | GNAN | G-NAMRFF | AMIGA |
|---|---|---|---|---|---|---|
| Mutagenicity | 108 ± 25 | 60 ± 22 | 51 ± 8 | 193 ± 61 | 838 ± 443 | 19 ± 9 |
| NCI1 | 99 ± 35 | 93 ± 23 | 81 ± 19 | 132 ± 46 | 958 ± 440 | 14 ± 3 |
| PROTEINS | 21 ± 9 | 16 ± 7 | 19 ± 7 | 60 ± 9 | 125 ± 41 | 7 ± 1 |
| PTC-MR | 2 ± 0 | 3 ± 1 | 4 ± 1 | 3 ± 1 | 8 ± 3 | 2 ± 1 |
| BA-Reg 1 | 43 ± 2 | 38 ± 8 | 28 ± 9 | 100 ± 29 | 119 ± 30 | 25 ± 8 |
| BA-Reg 2 | 97 ± 0 | 75 ± 23 | 37 ± 15 | 187 ± 136 | 115 ± 41 | 56 ± 8 |
| Crippen | 45 ± 4 | 45 ± 5 | 41 ± 9 | 86 ± 35 | 92 ± 0 | 6 ± 1 |
| QM9-α | 2978 ± 4 | 2688 ± 19 | 2856 ± 34 | 4512 ± 2175 | 2409 ± 859 | 240 ± 10 |
| QM9-HOMO | 2526 ± 4 | 2467 ± 6 | 2743 ± 40 | 6554 ± 1272 | 4463 ± 493 | 304 ± 103 |
| QM9-μ | 2619 ± 146 | 2595 ± 19 | 2839 ± 154 | 4718 ± 1773 | 3869 ± 1022 | 241 ± 9 |
For G-NAMRFF, we apply the same random-search protocol, independently sampling and evaluating 30 configurations for each dataset. Its search space contains random Fourier features, graph-filter steps, batch size , and learning rate . The remaining parameters are sampled as
For every dataset and model family, all 30 randomly sampled configurations are evaluated under the training protocol described above and ranked by their mean best-validation score. The selected configuration is then retrained from scratch for each of the five evaluation seeds listed in Section B.1, using the train/validation/test split generated by the corresponding seed.
Training efficiency. Table 6 reports the wall-clock training time of the selected configurations, averaged over the five final runs. AMIGA has the lowest mean runtime on nine of ten datasets; Graph Transformer is faster only on BA-Reg 2. The difference is largest on QM9, where AMIGA trains roughly one order of magnitude faster than the baselines. All models were evaluated under the same hardware conditions. These measurements cover final model training and exclude hyperparameter search and the one-time motif-discovery step.
B.4 EXPLANATION EVALUATION PROTOCOL
We evaluate node-level plausibility on every test graph. Ground-truth positive nodes are the five vertices of the planted motif in BA-Reg 1 and the union of all planted-motif vertices in BA-Reg 2; all remaining nodes are negative.
For AMIGA, nodes are ranked by the magnitude of their native contribution,
without allocating the graph intercept. For GNAN Bechler-Speicher et al. (2024) and G-NAMRFF Siddartha Reddy et al. (2025), we use the node-level relevance scores defined by their respective papers, following the original aggregation, baseline, and target-rescaling conventions.
GNNExplainer and Integrated Gradients explain the corresponding trained GIN. GNNExplainer uses PyG 2.7.0 with one object mask per node and no edge mask. The mask is optimized for 200 Adam steps with learning rate 0.01, using size and entropy penalties 1.0 and 0.1. Integrated Gradients uses an all-zero raw-feature baseline and 128 trapezoidal integration intervals. Signed feature attributions are summed per node before taking their absolute value.
For each seed, AUROC is computed separately for every graph in the corresponding test split and then averaged across test graphs with equal weight, yielding one aggregate score per seed. Table 1 reports the mean and sample standard deviation of these aggregate scores across the five training seeds .
B.5 SYNTHETIC RECOVERY DETAILS
For each of the five seeds , an independent 1,400/300/300 training/validation/test split is generated and the model is trained from scratch, with checkpoint selection based on validation RMSE.
The five runs use training seeds . Observation noise is generated independently with seed 8193 and standard deviation , equal to 10% of the population standard deviation of the clean training targets.
The experiment uses a fixed AMIGA configuration with 1–32–1 scalar MLPs, ReLU activations, and no dropout. Training uses AdamW with learning rate , weight decay , sparsity coefficient , batch size 128, and gradient clipping at five. Models train for at most 600 epochs with patience 100, and the checkpoint with the lowest validation MSE is restored.
For evaluation, the learned graph-balanced components are re-anchored at raw feature value x = 0 and raw motif count h = 0. Input preprocessing is included in the shape-function arguments. Define
and
Writing and for the training-target mean and scale, the zero-reference components in original target units are
Since every graph has 12 nodes, the corresponding intercept is
This transformation preserves predictions exactly. Node-level feature, structural, and interaction channels are obtained by summing their respective re-anchored components.
The clean ground-truth channels are
Noise is applied only to the graph target. Channel recovery is measured by RMSE over all test nodes, while graph-level accuracy is measured by MAE against the noisy targets.
Figure 3 uses training seed 11. Its local panels show the first test graph containing both motif types, selected without reference to prediction or recovery error; the recovery panel includes every test node.
C ADDITIONAL EXPERIMENTS
Table 7 isolates the feature (F), structural (S), and feature–motif interaction (I) channels. The full model obtains the best mean performance on nine of the ten datasets. The two synthetic tasks expose the distinct roles of structure and interaction. BA-Reg 1 depends on node features within planted motifs: adding I reduces MAE from 449.50 to 10.44, while combining all channels further reduces it to 4.13. In contrast, BA-Reg 2 depends directly on the number of planted motifs: adding S reduces MAE from 5.1492 to 0.0097, whereas does not improve over the feature-only model. On the real-world benchmarks, the relative benefits of S and I are task-dependent, but their combination generally provides the strongest performance. NCI1 is the only exception, where marginally outperforms the full model.
| Dataset | ||||
|---|---|---|---|---|
| Classification: test AUROC (%), | ||||
| Mutagenicity | 75.48 ± 0.06 | 80.00 ± 0.37 | 80.09 ± 0.26 | 82.81 ± 1.50 |
| NCI1 | 64.24 ± 0.46 | 75.76 ± 0.29 | 78.17 ± 0.68 | 76.81 ± 2.01 |
| PROTEINS | 64.90 ± 0.95 | 70.36 ± 0.84 | 65.44 ± 1.08 | 73.32 ± 4.63 |
| PTC-MR | 49.69 ± 3.99 | 54.09 ± 3.74 | 49.69 ± 3.99 | 57.43 ± 2.62 |
| Regression: test MAE, | ||||
| BA-Reg 1 | 449.50 ± 1.90 | 462.40 ± 7.05 | 10.44 ± 11.36 | 4.2 ± 1.2 |
| BA-Reg 2 | 5.1492 ± 0.0010 | 0.0097 ± 0.0101 | 5.1501 ± 0.0012 | 0.0087 ± 0.0070 |
| Crippen | 0.938 ± 0.015 | 0.835 ± 0.033 | 0.612 ± 0.028 | 0.460 ± 0.181 |
| QM9- | 0.9785 ± 0.0006 | 0.8936 ± 0.0011 | 0.8639 ± 0.0038 | 0.8519 ± 0.0121 |
| QM9- | 3.5918 ± 0.0221 | 3.3515 ± 0.0331 | 3.5917 ± 0.0221 | 3.3510 ± 0.0315 |
| QM9-HOMO | 0.4158 ± 0.0013 | 0.2813 ± 0.0010 | 0.2910 ± 0.0211 | 0.2402 ± 0.0131 |
Table 7: Channel ablation across five independently generated test splits. Entries report the mean ± standard deviation over five seeds, each defining both the data split and model training. The column reuses the full-model runs reported in the main results. Bold indicates the best mean in each row.