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

KGLens:利用知识图谱实现大型语言模型高效且有效的知识探测

KGLens: Towards Efficient and Effective Knowledge Probing of Large Language Models with Knowledge Graphs

Apple(苹果公司)

Shangshang Zheng, He Bai, Yizhe Zhang, Yi Su, Xiaochuan Niu, Navdeep Jaitly

AI总结:

本文提出受Thompson采样启发的KGLens框架,通过图引导问题生成和参数化KG结构重要性采样,高效衡量LLM与知识图谱的事实对齐,并在多个领域KG和十个LLM上验证其接近人工的评估准确性。

摘要:

大型语言模型(LLM)可能会捏造事实,而经过整理的知识图谱(KG)通常在事实上可靠,尤其是在领域特定知识方面。衡量KG与LLM之间的对齐程度,可以有效探测LLM的事实性并识别其知识盲点。然而,在大规模KG上验证LLM可能成本高昂。本文提出KGLens,这是一个受Thompson采样启发的框架,旨在有效且高效地衡量KG与LLM之间的对齐。KGLens具有用于将KG转换为自然语言的图引导问题生成器,以及基于参数化KG结构、经过精心设计的重要性采样策略,以加快KG遍历。我们的仿真实验在六种不同采样方法下将暴力方法与KGLens进行比较,结果表明我们的方法实现了更优的探测效率。利用KGLens,我们对来自Wikidata的三个大型领域特定KG中的十个LLM的事实准确性进行了深入分析,这些KG包含超过19K条边、700种关系和21K个实体。人工评估结果表明,KGLens能够以几乎等同于人工标注者的准确度评估LLM,准确率达到人工准确率的95.7%。

英文摘要:

Large Language Models (LLMs) might hallucinate facts, while curated Knowledge Graph (KGs) are typically factually reliable especially with domain-specific knowledge. Measuring the alignment between KGs and LLMs can effectively probe the factualness and identify the knowledge blind spots of LLMs. However, verifying the LLMs over extensive KGs can be expensive. In this paper, we present KGLens, a Thompson-sampling-inspired framework aimed at effectively and efficiently measuring the alignment between KGs and LLMs. KGLens features a graph-guided question generator for converting KGs into natural language, along with a carefully designed importance sampling strategy based on parameterized KG structure to expedite KG traversal. Our simulation experiment compares the brute force method with KGLens under six different sampling methods, demonstrating that our approach achieves superior probing efficiency. Leveraging KGLens, we conducted in-depth analyses of the factual accuracy of ten LLMs across three large domain-specific KGs from Wikidata, composing over 19K edges, 700 relations, and 21K entities. Human evaluation results indicate that KGLens can assess LLMs with a level of accuracy nearly equivalent to that of human annotators, achieving 95.7% of the accuracy rate.

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

↑