arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.15755cs.LG
收藏

GraphICL:通过结构化提示设计解锁LLM的图学习潜力

GraphICL: Unlocking Graph Learning Potential in LLMs through Structured Prompt Design

New York University (Shanghai)(纽约大学(上海));New York University(纽约大学);Case Western Reserve University(凯斯西储大学)

Yuanfu Sun, Zhengnan Ma, Yi Fang, Jing Ma, Qiaoyu Tan

AI总结:

针对缺乏纯提示设计评估基准的问题,提出GraphICL基准,通过结构化提示模板使通用LLM在资源受限和域外图任务中超越专门的图LLM,证明了无需训练的提示工程的潜力。

摘要:

文本与关系系统日益重要,推动了增强大型语言模型(LLMs)处理图结构数据的能力,特别是文本属性图(TAGs),其样本由通过边相互连接的文本描述表示。尽管研究主要集中在通过任务特定的指令微调开发专门的图LLMs,但令人惊讶的是,目前仍然缺乏一个仅通过提示设计来评估LLMs的综合基准。如果没有这种精心设计的评估基准,大多数甚至所有定制的图LLMs都是使用简单的查询(例如,使用LLaMA进行零样本推理)与通用LLMs进行比较,这可能掩盖了它们的许多优势以及意想不到的困境。为了实现更通用的评估并揭示LLMs在图任务中的真正潜力,我们引入了Graph In-context Learning(GraphICL)Benchmark,这是一个综合基准,包含旨在捕获图结构并处理有限标签知识的新颖提示模板。我们的系统评估表明,配备了我们的GraphICL的通用LLMs在资源受限的设置和域外任务中优于最先进的专门的图LLMs和图神经网络模型。这些发现突显了提示工程在无需训练的情况下增强LLMs在图学习任务上的表现的巨大潜力,并为推进图LLMs的研究提供了强有力的基线。

英文摘要:

The growing importance of textual and relational systems has driven interest in enhancing large language models (LLMs) for graph-structured data, particularly Text-Attributed Graphs (TAGs), where samples are represented by textual descriptions interconnected by edges. While research has largely focused on developing specialized graph LLMs through task-specific instruction tuning, a comprehensive benchmark for evaluating LLMs solely through prompt design remains surprisingly absent. Without such a carefully crafted evaluation benchmark, most if not all, tailored graph LLMs are compared against general LLMs using simplistic queries (e.g., zero-shot reasoning with LLaMA), which can potentially camouflage many advantages as well as unexpected predicaments of them. To achieve more general evaluations and unveil the true potential of LLMs for graph tasks, we introduce Graph In-context Learning (GraphICL) Benchmark, a comprehensive benchmark comprising novel prompt templates designed to capture graph structure and handle limited label knowledge. Our systematic evaluation shows that general-purpose LLMs equipped with our GraphICL outperform state-of-the-art specialized graph LLMs and graph neural network models in resource-constrained settings and out-of-domain tasks. These findings highlight the significant potential of prompt engineering to enhance LLM performance on graph learning tasks without training and offer a strong baseline for advancing research in graph LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