arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.14512cs.LGcs.AIcs.CL
收藏

LLMs作为零样本图学习器:GNN表示与LLM Token Embeddings的对齐

LLMs as Zero-shot Graph Learners: Alignment of GNN Representations with LLM Token Embeddings

Beihang University(北京航空航天大学)

Duo Wang, Yuan Zuo, Fengzhi Li, Junjie Wu

AI总结:

提出TEA-GLM框架,通过预训练GNN使其表示与LLM的token embeddings对齐,并训练线性投影器生成图token embeddings,结合统一指令实现跨数据集和跨任务的零样本图机器学习。

摘要:

零样本图机器学习,尤其是图神经网络(GNNs),由于标记数据稀缺的挑战而引起了广泛关注。虽然自监督学习和图提示学习等方法已被广泛探索,但它们通常依赖于使用任务特定标签进行微调,限制了它们在零样本场景中的有效性。受指令微调大语言模型(LLMs)零样本能力的启发,我们引入了一个名为Token Embedding-Aligned Graph Language Model(TEA-GLM)的新颖框架,该框架利用LLMs作为跨数据集和跨任务的零样本学习器用于图机器学习。具体来说,我们预训练一个GNN,将其表示与LLM的token embeddings对齐。然后我们训练一个线性投影器,将GNN的表示转换为固定数量的图token embeddings,而无需微调LLM。为不同层级的各种图任务设计了统一指令,例如节点分类(节点级)和链路预测(边级)。这些设计选择共同增强了我们的方法在零样本学习中的有效性,使其与现有方法区别开来。实验表明,与使用LLMs作为预测器的其他方法相比,我们的图token embeddings帮助LLM预测器在未见数据集和任务上实现了最先进的性能。

英文摘要:

Zero-shot graph machine learning, especially with graph neural networks (GNNs), has garnered significant interest due to the challenge of scarce labeled data. While methods like self-supervised learning and graph prompt learning have been extensively explored, they often rely on fine-tuning with task-specific labels, limiting their effectiveness in zero-shot scenarios. Inspired by the zero-shot capabilities of instruction-fine-tuned large language models (LLMs), we introduce a novel framework named Token Embedding-Aligned Graph Language Model (TEA-GLM) that leverages LLMs as cross-dataset and cross-task zero-shot learners for graph machine learning. Concretely, we pretrain a GNN, aligning its representations with token embeddings of an LLM. We then train a linear projector that transforms the GNN's representations into a fixed number of graph token embeddings without tuning the LLM. A unified instruction is designed for various graph tasks at different levels, such as node classification (node-level) and link prediction (edge-level). These design choices collectively enhance our method's effectiveness in zero-shot learning, setting it apart from existing methods. Experiments show that our graph token embeddings help the LLM predictor achieve state-of-the-art performance on unseen datasets and tasks compared to other methods using LLMs as predictors.

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

↑