arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.11541cs.CLcs.AI
收藏

大型语言模型对知识图谱的理解能力比我们想象的更强

Large Language Models Can Better Understand Knowledge Graphs Than We Thought

Southeast University(东南大学);The University of New South Wales(新南威尔士大学);Monash University(莫纳什大学);Nanjing University of Posts and Telecommunications(南京邮电大学)

Xinbang Dai, Yuncheng Hua, Tongtong Wu, Yang Sheng, Qiu Ji, Guilin Qi

AI总结:

本研究通过大规模实验发现,线性化三元组比自然语言文本更能帮助LLMs理解知识图谱并回答事实性问题,且不同模型对三元组组织格式有不同偏好,更大规模模型更易受噪声和不完整子图影响。

摘要:

当我们把知识图谱(KGs)中的事实性知识整合到大型语言模型(LLMs)中以提升其性能时,通过训练进行注入的成本会随着模型规模的扩大而增加。因此,开发能有效将知识图谱信息融入LLMs的提示策略引起了广泛关注。然而,社区尚未全面理解LLMs如何处理和解释提示中不同输入格式和组织方式的知识图谱信息,研究人员往往依赖试错方法。为弥补这一空白,我们设计了大量实验,实证研究LLMs对不同知识图谱提示的理解能力。在字面层面,我们揭示了LLMs对各种输入格式(从线性化三元组到流畅的自然语言文本)的偏好。在注意力分布层面,我们探讨了驱动这些偏好的潜在机制。随后,我们研究了结构化知识的组织方式如何影响LLMs,并评估了LLMs在实际场景中处理和利用知识图谱信息的鲁棒性。我们的实验表明:(1)线性化三元组比流畅的自然语言文本更能有效帮助LLMs理解知识图谱信息并回答事实密集型问题;(2)不同的LLMs对三元组的不同组织格式表现出不同的偏好;(3)规模更大的LLMs更容易受到嘈杂、不完整子图的影响。

英文摘要:

When we integrate factual knowledge from knowledge graphs (KGs) into large language models (LLMs) to enhance their performance, the cost of injection through training increases with the scale of the models. Consequently, there is significant interest in developing prompt strategies that effectively incorporate KG information into LLMs. However, the community has not yet comprehensively understood how LLMs process and interpret KG information in different input formats and organizations within prompts, and researchers often rely on trial and error. To address this gap, we design extensive experiments to empirically study LLMs' comprehension of different KG prompts. At the literal level, we reveal LLMs' preferences for various input formats (from linearized triples to fluent natural language text). At the attention distribution level, we discuss the underlying mechanisms driving these preferences. We then investigate how the organization of structured knowledge impacts LLMs and evaluate LLMs' robustness in processing and utilizing KG information in practical scenarios. Our experiments show that (1) linearized triples are more effective than fluent NL text in helping LLMs understand KG information and answer fact-intensive questions; (2) Different LLMs exhibit varying preferences for different organizational formats of triples; (3) LLMs with larger scales are more susceptible to noisy, incomplete subgraphs.

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

↑