Fine-grained Graph Rationalization

Zhe Xu, Menghai Pan, Yuzhong Chen, Huiyuan Chen, Yuchen Yan, Mahashweta Das, Hanghang Tong · DOI

Abstract

Rationale discovery is defined as finding a subset of the input data that maximally supports the prediction of downstream tasks. In the context of graph machine learning, graph rationale is defined to locate the critical subgraph in the given graph topology. In contrast to the rationale subgraph, the remaining subgraph is named the environment subgraph. Graph rationalization can enhance the model performance as the mapping between the graph rationale and prediction label is viewed as invariant, by assumption. To ensure the discriminative power of the extracted rationale subgraphs, a key technique named "intervention" is applied whose heart is that given changing environment subgraphs, the semantics from the rationale subgraph is invariant, guaranteeing the correct prediction result. However, most, if not all, of the existing graph rationalization methods develop their intervention strategies on the graph level, which is coarse-grained. In this paper, we propose fine-grained graph rationalization (FIG). Our idea is driven by the self-attention mechanism, which provides rich interactions between input nodes. Based on that, FIG can achieve node-level and virtual node-level intervention. Our experiments involve 7 real-world datasets, and the proposed FIG shows significant performance advantages compared to 13 baseline methods.

Introduction: Beyond Coarse-Grained Rationales

In graph machine learning, identifying the "rationale"—the specific subgraph most relevant to a prediction—is crucial for both interpretability and robustness. For instance, in molecular biology, a rationale might be the specific functional group that determines a molecule's toxicity, while the rest of the graph is considered the "environment."

To ensure that a discovered rationale is truly invariant, researchers employ "intervention" strategies. This involves pairing a rationale with various environment subgraphs to verify that the prediction remains stable. However, existing methods typically perform this at a coarse, graph-level scale, often by simply aggregating rationale and environment embeddings. This approach fails to capture complex, node-level interactions where environmental noise can interfere with the rationale's signal at a granular level.

Methodology: The FIG Framework

To address these limitations, we introduce Fine-grained Graph Rationalization (FIG). Unlike previous methods that operate on global summary vectors, FIG models interactions at the node and virtual-node levels using a Transformer-based architecture.

Comparison of graph-level intervention (GREA) versus the proposed node/virtual node-level intervention (FIG).

The FIG framework is structured as a min-max game between four primary modules:

  1. Encoder: Produces initial node-level representations from the input graph.
  2. Augmenter: Acts as a partitioner, identifying which nodes constitute the rationale versus the environment.
  3. Intervener (The Adversary): Utilizing a Transformer architecture, this module models the intricate dependencies between rationale and environment nodes. It attempts to "distract" the predictor by maximizing the influence of the environment.
  4. Predictor: Generates the final task prediction based on the output of the intervener.

Scaling with Virtual Nodes

While node-to-node attention (FIG-N) is highly effective, it can be computationally prohibitive for large graphs. To maintain efficiency, we propose FIG-VN, which maps nodes to a fixed set of "virtual nodes." This allows the model to capture fine-grained interactions without the quadratic complexity of full self-attention, maintaining high performance while remaining lightweight.

Experimental Evaluation and Results

We evaluated FIG against 13 state-of-the-art baselines across seven real-world datasets in chemistry and biology, including ZINC, AQSOL, and various molecular classification tasks (e.g., molhiv, molbace).

Performance comparison of FIG against 13 baseline methods across graph regression and classification tasks.

As shown in the results table, FIG-N and FIG-VN consistently outperform or match the best-performing baselines. Notably, on the molbace dataset, FIG-N achieved an AUC of 85.3%, a significant improvement over the 79.6% achieved by the GPS baseline. The model also showed superior performance in regression tasks, achieving the lowest Mean Absolute Error (MAE) on the AQSOL dataset.

Key Insights

  • Adversarial Robustness: By employing a parametric Transformer as an adversary, the augmenter is forced to find a "purer" rationale that is truly invariant to environmental shifts.
  • Structural Regularization: The inclusion of a partition regularization term helps prevent unnecessary "cuts" between the rationale and environment, leading to more topologically coherent subgraphs.
  • Efficiency: Despite the sophisticated intervention mechanism, FIG remains computationally efficient. The additional parameters and FLOPs are minimal compared to the base encoders, and training speed remains high.

Conclusion

FIG represents a significant step forward in graph rationalization by moving from coarse-grained embeddings to fine-grained node interactions. By modeling the complex dependencies between rationales and their environments, FIG achieves state-of-the-art performance across a wide range of molecular and biological graph tasks. Future work will explore extending this framework to node-level classification and investigating its performance in extreme out-of-distribution (OOD) scenarios.

Summary updated

BibTeX
@inproceedings{xu2025fine,
  author = {Zhe Xu and Menghai Pan and Yuzhong Chen and Huiyuan Chen and Yuchen Yan and Mahashweta Das and Hanghang Tong},
  title = {{Fine-grained Graph Rationalization}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
  url = {https://openreview.net/forum?id=fdOCf8lUVU},
}
Figure