[논문 리뷰] Both Topology and Text Matter: Revisiting LLM-guided Out-of-Distribution Detection on Text-attributed Graphs
LG-Plug는 텍스트 속성 그래프에서 토폴로지와 텍스트를 정렬하는 플러그 앤 플레이 프레임워크이며 합의 기반 LLM 유도 OOD 노출을 정규화로 활용하여 토폴로지 기반 OOD 탐지기의 성능을 향상시키고 여섯 개 TAG 벤치마크에서 LLM 기반 기준선 대비 최첨단 성능을 달성한다.
Text-attributed graphs (TAGs) associate nodes with textual attributes and graph structure, enabling GNNs to jointly model semantic and structural information. While effective on in-distribution (ID) data, GNNs often encounter out-of-distribution (OOD) nodes with unseen textual or structural patterns in real-world settings, leading to overconfident and erroneous predictions in the absence of reliable OOD detection. Early approaches address this issue from a topology-driven perspective, leveraging neighboring structures to mitigate node-level detection bias. However, these methods typically encode node texts as shallow vector features, failing to fully exploit rich semantic information. In contrast, recent LLM-based approaches generate pseudo OOD priors by leveraging textual knowledge, but they suffer from several limitations: (1) a reliability-informativeness imbalance in the synthesized OOD priors, as the generated OOD exposures either deviate from the true OOD semantics, or introduce non-negligible ID noise, all of which offers limited improvement to detection performance; (2) reliance on specialized architectures, which prevents incorporation of the extensive effective topology-level insights that have been empirically validated in prior work. To this end, we propose LG-Plug, an LLM-Guided Plug-and-play strategy for TAG OOD detection tasks. LG-Plug aligns topology and text representations to produce fine-grained node embeddings, then generates consensus-driven OOD exposure via clustered iterative LLM prompting. Moreover, it leverages lightweight in-cluster codebook and heuristic sampling reduce time cost of LLM querying. The resulting OOD exposure serves as a regularization term to separate ID and OOD nodes, enabling seamless integration with existing detectors.
연구 동기 및 목표
- 기존 TAG에서의 LLM 기반 OOD 우선순위의 한계, 즉 신뢰도-정보성의 불균형과 토폴로지 기반 탐지기와의 호환성 저하를 식별한다.
- LG-Plug를 제안하여 토폴로지-텍스트 표현을 정렬하고 합의 기반 LLM 기반 OOD 노출을 생성한다.
- 토폴로지 기반 그래프 OOD 탐지기의 정규화 항으로 LLM 유도 우선순위를 원활하게 통합한다.
- 여섯 개 TAG 벤치마크에서 효과성과 효율성을 시演한다.
제안 방법
- 그래프 인코더로 2-layer GCN을 사용하고 Transformer 기반 텍스트 인코더를 사용하여 정렬된 노드 임베딩을 얻는 토폴로지-텍스트 표현 정렬 모듈을 학습한다.
- 노드 수준 및 에지 수준 대조 목표를 사용하여 그래프와 텍스트 표현을 공동으로 최적화한다.
- 비라벨 노드 임베딩을 클러스터링하고 근-중심 대표체에 대해 합의 기반 LLM 프롬프트를 수행하여 신뢰할 수 있는 OOD 노출을 생성한다.
- 질의 수를 최소화하기 위해 경량의 클러스터 내 카테고리 코드북을 유지하고 배치별 반복적 LLM 프롬프트를 수행한다.
- 클러스터별 코드북에서 상위 K 개의 OOD 카테고리를 선택하고 이를 ID 카테고리를 제외하는 신뢰할 수 있는 OOD 노출로 취급한다.
- 노출을 점수 수준의 정규화 항으로 통합하여 ID 노드와 OOD 노드 간의 구분을 촉진하되 탐지기 아키텍처를 변경하지 않는다.

실험 결과
연구 질문
- RQ1Q1: LLM이 TAG OOD 탐지를 위해 신뢰할 수 있고 정보성이 있는 의사 OOD 우선순위를 어떻게 생성할 수 있을까?
- RQ2Q2: LLM 유도 OOD 우선순위를 기존 토폴로지 기반 그래프 OOD 탐지기와의 호환성을 희생하지 않고 어떻게 사용할 수 있을까?
주요 결과
- LG-Plug는 여섯 개 TAG 벤치마크에서 토폴로지 기반 OOD 방법을 일관되게 개선합니다 (≥7% FPR95 감소).
- LG-Plug는 LLM 기반 그래프 OOD 기준선과 비교한 상태-최적 감소를 달성합니다 (≥5% FPR95 감소).
- 토폴로지-텍스트 정렬 및 합의 기반 OOD 노출은 이전의 LLM 단독 접근법보다 더 신뢰할 수 있고 정보성이 높은 OOD 우선순위를 제공합니다.
- OOD 노출은 GNNSafe 및 GRASP와 같은 탐지기에 원활한 통합을 가능하게 하는 가벼운 점수 정규화 역할을 합니다.
- 시각화 결과 LG-Plug가 ID와 OOD 점수 분포 간의 중첩을 줄이면서 토폴로지 기반 탐지기의 모양을 보존합니다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.