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

LM-PUB-QUIZ:用于评估语言模型中关系知识的零样本综合框架

LM-PUB-QUIZ: A Comprehensive Framework for Zero-Shot Evaluation of Relational Knowledge in Language Models

Humboldt Universität zu Berlin(柏林洪堡大学);Science Of Intelligence(智能科学)

Max Ploner, Jacek Wiland, Sebastian Pohl, Alan Akbik

AI总结:

本文提出了LM-PUB-QUIZ,一个围绕BEAR探测机制构建的开源Python框架和排行榜,用于零样本评估语言模型的关系知识,支持独立评估与Hugging Face集成,并提供细粒度的知识类型分析。

摘要:

知识探测评估语言模型(LM)在预训练阶段获取关系知识的程度。它提供了一种经济有效的方法来比较不同规模和训练设置的LM,并且对于监控持续学习(CL)期间获得或丢失的知识非常有用。在先前的工作中,我们提出了一种改进的知识探测方法BEAR(Wiland et al., 2024),它能够比较使用不同预训练目标(因果LM和掩码LM)训练的LM,并解决了先前探测方法中分布偏斜的问题,从而提供对LM知识更无偏的读取。在本文中,我们提出了LM-PUB-QUIZ,这是一个围绕BEAR探测机制构建的Python框架和排行榜,使研究人员和从业者能够在他们的工作中应用它。它提供了独立评估和直接集成到广泛使用的Hugging Face TRANSFORMERS库训练管道中的选项。此外,它提供了对不同知识类型的细粒度分析,以帮助用户更好地理解每个被评估LM中的知识。我们公开发布LM-PUB-QUIZ作为开源项目。

英文摘要:

Knowledge probing evaluates the extent to which a language model (LM) has acquired relational knowledge during its pre-training phase. It provides a cost-effective means of comparing LMs of different sizes and training setups and is useful for monitoring knowledge gained or lost during continual learning (CL). In prior work, we presented an improved knowledge probe called BEAR (Wiland et al., 2024), which enables the comparison of LMs trained with different pre-training objectives (causal and masked LMs) and addresses issues of skewed distributions in previous probes to deliver a more unbiased reading of LM knowledge. With this paper, we present LM-PUB- QUIZ, a Python framework and leaderboard built around the BEAR probing mechanism that enables researchers and practitioners to apply it in their work. It provides options for standalone evaluation and direct integration into the widely-used training pipeline of the Hugging Face TRANSFORMERS library. Further, it provides a fine-grained analysis of different knowledge types to assist users in better understanding the knowledge in each evaluated LM. We publicly release LM-PUB-QUIZ as an open-source project.

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

↑