事实回忆、启发式还是纯粹的猜测?语言模型事实补全的精确解释
Fact Recall, Heuristics or Pure Guesswork? Precise Interpretations of Language Models for Fact Completion
AI总结:
提出PrISM方案构建四种预测场景数据集,应用因果追踪和信息流分析,揭示不同场景下语言模型处理事实补全的特定MLP子层作用机制。
摘要:
语言模型(LMs)可以基于提示中的许多可能信号做出正确的预测,并非所有信号都对应于事实关联的回忆。然而,目前对LMs的解释未能考虑到这一点。例如,给定查询“Astrid Lindgren was born in”及对应补全“Sweden”,现有解释并未区分该预测是基于知道该作者的出生地,还是基于假设拥有瑞典语发音名字的人出生在瑞典。在本文中,我们提出了一种特定于模型的方案——PrISM,用于构建包含四种不同预测场景示例的数据集:通用语言建模、猜测、启发式回忆和精确事实回忆。我们将两种流行的可解释性方法应用于这些场景:因果追踪(CT)和信息流分析。我们发现两者对每个场景都产生了不同的结果。精确事实回忆和通用语言建模场景的结果证实了先前关于中层MLP子层对事实回忆重要性的结论,而猜测和启发式的结果则表明了后期最后token位置MLP子层的关键作用。总之,我们为更广泛和细致地研究LMs中的事实补全提供了资源,并通过分析提供了对LMs如何处理事实相关查询的更细致理解。
英文摘要:
Language models (LMs) can make a correct prediction based on many possible signals in a prompt, not all corresponding to recall of factual associations. However, current interpretations of LMs fail to take this into account. For example, given the query "Astrid Lindgren was born in" with the corresponding completion "Sweden", no difference is made between whether the prediction was based on knowing where the author was born or assuming that a person with a Swedish-sounding name was born in Sweden. In this paper, we present a model-specific recipe - PrISM - for constructing datasets with examples of four different prediction scenarios: generic language modeling, guesswork, heuristics recall and exact fact recall. We apply two popular interpretability methods to the scenarios: causal tracing (CT) and information flow analysis. We find that both yield distinct results for each scenario. Results for exact fact recall and generic language modeling scenarios confirm previous conclusions about the importance of mid-range MLP sublayers for fact recall, while results for guesswork and heuristics indicate a critical role of late last token position MLP sublayers. In summary, we contribute resources for a more extensive and granular study of fact completion in LMs, together with analyses that provide a more nuanced understanding of how LMs process fact-related queries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。