解读检索增强语言模型中参数化记忆与非参数化记忆的相互作用
Deciphering the Interplay of Parametric and Non-parametric Memory in Retrieval-augmented Language Models
AI总结:
本研究针对生成式语言模型处理小众专业知识的难题,采用因果中介分析与对照实验探究RAG模型Atlas对参数化记忆和非参数化记忆的选择机制,发现模型更依赖检索上下文,且存在相关性判断、支持复制的表征计算两类可检测机制。
摘要:
生成式语言模型往往难以处理专业领域或较少讨论的知识。检索增强生成(Retrieval-Augmented Generation,RAG)模型是一种潜在的解决方案,其工作模式类似于在生成回复前先检索信息。本研究探究了RAG模型\textsc{Atlas}(阿特拉斯)方法如何在自身已知信息(参数化记忆)与检索到的信息(非参数化记忆)之间做选择。我们采用因果中介分析和对照实验,研究内部表征如何影响信息处理过程。研究结果厘清了参数化知识与检索上下文的各自效应,表明当模型可在两类信息(参数化与非参数化)间选择时,它更依赖上下文而非参数化知识。此外,本分析还探究了模型“如何”使用上下文中信息所涉及的计算过程。我们发现模型内部存在多种可通过中介分析检测到的机制:其一为判断“上下文是否相关”的决策机制,其二为编码器如何计算输出表征以在上下文相关时支持内容复制的机制。
英文摘要:
Generative language models often struggle with specialized or less-discussed knowledge. A potential solution is found in Retrieval-Augmented Generation (RAG) models which act like retrieving information before generating responses. In this study, we explore how the \textsc{Atlas} approach, a RAG model, decides between what it already knows (parametric) and what it retrieves (non-parametric). We use causal mediation analysis and controlled experiments to examine how internal representations influence information processing. Our findings disentangle the effects of parametric knowledge and the retrieved context. They indicate that in cases where the model can choose between both types of information (parametric and non-parametric), it relies more on the context than the parametric knowledge. Furthermore, the analysis investigates the computations involved in \emph{how} the model uses the information from the context. We find that multiple mechanisms are active within the model and can be detected with mediation analysis: first, the decision of \emph{whether the context is relevant}, and second, how the encoder computes output representations to support copying when relevant.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。