arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.12075cs.CL
收藏

复制还是不复制:复制比回忆更容易引发

To Copy or Not to Copy: Copying Is Easier to Induce Than Recall

Chalmers University of Technology(查尔姆斯理工大学);University of Gothenburg(哥德堡大学)

Mehrdad Farahani, Franziska Penzkofer, Richard Johansson

AI总结:

本文研究了语言模型在检索增强设置中如何在参数化知识与上下文信息之间进行权衡,通过机制分析揭示诱导复制比恢复回忆更容易。

摘要:

在检索增强的设置中,语言模型必须在其权重中存储的参数化知识和提示中的上下文信息之间进行权衡。本文通过在经过精心设计的数据集上提取一个仲裁向量,对这种选择进行了机制研究。该向量是通过在27种关系上计算残差流中心差值得到的,用于区分(i)无关的上下文,这些上下文会引发参数回忆,以及(ii)相关但错误的上下文,这些上下文会引发复制。该向量被注入到选定的层和token跨度中,以引导模型在两个方向上行为:复制→回忆(抑制上下文使用)和回忆→复制(诱导模型复制任何来自上下文的token)。在两个架构(解码器-only和编码器/解码器)和两个开放领域问答基准测试上的实验显示,在适度扩展的同时监控准确率和流畅性,行为发生了持续的变化。对注意力路由、MLP贡献和层间概率轨迹的机制分析揭示了不对称性:诱导复制是一个容易的“再激活”过程,可以在输入的不同位置触发,而恢复回忆是一个“抑制”过程,更加脆弱且强烈依赖于对象-token干预。

英文摘要:

Language models used in retrieval-augmented settings must arbitrate between parametric knowledge stored in their weights and contextual information in the prompt. This work presents a mechanistic study of that choice by extracting an \emph{arbitration vector} from model activations on a curated dataset designed to disentangle (i) irrelevant contexts that elicit parametric recall and (ii) relevant but false contexts that elicit copying. The vector is computed as the residual-stream centroid difference between these regimes across 27 relations, and is injected as an additive intervention at selected layers and token spans to steer behavior in two directions: Copy$\rightarrow$Recall (suppressing context use) and Recall$\rightarrow$Copy (inducing the model to copy any token from the context). Experiments on three architectures (decoder-only and encoder/decoder) and two open-domain QA benchmarks show consistent behavior shifts under moderate scaling while monitoring accuracy and fluency. Mechanistic analyses of attention routing, MLP contributions, and layer-wise probability trajectories reveal an asymmetry: inducing copying is an easy ``reactivation'' process that can be triggered at different locations in the input, while restoring recall is a ``suppression'' process that is more fragile and strongly tied to object-token interventions.

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

↑