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

基于情境学习的概念子空间学习

In-Context Learning Operates as Concept Subspace Learning

Mohamed bin Zayed University of Artificial Intelligence(莫扎伊德·本·扎耶德人工智能大学);Shanghai Advanced Research Institute(上海先进研究院)

Wei Tang, Xinyan Jiang, Fakhri Karray, Lijie Hu

AI总结:

本文研究了结构化演示是否诱导低维概念推理,通过概念子空间视角揭示了情境学习中预测分解为概念坐标回归和子空间泄漏的机制,并通过实验验证了任务信息集中在低维任务对齐激活子空间中的结论。

摘要:

回归和贝叶斯对情境学习(ICL)的解释说明了演示如何诱导预测器,而机械分析通常识别出紧凑的激活方向,引导受促行为。然而,仍不清楚结构化演示是否诱导低维概念推理。我们通过概念子空间视角研究这一问题,在此视角中,任务仅沿内在概念坐标变化,尽管输入观察在高维环境空间中。对于岭回归和最小二乘ICL代理,预测精确分解为概念坐标回归和子空间泄漏。在块对角或近块对角协方差假设下,主导估计和噪声敏感项随概念子空间的维度变化,而残差效应由跨子空间耦合控制。这种分离给出了机械预测:可恢复的任务信息应集中在低维、任务对齐的激活子空间中。在CounterFact衍生的多关系提示上使用Llama-3-8B,4096维残差流的68-73维子空间恢复了78.8%的干净-受污染准确率差距,而补全互补子空间则恢复了0%。概念交换将预测引导至注入的关系,而随机和跨任务匹配排名控制效果不大。此外,在Qwen2.5-7B和受控的跨语言规则任务上的额外实验显示了相同定性模式。这些结果支持概念子空间作为紧凑、任务对齐的可恢复ICL行为在结构化任务家族中的中介,而不意味着全电路恢复。

英文摘要:

Regression and Bayesian accounts of in-context learning (ICL) explain how demonstrations can induce predictors, while mechanistic analyses often identify compact activation directions that steer prompted behavior. However, it remains unclear whether structured demonstrations induce low-dimensional concept inference. We study this question through a concept-subspace view of ICL, in which tasks vary only along intrinsic concept coordinates, although inputs are observed in a high-dimensional ambient space. For ridge and least-squares ICL proxies, prediction decomposes exactly into concept-coordinate regression and off-subspace leakage. Under block-diagonal or near-block-diagonal covariance assumptions, the leading estimation and nuisance-sensitivity terms scale with the dimension of the concept subspace, while residual effects are controlled by cross-subspace coupling. This separation gives a mechanistic prediction: recoverable task information should concentrate in a low-dimensional, task-aligned activation subspace. On CounterFact-derived multi-relation prompts with Llama-3-8B, a 68--73-dimensional subspace of the 4096-dimensional residual stream restores 78.8% of the clean--corrupted accuracy gap, whereas patching the complementary subspace restores 0%. Concept swaps redirect predictions toward injected relations, while random and cross-task matched-rank controls are largely ineffective. Additional experiments on Qwen2.5-7B and a controlled cross-lingual rule task show the same qualitative pattern. These results support concept subspaces as compact, task-aligned mediators of recoverable ICL behavior in structured task families, without implying full-circuit recovery.

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

↑