MPGE: A Multi-Perspective Graph Explainer for Molecular Classification Explanation
Organizations: Dalhousie University Halifax, Nova Scotia, Canada
Abstract
Graph neural networks (GNNs) predict molecular properties from chemical graph data, but predictive accuracy does not explain how graph information supports an individual decision. A compact prediction-preserving rationale does not necessarily reveal which changes reverse the decision or which modifications the model tolerates. We propose the Multi-Perspective Graph Explainer (MPGE), unifying factual support, counterfactual sensitivity, and exemplar tolerance for a frozen classifier. The factual view, originally termed prototype (PT), seeks a compact retained edge set with the same label and required confidence. Counterfactual (CF) explanations seek bounded prediction-changing deletions; exemplar (EXE) explanations seek non-trivial bounded deletions that preserve the label and confidence. A shared constrained formulation connects prediction behavior, compactness, and edit cost, while separate objectives generate the three views. Our graph-classification extension of CF-GNNExplainer learns symmetric edge rankings and verifies discrete candidates, recording unsuccessful searches. A separate BBBP fragment backend returns RDKit-sanitized molecules. We evaluate the primary GCN implementation on MUTAG, Mutagenicity, AIDS, COX2_MD, and BBBP using semantic coverage, conditional quality, stability, and runtime. Successful factual masks retained 8.6%--15.5% of input edges on average across datasets; bounded counterfactual coverage was 4.8%--67.6%, and exemplar preservation coverage was 98.9%--100.0%. Exploratory controls reveal the influence of hard projection and retained node information. Quantitative comparisons and molecular visualizations characterize model support, sensitivity, and tolerance without treating them as validated chemical mechanisms.
Figures & tables
| Dataset | Pos. | Features | Split | GT | |||
|---|---|---|---|---|---|---|---|
| MUTAG | 188 | 0.66 | N:L7; E:L4 | Stratified 10-Fold | no | ||
| Mutagenicity | 4337 | 0.45 | N:L14; E:L3 | Stratified 10-Fold | no | ||
| AIDS | 2000 | 0.80 | N:L38; N:A4; E:L3 | Stratified 10-Fold | no | ||
| COX2_MD | 303 | 0.49 | N:L7; E:L5; E:A1 | Stratified 10-Fold | no | ||
| BBBP | 2039 | 0.77 | Atom/Bond Categorical | Scaffold 80/10/10 | no |
| Dataset | Architecture | Balanced accuracy | AUROC | AUPRC | F1 |
|---|---|---|---|---|---|
| AIDS | GCN | ||||
| BBBP | GCN | ||||
| COX2_MD † | GCN | ||||
| MUTAG | GCN | ||||
| Mutagenicity | GCN |
| Dataset | Architecture | Brier | ECE | Log loss | Best epoch |
|---|---|---|---|---|---|
| AIDS | GCN | 37.8 | |||
| BBBP | GCN | 10.3 | |||
| COX2_MD | GCN | 6.9 | |||
| MUTAG | GCN | 51.2 | |||
| Mutagenicity | GCN | 86.8 |
| Factual | Counterfactual | Exemplar | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Dataset | Success | Retained | Comp. | Success | Edits | Success | Edited | Retained ratio | |
| MUTAG | 100.0% | 67.6% | 98.9% | ||||||
| Mutagenicity | 100.0% | 63.7% | 99.0% | ||||||
| AIDS | 100.0% | 4.8% | 100.0% | ||||||
| COX2_MD | 100.0% | 5.5% | 100.0% | ||||||
| BBBP | 100.0% | 54.6% | 99.7% | ||||||
| Dataset | Method | Success | Retained | Comp. |
|---|---|---|---|---|
| MUTAG | MPGX-CF | 100.0% | ||
| MUTAG | GNNExplainer | 100.0% | ||
| MUTAG | PGExplainer | 100.0% | ||
| MUTAG | CF 2 reimplementation | 96.8% | ||
| MUTAG | Random | 100.0% | ||
| Mutagenicity | MPGX-CF | 100.0% |
| Dataset | Method | Success | Edits | |
|---|---|---|---|---|
| MUTAG | MPGX-CF | 67.6% | ||
| MUTAG | CF-GNNExplainer | 3.7% | ||
| MUTAG | CF 2 reimplementation | 7.2% | ||
| MUTAG | Random | 31.3% | ||
| Mutagenicity | MPGX-CF | 63.7% | ||
| Mutagenicity | CF-GNNExplainer | 2.2% |
| Dataset | Method | Success | Edited | Retained ratio |
|---|---|---|---|---|
| MUTAG | MPGX-CF | 98.9% | ||
| MUTAG | Greedy control | 100.0% | ||
| MUTAG | Random | 94.6% | ||
| Mutagenicity | MPGX-CF | 99.0% | ||
| Mutagenicity | Greedy control | 99.9% | ||
| Mutagenicity | Random | 96.5% |
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| View | Success | Steps | Atoms removed | Tanimoto | Retained ratio | Candidates |
|---|---|---|---|---|---|---|
| Factual | 97.7% | |||||
| Counterfactual | 27.4% | |||||
| Exemplar | 96.4% |
| Dataset | Ranking | Units | Native | Common projection |
|---|---|---|---|---|
| MUTAG | MPGX-CF | 72 | 54.2% | 54.2% |
| MUTAG | CF-GNNExplainer | 72 | 5.6% | 41.7% |
| MUTAG | CF 2 | 72 | 4.2% | 51.4% |
| MUTAG | Random | 72 | 26.4% | 26.4% |
| Mutagenicity | MPGX-CF | 72 | 63.9% | 63.9% |
| Mutagenicity | CF-GNNExplainer | 72 | 1.4% | 51.4% |
| Dataset | Units | Proposed 0.5 threshold | Proposed ranked prefix |
|---|---|---|---|
| MUTAG | 72 | 16.7% | 54.2% |
| Mutagenicity | 72 | 9.7% | 63.9% |
| AIDS | 72 | 1.4% | 6.9% |
| COX2_MD | 72 | 0.0% | 9.7% |
| BBBP | 72 | 15.3% | 65.3% |
| Dataset | Graphs | Units | No-edge feasible | Induced factual feasible |
|---|---|---|---|---|
| MUTAG | 24 | 72 | 73.6% | 37.5% |
| Mutagenicity | 24 | 72 | 56.9% | 55.6% |
| AIDS | 24 | 72 | 91.7% | 61.1% |
| COX2_MD | 24 | 72 | 69.4% | 56.9% |
| BBBP | 24 | 72 | 48.6% | 38.9% |
| Dataset | Ranking | Units | Cap 8 | Cap 32 |
|---|---|---|---|---|
| AIDS | MPGX-CF | 72 | 6.9% | 6.9% |
| AIDS | CF-GNNExplainer | 72 | 5.6% | 5.6% |
| AIDS | CF 2 | 72 | 6.9% | 6.9% |
| AIDS | Random | 72 | 1.4% | 1.4% |
| COX2_MD | MPGX-CF | 72 | 9.7% | 23.6% |
| COX2_MD | CF-GNNExplainer | 72 | 8.3% | 22.2% |
| Dataset | View | Runtime (s) | Runtime 95% CI | Components | Isolated nodes | Units |
|---|---|---|---|---|---|---|
| MUTAG | Factual | 564 | ||||
| MUTAG | Counterfactual | 564 | ||||
| MUTAG | Exemplar | 564 | ||||
| Mutagenicity | Factual | 13011 | ||||
| Mutagenicity | Counterfactual | 13011 | ||||
| Mutagenicity | Exemplar | 13011 |
| Dataset | View | Present | Removed | Removed frac. | betw. | harmonic | Stability | |
|---|---|---|---|---|---|---|---|---|
| MUTAG | Factual | |||||||
| MUTAG | Counterfactual | |||||||
| MUTAG | Exemplar | |||||||
| Mutagenicity | Factual | |||||||
| Mutagenicity | Counterfactual | |||||||
| Mutagenicity | Exemplar |
| Dataset | Factual–CF overlap | Factual–exemplar overlap | Contrast |
|---|---|---|---|
| MUTAG | |||
| Mutagenicity | |||
| AIDS | |||
| COX2_MD | |||
| BBBP |
| Dataset | Baseline | Coverage difference | Holm | Comprehensiveness difference | Holm |
|---|---|---|---|---|---|
| MUTAG | GNNExplainer | [0.000, 0.000]; | 1 | [0.006, 0.029]; | 0.00729 |
| MUTAG | PGExplainer | [0.000, 0.000]; | 1 | [-0.008, 0.024]; | 1 |
| MUTAG | CF 2 reimplementation | [0.018, 0.048]; | 0.000139 | [-0.445, -0.357]; | 8.57e-31 |
| MUTAG | Random | [0.000, 0.000]; | 1 | [-0.005, 0.018]; | 1 |
| Mutagenicity | GNNExplainer | [0.000, 0.000]; | 1 | [0.022, 0.026]; | 4.79e-69 |
| Mutagenicity | PGExplainer | [0.000, 0.000]; | 1 | [-0.001, 0.005]; | 0.456 |
| Dataset | Baseline | Coverage difference | Holm | Removed-edge difference | Holm |
|---|---|---|---|---|---|
| MUTAG | CF-GNNExplainer | [0.580, 0.694]; | 2.08e-26 | [-0.392, 0.088]; | 0.256 |
| MUTAG | CF 2 reimplementation | [0.546, 0.660]; | 8.94e-26 | [-3.851, -2.876]; | 1.39e-08 |
| MUTAG | Random | [0.320, 0.406]; | 2.79e-24 | [-1.530, -1.073]; | 2.45e-16 |
| Mutagenicity | CF-GNNExplainer | [0.603, 0.628]; | [-0.191, -0.070]; | 6.06e-06 | |
| Mutagenicity | CF 2 reimplementation | [0.612, 0.637]; | [-3.889, -3.275]; | 6.76e-29 | |
| Mutagenicity | Random | [0.402, 0.423]; | [-1.761, -1.626]; | 8.45e-263 |
| Dataset | Baseline | Coverage difference | Holm | Edit-fraction difference | Holm |
|---|---|---|---|---|---|
| MUTAG | Greedy control | [-0.017, -0.005]; | 0.000941 | [-0.030, -0.021]; | 1.6e-19 |
| MUTAG | Random | [0.030, 0.059]; | 1.35e-07 | [0.005, 0.017]; | 0.000736 |
| Mutagenicity | Greedy control | [-0.011, -0.008]; | 1.15e-42 | [-0.012, -0.010]; | 9.02e-236 |
| Mutagenicity | Random | [0.022, 0.027]; | 8.28e-74 | [0.014, 0.016]; | 1.99e-157 |
| AIDS | Greedy control | [-0.001, 0.000]; | 0.102 | [-0.002, -0.001]; | 7.09e-13 |
| AIDS | Random | [0.002, 0.004]; | 0.000112 | [0.000, 0.001]; | 0.0013 |
| Dataset | View | Failure rate | Most common reason | Count |
|---|---|---|---|---|
| MUTAG | Factual | 0.0% | – | – |
| MUTAG | Counterfactual | 32.4% | No Flip Within 8 Edits | 173 |
| MUTAG | Exemplar | 1.1% | No Nontrivial Preserving Edit Within 3 Edits | 9 |
| Mutagenicity | Factual | 0.0% | – | – |
| Mutagenicity | Counterfactual | 36.3% | No Flip Within 8 Edits | 10406 |
| Mutagenicity | Exemplar | 1.0% | No Nontrivial Preserving Edit Within 8 Edits | 95 |