arXiv:2502.00829cs.LGcs.SI2025-02ICML被引 28

分析大模型在节点分类中的适用条件,给出实用设计指南。

When Do LLMs Help With Node Classification? A Comprehensive Analysis

  • 构建统一测试平台LLMNodeBed,覆盖2700+模型实验
  • 发现大模型在半监督场景下显著优于传统方法
  • 适合想用大模型做图学习的研究者参考

节点分类是图分析中的基础任务,应用广泛。近年来大语言模型(LLMs)在该任务上取得突破,但缺乏明确的设计指南限制了实际应用。本文通过公平系统的比较,建立实用指导原则。首先构建了LLMNodeBed——一个包含10个同质性数据集、4个异质性数据集、8种基于大模型的算法、8个经典基线和3种学习范式的完整代码库与测试平台。随后进行大规模实验,训练并评估超过2,700个模型,识别出影响性能的关键因素(如学习范式、同质性)和组件(如模型规模、提示设计)。研究揭示8项关键发现,例如:(1) 在半监督设置中,大模型方法可显著超越传统方法,而在有监督设置中优势不明显;(2) 图基础模型虽优于开源大模型,但在零样本设置下仍不及GPT-4o等强模型。我们希望发布LLMNodeBed及研究洞察,推动可复现研究,激励未来探索。代码与数据集已公开于https://llmnodebed.github.io/。

原文摘要 · Abstract (English)

Node classification is a fundamental task in graph analysis, with broad applications across various fields. Recent breakthroughs in Large Language Models (LLMs) have enabled LLM-based approaches for this task. Although many studies demonstrate the impressive performance of LLM-based methods, the lack of clear design guidelines may hinder their practical application. In this work, we aim to establish such guidelines through a fair and systematic comparison of these algorithms. As a first step, we developed LLMNodeBed, a comprehensive codebase and testbed for node classification using LLMs. It includes 10 homophilic datasets, 4 heterophilic datasets, 8 LLM-based algorithms, 8 classic baselines, and 3 learning paradigms. Subsequently, we conducted extensive experiments, training and evaluating over 2,700 models, to determine the key settings (e.g., learning paradigms and homophily) and components (e.g., model size and prompt) that affect performance. Our findings uncover 8 insights, e.g., (1) LLM-based methods can significantly outperform traditional methods in a semi-supervised setting, while the advantage is marginal in a supervised setting; (2) Graph Foundation Models can beat open-source LLMs but still fall short of strong LLMs like GPT-4o in a zero-shot setting. We hope that the release of LLMNodeBed, along with our insights, will facilitate reproducible research and inspire future studies in this field. Codes and datasets are released at \href{https://llmnodebed.github.io/}{\texttt{https://llmnodebed.github.io/}}.

大模型图学习节点分类

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。