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

函数向量头是两个群体:上下文学习中的写入者和取消者

Function-Vector Heads Are Two Populations: Writers and Cancellers in In-Context Learning

The University of Hong Kong(香港大学)

Han-yu Wang

AI总结:

发现函数向量头并非同质群体,而是分为写入者和取消者两个子群体,分别推高和压低规则正确logit,且仅基于幅度的排名无法区分二者。

摘要:

函数向量头(Todd et al., 2024)通常通过其对上下文规则任务的因果贡献幅度来识别,隐含假设顶级集合是同一功能类。这一假设不成立。我们用保留符号的标准(改进的DLA + 置换FDR)替代仅幅度排名,并通过路径修补验证每个候选。然后,FV头群体分裂为两个对立的子群体:写入者推高规则正确logit;取消者压低它。一个四条件规范判定在三个模型家族和六个Pythia规模的13/15个单元中成立,符号置换检验在5/6个主要单元中拒绝同质性。仅幅度排名无法看到这种结构:Todd的前20个在层次任务中捕获了64%的取消者但仅4%的写入者,在模块任务中捕获了59%的写入者但仅8%的取消者。我们在所有27个(取消者,单元,头)对上排除了六种人为解释:归纳重叠、汇点、通用重要性、秩1复制抑制、V级联和最近邻非FV控制。零消融取消者在6/6个主要单元中产生+0.13到+0.29 nats的logit增益,方向一致地带来+2到+7个百分点的准确率提升。

英文摘要:

In-context learning lets a language model perform a task specified by examples in its prompt. Function vectors capture task information in a compact activation assembled from attention-head outputs. Across two rule families and three Pythia models, we find two opposed functional populations among candidate function-vector heads. Writers support the rule-correct answer, while cancellers systematically suppress it. These roles predict opposing group effects on held-out prompts, where removing cancellers improves accuracy by 2.4 to 6.8 percentage points in all six settings. The dominant suppressive contributions depend on task content, and the same components can support correct predictions in another task. At the population level, substantial support and suppression can nearly cancel. Separating these roles explains how task-related computation can work against correct predictions and how a small aggregate effect can conceal strong opposing contributions.

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

↑