GCI: A (G)raph (C)oncept (I)nterpretation Framework

Dmitry Kazhdan, Botty Dimanov, Lucie Charlotte Magister, Pietro Barbiero, Mateja Jamnik, Pietro Liò · DOI

Introduction

Graph Neural Networks (GNNs) have emerged as powerful tools for modeling complex relational data, yet they remain notoriously opaque "black boxes." While recent research has shifted toward concept extraction—identifying human-understandable sub-structures like functional groups in molecules—evaluating these methods has historically relied on subjective "eye-balling." This qualitative approach is prone to confirmation bias and fails to scale for complex scientific tasks.

The Graph Concept Interpretation (GCI) framework addresses this gap by moving GNN explanations from subjective assessment to rigorous measurement. By encoding human interpretations as logical functions, GCI quantitatively calculates how well extracted machine concepts align with human domain knowledge, providing a much-needed benchmark for the reliability of Explainable AI (XAI).

Methods

The core of the GCI framework is the Interpretation-Alignment (IA) Matrix, which mathematically measures the "alignment" between what a model sees and what a human expert describes.

The GCI framework pipeline: from graph datasets and GNNs to concept extraction and expert-driven alignment scoring.

The workflow consists of four primary stages:

  1. Concept Extraction: A Concept Extractor (e.g., GCExplainer) identifies groups of subgraphs that the GNN treats as distinct "concepts."
  2. Interpretation Functions: Instead of providing vague text labels, a human expert defines a boolean function $h(g)$ that returns true or false for a given graph (e.g., "Does this molecule contain a benzene ring?").
  3. Alignment Scoring: GCI calculates the precision of these functions across the extracted concepts. High alignment occurs when a specific interpretation function consistently returns true for graphs within a single extracted concept group.
  4. Completeness & Predictability: The framework evaluates completeness (whether interpretations explain the final prediction) and predictability (whether the GNN actually learned the concept or if it is merely noise).

Datasets and Evaluation

The authors validated GCI using both controlled synthetic environments and real-world scientific data:

  • Synthetic Barabási-Albert Graphs: These were used to establish "ground truth" scenarios where specific node colors and shapes (e.g., squares) were tied to class labels. This allowed for testing GCI's sensitivity to "noisy" or failing concept extractors.
  • Blood-Brain Barrier Penetration (BBBP): This real-world molecular dataset utilized 6-7 well-known chemical functional groups (e.g., hydroxyl, ketone, phenyl rings) as interpretation functions to explain GNN predictions on drug permeability.

Key Results and Insights

GCI successfully distinguished between high-quality concept extractors and degraded versions. As shown in the alignment matrices below, the framework provides a clear visual and numerical distinction between valid explanations and random noise.

Comparison of Interpretation-Alignment Matrices for GCExplainer, Noisy GCExplainer, and Random Explainer, showing how GCI quantifies explanation quality.

Key findings include:

  • Quantifying the "Vibe Check": By treating human interpretations as code (boolean functions), standard statistical metrics can be applied to XAI, removing subjectivity.
  • Granularity and Discovery: Increasing the number of extracted concepts can reveal finer-grained interpretations. For instance, a model might initially group all "red nodes" but later separate them based on structural motifs like lines versus squares.
  • Molecular Completeness: In the BBBP task, the framework achieved a 0.76 AUCROC completeness score. While the human-provided functional groups captured a significant portion of the GNN's logic, the gap between this and the model's 0.88 AUCROC indicates that some decision-making logic remains unexplained by standard chemical heuristics.
  • Identifying Shortcuts: GCI can verify if a model has learned a concept even if it is irrelevant to the task, which is critical for detecting biases or "shortcuts" in safety-critical applications.

Limitations and Future Work

The primary limitation of GCI is its dependence on human-provided interpretation functions. If a domain expert cannot identify the relevant features, they cannot write the functions to test them.

Future research directions include:

  • Automating Interpretation: Developing methods to automatically suggest or discover interpretation functions.
  • Hierarchical Metrics: Exploring hierarchies to determine if one human concept is a subset of another.
  • Advanced Heuristics: Implementing more complex rules beyond simple functional groups to close the "completeness gap" in scientific domains.

Summary updated

BibTeX
@inproceedings{kazhdan2023gci,
  author = {Dmitry Kazhdan and Botty Dimanov and Lucie Charlotte Magister and Pietro Barbiero and Mateja Jamnik and Pietro Liò},
  title = {{GCI: A (G)raph (C)oncept (I)nterpretation Framework}},
  booktitle = {MLDD @ ICLR},
  year = {2023},
  url = {https://openreview.net/forum?id=pJY2ufYYIN7},
}
Figure