Manuscript Offprint

arXiv:2610.24367

WAQS: Weight Absorption for Quadratic Probing and Affine Steering

Ding Zhu, Mohammad Mahdi Khalili

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

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 WAQS (Weight Absorption for Quadratic probing and affine Steering), 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.

1 INTRODUCTION

Large Language Models (LLMs) require steering away from harmful, untruthful, or sycophantic behavior after pretraining, and doing so cheaply and precisely is central to deploying them safely. Modern alignment techniques fall into two methodologies: training-based alignment and training-free, inference-time intervention. Training-based alignment relies primarily on Supervised Fine-Tuning (SFT) and Reinforcement Learning methods (Ouyang et al., 2022; Shen et al., 2023; Wu et al., 2024a; Shao et al., 2024). While effective, these methods are computationally expensive, depend on noisy human feedback, and inherit the biases encoded in a learned reward function (Casper et al., 2023); verifiable-reward variants avoid this bias but only apply where correctness is mechanically checkable, such as math, code, and formal reasoning. Training-free intervention, which instead adjusts model behavior at inference time without any gradient update, is the focus of this paper.

Within training-free intervention, representation engineering faces a fundamental trade-off between adaptivity and inference cost. Static Steering identifies a single static concept vector and adds it to the model's activation at almost zero inference cost (Zou et al., 2023a). This static vector, however, assumes the concept boundary is a flat hyperplane in representation space; because most concepts do not satisfy this assumption, linear steering under- or over-corrects activations that lie off this

∗^{*}Equal Contribution.

hyperplane and degrades generation quality under strong intervention. Recent work instead models the concept boundary with deeper, curved classifiers and computes an input-dependent steering direction from them at generation time (Raval et al., 2026; Lee & Kondor, 2026; Hoscilowicz et al., 2024). This non-linear steering corrects activations more precisely, but existing analyses treat its cost as unavoidable: because the steering direction is an arbitrary, non-affine function of the current activation, it must be recomputed from a full forward pass at every generated token.

We resolve this tension with a simple observation: although a quadratic concept probe is a non-linear function of the activation, its gradient is an affine function of that same activation. A quadratic probe is therefore curved enough to represent a non-flat concept boundary, yet inducing a steering direction that is linear enough to be written as a fixed weight update rather than recomputed at every step.

Building on this observation, we introduce WAQS (Weight Absorption for Quadratic probing and affine Steering), a framework that turns a curved, input-dependent steering direction into a static weight update. WAQS trains a quadratic probe to score a target concept, derives the steering update as the probe's gradient which is an affine function of input, and folds this affine map into the neighboring weight matrix, or layer norm. In contrast to static steering, WAQS's steering direction still adapts to each input's position relative to the target concept; in contrast to dynamic non-linear steering, this adaptation is precomputed once, offline, so it costs nothing extra at inference time.

Our contributions can be summarized as follows:

• Maximal function class and statistical interpretation. We discuss that a smooth probe's gradient-based intervention is affine in the activation if and only if the probe is a polynomial of degree at most two. Quadratic probes are thus not merely one absorbable family but the entire absorbable class; any higher-order probe reintroduces the recomputation cost that motivated dynamic non-linear steering. Under a Gaussian representation model, the optimal quadratic probe admits a closed form, and its induced steering direction decomposes into a difference of class-conditional Mahalanobis pulls. Moreover, under the Gaussian assumption, we show that difference-in-means steering method (Arditi et al., 2024) is a special case of quadratic probing.

• Weight absorption. We show that gradient-based steering with a quadratic probe can be folded exactly into the adjacent linear projection, attention layer, and normalization layer through an offline weight update. The result is a standard checkpoint: it requires no custom inference code, no forward hooks, and works out of the box with existing serving stacks, quantization pipelines, and distribution formats.

References (51)