arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.04640cs.LG
收藏

LinkGPT:教大型语言模型预测缺失链接

LinkGPT: Teaching Large Language Models To Predict Missing Links

University of Michigan(密歇根大学)

Zhongmou He, Jing Zhu, Shengyi Qian, Joyce Chai, Danai Koutra

AI总结:

本文提出LinkGPT,首个端到端训练用于链接预测的大型语言模型,通过两阶段指令微调整合结构信息,并采用检索-重排序方案提升推理效率,在真实图上取得最优性能及10倍加速。

摘要:

大型语言模型(LLMs)在各种语言和视觉任务上已展现出有前景的结果。最近,将LLMs应用于基于图的任务,特别是文本属性图(Text-Attributed Graphs, TAGs),引起了越来越多的关注。然而,大多数研究集中于节点分类,而使用LLMs进行链接预测(link prediction, LP)的研究仍然不足。在这项工作中,我们提出了一个关于LLMs的新任务,其目标是利用LLMs预测图中节点之间的缺失链接。该任务评估LLM对结构化数据进行推理并基于学习到的模式推断新事实的能力。这一新任务带来了两个关键挑战:(1)如何有效地将成对结构信息整合到LLMs中,而已知这些信息对LP性能至关重要;(2)如何在教LLMs执行LP时解决计算瓶颈问题。为了解决这些挑战,我们提出了LinkGPT,这是第一个用于LP任务的端到端训练的LLM。为了有效增强LLM理解底层结构的能力,我们设计了一个两阶段指令微调方法,其中第一阶段微调成对编码器、投影器和节点投影器,第二阶段进一步微调LLMs以预测链接。为了解决推理时的效率挑战,我们引入了一种检索-重排序方案。实验表明,LinkGPT可以在真实世界图上取得最先进的性能,并在零样本和少样本学习中展现出优越的泛化能力,超越了现有基准。在推理时,它可以在保持高LP准确率的同时实现10倍的加速。

英文摘要:

Large Language Models (LLMs) have shown promising results on various language and vision tasks. Recently, there has been growing interest in applying LLMs to graph-based tasks, particularly on Text-Attributed Graphs (TAGs). However, most studies have focused on node classification, while the use of LLMs for link prediction (LP) remains understudied. In this work, we propose a new task on LLMs, where the objective is to leverage LLMs to predict missing links between nodes in a graph. This task evaluates an LLM's ability to reason over structured data and infer new facts based on learned patterns. This new task poses two key challenges: (1) How to effectively integrate pairwise structural information into the LLMs, which is known to be crucial for LP performance, and (2) how to solve the computational bottleneck when teaching LLMs to perform LP. To address these challenges, we propose LinkGPT, the first end-to-end trained LLM for LP tasks. To effectively enhance the LLM's ability to understand the underlying structure, we design a two-stage instruction tuning approach where the first stage fine-tunes the pairwise encoder, projector, and node projector, and the second stage further fine-tunes the LLMs to predict links. To address the efficiency challenges at inference time, we introduce a retrieval-reranking scheme. Experiments show that LinkGPT can achieve state-of-the-art performance on real-world graphs as well as superior generalization in zero-shot and few-shot learning, surpassing existing benchmarks. At inference time, it can achieve $10\times$ speedup while maintaining high LP accuracy.

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

↑