Skip to main content
QUICK REVIEW

[论文解读] When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories

Alex Mallen, Akari Asai|arXiv (Cornell University)|Dec 20, 2022
Topic ModelingComputer Science被引用 34
一句话总结

本文分析了语言模型(LMs)记忆多少事实知识、受主题受欢迎度及关系类型影响的程度,以及检索增强记忆和自适应检索如何在开放域问答中提升性能与效率。

ABSTRACT

Despite their impressive performance on diverse tasks, large language models (LMs) still struggle with tasks requiring rich world knowledge, implying the limitations of relying solely on their parameters to encode a wealth of world knowledge. This paper aims to understand LMs' strengths and limitations in memorizing factual knowledge, by conducting large-scale knowledge probing experiments of 10 models and 4 augmentation methods on PopQA, our new open-domain QA dataset with 14k questions. We find that LMs struggle with less popular factual knowledge, and that scaling fails to appreciably improve memorization of factual knowledge in the long tail. We then show that retrieval-augmented LMs largely outperform orders of magnitude larger LMs, while unassisted LMs remain competitive in questions about high-popularity entities. Based on those findings, we devise a simple, yet effective, method for powerful and efficient retrieval-augmented LMs, which retrieves non-parametric memories only when necessary. Experimental results show that this significantly improves models' performance while reducing the inference costs.

研究动机与目标

  • 了解影响 LM 中事实知识记忆的因素(主题的受欢迎度和关系类型)。
  • 评估非参数记忆(检索)在补充参数化知识中的有效性。
  • 探究自适应检索在降低成本的同时,是否能够最优地将参数化记忆与非参数记忆相结合。
  • 在大规模开放域问答基准 PopQA 和 EntityQuestions 上评估自适应检索。

提出的方法

  • 在无需微调的情况下,评估十种开放域 LMs(OPT、GPT-Neo、GPT-3)在多种规模上的性能。
  • 引入 PopQA,一个基于 Wikidata 和 Wikipedia 知名度派生的长尾实体的 14k 问题的开放域问答数据集。
  • 分析跨模型的记忆作为主题受欢迎度和关系类型的函数的表现。
  • 使用 BM25、Contriever 和 GenRead 测试检索增强的 LM,将非参数记忆加入提示。
  • 评估基于关系类型的受欢迎度阈值选择性检索的自适应检索,以优化性能与效率。
  • 报告性能和效率指标,包括准确率、延迟和 API 成本。

实验结果

研究问题

  • RQ1RQ1:语言模型记忆了多少事实知识,以及哪些因素影响记忆?
  • RQ2RQ2:在多大程度上,非参数记忆可以缓解参数化记忆的局限性?
  • RQ3RQ3:我们能否构建一个系统,动态地结合非参数记忆和参数记忆?

主要发现

  • 记忆与跨模型的主题实体受欢迎度相关;更大的模型显示出更强的相关性。
  • 规模化主要提升对流行知识的记忆,对于长尾问题的提升有限。
  • 检索增强显著提升长尾表现,尤其是对不太受欢迎的实体;然而,如果检索到的上下文误导模型,可能会降低对受欢迎实体的表现。
  • 非参数记忆(BM25/Contriever)在较不受欢迎的问题上优于无辅助的 LM;Contriever 通常在 PopQA 上获得更好的结果;GenRead 对一些较大型模型有帮助,但对小型模型效果较差。
  • 自适应检索——仅在基于受欢迎度阈值时进行检索——优于始终检索策略,在 PopQA 上使用 GenRead 和 Contriever 的 GPT-3 davinci-003 时,准确率高达 46.5%。
  • 自适应检索降低推理成本和延迟,在大型 LM 上最多可达到约 9% 的延迟减少,在 GPT-3 场景中 API 成本最多减少 50%。

阅读本论文

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

在 Nubint 中阅读本论文

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