arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.12984cs.CLcs.AI
收藏

图神经网络能否成为大语言模型的良好适配器?

Can GNN be Good Adapter for LLMs?

Zhejiang University(浙江大学);Amazon Web Services(亚马逊网络服务)

Xuanwen Huang, Kaiqiao Han, Yang Yang, Dezheng Bao, Quanjin Tao, Ziwei Chai, Qi Zhu

AI总结:

本文提出GraphAdapter框架,利用图神经网络作为高效适配器与LLMs协同处理文本属性图,在降低计算成本的同时提升节点分类等下游任务性能。

摘要:

近年来,大语言模型(LLMs)在文本数据的理解和零样本学习方面展现出卓越能力,为许多与文本相关的领域带来了显著进展。在图领域,各种现实场景也涉及文本数据,其中任务和节点特征可以通过文本进行描述。这些文本属性图(TAGs)在社交媒体、推荐系统等方面具有广泛应用。因此,本文探讨如何利用LLMs对TAGs进行建模。以往的TAG建模方法基于百万参数规模的语言模型。当扩展到十亿参数规模的LLMs时,它们在计算成本上面临巨大挑战。此外,这些方法还忽略了LLMs的零样本推理能力。为此,我们提出了GraphAdapter,它使用图神经网络(GNN)作为高效适配器,与LLMs协同处理TAGs。在效率方面,GNN适配器仅引入少量可训练参数,并且可以以较低的计算成本进行训练。整个框架通过对节点文本进行自回归训练(下一个词元预测)。训练完成后,GraphAdapter可以通过任务特定的提示词无缝微调,用于各种下游任务。通过在多个真实世界TAGs上的大量实验,基于Llama 2的GraphAdapter在节点分类方面平均提升约5%。此外,GraphAdapter还可以适配其他语言模型,包括RoBERTa和GPT-2。这些有前景的结果表明,GNN可以在TAG建模中作为LLMs的有效适配器。

英文摘要:

Recently, large language models (LLMs) have demonstrated superior capabilities in understanding and zero-shot learning on textual data, promising significant advances for many text-related domains. In the graph domain, various real-world scenarios also involve textual data, where tasks and node features can be described by text. These text-attributed graphs (TAGs) have broad applications in social media, recommendation systems, etc. Thus, this paper explores how to utilize LLMs to model TAGs. Previous methods for TAG modeling are based on million-scale LMs. When scaled up to billion-scale LLMs, they face huge challenges in computational costs. Additionally, they also ignore the zero-shot inference capabilities of LLMs. Therefore, we propose GraphAdapter, which uses a graph neural network (GNN) as an efficient adapter in collaboration with LLMs to tackle TAGs. In terms of efficiency, the GNN adapter introduces only a few trainable parameters and can be trained with low computation costs. The entire framework is trained using auto-regression on node text (next token prediction). Once trained, GraphAdapter can be seamlessly fine-tuned with task-specific prompts for various downstream tasks. Through extensive experiments across multiple real-world TAGs, GraphAdapter based on Llama 2 gains an average improvement of approximately 5\% in terms of node classification. Furthermore, GraphAdapter can also adapt to other language models, including RoBERTa, GPT-2. The promising results demonstrate that GNNs can serve as effective adapters for LLMs in TAG modeling.

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

↑