arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.07658cs.CL
收藏

从原始语料到领域基准:对LLM领域专业知识的自动化评估

From Raw Corpora to Domain Benchmarks: Automated Evaluation of LLM Domain Expertise

Department of Psychiatry and Psychotherapy(精神病学与心理学系);University Hospital Tübingen(图宾根大学医院);Laboratory for Mental Health Mapping(心理健康图谱实验室);Carl Zeiss Professor for AI in Neural Systems Imaging(神经系统成像人工智能教授职位);Friedrich Schiller University Jena(耶拿弗里德里克·施勒格尔大学);Cluster of Excellence Machine Learning for Science(卓越中心:科学机器学习);University of Tübingen(图宾根大学)

Nitin Sharma, Thomas Wolfers, Çağatay Yıldız

AI总结:

本文提出了一种自动化流程,将原始语料转换为完成式领域基准,以评估LLM在特定领域的专业知识,避免了污染和人工标注的需要。

摘要:

准确评估大型语言模型(LLM)在特定领域的基准性能至关重要,尤其是在对人类有直接影响的领域,如法律、医疗和教育。然而,现有的基准测试被发现受到污染,并且基于多选题,这会带来固有的偏见。为了衡量LLM中的领域特定知识,我们提出了一种确定性的流程,将原始领域语料转换为完成式基准,而无需依赖其他LLM或昂贵的人工标注。我们的方法首先从输入语料中提取领域特定的关键词和相关目标词汇。然后构建提示-目标对,其中领域特定的词汇作为预测目标。通过测量LLM完成这些提示的能力,我们提供了一种低成本的直接评估领域知识的方法。我们的流程避免了基准污染,使能够通过新领域数据自动更新,并促进了基础模型和指令微调(聊天)模型之间的公平比较。我们通过展示模型在我们基准上的表现与专家整理的基准上的表现显著相关来验证我们的方法。然后我们展示了我们的基准如何提供关于领域适应、连续和一般预训练中知识获取的见解。最后,我们通过在我们统一的评估框架内比较基础模型和聊天模型来检验指令微调的影响。总之,我们的流程实现了可扩展、领域特定、LLM无关和无偏的评估,适用于基础和聊天模型。

英文摘要:

Accurate domain-specific benchmarking of LLMs is essential, specifically in domains with direct implications for humans, such as law, healthcare, and education. However, existing benchmarks are documented to be contaminated and are based on multiple-choice questions, which suffer from inherent biases. To measure domain-specific knowledge in LLMs, we present a deterministic pipeline that transforms raw domain corpora into completion-style benchmarks without relying on other LLMs or costly human annotation. Our approach first extracts domain-specific keywords and related target vocabulary from an input corpus. It then constructs prompt-target pairs where domain-specific words serve as prediction targets. By measuring LLMs' ability to complete these prompts, we provide a direct assessment of domain knowledge at low computational cost. Our pipeline avoids benchmark contamination, enables automated updates with new domain data, and facilitates fair comparisons between base and instruction-tuned (chat) models. We validate our approach by showing that model performances on our benchmark significantly correlate with those on an expert-curated benchmark. We then demonstrate how our benchmark provides insights into knowledge acquisition in domain-adaptive, continual, and general pretraining. Finally, we examine the effects of instruction fine-tuning by comparing base and chat models within our unified evaluation framework. In conclusion, our pipeline enables scalable, domain-specific, LLM-independent, and unbiased evaluation of both base and chat models.

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

↑