WOMBAT: Whitebox Oracle for Molecular Benchmarking and Attribution Testing
Organizations: Jagiellonian University, Faculty of Mathematics and Computer Science · Jagiellonian University, Doctoral School of Exact and Natural Sciences · Jagiellonian University, Jagiellonian Center for Artificial Intelligence · Jagiellonian University, Faculty of Chemistry · Ardigen SA
Abstract
When a graph neural network (GNN) explainer produces an unexpected attribution on a molecule, the attribution alone cannot reveal whether the explainer has failed or the model has learned a shortcut. We introduce WOMBAT, a benchmark of 14 whitebox GNNs, each with message-passing weights set by hand to detect a specific SMARTS motif. Each model's decision rule is known by construction, providing attribution ground truth against which explainer errors can be identified and studied. We validate the models on millions of PubChem molecules and evaluate post-hoc explainers including GNNExplainer, PGExplainer, and Integrated Gradients. Guided by our qualitative analysis, we construct a model that causes Integrated Gradients to spread attribution across the graph, even though the model reliably detects the intended motif. We release the dataset, models, and evaluation code to help researchers in the development of newer XAI tools for GNNs.
Figures & tables
| Feature | MUTAG | Benzene | Flu.-Carb. | Alk.-Carb. | BA-2Mot. | ShapeG | B-XAIC | Tttm | WOMBAT |
| Real molecules | ✔ | ✔ | ✔ | ✔ | ✗ | ✗ | ✔ | ✗ | ✔ |
| Neg. Expl. eval. | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✔ | ✗ | ✔ |
| Whitebox Models | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✔ | ✔ |
| No. of Tasks | 1 | 1 | 1 | 1 | 1 | 1 | 7 | 3 | 14 |
| Pattern | GNN Expl. | Input Grad. | IG | PG Expl. | SHAP Sampl. | Saliency | SubgraphX | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
| 2 | ✗ | ✗ | ✗ | ✗ | ✗ | ✔ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
| 3 | ✗ | ✗ | ✔ | ✗ | ✔ | ✔ | ✗ | ✗ | ✗ | ✗ | ✔ | ✗ | ✗ | ✗ |
| 4 | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
| 5 | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| Pattern No. | Shapley Value Sampling | Integrated Gradients | ||||
| Perfect | Total | Perfection Rate | Perfect | Total | Perfection Rate | |
| 1 | 85 | 100 | 0.85 | 7621 | 7660 | 0.99 |
| 2 | 57 | 94 | 0.61 | 236 | 236 | 1.00 |
| 3 | 3 | 22 | 0.14 | 22 | 22 | 1.00 |
| 4 | 60 | 100 | 0.60 | 964 | 1137 | 0.85 |
| 5 | 20 | 31 | 0.65 | 29 | 31 | 0.94 |
| Explainer | Mean AUROC | Perfect explanations | Perfect rate | Mean Success Rate (IQR criterion) |
|---|---|---|---|---|
| PGExplainer | 0.5000 | 0 / 9,999 | 0.00% | 1.0000 |
| Integrated Gradients | 0.7077 | 0 / 9,999 | 0.00% | 0.1478 |
| Saliency | 0.7884 | 3 / 9,999 | 0.03% | 0.0590 |
| SHAP Sampling | 0.6494 | 0 / 100 | 0.00% | 0.3600 |
| Input Gradient | 0.7077 | 0 / 9999 | 0.00% | 0.2274 |
| GNN Explainer | 0.7075 | 0 / 9999 | 0.00% | 0.1516 |
| mean AUROC | |||||||
|---|---|---|---|---|---|---|---|
| No. | GNN Expl . | Input x Grad. | IG | PG Expl. | SHAP Sampl. | Saliency | SubgraphX |
| Pattern 1 | |||||||
| Pattern 2 | |||||||
| Pattern 3 | |||||||
| Pattern 4 | |||||||
| Pattern 5 | |||||||
| mean AUROC | |||||||
|---|---|---|---|---|---|---|---|
| No. | GNN Expl . | Input x Grad. | IG | PG Expl. | SHAP Sampl. | Saliency | SubgraphX |
| 1 | |||||||
| 2 | |||||||
| 3 | |||||||
| 4 | |||||||
| 5 | |||||||
| mean AP | ||||||||
|---|---|---|---|---|---|---|---|---|
| No. | Baseline | GNN Expl . | Input x Grad. | IG | PG Expl. | SHAP Sampl. | Saliency | SubgraphX |
| 1 | ||||||||
| 2 | ||||||||
| 3 | ||||||||
| 4 | ||||||||
| 5 | ||||||||
| mean AP | ||||||||
|---|---|---|---|---|---|---|---|---|
| No. | Baseline | GNN Expl . | Input x Grad. | IG | PG Expl. | SHAP Sampl. | Saliency | SubgraphX |
| 1 | ||||||||
| 2 | ||||||||
| 3 | ||||||||
| 4 | ||||||||
| 5 | ||||||||
| No. | GNN Expl. | Input Grad. | IG | PG Expl. | SHAP Sampl. | Saliency | SubgraphX | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0.500 | 0.500 | 0.994 | 0.500 | 0.994 | 1.000 | 0.500 | 0.500 | 0.989 | 0.992 | 0.994 | 0.500 | 0.935 | 0.929 |
| 2 | 0.500 | 0.500 | 0.997 | 0.500 | 0.997 | 1.000 | 0.500 | 0.500 | 0.975 | 0.980 | 0.997 | 0.500 | 0.960 | 0.957 |
| 3 | 0.500 | 0.500 | 1.000 | 0.500 | 1.000 | 1.000 | 0.500 | 0.500 | 0.966 | 0.964 | 1.000 | 0.500 | 0.916 | 0.895 |
| 4 | 0.500 | 0.500 | 0.982 | 0.500 | 0.982 | 0.992 | 0.500 | 0.500 | 0.980 | 0.975 | 0.986 | 0.500 | 0.798 | 0.793 |
| 5 | 0.500 | 0.500 | 0.987 | 0.500 | 0.989 | 0.995 | 0.500 | 0.500 | 0.939 | 0.976 | 0.991 | 0.500 | 0.857 | 0.854 |
| No. | Baseline | GNN Expl. | Input Grad. | IG | PG Expl. | SHAP Sampl. | Saliency | SubgraphX | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0.406 | 0.406 | 0.406 | 0.995 | 0.406 | 0.995 | 1.000 | 0.406 | 0.406 | 0.987 | 0.991 | 0.995 | 0.406 | 0.886 | 0.872 |
| 2 | 0.581 | 0.581 | 0.581 | 0.998 | 0.581 | 0.998 | 1.000 | 0.581 | 0.581 | 0.979 | 0.983 | 0.998 | 0.581 | 0.935 | 0.933 |
| 3 | 0.678 | 0.678 | 0.678 | 1.000 | 0.678 | 1.000 | 1.000 | 0.678 | 0.678 | 0.980 | 0.978 | 1.000 | 0.678 | 0.929 | 0.911 |
| 4 | 0.462 | 0.462 | 0.462 | 0.980 | 0.462 | 0.980 | 0.991 | 0.462 | 0.462 | 0.978 | 0.967 | 0.984 | 0.462 | 0.687 | 0.682 |
| 5 | 0.587 | 0.587 | 0.587 | 0.995 | 0.587 | 0.995 | 1.000 | 0.587 | 0.587 | 0.972 | 0.984 | 0.995 | 0.587 | 0.786 | 0.783 |
| Pattern No. | Disagreements | Total | % |
|---|---|---|---|
| 1 | 1 | 7,674 | 0.01 |
| 2 | 184 | 248 | 74.19 |
| 3 | 0 | 24 | 0.00 |
| 4 | 2 | 1,146 | 0.17 |
| 5 | 10 | 34 | 29.41 |
| 6 | 591 | 10,000 | 5.91 |
| Pattern No. | All molecules | Valid molecules | ||||
|---|---|---|---|---|---|---|
| Positives | Tversky | Negatives | Positives | Tversky | Negatives | |
| 1 | 7,674 | 491,447 | 4,976,465 | 7,674 | 491,447 | 4,976,452 |
| 2 | 248 | 118,672 | 4,994,354 | 248 | 118,672 | 4,994,352 |
| 3 | 24 | 1,568,016 | 4,925,632 | 24 | 1,568,016 | 4,925,626 |
| 4 | 1,146 | 569,455 | 4,972,881 | 1,146 | 569,455 | 4,972,877 |
| 5 | 34 | 70,609 | 4,996,581 | 34 | 70,609 | 4,996,571 |