TensorX
返回文献探索

Paper · arXiv 2501.18119

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

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

25 upvotesJanuary 30, 2025arXiv 预印本
AI 摘要

A two-stage framework using self-supervised quantized representation (SSQR) integrates Knowledge Graphs (KGs) with Large Language Models (LLMs), producing more distinguishable codes and enhancing performance on KG tasks.

Knowledge Graph (KG)structural informationLarge Language Models (LLMs)self-supervised quantized representation (SSQR)discrete codesKG instruction-following datafine-tuned LLaMA2LLaMA3.1KG link predictiontriple classification

Abstract

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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号