arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.07412cs.CLcs.AIcs.DB
收藏

从大语言模型生成知识图谱:GPT-4、LLaMA 2与BERT的比较研究

Generating Knowledge Graphs from Large Language Models: A Comparative Study of GPT-4, LLaMA 2, and BERT

IITE Indus University(IITE因德大学)

Ahan Bhatt, Nandan Vaghela, Kush Dudhia

AI总结:

该研究针对传统知识图谱构建的局限,提出利用GPT-4、LLaMA 2(13B)和BERT直接从非结构化数据生成知识图谱的方法,经多指标评估发现三类模型各有优势,为简化知识图谱创建、推进GraphRAG落地应用奠定基础。

摘要:

知识图谱(KGs)对GraphRAGs的功能至关重要,GraphRAG是检索增强生成系统(RAGs)的一种,在需要结构化推理和语义理解的任务中表现出色。然而,由于传统方法的准确性和可扩展性限制,为GraphRAGs创建知识图谱仍然是一项重大挑战。本文提出了一种新颖方法,利用GPT-4、LLaMA 2(13B)和BERT等大语言模型(LLMs)直接从非结构化数据生成知识图谱,绕开了传统流程。我们使用精确率、召回率、F1值、图编辑距离和语义相似度等指标,评估这些模型生成高质量知识图谱的能力。结果表明,GPT-4实现了更优的语义保真度和结构准确性,LLaMA 2在轻量级、领域特定图谱方面表现突出,BERT则揭示了实体-关系建模中的挑战。本研究强调了大语言模型在简化知识图谱创建、提升GraphRAG在实际应用中可及性方面的潜力,同时为未来的进展奠定了基础。

英文摘要:

Knowledge Graphs (KGs) are essential for the functionality of GraphRAGs, a form of Retrieval-Augmented Generative Systems (RAGs) that excel in tasks requiring structured reasoning and semantic understanding. However, creating KGs for GraphRAGs remains a significant challenge due to accuracy and scalability limitations of traditional methods. This paper introduces a novel approach leveraging large language models (LLMs) like GPT-4, LLaMA 2 (13B), and BERT to generate KGs directly from unstructured data, bypassing traditional pipelines. Using metrics such as Precision, Recall, F1-Score, Graph Edit Distance, and Semantic Similarity, we evaluate the models' ability to generate high-quality KGs. Results demonstrate that GPT-4 achieves superior semantic fidelity and structural accuracy, LLaMA 2 excels in lightweight, domain-specific graphs, and BERT provides insights into challenges in entity-relationship modeling. This study underscores the potential of LLMs to streamline KG creation and enhance GraphRAG accessibility for real-world applications, while setting a foundation for future advancements.

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

↑