Abstract
In the field of brain connectomics, graph-based classifiers are increasingly used to identify neurological disorders such as Autism Spectrum Disorder (ASD) and ADHD. However, the "black-box" nature of these models limits their clinical adoption. This paper presents a framework for generating counterfactual graphs—minimal modifications to a brain network that result in a change of classification. By leveraging the fixed identity of brain regions (nodes), our two-phase heuristic search identifies specific connectivity changes that drive model decisions. Evaluation on the ABIDE and ADHD-200 datasets shows that our method produces highly localized explanations, significantly outperforming traditional nearest-neighbor approaches in interpretability and efficiency.
Introduction
Brain networks, where nodes represent anatomical regions and edges represent functional or structural connectivity, provide a rich substrate for machine learning. While deep learning and graph embedding techniques achieve high accuracy in classifying these networks, they offer little insight into the underlying biological features driving their predictions. For neuroscientists, understanding why a patient is classified as having a specific disorder is as important as the classification itself.
Existing Explainable AI (XAI) methods often struggle with graph data where node identity is crucial. Unlike molecular graphs, where atoms are interchangeable, brain regions like the Left Thalamus are consistent across subjects. We address this by generating counterfactual explanations: identifying the smallest set of edge additions or removals that would flip an AI's diagnosis.
Methods
We propose a two-phase heuristic search to find a counterfactual graph $G'$ that is structurally similar to the original graph $G$ but receives a different classification label.
- Phase 1: Forward Search: The algorithm iteratively modifies edges until the classifier's prediction flips.
- Phase 2: Backward Search: To ensure the explanation is minimal, the algorithm "shrinks" the set of changes by reverting modifications that do not affect the flipped classification.
We evaluate two search strategies: Oblivious Search (OFS/OBS), which selects edges randomly, and Data-driven Search (DFS/DBS), which prioritizes edges based on their statistical distribution in the training data.
Results
Our experiments on the ABIDE and ADHD-200 datasets yield several key findings regarding the nature of model explanations.
Surgical Precision of Counterfactuals
A critical observation is that counterfactual graphs provide much more localized explanations than searching for the "nearest neighbor" of a different class in the existing dataset. As shown in the comparison of search phases, the edit distance to the closest real patient of a different class (DS) is typically around 1000 edges. In contrast, our search methods find counterfactuals with significantly fewer changes, often fewer than 20.
Search Efficiency
The data-driven approach (DFS) consistently finds valid counterfactuals faster than the oblivious approach. While both methods eventually converge to minimal explanations after the backward search phase (Phase 2), DFS requires fewer queries to the black-box model to reach the initial flip, making it more practical for complex architectures.
Model Auditing
By aggregating counterfactuals across populations, we can perform global model auditing. Our results show that different architectures rely on different brain regions. For instance, Contrast Subgraphs models are sensitive to deep grey matter connectivity, whereas Autoencoder-based models focus more on the frontal lobe for ASD classification.
Discussion and Conclusion
Counterfactual graphs offer a powerful tool for peering into the black box of brain network classifiers. By providing "surgical" explanations that respect node identity, we bridge the gap between high-performance AI and neuroscientific hypothesis generation. Future work will explore higher-order graph structures, such as motifs, to capture more complex functional patterns and incorporate clinical biomarkers to ensure that generated counterfactuals are biologically plausible.
Summary updated