Cooperative Classification and Rationalization for Graph Generalization
Linan Yue,Qi Liu,Ye Liu,Weibo Gao,Fangzhou Yao,Wenfeng Li
DOI: https://doi.org/10.1145/3589334.3645332
2024-01-01
Abstract:Graph Neural Networks (GNNs) have achieved impressive results in graphclassification tasks, but they struggle to generalize effectively when facedwith out-of-distribution (OOD) data. Several approaches have been proposed toaddress this problem. Among them, one solution is to diversify trainingdistributions in vanilla classification by modifying the data environment, yetaccessing the environment information is complex. Besides, another promisingapproach involves rationalization, extracting invariant rationales forpredictions. However, extracting rationales is difficult due to limitedlearning signals, resulting in less accurate rationales and diminishedpredictions. To address these challenges, in this paper, we propose aCooperative Classification and Rationalization (C2R) method, consisting of theclassification and the rationalization module. Specifically, we first assumethat multiple environments are available in the classification module. Then, weintroduce diverse training distributions using an environment-conditionalgenerative network, enabling robust graph representations. Meanwhile, therationalization module employs a separator to identify relevant rationalesubgraphs while the remaining non-rationale subgraphs are de-correlated withlabels. Next, we align graph representations from the classification modulewith rationale subgraph representations using the knowledge distillationmethods, enhancing the learning signal for rationales. Finally, we infermultiple environments by gathering non-rationale representations andincorporate them into the classification module for cooperative learning.Extensive experimental results on both benchmarks and synthetic datasetsdemonstrate the effectiveness of C2R. Code is available athttps://github.com/yuelinan/Codes-of-C2R.