arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.02073cs.CLcs.AIcs.LG
收藏

矩阵中的故障?利用 Fakepedia 定位并检测语言模型的接地能力

A Glitch in the Matrix? Locating and Detecting Language Model Grounding with Fakepedia

EPFL(洛桑联邦理工学院);Univ. Grenoble Alpes(格勒诺布尔大学);CNRS(法国国家科学研究中心);Grenoble INP(格勒诺布尔理工学院);LIG(信息与信号处理实验室);Microsoft Corporation(微软公司)

Giovanni Monea, Maxime Peyrard, Martin Josifoski, Vishrav Chaudhary, Jason Eisner, Emre Kıcıman, Hamid Palangi, Barun Patra, Robert West

AI总结:

本文构建反事实数据集 Fakepedia,并提出 MGCT 因果中介分析方法,用于检测 LLM 在参数知识与上下文冲突时的接地机制,证明仅凭计算模式即可区分接地与未接地响应。

摘要:

大型语言模型(LLM)具有利用其上下文中提供的新信息的出色能力。然而,这种上下文接地背后的机制仍然未知,尤其是在上下文信息与参数中存储的事实知识相矛盾的情况下,而 LLM 也擅长回忆这些知识。偏好上下文信息对于检索增强生成方法至关重要,这类方法用最新信息丰富上下文,希望接地能够纠正过时或含噪的已存储知识。我们提出了一种使用 Fakepedia 研究接地能力的新方法,Fakepedia 是一个反事实文本的新数据集,构建目的是与模型的内部参数知识发生冲突。在本研究中,我们介绍 Fakepedia,这是一个反事实数据集,旨在在内部参数知识与上下文信息冲突时评估接地能力。我们使用 Fakepedia 对多种 LLM 进行基准测试,并基于我们的 Masked Grouped Causal Tracing(MGCT,掩码分组因果追踪)方法,在回答 Fakepedia 查询时对 LLM 组件进行因果中介分析。通过该分析,我们识别出接地响应与未接地响应之间不同的计算模式。我们最后证明,仅通过计算分析就能够区分接地响应和未接地响应。我们的结果与关于事实回忆机制的现有发现相结合,为接地机制和事实回忆机制如何在 LLM 内部相互作用提供了连贯的解释。

英文摘要:

Large language models (LLMs) have an impressive ability to draw on novel information supplied in their context. Yet the mechanisms underlying this contextual grounding remain unknown, especially in situations where contextual information contradicts factual knowledge stored in the parameters, which LLMs also excel at recalling. Favoring the contextual information is critical for retrieval-augmented generation methods, which enrich the context with up-to-date information, hoping that grounding can rectify outdated or noisy stored knowledge. We present a novel method to study grounding abilities using Fakepedia, a novel dataset of counterfactual texts constructed to clash with a model's internal parametric knowledge. In this study, we introduce Fakepedia, a counterfactual dataset designed to evaluate grounding abilities when the internal parametric knowledge clashes with the contextual information. We benchmark various LLMs with Fakepedia and conduct a causal mediation analysis of LLM components when answering Fakepedia queries, based on our Masked Grouped Causal Tracing (MGCT) method. Through this analysis, we identify distinct computational patterns between grounded and ungrounded responses. We finally demonstrate that distinguishing grounded from ungrounded responses is achievable through computational analysis alone. Our results, together with existing findings about factual recall mechanisms, provide a coherent narrative of how grounding and factual recall mechanisms interact within LLMs.

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

↑