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

球面操控:面向语言模型的几何感知激活旋转

Spherical Steering: Geometry-Aware Activation Rotation for Language Models

Rice University(里士大学);Tufts University(塔夫茨大学)

Zejia You, Chunyuan Deng, Hanjie Chen

AI总结:

本文提出球面操控方法,通过激活旋转而非加法实现无训练的推理控制,有效避免隐藏状态幅度变化,提升模型在多项选择基准上的表现,同时保持开放生成能力。

摘要:

在推理过程中,操控语言模型(LMs)而不重新训练是一种有前景的方法。然而,标准方法通常依赖于激活加法,这不可避免地会改变隐藏状态的幅度,引发表示崩溃和开放生成退化的问题。本文探讨了球面操控,一种无需训练的原始方法,通过激活旋转解决这一权衡问题。与使用固定向量移动激活不同,我们的方法沿向目标方向的测地线旋转激活,从而在保持信号完整性的同时指向目标概念。为进一步增强适应性,我们引入了一个置信度门,根据输入不确定性动态调节操控强度。在多个选择基准上的广泛实验表明,球面操控在多项选择基准上显著优于加法基线(在TruthfulQA、COPA和Storycloze上分别提高10%),同时同时保持模型的开放生成质量。这项工作强调了几何一致性的重要性,表明保持范数的旋转是一种稳健且有效的方法,用于精确的推理时间控制。代码可在:https://github.com/chili-lab/Spherical-Steering 获取。

英文摘要:

Inference-time steering offers a promising way to control language models (LMs) without retraining. However, standard approaches typically rely on activation addition, which inevitably alters the hidden-state magnitudes raising concerns about representation collapse and degraded open-ended generation. In this work, we explore Spherical Steering, a training-free primitive that resolves this trade-off through activation rotation. Rather than shifting activations with a fixed vector, our method rotates them along a geodesic toward a target direction, preserving signal integrity while steering toward the target concept. To further enhance adaptivity, we incorporate a confidence gate that dynamically modulates steering strength based on input uncertainty. Extensive experiments across multiple-choice benchmarks demonstrate that Spherical Steering significantly outperforms addition-based baselines (notably by +10% on TruthfulQA, COPA, and Storycloze), while simultaneously maintaining the model's general open-ended generation quality. This work highlights the value of geometric consistency, suggesting that norm-preserving rotation is a robust and effective primitive for precise inference-time control. The code is available at: https://github.com/chili-lab/Spherical-Steering.

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

↑