pyg-team/pytorch_geometric

Explanability for Heterogeneous Graphs

Open

#5,630 opened on Oct 7, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (3,514 forks)batch import
0 - Priority P0explainfeaturehelp wanted

Repository metrics

Stars
 (19,985 stars)
PR merge metrics
 (Avg merge 35d 1h) (14 merged PRs in 30d)

Description

🚀 Heterogeneous Graph Explanation

Explainability support for heterogeneous graphs. There exist simple ways to adapt current explainability methods into heterogeneous graphs. For example, we can use gradient-based methods by taking gradient with respect to adjacencies (edge_index) of different message types. We can also adapt GNNExplainer by creating a mask corresponding to each of the edge_index for different message types.

Thanks for the good points@Padarn and @wsad1! I'll discuss offline and update this issue with more details for things like HGTConv in a few days.

Tasks:

  • Extension of the current explainability framework to work for HeteroData objects.
  • Incorporate captum-based explainability implementation (such as SHAP, DeepLIFT) for HeteroData.
  • Potential extension to hypergraph use cases (where the graph data is represented as nodes and a set of hyperedges which can connect more than 2 nodes).

Alternatives

No response

Additional context

No response

Contributor guide