Coarse-to-Fine Open-Set Graph Node Classification with Large Language Models

Xueqi Ma, Xingjun Ma, Sarah Monazam Erfani, Danilo Mandic, James Bailey
12/18/2025
cs.LGcs.AI

No official code found. Best implementation: sihuo-design/CFC (1 star, last commit 2025-12-18).

Abstract

Developing open-set classification methods capable of classifying in-distribution (ID) data while detecting out-of-distribution (OOD) samples is essential for deploying graph neural networks (GNNs) in open-world scenarios. Existing methods typically treat all OOD samples as a single class, despite real-world applications, especially high-stake settings such as fraud detection and medical diagnosis, demanding deeper insights into OOD samples, including their probable labels. This raises a critical question: can OOD detection be extended to OOD classification without true label information? To address this question, we propose a Coarse-to-Fine open-set Classification (CFC) framework that leverages large language models (LLMs) for graph datasets. CFC consists of three key components: a coarse classifier that uses LLM prompts for OOD detection and outlier label generation, a GNN-based fine classifier trained with OOD samples identified by the coarse classifier for enhanced OOD detection and ID classification, and refined OOD classification achieved through LLM prompts and post-processed OOD labels. Unlike methods that rely on synthetic or auxiliary OOD samples, CFC employs semantic OOD instances that are genuinely out-of-distribution based on their inherent meaning, improving interpretability and practical utility. Experimental results show that CFC improves OOD detection by ten percent over state-of-the-art methods on graph and text domains and achieves up to seventy percent accuracy in OOD classification on graph datasets.

View on arXivView PDF

Code Implementations(1)

sihuo-design/CFCCommunity68%

The official code of "Coarse-to-Fine Open-Set Graph Node Classification with Large Language Models".

10Shell, PythonDec 17, 202510 months ago

Similar Papers

Cite this paper

@article{ma2025coarsetofine,
  title  = {Coarse-to-Fine Open-Set Graph Node Classification with Large Language Models},
  author = {Xueqi Ma and Xingjun Ma and Sarah Monazam Erfani and Danilo Mandic and James Bailey},
  year   = {2025},
  eprint = {2512.16244},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.16244v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.16244.svg)](https://codeofpaper.com/paper/2512.16244)

Discussion