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

图语言模型

Graph Language Models

Heidelberg University(海德堡大学)

Moritz Plenz, Anette Frank

AI总结:

本文提出图语言模型(GLM),结合预训练LM的文本理解能力与图结构偏置,统一处理图与文本输入,在关系分类任务中超越LM和GNN基线。

摘要:

尽管语言模型(LMs)是自然语言处理的主力军,但它们与结构化知识图谱(KGs)的相互作用仍在被积极研究。当前编码此类图谱的方法通常要么(i)将其线性化以供LMs嵌入——这未能充分利用结构信息,要么(ii)使用图神经网络(GNNs)来保留图结构——但GNNs无法像预训练LMs那样良好地表示文本特征。在我们的工作中,我们引入了一种新型LM类型,即图语言模型(GLM),它整合了两种方法的优势并减轻了它们的弱点。GLM的参数从预训练LM初始化,以增强对单个图概念和三元组的理解。同时,我们设计了GLM的架构以融入图偏置,从而促进图内有效的知识分布。这使GLMs能够处理图、文本以及两者交错的输入。在关系分类任务上的实证评估表明,GLM嵌入在监督和零样本设置中均超越了基于LM和GNN的基线,证明了其多功能性。

英文摘要:

While Language Models (LMs) are the workhorses of NLP, their interplay with structured knowledge graphs (KGs) is still actively researched. Current methods for encoding such graphs typically either (i) linearize them for embedding with LMs -- which underutilize structural information, or (ii) use Graph Neural Networks (GNNs) to preserve the graph structure -- but GNNs cannot represent text features as well as pretrained LMs. In our work we introduce a novel LM type, the Graph Language Model (GLM), that integrates the strengths of both approaches and mitigates their weaknesses. The GLM parameters are initialized from a pretrained LM to enhance understanding of individual graph concepts and triplets. Simultaneously, we design the GLM's architecture to incorporate graph biases, thereby promoting effective knowledge distribution within the graph. This enables GLMs to process graphs, texts, and interleaved inputs of both. Empirical evaluations on relation classification tasks show that GLM embeddings surpass both LM- and GNN-based baselines in supervised and zero-shot setting, demonstrating their versatility.

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

↑