arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.16084cs.AI
收藏

尖锐方向对你不利:激活导向的曲率分析

The Sharp Directions Are Against You: Curvature Analysis of Activation Steering

University of Southern California(南加州大学);Intel AI(英特尔人工智能部门)

Seyedarmin Azizi, Arya Fayyazi, Parsa Razmara, Erfan Baghaei Potraghloo, Souvik Kundu, Massoud Pedram

AI总结:

该研究分析激活导向的脆弱性,提出尖锐去除方法,去除导向向量的尖锐分量,在多模型多任务上优于标准对比激活加法,可提升行为控制效果。

摘要:

激活导向(Activation steering)在推理时向语言模型的内部表示添加一个向量,是用于行为控制的轻量型微调替代方案。标准构造方法为对比激活加法(CAA),但它存在脆弱性——在许多输入上会使行为向错误方向偏移。为解释该脆弱性,我们首先研究导向向量的几何结构,引入导向海森矩阵(steering Hessian),即模型行为损失对导向向量的二阶导数矩阵,它捕获模型在导向向量各方向微小扰动下的输出行为响应灵敏度:其最大特征向量为尖锐方向,沿该方向的微小扰动可引发大且不稳定、依赖输入的行为波动;最小特征向量为平坦方向,沿该方向行为具有鲁棒性。去除导向向量的尖锐分量可近似保留其方向和幅度(典型设置下余弦相似度>0.974,幅度降低<3%),同时将向量的方向曲率最多降低12倍(36种条件下中位数为4倍)。我们在三类模型家族(Qwen2.5-7B、Llama-3.1-8B、Mistral-7B)、四项行为任务及36个 token 级条件上进行评估:沿尖锐方向导向会在所有测试条件下反转预期行为,反导向率为53%-100%;尖锐分量仅占CAA向量平方范数的1%-5%,却在自回归生成中驱动了导向与未导向下下一个 token 分布差距的不成比例部分。我们将这一单行修正称为尖锐去除(sharp removal),它在所有25项测试的开放式生成中均优于标准CAA;越狱实验进一步表明,尖锐方向作为噪声而非信号,无论导向极性如何都会破坏连贯的行为控制。

英文摘要:

Activation steering adds a vector to a language model's internal representations at inference time. It is a lightweight alternative to fine-tuning for behavioral control. The standard construction, contrastive activation addition (CAA), is fragile, as on many inputs it shifts behavior in the wrong direction. To explain this fragility, we first study the geometry of the steering vector. We introduce steering Hessian, the matrix of second order derivative of the model's behavioral loss with respect to the steering vector. It captures the output behavior response sensitivity of the model under small perturbations of the steering vector along each direction. Its top eigenvectors are sharp directions: tiny perturbations along them can cause large, erratic, input-dependent behavioral swings. Bottom eigenvectors are flat directions: behavior is robust along them. Removing the sharp component of a steering vector approximately preserves its direction and magnitude (cosine > 0.974, norm reduction < 3% for typical settings) while reducing the vector's directional curvature by up to 12x (median 4x across 36 conditions). We evaluate on three model families (Qwen2.5-7B, Llama-3.1-8B, Mistral-7B), with four behavioral tasks, and 36 token-level conditions. Steering along sharp directions reverses the intended behavior in every condition tested, with anti-steer rates of 53-100%. Sharp directions account for only 1-5% of the CAA vector's squared norm. However, they drive a disproportionate share of the gap between the steered and unsteered next-token distributions during autoregressive generation. We term this one-line correction as sharp removal; it outperforms standard CAA in open-ended generation across all 25 conditions tested. A jailbreaking experiment further shows that sharp directions act as noise rather than signal: they disrupt coherent behavioral control regardless of steering polarity.

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

↑