Large language models can better understand knowledge graphs than we thought

被引:0
|
作者
Dai, Xinbang [1 ]
Hua, Yuncheng [2 ]
Wu, Tongtong [3 ]
Sheng, Yang [4 ]
Ji, Qiu [4 ]
Qi, Guilin [1 ]
机构
[1] Southeast Univ, Nanjing, Jiangsu, Peoples R China
[2] Univ New South Wales, Sydney, NSW, Australia
[3] Monash Univ, Melbourne, Vic, Australia
[4] Nanjing Univ Posts & Telecommun, Nanjing, Jiangsu, Peoples R China
关键词
Knowledge graph; Large language model;
D O I
10.1016/j.knosys.2025.113060
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页数:10
相关论文
共 50 条
  • [1] Workshop on Enterprise Knowledge Graphs using Large Language Models
    Gupta, Rajeev
    Srinivasa, Srinath
    PROCEEDINGS OF THE 32ND ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT, CIKM 2023, 2023, : 5271 - 5272
  • [2] Large Language Models With Holistically Thought Could Be Better Doctors
    Weng, Yixuan
    Li, Bin
    Xia, Fei
    Zhu, Minjun
    Sun, Bin
    He, Shizhu
    Liu, Shengping
    Li, Kang
    Li, Shutao
    Zhao, Jun
    NATURAL LANGUAGE PROCESSING AND CHINESE COMPUTING, PT II, NLPCC 2024, 2025, 15360 : 319 - 332
  • [3] AIREG: Enhanced Educational Recommender System with Large Language Models and Knowledge Graphs
    Fathi, Fatemeh
    SEMANTIC WEB: ESWC 2024 SATELLITE EVENTS, PT II, 2025, 15345 : 84 - 93
  • [4] Enhancing emergency decision-making with knowledge graphs and large language models
    Chen, Minze
    Tao, Zhenxiang
    Tang, Weitong
    Qin, Tingxin
    Yang, Rui
    Zhu, Chunli
    INTERNATIONAL JOURNAL OF DISASTER RISK REDUCTION, 2024, 113
  • [5] Relation labeling in product knowledge graphs with large language models for e-commerce
    Chen, Jiao
    Ma, Luyi
    Li, Xiaohan
    Xu, Jianpeng
    Cho, Jason H. D.
    Nag, Kaushiki
    Korpeoglu, Evren
    Kumar, Sushant
    Achan, Kannan
    INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2024, 15 (12) : 5725 - 5743
  • [6] A Bidirectional Question-Answering System using Large Language Models and Knowledge Graphs
    Han, Lifan
    Wang, Xin
    Li, Zhao
    Zhang, Heyi
    Chen, Zirui
    WEB AND BIG DATA, APWEB-WAIM 2023 INTERNATIONAL WORKSHOPS-KGMA 2023 AND SEMIBDMA 2023, 2024, 2094 : 3 - 10
  • [7] Give us the Facts: Enhancing Large Language Models With Knowledge Graphs for Fact-Aware Language Modeling
    Yang, Linyao
    Chen, Hongyang
    Li, Zhao
    Ding, Xiao
    Wu, Xindong
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2024, 36 (07) : 3091 - 3110
  • [8] KG-EGV: A Framework for Question Answering with Integrated Knowledge Graphs and Large Language Models
    Hou, Kun
    Li, Jingyuan
    Liu, Yingying
    Sun, Shiqi
    Zhang, Haoliang
    Jiang, Haiyang
    ELECTRONICS, 2024, 13 (23):
  • [9] Leveraging Medical Knowledge Graphs Into Large Language Models for Diagnosis Prediction: Design and Application Study
    Gao, Yanjun
    Li, Ruizhe
    Croxford, Emma
    Caskey, John
    Patterson, Brian W.
    Churpek, Matthew
    Miller, Timothy
    Dligach, Dmitriy
    Afshar, Majid
    JMIR AI, 2025, 4
  • [10] Combining large language models with enterprise knowledge graphs: a perspective on enhanced natural language understanding
    Mariotti, Luca
    Guidetti, Veronica
    Mandreoli, Federica
    Belli, Andrea
    Lombardi, Paolo
    FRONTIERS IN ARTIFICIAL INTELLIGENCE, 2024, 7