Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanism

Siqi Miao, Miaoyuan Liu, Pan Li
1/31/2022
342 citations
cs.LG
transformer-attention

Official code: Graph-COM/GSAT (173 stars, Jupyter Notebook, MIT, PyTorch, last commit 2024-02-19).

Abstract

Interpretable graph learning is in need as many scientific applications depend on learning models to collect insights from graph-structured data. Previous works mostly focused on using post-hoc approaches to interpret pre-trained models (graph neural networks in particular).

Show full abstract

They argue against inherently interpretable models because the good interpretability of these models is often at the cost of their prediction accuracy. However, those post-hoc methods often fail to provide stable interpretation and may extract features that are spuriously correlated with the task. In this work, we address these issues by proposing Graph Stochastic Attention (GSAT). Derived from the information bottleneck principle, GSAT injects stochasticity to the attention weights to block the information from task-irrelevant graph components while learning stochasticity-reduced attention to select task-relevant subgraphs for interpretation. The selected subgraphs provably do not contain patterns that are spuriously correlated with the task under some assumptions. Extensive experiments on eight datasets show that GSAT outperforms the state-of-the-art methods by up to 20%$\uparrow$ in interpretation AUC and 5%$\uparrow$ in prediction accuracy. Our code is available at https://github.com/Graph-COM/GSAT.

View on arXivView PDF

Code Implementations(1)

Graph-COM/GSATOfficial100%
PyTorchMIT

[ICML 2022] Graph Stochastic Attention (GSAT) for interpretable and generalizable graph learning.

17326Jupyter Notebook, PythonJan 29, 20222 years agoMIT
deep-learninggraph-neural-networksinterpretabilityinterpretable-machine-learningpytorch+1 more

Similar Papers

Cite this paper

@article{miao2022interpretable,
  title  = {Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanism},
  author = {Siqi Miao and Miaoyuan Liu and Pan Li},
  year   = {2022},
  eprint = {2201.12987},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.12987}
}

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/2201.12987.svg)](https://codeofpaper.com/paper/2201.12987)

Discussion