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

KaLM: 通过双视角知识图谱对比学习实现知识对齐的自回归语言模型

KaLM: Knowledge-aligned Autoregressive Language Modeling via Dual-view Knowledge Graph Contrastive Learning

Shanghai Jiao Tong University(上海交通大学)

Peng Yu, Cheng Deng, Beiya Dai, Xinbing Wang, Ying Wen

AI总结:

KaLM通过双视角知识图谱对比学习和三元组完成语言模型,实现LLMs与知识图谱的对齐,提升知识驱动任务的性能。

摘要:

自回归大语言模型(LLMs)通过下一个词预测进行预训练,本质上在生成任务中表现优异。然而,它们在知识驱动任务如事实性知识查询上的性能仍不令人满意。知识图谱(KGs)作为高质量的结构化知识库,可以为LLMs提供可靠的知识,可能弥补其知识缺陷。将LLMs与显式、结构化知识从KGs对齐一直是个挑战;先前的尝试要么未能有效对齐知识表示,要么牺牲了LLMs的生成能力,导致结果不理想。本文提出了KaLM,一种知识对齐语言模型方法,通过显式知识对齐和隐式知识对齐的联合目标对自回归LLMs进行微调。显式知识对齐目标旨在通过双视角知识图谱对比学习直接优化LLMs的知识表示。隐式知识对齐目标则通过三元组完成语言模型将知识的文本模式融入LLMs中。值得注意的是,我们的方法在知识驱动任务的评估中取得了显著的性能提升,特别是在基于嵌入的知识图谱补全和基于生成的知识图谱问答任务中。

英文摘要:

Autoregressive large language models (LLMs) pre-trained by next token prediction are inherently proficient in generative tasks. However, their performance on knowledge-driven tasks such as factual knowledge querying remains unsatisfactory. Knowledge graphs (KGs), as high-quality structured knowledge bases, can provide reliable knowledge for LLMs, potentially compensating for their knowledge deficiencies. Aligning LLMs with explicit, structured knowledge from KGs has been a challenge; previous attempts either failed to effectively align knowledge representations or compromised the generative capabilities of LLMs, leading to less-than-optimal outcomes. This paper proposes \textbf{KaLM}, a \textit{Knowledge-aligned Language Modeling} approach, which fine-tunes autoregressive LLMs to align with KG knowledge via the joint objective of explicit knowledge alignment and implicit knowledge alignment. The explicit knowledge alignment objective aims to directly optimize the knowledge representation of LLMs through dual-view knowledge graph contrastive learning. The implicit knowledge alignment objective focuses on incorporating textual patterns of knowledge into LLMs through triple completion language modeling. Notably, our method achieves a significant performance boost in evaluations of knowledge-driven tasks, specifically embedding-based knowledge graph completion and generation-based knowledge graph question answering.

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

↑