Skip to main content
QUICK REVIEW

[논문 리뷰] Energy-based Out-of-Distribution Detection for Graph Neural Networks

Qitian Wu, Yi-Ting Chen|arXiv (Cornell University)|2023. 02. 06.
Advanced Graph Neural NetworksComputer Science인용 수 8
한 줄 요약

논문은 GNNSafe를 제안하는데, 그래프 신경망의 에너지 기반 OOD 탐지기로서 GNN 로짓으로부터 도출된 에너지 점수에 에너지 기반 신념 전파 체계 및 선택적 OOD 노출과의 에너지 정규화를 더한 것이다. GNNSafe는 그래프 OOD 벤치마크에서 최첨단 대비 AUROC를 크게 개선하면서도 효율적이고 모델에 독립적이다.

ABSTRACT

Learning on graphs, where instance nodes are inter-connected, has become one of the central problems for deep learning, as relational structures are pervasive and induce data inter-dependence which hinders trivial adaptation of existing approaches that assume inputs to be i.i.d.~sampled. However, current models mostly focus on improving testing performance of in-distribution data and largely ignore the potential risk w.r.t. out-of-distribution (OOD) testing samples that may cause negative outcome if the prediction is overconfident on them. In this paper, we investigate the under-explored problem, OOD detection on graph-structured data, and identify a provably effective OOD discriminator based on an energy function directly extracted from graph neural networks trained with standard classification loss. This paves a way for a simple, powerful and efficient OOD detection model for GNN-based learning on graphs, which we call GNNSafe. It also has nice theoretical properties that guarantee an overall distinguishable margin between the detection scores for in-distribution and OOD samples, which, more critically, can be further strengthened by a learning-free energy belief propagation scheme. For comprehensive evaluation, we introduce new benchmark settings that evaluate the model for detecting OOD data from both synthetic and real distribution shifts (cross-domain graph shifts and temporal graph shifts). The results show that GNNSafe achieves up to $17.0\%$ AUROC improvement over state-of-the-arts and it could serve as simple yet strong baselines in such an under-developed area.

연구 동기 및 목표

  • 그래프 구조 데이터에서 노드 간의 의존성이 존재하는 경우 신뢰할 수 있는 OOD 탐지가 부족하다는 문제를 해결한다.
  • GNN 로짓에서 추출된 에너지 점수를 기반으로 한 간단하고 아키텍처에 독립적인 OOD 탐지기(GNNSafe)를 도입한다.
  • 그래프 토폴로지를 활용한 에너지 기반 신념 전파 체계를 통해 탐지 성능을 강화한다.
  • 선택적 OOD 노출을 통한 에너지 간격 tightening과 함께 학습하여 분포 내 성능을 유지한다.

제안 방법

  • 노드 분류를 위한 GCN 기반 인코더를 사용해 각 노드의 로짓을 생성한다.
  • 에너지 함수 E(x, Gx, y; h) = -h_theta(x, Gx)[y] 및 자유 에너지 E(x, Gx) = -log sum_y exp(h_theta(x, Gx)[y])를 정의한다.
  • E를 감소시키도록 분포 내 데이터에서의 에너지 감소를 보장하는 표준 감독 손실로 학습한다(명제 1).
  • 에너지 기반 신념 전파 적용: E^(k) = alpha E^(k-1) + (1 - alpha) D^{-1} A E^(k-1)로 에너지를 이고-그래프 에너지를 전파한다(식 7).
  • 판단 규칙: 에너지가 전파된 tilde{E} <= tau이면 OOD; 그렇지 않으면 분포 내(In-distribution)로 판정한다(식 8).
  • 선택적으로 OOD 노출과 함께 에너지-정규화 목적어를 추가해 [t_in, t_out] 안으로 에너지를 bound하고 감독 학습을 유지한다(식 9 및 명제 3).
(a) The energy distributions on Twitch where nodes in different sub-graphs are OOD instances
(a) The energy distributions on Twitch where nodes in different sub-graphs are OOD instances

실험 결과

연구 질문

  • RQ1그래프에서 GNN 로짓으로부터 파생된 에너지 기반 점수가 분포 내 샘플과 OOD 샘플을 효과적으로 구분할 수 있는가?
  • RQ2에너지를 그래프 토폴로지에 따라 전파하는 것이 밀도 모델 재학습 없이 OOD 탐지 성능을 향상시키는가?
  • RQ3OOD 노출을 에너지-정규화 목적과 함께 도입하면 분포 내 정확도 손상 없이 OOD 구분력을 더 강화하는가?
  • RQ4GNNSafe가 GNN 아키텍처에 독립적이며 다양한 그래프 데이터셋과 OOD 유형에 대해 효과적인가?

주요 결과

  • GNNSafe는 OOD 탐지 벤치마크에서.state-of-the-art 대비 평균 AUROC를 최대 17.0% 포인트 개선한다.
  • 에너지 전파는 Energy 단독 사용보다 OOD 탐지 성능을 일관되게 향상시킨다.
  • GNNSafe++(에너지 정규화 포함)는 많은 설정에서 분포 내와 OOD 데이터 간의 에너지 간격을 더욱 확장한다.
  • GNNSafe는 분포 내 정확도는 유지하면서 OOD 신뢰성 및 효율성을 개선한다.
  • 이 접근법은 아키텍처에 독립적이며 일반적인 GNN 및 그래프 트랜스포머에 적용 가능하다.
(b) The energy distributions on Arxiv where nodes appearing in the future are OOD instances
(b) The energy distributions on Arxiv where nodes appearing in the future are OOD instances

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.