# Generalizing Graph Neural Networks on Out-Of-Distribution Graphs

분포 외 그래프에서의 그래프 신경망 일반화

Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, Bai Wang · arXiv · 2021년 11월 20일

- **연구 문제** 그래프 신경망은 학습 분포와 테스트 분포가 달라지면 허위 상관에 의존해 성능이 떨어지며, 이 논문은 부분그래프 수준의 허위 상관을 줄이는 방법을 제안합니다.
- **연구 방법** StableGNN은 DiffPool로 고수준 클러스터 변수를 만들고, HSIC 기반 샘플 가중치로 변수 간 종속성을 줄인 뒤 가중 손실로 GNN을 학습합니다.
- **주요 결과** 합성 데이터에서 기반 모델 대비 최대 19.64%의 향상이 보고되었고, 실제 OOD 분자 데이터셋 평가에서 StableSAGE가 평균 순위 1.75로 높은 순위를 기록했다고 보고됩니다.

## 분포 변화에서 GNN이 실패하는 이유

그래프 신경망은 학습 그래프와 테스트 그래프가 같은 분포에서 샘플링되었다는 I.I.D. 가정 위에서 주로 개발되어 왔습니다. 실제 환경에서는 데이터 선택 편향이나 교란 요인 때문에 테스트 그래프의 분포가 학습 분포와 달라지며, 이 경우 모델은 학습 데이터에만 존재하는 허위 상관을 이용해 예측하기 쉽습니다. 논문은 그래프 수준 과제에서 이러한 허위 상관이 부분그래프 단위 사이에서 생긴다고 보고, 이를 제거하는 방법을 문제로 설정합니다. 예를 들어 ‘house’ 모티프를 판별하는 과제에서 학습 그래프의 대부분이 ‘star’ 모티프를 함께 가지면, GCN은 ‘star’ 모티프에 의존하는 예측을 하게 됩니다.

논문은 이를 OOD 일반화 문제로 정의하고, 테스트 분포의 변화를 미리 알 수 없다는 조건에서 다룹니다.

