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

因果 ≠ 不变:大型语言模型中的函数向量与概念向量

Causality $\neq$ Invariance: Function and Concept Vectors in LLMs

Gustaw Opiełka, Hannes Rosenbusch, Claire E. Stevenson

AI总结:

本文研究了LLMs中函数向量与概念向量的差异,发现FVs在不同输入格式下不不变,而CVs能提供更稳定的概念表示,且在跨语言和问题类型时表现更优。

摘要:

大型语言模型(LLMs)是否能抽象地表示概念,即与输入格式无关?我们重新审视函数向量(FVs),即紧凑表示上下文学习(ICL)任务的因果驱动任务性能的表示。在多个LLMs上,我们显示FVs并不完全不变:当从不同的输入格式(例如开放式与多项选择)提取时,FVs几乎是正交的,即使两者都针对同一概念。我们识别出概念向量(CVs),它们携带更稳定的概念表示。与FVs类似,CVs由注意力头输出组成;然而,与FVs不同的是,构成的头部是通过表征相似性分析(RSA)选择的,基于它们在不同输入格式下是否一致地编码概念。虽然这些头部出现在与FV相关头部相似的层中,但两组是大不相同的,这表明了不同的底层机制。引导实验表明,FVs在输入和应用格式匹配时(例如,均为英文开放式)表现优异,而CVs在跨不同问题类型(开放式与多项选择)和语言的分布外情况下表现更好。我们的结果表明,LLMs确实包含抽象概念表示,但这些与驱动ICL性能的表示不同。

英文摘要:

Do large language models (LLMs) represent concepts abstractly, i.e., independent of input format? We revisit Function Vectors (FVs), compact representations of in-context learning (ICL) tasks that causally drive task performance. Across multiple LLMs, we show that FVs are not fully invariant: FVs are nearly orthogonal when extracted from different input formats (e.g., open-ended vs. multiple-choice), even if both target the same concept. We identify Concept Vectors (CVs), which carry more stable concept representations. Like FVs, CVs are composed of attention head outputs; however, unlike FVs, the constituent heads are selected using Representational Similarity Analysis (RSA) based on whether they encode concepts consistently across input formats. While these heads emerge in similar layers to FV-related heads, the two sets are largely distinct, suggesting different underlying mechanisms. Steering experiments reveal that FVs excel in-distribution, when extraction and application formats match (e.g., both open-ended in English), while CVs generalize better out-of-distribution across both question types (open-ended vs. multiple-choice) and languages. Our results show that LLMs do contain abstract concept representations, but these differ from those that drive ICL performance.

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

↑