arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.06908cs.CLcs.AI
收藏

生成语言模型事实性评估基准

Generating Benchmarks for Factuality Evaluation of Language Models

AI21 Labs(AI21实验室)

Dor Muhlgay, Ori Ram, Inbal Magar, Yoav Levine, Nir Ratner, Yonatan Belinkov, Omri Abend, Kevin Leyton-Brown, Amnon Shashua, Yoav Shoham

AI总结:

提出FACTOR框架,通过自动转换事实语料库生成基准,评估语言模型生成真实事实与错误陈述的倾向,实验表明基准分数随模型规模增大且优于困惑度反映事实性。

摘要:

在特定领域部署语言模型(LM)之前,衡量其在该领域生成事实错误信息的倾向性至关重要。现有的LLM生成事实性评估方法侧重于从LM本身采样的事实,因此无法控制被评估的事实集,并可能低估领域特定或罕见事实。我们提出FACTOR:通过语料库转换进行事实性评估(Factual Assessment via Corpus TransfORmation),一种可扩展的LM事实性评估方法。FACTOR自动将感兴趣的事实语料库转换为一个基准,用于评估LM从语料库中生成真实事实与相似但不正确陈述的倾向。我们使用该框架创建了三个基准:Wiki-FACTOR、News-FACTOR和Expert-FACTOR。我们表明:(i)我们的基准分数随模型规模增大而提高,并在LM增强检索时有所改善;(ii)基准分数和困惑度在模型排名上并不总是一致;(iii)当困惑度和基准分数不一致时,后者更好地反映开放生成中的事实性,这一点由人类标注者衡量。我们在https://github.com/AI21Labs/factor上公开提供数据和代码。

英文摘要:

Before deploying a language model (LM) within a given domain, it is important to measure its tendency to generate factually incorrect information in that domain. Existing methods for factuality evaluation of LLM generation focus on facts sampled from the LM itself, and thus do not control the set of evaluated facts and might under-represent domain specific or rare facts. We propose FACTOR: Factual Assessment via Corpus TransfORmation, a scalable approach for evaluating LM factuality. FACTOR automatically transforms a factual corpus of interest into a benchmark evaluating an LM's propensity to generate true facts from the corpus vs. similar but incorrect statements. We use our framework to create three benchmarks: Wiki-FACTOR, News-FACTOR and Expert-FACTOR. We show that: (i) our benchmark scores increase with model size and improve when the LM is augmented with retrieval; (ii) benchmark score and perplexity do not always agree on model ranking; (iii) when perplexity and benchmark score disagree, the latter better reflects factuality in open-ended generation, as measured by human annotators. We make our data and code publicly available in https://github.com/AI21Labs/factor.

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

↑