任务向量可线性分解为可解释且可控的组件
Task Vectors Can Be Linearly Decomposed into Interpretable and Controllable Components
AI总结:
该研究将任务向量分解为任务识别、任务学习及残差组件,经贝叶斯优化后其干预效果优于原始任务向量,且分解组件的单独干预效果符合预期,为任务向量的解释与控制提供了支持。
摘要:
任务向量(Task Vectors, TVs)为引导大型语言模型提供了一种紧凑的方式,但它们通常被视为仅从隐藏状态中提取的原子化方向,其内部功能结构却鲜为人知。受先前将上下文学习分解为任务识别(Task Recognition, TR)和任务学习(Task Learning, TL)的工作启发,我们探究单个任务向量是否也可分解为具有功能意义的组件。我们从候选标签的非嵌入出发,构建了基于TR/TL的分解方法,将每个任务向量分离为TR、TL和残差组件,并尝试使用贝叶斯优化来优化TR和TL系数,以实现更有效的干预。我们在多个模型家族、分类任务以及基于指令和演示的任务向量上对该分解方法进行评估。在所有这些设置中,基于TR/TL的优化所识别的干预方向优于原始任务向量。尽管对随机方向的优化也能提升性能,但基于TR/TL的搜索能产生更可靠的增益,尤其是对于基于指令的任务向量。此外,对分解后的组件进行单独干预会产生与预期功能角色一致的、不同的对数几率层面效果。这些结果共同表明,任务向量并非单一的引导方向,而是可以分解为具有功能意义的组件,这些组件支持解释和控制。
英文摘要:
Task Vectors (TVs) provide a compact way to steer large language models, but they are typically treated as atomized directions merely extracted from hidden states, leaving their internal functional structure poorly understood. Motivated by prior work that decomposes in-context learning into Task Recognition (TR) and Task Learning (TL), we ask whether a single TV can likewise be decomposed into functionally meaningful components. We formulate a TR/TL-based decomposition from candidate-label unembeddings, separating each TV into TR, TL, and residual components, and try to optimize the TR and TL coefficients using Bayesian optimization for more effective intervention. We evaluate this formulation across multiple model families, classification tasks, and both instruction- and demonstration-based TVs. Across these settings, TR/TL-based optimization identifies intervention directions that outperform the original TVs. Although optimization over random directions can also improve performance, TR/TL-based search yields more reliable gains, particularly for instruction-based TVs. Moreover, isolated interventions on the decomposed components produce distinct logit-level effects that are consistent with their intended functional roles. Together, these results suggest that TVs are not monolithic steering directions, but can be decomposed into functionally meaningful components that support both interpretation and control.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。