arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.17325cs.LGcs.CL
收藏

任务模式与绑定:上下文学习的双重分离研究

Task Schema and Binding: A Double Dissociation Study of In-Context Learning

Changwon National University(昌原国立大学)

Chaeha Kim

AI总结:

该研究揭示上下文学习的双重机制:任务模式与绑定,通过实验证明两者在神经层面的分离性,为ICL提供因果解释并改进提示工程效率。

摘要:

我们提供了因果机制验证,证明上下文学习(ICL)分解为两个可分离的机制:任务模式(抽象任务类型识别)和绑定(特定输入输出关联)。通过在9个模型(来自7个Transformer家族和Mamba)上进行激活修补实验(参数范围为370M-13B),我们确立了三个关键发现:1.双重分离:任务模式通过晚期MLP修补在100%转移;绑定通过残差流修补在62%转移——证明了可分离的机制。2.先验-模式权衡:模式依赖与先验知识呈负相关(Spearman rho = -0.596,p < 0.001,N=28任务-模型对)。3.架构通用性:该机制在所有测试架构中均有效,包括非Transformer的Mamba。这些发现为ICL谜题提供了机制解释,与将ICL视为单一机制(无论是检索式、梯度下降式还是纯粹贝叶斯式)的观点形成对比。通过确立Schema和Binding在神经层面是分离的——而不仅仅是行为模式——我们为ICL的双过程理论提供了因果证据。模型在没有先验知识时依赖于任务模式,但先验知识通过注意力误路由(72.7%的近期偏差)而非直接输出竞争(0%)来干扰。这解释了为什么任意映射成功(零先验导致完全依赖模式)而事实覆盖失败——并揭示了真正的瓶颈是注意力,而非输出层面。实际意义:理解这些双机制可以更高效地进行提示工程——可靠的模式转移减少了新任务所需的示例数量,而先验意识设计可以缓解高先验场景中38%的绑定失败率,提高ICL系统在生产部署中的可靠性。

英文摘要:

We provide causal mechanistic validation that in-context learning (ICL) decomposes into two separable mechanisms: Task Schema (abstract task type recognition) and Binding (specific input-output associations). Through activation patching experiments across 9 models from 7 Transformer families plus Mamba (370M-13B parameters), we establish three key findings: 1. Double dissociation: Task Schema transfers at 100% via late MLP patching; Binding transfers at 62% via residual stream patching -- proving separable mechanisms 2. Prior-Schema trade-off: Schema reliance inversely correlates with prior knowledge (Spearman rho = -0.596, p < 0.001, N=28 task-model pairs) 3. Architecture generality: The mechanism operates across all tested architectures including the non-Transformer Mamba These findings offer a mechanistic account of the ICL puzzle that contrasts with prior views treating ICL as a monolithic mechanism (whether retrieval-based, gradient descent-like, or purely Bayesian). By establishing that Schema and Binding are neurally dissociable -- not merely behavioral modes -- we provide causal evidence for dual-process theories of ICL. Models rely on Task Schema when prior knowledge is absent, but prior knowledge interferes through attentional mis-routing (72.7% recency bias) rather than direct output competition (0%). This explains why arbitrary mappings succeed (zero prior leads to full Schema reliance) while factual overrides fail -- and reveals that the true bottleneck is attentional, not output-level. Practical implications: Understanding these dual mechanisms enables more efficient prompt engineering -- reliable schema transfer reduces required demonstrations for novel tasks, while prior-aware design can mitigate the 38% binding failure rate in high-prior scenarios, improving ICL system reliability in production deployments.

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

↑