arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.19740cs.CLcs.AIcs.CY
收藏

PertEval:通过知识不变扰动揭示大语言模型的真实知识能力

PertEval: Unveiling Real Knowledge Capacity of LLMs with Knowledge-Invariant Perturbations

Alibaba Cloud Computing(阿里巴巴云计算);University of Science and Technology of China(中国科学技术大学)

Jiatong Li, Renjun Hu, Kunzhe Huang, Yan Zhuang, Qi Liu, Mengxiao Zhu, Xing Shi, Wei Lin

AI总结:

PertEval工具包通过知识不变扰动生成测试样本并结合响应一致性分析,揭示LLMs在静态基准上的知识能力被显著高估(如GPT-4高估25.8%),并暴露其机械记忆与知识掌握弱点。

摘要:

专家设计的封闭式基准在评估大语言模型(LLMs)的知识能力方面不可或缺。尽管它们被广泛使用,但由于测试场景有限以及不可避免的数据污染风险,人们对其可靠性日益担忧。为纠正这一问题,我们提出了PertEval,一个旨在通过知识不变扰动深入探测LLMs知识能力的工具包。这些扰动采用类人复述技术,从静态基准中即时生成测试样本,精心保留知识关键内容,同时改变无关细节。我们的工具包还包含一套响应一致性分析,通过比较原始测试集与扰动测试集上的表现,精确评估LLMs的真实知识能力。使用PertEval对六个代表性LLMs进行了重新评估。结果显示,这些LLMs在原始基准上的表现被显著高估,其中GPT-4的绝对高估幅度达25.8%。此外,通过细致的响应模式分析,我们发现PertEval保留了LLMs对似是而非知识的不确定性,并揭示了它们对正确选项可能存在的机械记忆,这种记忆导致了表现被高估。我们还发现,PertEval提供的详细响应一致性分析能够揭示现有LLMs在知识掌握方面的各种弱点,并为改进工作提供指导。我们的研究结果为推进更稳健且真正具备知识的LLMs提供了见解。我们的代码可在https://github.com/aigc-apps/PertEval获取。

英文摘要:

Expert-designed close-ended benchmarks are indispensable in assessing the knowledge capacity of large language models (LLMs). Despite their widespread use, concerns have mounted regarding their reliability due to limited test scenarios and an unavoidable risk of data contamination. To rectify this, we present PertEval, a toolkit devised for in-depth probing of LLMs' knowledge capacity through \textbf{knowledge-invariant perturbations}. These perturbations employ human-like restatement techniques to generate on-the-fly test samples from static benchmarks, meticulously retaining knowledge-critical content while altering irrelevant details. Our toolkit further includes a suite of \textbf{response consistency analyses} that compare performance on raw vs. perturbed test sets to precisely assess LLMs' genuine knowledge capacity. Six representative LLMs are re-evaluated using PertEval. Results reveal significantly inflated performance of the LLMs on raw benchmarks, including an absolute 25.8% overestimation for GPT-4. Additionally, through a nuanced response pattern analysis, we discover that PertEval retains LLMs' uncertainty to specious knowledge, and reveals their potential rote memorization to correct options which leads to overestimated performance. We also find that the detailed response consistency analyses by PertEval could illuminate various weaknesses in existing LLMs' knowledge mastery and guide the development of refinement. Our findings provide insights for advancing more robust and genuinely knowledgeable LLMs. Our code is available at \url{https://github.com/aigc-apps/PertEval}.

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

↑