![Figure 2: Causal graph for data generation process. Gray nodes and white nodes mean the unobserved latent variables and the observed variables, respectively](https://refivu.com/papers/913b0bfb-79b8-40cf-a9fc-21d31b8a00a5/figures/figure-ba9442b732366c4a3ec7bb08ed45c7d3.png?thumb=512)

**Fig. 2** : Causal graph for data generation process. Gray nodes and white nodes mean the unobserved latent variables and the observed variables, respectively.

[원문](https://arxiv.org/abs/2111.10657v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, Bai Wang · Generalizing Graph Neural Networks on Out-Of-Distribution Graphs · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## 고수준 변수 학습과 인과 변수 구별

제안 방법 StableGNN은 두 단계로 구성됩니다. 첫째 단계에서는 DiffPool 계층이 노드 임베딩과 클러스터 할당 행렬을 학습하여 밀집한 부분그래프를 고수준 변수로 묶습니다. 클러스터별 임베딩은 여러 그래프에서 같은 순서로 연결되어 고수준 표현 H가 됩니다. 저자들은 DiffPool의 순열 불변성과 WL 색상 관점을 이용해 같은 인덱스의 클러스터가 여러 그래프에서 비슷한 구조적 역할을 맡도록 정렬된다고 논증합니다. 둘째 단계에서는 고수준 변수 쌍 사이의 HSIC 종속성을 샘플 가중치 w로 줄입니다. 가중치는 전체 고수준 변수 쌍의 가중 HSIC 합을 최소화하도록 학습되며, 학습된 w로 GNN 손실을 재가중합니다.

추론 단계에서는 샘플 가중치를 계산하지 않고 학습된 GNN으로 예측합니다.

![Figure 3: The overall architecture of the proposed StableGNN](https://refivu.com/papers/913b0bfb-79b8-40cf-a9fc-21d31b8a00a5/figures/figure-cc930f4334d859331dd6276032a9c5d9.png?thumb=512)

**Fig. 3** : The overall architecture of the proposed StableGNN.

[원문](https://arxiv.org/abs/2111.10657v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, Bai Wang · Generalizing Graph Neural Networks on Out-Of-Distribution Graphs · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 합성 데이터와 실제 데이터에서의 검증

합성 실험에서는 허위 상관 정도 µ를 0.6, 0.7, 0.8, 0.9로 바꾸어 학습셋을 구성하고, µ=0.5 검증셋과 µ=0.25 비편향 테스트셋으로 평가합니다. 이 설정에서 기반 모델 대비 StableSAGE와 StableGCN의 정확도, F1, ROC-AUC를 비교합니다. 실제 데이터 실험에서는 OGB 분자 데이터셋과 MUTAG을 사용하며, OGB 분자 데이터셋은 스캐폴드 분할을 적용하고 MUTAG은 무작위 분할을 적용합니다. 분할 비율은 80/10/10입니다. 비교 대상에는 DiffPool, DIR, CIGA 등이 포함되며, DIR과 CIGA는 이진 분류 과제에서만 결과가 보고되었습니다.

![Table 3: Summary of real-world datasets](https://refivu.com/papers/913b0bfb-79b8-40cf-a9fc-21d31b8a00a5/figures/figure-2379e489231318272a15022b5df39d51.png?thumb=512)

**TABLE 3** : Summary of real-world datasets.

[원문](https://arxiv.org/abs/2111.10657v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, Bai Wang · Generalizing Graph Neural Networks on Out-Of-Distribution Graphs · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## 결과와 범위

합성 데이터에서 저자들은 기반 모델 대비 최대 19.64%의 성능 향상을 보고하며, 허위 상관이 클수록 향상 폭이 커졌다고 보고합니다. 이 결과는 합성 실험의 특정 생성 과정과 µ 설정에서 얻은 것입니다. 실제 데이터에서는 저자들이 8개 데이터셋의 평균 순위를 제시하며, StableSAGE가 평균 순위 1.75로 가장 높은 위치를 차지했다고 보고합니다. 다만 이 순위는 해당 표의 비교 방법과 지표 조건에서 얻은 값입니다. 절제 실험에서는 CVD 정규화를 제거한 StableGNN-NoCVD와 비교하여 정규화 항의 효과를 확인합니다.

![Table 2: Results on synthetic datasets in different settings. The ‘improvements’ means the improvement percent of StableSAGE/StableGCN against GraphSAGE/GCN](https://refivu.com/papers/913b0bfb-79b8-40cf-a9fc-21d31b8a00a5/figures/figure-64791036ae7de1688b5d7137f391499a.png?thumb=512)

**TABLE 2** : Results on synthetic datasets in different settings. The ‘improvements’ means the improvement percent of StableSAGE/StableGCN against GraphSAGE/GCN.

[원문](https://arxiv.org/abs/2111.10657v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, Bai Wang · Generalizing Graph Neural Networks on Out-Of-Distribution Graphs · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## 가정과 한계

저자들은 모델이 고수준 변수 사이에 일반적인 인과 구조를 가정한다고 밝힙니다. 데이터셋이나 과제에 따라 고수준 변수 사이에 더 복잡한 인과 관계가 있을 수 있으며, 이 경우 인과 구조를 발견하는 과정이 필요할 수 있다고 제시합니다. 따라서 이 논문의 결과는 제시된 설정에서 확인된 범위로 읽어야 하며, 다른 그래프 과제나 인과 구조에 대한 일반화는 본 논문에서 검증되지 않았습니다.

## 논문 정보

- **저자**: Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, Bai Wang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 11월 20일
- **등록일**: 2026년 11월 6일
- **수정일**: 2024년 3월 10일
- **버전**: v4
- **arXiv**: 2111.10657
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2111.10657v4) · [원문 PDF ↗](https://arxiv.org/pdf/2111.10657v4)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Graph Neural Networks (GNNs) are proposed without considering the agnostic distribution shifts between training and testing graphs, inducing the degeneration of the generalization ability of GNNs on Out-Of-Distribution (OOD) settings. The fundamental reason for such degeneration is that most GNNs are developed based on the I.I.D hypothesis. In such a setting, GNNs tend to exploit subtle statistical correlations existing in the training set for predictions, even though it is a spurious correlation. However, such spurious correlations may change in testing environments, leading to the failure of GNNs. Therefore, eliminating the impact of spurious correlations is crucial for stable GNNs. To this end, we propose a general causal representation framework, called StableGNN. The main idea is to extract high-level representations from graph data first and resort to the distinguishing ability of causal inference to help the model get rid of spurious correlations. Particularly, we exploit a graph pooling layer to extract subgraph-based representations as high-level representations. Furthermore, we propose a causal variable distinguishing regularizer to correct the biased training distribution. Hence, GNNs would concentrate more on the stable correlations. Extensive experiments on both synthetic and real-world OOD graph datasets well verify the effectiveness, flexibility and interpretability of the proposed framework.

## 원문 인용

Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, Bai Wang (2021). Generalizing Graph Neural Networks on Out-Of-Distribution Graphs. arXiv:2111.10657v4. https://arxiv.org/abs/2111.10657v4

**BibTeX**

```
@misc{fan2021generalizing,
  title = {{Generalizing Graph Neural Networks on Out-Of-Distribution Graphs}},
  author = {Shaohua Fan and Xiao Wang and Chuan Shi and Peng Cui and Bai Wang},
  year = {2021},
  eprint = {2111.10657},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.10657v4}
}
```

## 이 논문의 용어

- [accuracy](https://refivu.com/terms/1995c0cd6282-accuracy)
- [ROC-AUC](https://refivu.com/terms/4a16e24a9f10-roc-auc)
- [GraphSAGE](https://refivu.com/terms/c4baff75600a-graphsage)
- [GCN](https://refivu.com/terms/6be0326c6c22-gcn)
- [permutation invariance](https://refivu.com/terms/c73eb2408bba-permutation-invariance)
- [DiffPool](https://refivu.com/terms/3a3331636d50-diffpool)
- [Hilbert-Schmidt Independence Criterion](https://refivu.com/terms/ea74db856f70-hilbert-schmidt-independence-criterion)
- [scaffold splitting](https://refivu.com/terms/04c8a9dc0120-scaffold-splitting)
- [spurious correlation](https://refivu.com/terms/8c513071ff51-spurious-correlation)
- [GNNExplainer](https://refivu.com/terms/2272c888d662-gnnexplainer)
- [Mutag](https://refivu.com/terms/895e05471118-mutag)

## 다른 논문 해설

- [Multimodal Pre-training Based on Graph Attention Network for Document Understanding](https://refivu.com/papers/6d34c1b1-08c0-4f0c-bfed-0cc34f2d410e-multimodal-pre-training-based-on-graph-attention-network.md)
- [Graph Learning: A Survey](https://refivu.com/papers/3ea8a261-7c0e-4c24-8f31-8bc870a9cf84-graph-learning-a-survey.md)
- [Spatio-Temporal Graph Neural Networks for Predictive Learning in Urban Computing: A Survey](https://refivu.com/papers/94c424e3-5876-43b1-91cd-0fb89356f95a-spatio-temporal-graph-neural-networks-for-predictive.md)
- [FairDrop: Biased Edge Dropout for Enhancing Fairness in Graph Representation Learning](https://refivu.com/papers/54f94076-76e3-436c-966d-84e5ec8d20d7-fairdrop-biased-edge-dropout-for-enhancing-fairness-in.md)
- [Graph Neural Networks for Text Classification: A Survey](https://refivu.com/papers/f19b9da2-72aa-46a1-a0bc-7dd436867b5c-graph-neural-networks-for-text-classification-a-survey.md)
- [A Survey of Graph Neural Networks for Social Recommender Systems](https://refivu.com/papers/c1848045-eac7-443a-a4b7-d8a38a3de17b-a-survey-of-graph-neural-networks-for-social.md)
- [Multimodal-Boost: Multimodal Medical Image Super-Resolution using Multi-Attention Network with Wavelet Transform](https://refivu.com/papers/8860e963-c1ca-40e3-acd9-263b31674b1e-multimodal-boost-multimodal-medical-image-super-resolution.md)
- [Data-driven control of spatiotemporal chaos with reduced-order neural ODE-based models and reinforcement learning](https://refivu.com/papers/ad44f98a-ec6c-49bd-ab7d-c94e496d3e38-data-driven-control-of-spatiotemporal-chaos-with-reduced.md)
- [CiwGAN and fiwGAN: Encoding information in acoustic data to model lexical learning with Generative Adversarial Networks](https://refivu.com/papers/cad13cb8-feac-48a9-81bf-ef7c0a7bb322-ciwgan-and-fiwgan-encoding-information-in-acoustic-data.md)
- [Identifying Uncertainty in Self-Adaptive Robotics with Large Language Models](https://refivu.com/papers/c4cb9fe4-bc87-46d3-a2ef-2bd8289b2040-identifying-uncertainty-in-self-adaptive-robotics-with-large.md)
- [Active label cleaning for improved dataset quality under resource constraints](https://refivu.com/papers/7eb19607-f419-4327-a897-f18af58beb22-active-label-cleaning-for-improved-dataset-quality-under.md)
- [Unsupervised Structure-Texture Separation Network for Oracle Character Recognition](https://refivu.com/papers/6c672da8-a32d-40de-bf57-f1d4c606e0a2-unsupervised-structure-texture-separation-network-for-oracle.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/913b0bfb-79b8-40cf-a9fc-21d31b8a00a5-generalizing-graph-neural-networks-on-out-of-distribution)
