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

ReaLM:残差量化桥接知识图谱嵌入与大型语言模型

ReaLM: Residual Quantization Bridging Knowledge Graph Embeddings and Large Language Models

Tianjin University(天津大学);The University of Manchester(曼彻斯特大学)

Wenbin Guo, Xin Wang, Jiaoyan Chen, Lingbing Guo, Zhao Li, Zirui Chen

AI总结:

提出ReaLM框架,通过残差向量量化将知识图谱嵌入离散化为可学习标记,融入大型语言模型词汇表,结合本体约束实现结构化知识与语言模型的语义对齐,在知识图谱补全任务上取得最优性能。

摘要:

大型语言模型(LLM)最近成为知识图谱补全(KGC)的强大范式,提供了超越传统基于嵌入方法的强大推理和泛化能力。然而,现有的基于LLM的方法通常难以充分利用结构化语义表示,因为预训练KG模型的连续嵌入空间与LLM的离散标记空间根本不对齐。这种差异阻碍了有效的语义转移并限制了它们的性能。为了解决这一挑战,我们提出了ReaLM,一种新颖且有效的框架,通过残差向量量化的机制弥合了KG嵌入和LLM标记化之间的差距。ReaLM将预训练的KG嵌入离散化为紧凑的代码序列,并将它们作为可学习标记集成到LLM词汇表中,从而实现符号知识和上下文知识的无缝融合。此外,我们引入了本体引导的类约束以强制语义一致性,基于类级别的兼容性细化实体预测。在两个广泛使用的基准数据集上进行的大量实验表明,ReaLM实现了最先进的性能,证实了其在将结构化知识与大规模语言模型对齐方面的有效性。

英文摘要:

Large Language Models (LLMs) have recently emerged as a powerful paradigm for Knowledge Graph Completion (KGC), offering strong reasoning and generalization capabilities beyond traditional embedding-based approaches. However, existing LLM-based methods often struggle to fully exploit structured semantic representations, as the continuous embedding space of pretrained KG models is fundamentally misaligned with the discrete token space of LLMs. This discrepancy hinders effective semantic transfer and limits their performance. To address this challenge, we propose ReaLM, a novel and effective framework that bridges the gap between KG embeddings and LLM tokenization through the mechanism of residual vector quantization. ReaLM discretizes pretrained KG embeddings into compact code sequences and integrates them as learnable tokens within the LLM vocabulary, enabling seamless fusion of symbolic and contextual knowledge. Furthermore, we incorporate ontology-guided class constraints to enforce semantic consistency, refining entity predictions based on class-level compatibility. Extensive experiments on two widely used benchmark datasets demonstrate that ReaLM achieves state-of-the-art performance, confirming its effectiveness in aligning structured knowledge with large-scale language models.

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

↑