Table of Contents
Fetching ...

DARTS-GT: Differentiable Architecture Search for Graph Transformers with Quantifiable Instance-Specific Interpretability Analysis

Shruti Sarika Chakraborty, Peter Minary

TL;DR

DARTS-GT introduces a differentiable NAS framework to enable depth-wise heterogeneity in Graph Transformer attention by making queries depend on node features while keys/values come from a layer-specific GNN, optimized with DARTS. It couples this architectural design with a novel, quantitative interpretability framework based on causal ablation (Head Deviation, Specialization, Focus) to assess which heads and nodes drive predictions, at both instance and dataset levels. Empirically, DARTS-GT achieves state-of-the-art results on several benchmarks and reveals dataset-specific architecture patterns, while also showing that attention salience often does not align with causal importance, underlining the value of causal interpretability. Overall, the work demonstrates that Graph Transformers can achieve enhanced performance without sacrificing interpretability by rethinking the attention mechanism and employing principled NAS.

Abstract

Graph Transformers (GTs) have emerged as powerful architectures for graph-structured data, yet remain constrained by rigid designs and lack quantifiable interpretability. Current state-of-the-art GTs commit to fixed GNN types across all layers, missing potential benefits of depth-specific component selection, while their complex architectures become opaque where performance gains cannot be distinguished between meaningful patterns and spurious correlations. We redesign GT attention through asymmetry, decoupling structural encoding from feature representation: queries derive from node features while keys and values come from GNN transformations. Within this framework, we use Differentiable ARchiTecture Search (DARTS) to select optimal GNN operators at each layer, enabling depth-wise heterogeneity inside transformer attention itself (DARTS-GT). To understand discovered architectures, we develop the first quantitative interpretability framework for GTs through causal ablation. Our metrics (Head-deviation, Specialization, and Focus), identify which heads and nodes drive predictions while enabling model comparison. Experiments across eight benchmarks show DARTS-GT achieves state-of-the-art on four datasets while remaining competitive on others, with discovered architectures revealing dataset-specific patterns. Our interpretability analysis reveals that visual attention salience and causal importance do not always correlate, indicating widely used visualization approaches may miss components that actually matter. Crucially, heterogeneous architectures found by DARTS-GT consistently produced more interpretable models than baselines, establishing that Graph Transformers need not choose between performance and interpretability.

DARTS-GT: Differentiable Architecture Search for Graph Transformers with Quantifiable Instance-Specific Interpretability Analysis

TL;DR

DARTS-GT introduces a differentiable NAS framework to enable depth-wise heterogeneity in Graph Transformer attention by making queries depend on node features while keys/values come from a layer-specific GNN, optimized with DARTS. It couples this architectural design with a novel, quantitative interpretability framework based on causal ablation (Head Deviation, Specialization, Focus) to assess which heads and nodes drive predictions, at both instance and dataset levels. Empirically, DARTS-GT achieves state-of-the-art results on several benchmarks and reveals dataset-specific architecture patterns, while also showing that attention salience often does not align with causal importance, underlining the value of causal interpretability. Overall, the work demonstrates that Graph Transformers can achieve enhanced performance without sacrificing interpretability by rethinking the attention mechanism and employing principled NAS.

Abstract

Graph Transformers (GTs) have emerged as powerful architectures for graph-structured data, yet remain constrained by rigid designs and lack quantifiable interpretability. Current state-of-the-art GTs commit to fixed GNN types across all layers, missing potential benefits of depth-specific component selection, while their complex architectures become opaque where performance gains cannot be distinguished between meaningful patterns and spurious correlations. We redesign GT attention through asymmetry, decoupling structural encoding from feature representation: queries derive from node features while keys and values come from GNN transformations. Within this framework, we use Differentiable ARchiTecture Search (DARTS) to select optimal GNN operators at each layer, enabling depth-wise heterogeneity inside transformer attention itself (DARTS-GT). To understand discovered architectures, we develop the first quantitative interpretability framework for GTs through causal ablation. Our metrics (Head-deviation, Specialization, and Focus), identify which heads and nodes drive predictions while enabling model comparison. Experiments across eight benchmarks show DARTS-GT achieves state-of-the-art on four datasets while remaining competitive on others, with discovered architectures revealing dataset-specific patterns. Our interpretability analysis reveals that visual attention salience and causal importance do not always correlate, indicating widely used visualization approaches may miss components that actually matter. Crucially, heterogeneous architectures found by DARTS-GT consistently produced more interpretable models than baselines, establishing that Graph Transformers need not choose between performance and interpretability.
Paper Structure (37 sections, 20 equations, 3 figures, 7 tables, 2 algorithms)

This paper contains 37 sections, 20 equations, 3 figures, 7 tables, 2 algorithms.

Figures (3)

  • Figure 1: DARTS-GT with interpretability framework. Node features produce $Query$ via a global MLP/identity, while $Key,Value$ come from a single GNN applied once per layer and shared across all heads; heads differ only in their per-head linear projections, reducing cost versus per-head GNNs. The violet disc denotes the DARTS mixed operation over candidate GNNs (GINE, GATv2, GatedGCN) during search; after search, exactly one GNN is fixed per layer (e.g. final searched network in the supplementary). Grey discs indicate the per-head linear transformations (matrix multiplications with learned weights). The yellow $\times$ is the score computation $QueryKey^{\top}$ (followed by Softmax), and the green $\times$ is the matrix product of the Softmax expression with $Value$ yielding the attention output. An edge pathway (edge embedding $\rightarrow$ edge processing) supplies an optional gated residual added before Norm--FFN--Norm. Interpretability (bottom): on each test graph, mask one head at a time and recompute loss to obtain Head Deviation; from these, compute per-instance Specialization (spread across heads) and Focus (agreement of top-$k$ heads on top-$r\%$ nodes), then report dataset medians.
  • Figure 2: Heatmap showing the proportion of each GNN type selected by DARTS-GT across different datasets. The values indicate fraction of total layers using each GNN operation, that is averaged over 4 seeds. Color intensity reflects the usage frequency as indicated
  • Figure 3: Instance analysis of Graph 1 (Peptides-Struc, 209 nodes) demonstrating deviation profiles and top-3 attention heatmaps.In the attention heatmaps, columns represent target nodes that receive attention.

Theorems & Definitions (4)

  • Definition 1: Head Deviation
  • Definition 2: Specialization
  • Definition 3: Focus
  • Definition 3: Focus