能力增强可以被定位吗?
Can Capability Enhancement be Localized?
AI总结:
本研究提出能力增强定位(CEL)问题,通过实证识别可提升任务性能的稀疏注意力头组合,并构建理论模型证明训练动态可产生该现象,为CEL提供训练诱导的理论解释。
摘要:
基于Transformer的语言模型在众多任务和领域展现出强大能力,但已有研究表明,对于给定任务,并非所有注意力头的作用都同等重要:许多“冗余”注意力头可被安全移除,几乎不产生影响;而少量“重要”注意力头若被移除,会严重损害模型在该任务上的性能。本研究探讨互补方向,即“能力增强定位(CEL)”:给定模型和任务,是否存在少量注意力头,移除它们可提升该任务的性能?我们首先针对不同家族的模型开展实证研究,采用简单的两阶段流程筛选候选注意力头并评估其联合移除效果,识别出稀疏的注意力头组合,移除它们无需进一步微调即可提升任务特定性能。受此观察启发,我们从理论层面探究该现象是否可由训练动态自然产生,以及在何种条件下会出现。为此,我们构建了简化的多头softmax注意力模型和两个具有冲突特征的任务,证明从小随机初始化开始的梯度下降会将冲突特征集中到特定注意力头中;进一步表明,移除这些注意力头会提升其中一个任务的性能,同时损害另一个任务的性能,即便训练收敛到联合目标的全局最优解。这为CEL建立了一种可能的训练诱导理论解释。
英文摘要:
Transformer-based language models have shown strong capabilities across many tasks and domains. However, prior work shows that, for a given task, not all attention heads matter equally. Specifically, they suggest that many \textit{redundant} heads can be safely removed with little-to-no effect, while a small set of \textit{important} heads, when ablated, severely damages the model's performance on the given task. In this work, we investigate a complementary aspect, called \textit{Capability Enhancement Localization} (CEL): \textit{given a model and a task, does there exist a small set of heads whose removal improves the task performance?} We first investigate this question \textit{empirically} across models from different families. Using a simple two-stage routine that screens candidate heads and evaluates their joint ablations, we identify sparse head combinations whose removal improves task-specific performance without further fine-tuning. Motivated by these observations, we ask \textit{theoretically whether such a phenomenon can naturally arise from training dynamics, and under what conditions}. To this end, we construct a simplified multi-head softmax attention model and two tasks with conflicting features, and show that gradient descent from small random initialization provably concentrates the conflicting features into particular heads. We further show that ablating such heads improves performance on one task while harming the other, even though training converges to a global optimum of the joint objective. This establishes a possible training-induced theoretical explanation for CEL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。