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

用于将知识图谱与大语言模型无缝集成的自监督量化表示

Self-supervised Quantized Representation for Seamlessly Integrating Knowledge Graphs with Large Language Models

National University of Singapore(新加坡国立大学);Xi’an Jiaotong University(西安交通大学)

Qika Lin, Tianzhe Zhao, Kai He, Zhen Peng, Fangzhi Xu, Ling Huang, Jingying Ma, Mengling Feng

AI总结:

提出自监督量化表示(SSQR)两阶段框架,将KG结构与语义知识压缩为离散码并输入LLM,实现无缝集成,在链路预测和三元组分类任务中表现优异且大幅减少token用量。

摘要:

由于知识图谱(KG)结构与自然语言之间存在自然鸿沟,将KG的整体结构信息与大语言模型(LLM)有效集成已成为一个重要问题。为此,我们提出一种两阶段框架,为每个实体学习并应用量化码,旨在实现KG与LLM的无缝集成。首先,提出自监督量化表示(SSQR)方法,将KG的结构和语义知识压缩为离散码(即tokens),使其与语言句子的格式对齐。我们进一步设计KG指令跟随数据,将这些学习到的码视为特征直接输入LLM,从而实现无缝集成。实验结果表明,SSQR优于现有无监督量化方法,生成更具区分度的码。此外,微调后的LLaMA2和LLaMA3.1在KG链路预测和三元组分类任务上也表现优异,每个实体仅使用16个tokens,而非传统提示方法中的数千个。

英文摘要:

Due to the presence of the natural gap between Knowledge Graph (KG) structures and the natural language, the effective integration of holistic structural information of KGs with Large Language Models (LLMs) has emerged as a significant question. To this end, we propose a two-stage framework to learn and apply quantized codes for each entity, aiming for the seamless integration of KGs with LLMs. Firstly, a self-supervised quantized representation (SSQR) method is proposed to compress both KG structural and semantic knowledge into discrete codes (\ie, tokens) that align the format of language sentences. We further design KG instruction-following data by viewing these learned codes as features to directly input to LLMs, thereby achieving seamless integration. The experiment results demonstrate that SSQR outperforms existing unsupervised quantized methods, producing more distinguishable codes. Further, the fine-tuned LLaMA2 and LLaMA3.1 also have superior performance on KG link prediction and triple classification tasks, utilizing only 16 tokens per entity instead of thousands in conventional prompting methods.

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

↑