arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.24367cs.AI
收藏

WAQS:用于二次探测与仿射引导的权重吸收

WAQS: Weight Absorption for Quadratic Probing and Affine Steering

the Ohio State University(俄亥俄州立大学)

Ding Zhu, Mohammad Mahdi Khalili

AI总结:

提出WAQS框架,通过离线权重更新将二次探测的仿射引导融入线性变换,在多引导任务中优于或匹配线性引导,且无额外推理开销。

摘要:

激活引导为控制大语言模型行为提供了一种微调的轻量替代方案。然而现有方法常面临效率与表达力的权衡:固定引导向量的推理开销可忽略不计,但无法适应当前模型输入;而依赖输入的非线性干预虽灵活性更强,却会增加运行时成本。我们提出WAQS(Weight Absorption for Quadratic probing and affine Steering,用于二次探测与仿射引导的权重吸收)框架,可实现状态依赖的引导,且无需额外推理时间计算。WAQS用二次探测建模概念,其梯度产生依赖激活的仿射引导方向。我们证明该仿射干预可通过离线权重更新精确融入相邻线性变换。此外,我们证明二次函数是最大类的平滑概念得分,其基于梯度的干预为仿射,因此可精确融入线性层。在高斯表示模型下,我们的公式可解释为类条件马氏距离拉回的差值,自然推广了线性判别与均值差引导。为扩展至高维表示,我们引入二次项的低秩参数化。在真实性、弃权(不执行)与逢迎引导任务中,二次引导与恒定线性引导表现相当或更优,同时保留模型效用,且吸收后的实现无额外推理时间操作。我们的结果表明,二次探测在静态线性引导与计算昂贵的动态非线性干预间提供了实用的中间方案。

英文摘要:

Activation steering provides a lightweight alternative to fine-tuning for controlling large language model behavior. Existing methods, however, often face a trade-off between efficiency and expressiveness: fixed steering vectors incur negligible inference overhead but cannot adapt to the current model input, whereas input-dependent nonlinear interventions provide greater flexibility at additional runtime cost. We introduce \textbf{WAQS} (\textbf{W}eight \textbf{A}bsorption for \textbf{Q}uadratic probing and affine \textbf{S}teering), a framework that obtains state-dependent steering, without additional inference-time computation. WAQS models a concept with a quadratic probe, whose gradient yields an affine, activation-dependent steering direction. We show that this affine intervention can be folded exactly into adjacent linear transformations through an offline weight update. Moreover, we prove that quadratic functions form the maximal class of smooth concept scores whose gradient-based interventions are affine and therefore exactly absorbable into linear layers. Under a Gaussian representation model, our formulation admits an interpretation as the difference of class-conditional Mahalanobis pulls and naturally generalizes linear discriminant and difference-in-means steering. To scale to high-dimensional representations, we introduce a low-rank parameterization of the quadratic term. Across truthfulness, refusal, and sycophancy steering tasks, quadratic steering matches or improves upon constant linear steering while preserving model utility, with the absorbed implementation introducing no additional inference-time operations. Our results suggest that quadratic probes provide a practical middle ground between static linear steering and computationally expensive dynamic nonlinear interventions.

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

↑