FishBack: 用于变换器中最优激活引导的反向费舍尔几何
FishBack: Pullback Fisher Geometry for Optimal Activation Steering in Transformers
AI总结:
本文提出FishBack框架,通过反向费舍尔几何优化变换器中的激活引导,解决激活空间欧几里得假设失效的问题,提出闭式引导方程并实现迭代优化。
摘要:
激活引导方法通过修改语言模型的中间表示来控制输出行为,但普遍假设激活空间是欧几里得空间。我们证明这一假设严重失效:模型自身输出行为诱导的局部几何——即softmax层的费舍尔信息度量通过后续层的雅可比矩阵拉回后的度量——在GPT-2上相对于欧几里得度量的谱相对范数偏离超过97%,其有效维度仅为环境空间的2-17%。基于此拉回费舍尔度量,我们推导出一个闭式引导方程,确定任何目标概念的最小失真方向,从而在每个点上获得闭式最优方向,可迭代应用而无需曲面拟合或数据驱动的几何估计。我们称该框架为FishBack。该度量允许逐层递归分解,揭示现有方法——CAA、ActAdd、ITI等——各自隐式采用特定近似度量,其性能差距可通过单个谱诊断量化:其隐式度量成本与费舍尔最优成本的比率。在GPT-2上,迭代拉回引导在三个动词形态学概念和四层上均优于所有欧几里得基线,其偏离目标的KL减少量相对于欧几里得梯度上升为1.3×-2.5×,相对于CAA在匹配的概念概率下为1.5×。
英文摘要:
Activation steering has emerged as a lightweight approach for modifying language model behavior without parameter updates, yet existing methods remain brittle: unstable across layers and prone to disturbing behavior unrelated to the target concept. We trace these failures to a hidden assumption shared by widely-used methods such as CAA, ActAdd, and ITI: that the intermediate activation space is Euclidean. We show this assumption is fundamentally flawed. The metric that actually governs how a hidden-state perturbation changes the output is the Fisher information metric of the softmax layer, pulled back to the intermediate layer through the Jacobian of the intervening layers. From it we derive a closed-form steering direction, applied to a hidden state at an intermediate layer, that reaches a target concept change with the least non-target distortion. The framework is sharpest in the early and middle intermediate layers, where the metric is strongly non-Euclidean and geometric correction matters most. We evaluate it on three verb-morphology concepts: third-person-singular, progressive, and past-tense inflection, following standard counterfactual-concept evaluation. On GPT-2 Small, this non-Euclidean geometry is borne out empirically, and our method lowers off-target KL divergence by median factors of 1.4--6.5x against individual steering baselines. On Llama-3-8B and Qwen3-8B, it lowers off-target KL by median factors of 1.8--3.6x against individual baselines at the early and middle layers. These results show that geometric correction retains its advantage on larger models with more complex internal structure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。