Leveraging Large Language Models for Effective Label-free Node Classification in Text-Attributed Graphs

Taiyan Zhang, Renchi Yang, Yurui Lai, Mingyu Yan, Xiaochun Ye +1 more
12/16/2024
cs.LGcs.AI

Official code: HKBU-LAGAS/Locle (5 stars, last commit 2025-07-05).

Abstract

Graph neural networks (GNNs) have become the preferred models for node classification in graph data due to their robust capabilities in integrating graph structures and attributes. However, these models heavily depend on a substantial amount of high-quality labeled data for training, which is often costly to obtain. With the rise of large language models (LLMs), a promising approach is to utilize their exceptional zero-shot capabilities and extensive knowledge for node labeling. Despite encouraging results, this approach either requires numerous queries to LLMs or suffers from reduced performance due to noisy labels generated by LLMs. To address these challenges, we introduce Locle, an active self-training framework that does Label-free node Classification with LLMs cost-Effectively. Locle iteratively identifies small sets of "critical" samples using GNNs and extracts informative pseudo-labels for them with both LLMs and GNNs, serving as additional supervision signals to enhance model training. Specifically, Locle comprises three key components: (i) an effective active node selection strategy for initial annotations; (ii) a careful sample selection scheme to identify "critical" nodes based on label disharmonicity and entropy; and (iii) a label refinement module that combines LLMs and GNNs with a rewired topology. Extensive experiments on five benchmark text-attributed graph datasets demonstrate that Locle significantly outperforms state-of-the-art methods under the same query budget to LLMs in terms of label-free node classification. Notably, on the DBLP dataset with 14.3k nodes, Locle achieves an 8.08% improvement in accuracy over the state-of-the-art at a cost of less than one cent. Our code is available at https://github.com/HKBU-LAGAS/Locle.

View on arXivView PDF

Code Implementations(1)

HKBU-LAGAS/LocleOfficial100%

Leveraging Large Language Models for Effective Label-free Node Classification in Text-Attributed Graphs

51Shell, PythonApr 28, 20251 years ago

Similar Papers

Cite this paper

@article{zhang2024leveraging,
  title  = {Leveraging Large Language Models for Effective Label-free Node Classification in Text-Attributed Graphs},
  author = {Taiyan Zhang and Renchi Yang and Yurui Lai and Mingyu Yan and Xiaochun Ye and Dongrui Fan},
  year   = {2024},
  eprint = {2412.11983},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.11983v3}
}

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/2412.11983.svg)](https://codeofpaper.com/paper/2412.11983)

Discussion