BEAR:一个评估因果语言模型与掩码语言模型中关系知识的统一框架
BEAR: A Unified Framework for Evaluating Relational Knowledge in Causal and Masked Language Models
AI总结:
本文提出 BEAR 统一框架,通过比较文本陈述的对数似然来探测因果与掩码语言模型中的关系知识,并在 22 种模型上验证其有效性。
摘要:
知识探测用于评估语言模型(LM)在预训练期间在多大程度上成功习得了关系知识。探测是一种成本较低的方法,可用于比较不同规模和训练配置的 LM。然而,以往方法依赖于 LM 预训练时使用的目标函数,因此只适用于掩码语言模型或因果语言模型。由此导致不同类型的 LM 无法进行比较。为解决这一问题,我们提出一种方法,利用 LM 估计任意给定文本陈述的对数似然的内在能力。我们精心设计了一个包含 7,731 个实例的评估数据集(其更大变体包含 40,916 个实例),并据此为每个关系事实生成多个备选陈述,其中只有一个正确。随后,我们评估 LM 是否会正确地将最高对数似然分配给正确陈述。我们对 22 种常见 LM 进行的实验评估表明,所提出的框架 BEAR 能够有效探测不同 LM 类型中的知识。我们向研究社区发布 BEAR 数据集以及实现该探测方法的开源框架,以促进 LM 的评估与发展。
英文摘要:
Knowledge probing assesses to which degree a language model (LM) has successfully learned relational knowledge during pre-training. Probing is an inexpensive way to compare LMs of different sizes and training configurations. However, previous approaches rely on the objective function used in pre-training LMs and are thus applicable only to masked or causal LMs. As a result, comparing different types of LMs becomes impossible. To address this, we propose an approach that uses an LM's inherent ability to estimate the log-likelihood of any given textual statement. We carefully design an evaluation dataset of 7,731 instances (40,916 in a larger variant) from which we produce alternative statements for each relational fact, one of which is correct. We then evaluate whether an LM correctly assigns the highest log-likelihood to the correct statement. Our experimental evaluation of 22 common LMs shows that our proposed framework, BEAR, can effectively probe for knowledge across different LM types. We release the BEAR datasets and an open-source framework that implements the probing approach to the research community to facilitate the evaluation and development of LMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。