Skip to main content
QUICK REVIEW

[论文解读] Generating Benchmarks for Factuality Evaluation of Language Models

Dor Muhlgay, Ori Ram|arXiv (Cornell University)|Jul 13, 2023
Topic ModelingComputer Science被引用 8
一句话总结

该论文引入 FACTOR,这是一个可扩展的框架,将事实性语料转化为对比基准,用以评估大语言模型在生成真实事实与虚假变体方面的倾向,覆盖维基百科、新闻和专家领域;分析模型规模效应、检索增强以及与困惑度和人工事实性的对齐情况。

ABSTRACT

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.

研究动机与目标

  • 推动对域内事实性的评估超越开放式抽样与参考基准的需求。
  • 提出一个可扩展、基于语料库驱动的基准框架(FACTOR),用于创建受控的事实与错误变体对比。
  • 展示 FACTOR 分数随模型规模提高而提升,且即使对大型语言模型也能通过检索增强获得提升。
  • 将 FACTOR 与困惑度比较,并证明它们在模型排序上可能产生不同; FACTOR 更能反映开放式生成中的事实性。
  • 提供人工验证和多样化的错误类型,确保跨领域的稳健评估。

提出的方法

  • 将 FACTOR 定义为一个多选的事实性评估任务,其中一个完成是来自语料库的事实性,而另外三个是非事实性的变体。
  • 使用 InstructGPT 自动扰动事实陈述,生成多样化的错误类型矛盾(谓词、实体、情境、指代、链接)。
  • 使用自然语言推理(NLI)过滤非事实候选项,确保与事实性完成相矛盾,并通过语言模型评分进行流畅性检查。
  • 选择非事实完成以覆盖不同错误类型,同时保持与事实完成的相似度(低编辑距离)。
  • 构建领域特定的 FACTOR 基准:Wiki-FACTOR、News-FACTOR、Expert-FACTOR,来源于维基百科、路透社和 ExpertQA。
  • 对开源模型(GPT-2、GPT-Neo、OPT 系列)在有无检索增强(IC-RALM)的条件下进行评估,并分析 FACTOR 的准确性相对于困惑度的表现。

实验结果

研究问题

  • RQ1FACTOR 的准确性是否随不同模型家族的规模增大而提高?
  • RQ2检索增强是否提升 FACTOR 的准确性与语言模型的事实 grounding?
  • RQ3FACTOR 与困惑度之间的关系如何,是否会在模型排序上出现分歧?
  • RQ4在人类评注者评判的开放式生成中,FACTOR 的准确性是否能预测事实性?

主要发现

  • FACTOR 的准确性通常随模型增大而提升,但在 Wiki-FACTOR 上最大模型仍低于 60%,在 News-FACTOR 上为 68%,在 Expert-FACTOR 为 56%,这表明存在领域挑战。
  • 检索增强在 GPT-Neo 与 OPT 模型上带来一致的 FACTOR 准确性提升,支持 grounding 的收益。
  • 在某些情形下,困惑度与 FACTOR 的排序并不一致,表明 FACTOR 提供了困惑度未能捕捉的关于事实性的互补信息。
  • 人工标注表明 FACTOR 的准确性与开放式生成中的事实性一致,验证了该基准的预测价值。
  • 领域差异:OPT 模型在 News-FACTOR 上表现最佳,而 GPT-Neo 模型在 Wiki-FACTOR 上领先,反映训练数据的影响。
  • 跨领域来看,非事实完成主要是谓词与实体错误的混合,指代和链接错误较少。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。