找出阿基里斯之踵:一种用于动态揭示大语言模型事实错误的迭代方法
Identifying the Achilles' Heel: An Iterative Method for Dynamically Uncovering Factual Errors in Large Language Models
AI总结:
本文提出HalluHunter框架,通过知识图谱和规则基NLP技术,系统揭示大语言模型的事实错误,测试表明可触发55%的问题错误。
摘要:
大型语言模型(LLMs)如ChatGPT因其预训练和微调的广泛知识而成为各种应用的基础。尽管如此,它们容易生成事实性和常识性错误,这在医疗、新闻和教育等关键领域可能误导用户。当前评估LLMs事实性的方法受限于大量人工劳动、测试数据污染或范围有限,阻碍了高效暴露错误。为此,我们提出HalluHunter,一种新的全自动框架,系统揭示LLMs的事实不准确。HalluHunter采用基于知识图谱的方法,提取事实三元组以生成多样化的单跳和多跳推理问题类型,使用基于规则的自然语言处理(NLP)技术。其迭代过程从随机三元组选择生成问题开始,随后在后续迭代中进行自适应选择,针对LLMs频繁出错的三元组。我们在九个 prominent LLMs 上的广泛测试表明,HalluHunter可以触发最多55%的测试问题中的事实错误。此外,我们展示了HalluHunter的测试用例,特别是在自适应选择中,能够进一步暴露LLMs事实性基准测试中的弱点,同时保持问题的覆盖面。所有代码、数据和结果均可通过此链接获取:https://github.com/Mysterchan/HalluHunter。
英文摘要:
Large Language Models (LLMs) like ChatGPT are foundational in various applications due to their extensive knowledge from pre-training and fine-tuning. Despite this, they are prone to generating factual and commonsense errors, raising concerns in critical areas like healthcare, journalism, and education to mislead users. Current methods for evaluating LLMs' veracity are limited by the need for extensive human labor, test data contamination, or limited scope, hindering efficient and effective exposure of errors. To address these challenges, we propose HalluHunter, a novel, fully automated framework for systematically uncovering factual inaccuracies in LLMs. HalluHunter employs a knowledge-graph-based approach, extracting fact triplets to generate diverse question types for single- and multi-hop reasoning using rule-based Natural Language Processing (NLP) techniques. Its iterative process starts with random triplet selection for question generation, followed by adaptive selection in subsequent iterations, targeting triplets where LLMs frequently err based on their performance analysis. Our extensive tests on nine prominent LLMs reveal that HalluHunter can trigger factual errors in up to 55% of tested questions. Moreover, we demonstrate that HalluHunter's test cases, particularly in adaptive selection, could further expose the weaknesses in benchmarking the factuality in LLMs meanwhile maintaining the coverage of questions. All code, data, and results are available at this link: https://github.com/Mysterchan/HalluHunter.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。