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

ERBench:一种基于实体-关系的大语言模型可自动验证幻觉基准

ERBench: An Entity-Relationship based Automatically Verifiable Hallucination Benchmark for Large Language Models

KAIST(韩国科学技术院);Microsoft Research Asia(微软亚洲研究院);Microsoft Azure(微软 Azure)

Jio Oh, Soyeon Kim, Junseok Seo, Jindong Wang, Ruochen Xu, Xing Xie, Steven Euijong Whang

AI总结:

针对现有大语言模型基准难以评估任意复杂度思维过程的问题,提出基于实体-关系模型完整性约束的ERBench基准,可自动构建多跳问题并验证答案与推理过程,支持多领域、多模态与持续评估。

摘要:

大语言模型(LLM)已在各类应用中取得前所未有的性能,但对其的评估仍颇具挑战。现有基准要么为人工构建,要么虽实现自动化,却不具备评估任意复杂度LLM思维过程的能力。我们认为,利用基于实体-关系(ER)模型的现有关系型数据库是构建基准的一种很有前景的方法,因为这类数据库包含可用于向LLM提问的结构化知识。与同样用于评估LLM的知识图谱不同,关系型数据库具备完整性约束,可用于更好地构建复杂的深度问题并验证答案:(1)函数依赖可用于定位LLM要正确回答包含特定属性值的给定问题所必须掌握的关键关键词;(2)外键约束可用于连接关系并构建多跳问题,这类问题的长度可任意设定,还可用于调试中间答案。据此我们提出ERBench,它利用这些完整性约束将任意数据库转换为LLM基准。ERBench支持随数据库变化的持续评估、多模态问题以及各类提示工程技术。在实验中,我们使用多个领域的数据库构建了LLM基准,并对当前主流LLM开展了广泛对比。我们证明,ERBench不仅能通过检查答案正确性来恰当评估任意LLM,还能通过查找正确关键词有效验证推理过程。

英文摘要:

Large language models (LLMs) have achieved unprecedented performances in various applications, yet evaluating them is still challenging. Existing benchmarks are either manually constructed or are automatic, but lack the ability to evaluate the thought process of LLMs with arbitrary complexity. We contend that utilizing existing relational databases based on the entity-relationship (ER) model is a promising approach for constructing benchmarks as they contain structured knowledge that can be used to question LLMs. Unlike knowledge graphs, which are also used to evaluate LLMs, relational databases have integrity constraints that can be used to better construct complex in-depth questions and verify answers: (1) functional dependencies can be used to pinpoint critical keywords that an LLM must know to properly answer a given question containing certain attribute values; and (2) foreign key constraints can be used to join relations and construct multi-hop questions, which can be arbitrarily long and used to debug intermediate answers. We thus propose ERBench, which uses these integrity constraints to convert any database into an LLM benchmark. ERBench supports continuous evaluation as databases change, multimodal questions, and various prompt engineering techniques. In our experiments, we construct LLM benchmarks using databases of multiple domains and make an extensive comparison of contemporary LLMs. We show how ERBench can properly evaluate any LLM by not only checking for answer correctness, but also effectively verifying the rationales by looking for the right keywords.

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

↑