激活引导为控制大语言模型行为提供了一种微调的轻量替代方案。然而现有方法常面临效率与表达力的权衡:固定引导向量的推理开销可忽略不计,但无法适应当前模型输入;而依赖输入的非线性干预虽灵活性更强,却会增加运行时成本。我们提出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.
Same Values, Different Languages? From Multilingual Probing to Steering LLMs Toward Chinese Social Values
School of Information Science and Technology, Beijing Foreign Studies University(北京外国语大学信息科学与技术学院);Beijing Academy of Artificial Intelligence(北京人工智能研究院);Beihang University(北京航空航天大学)
Probing the Robustness of Large Language Models Safety to Latent Perturbations
Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际 Graduate School, 清华大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Fudan University(复旦大学);The University of Hong Kong(香港大学)
Towards Tracing Trustworthiness Dynamics: Revisiting Pre-training Period of Large Language Models
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shanghai Jiao Tong University(上海交通大学);The University of Sydney(悉尼大学);Renmin University of China(中国人民大学);University of Chinese Academy of Sciences(中国科学院大学)
Evaluation Awareness Scales Predictably in Open-Weights Large Language Models
Independent(独立研究者);UC Irvine(加州大学尔湾分校);University of Waterloo(滑铁卢大学);UW Madison(威斯康星大学麦迪逊分校);University of Toronto(多伦多大学);Algoverse(Algoverse公司);META;University of Maryland(马里兰大学)
ICON: Indirect Prompt Injection Defense for Agents based on Inference-Time Correction
College of Computing and Data Science, Nanyang Technological University, Singapore(计算与数据科学学院,南洋理工大学,新加坡);Alibaba(阿里巴巴);School of Computer Science, Peking University, China(计算机科学学院,北京大学,中国)