Manuscript Offprint
arXiv:2610.01062Kernelized Activation Steering
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Laziz U. Abdullaev
National University of Singapore
Bach Do
Hanoi University of Science and Technology
bach.dtg225472@sis.hust.edu.vn
Minh-Hieu Pham
Hanoi University of Science and Technology
Khoat Than
Hanoi University of Science and Technology
Tan M. Nguyen
National University of Singapore
Abstract
Activation steering provides a simple, training-free mechanism for controlling attributes of generative models such as sentiment, style, and helpfulness. However, standard approaches such as Difference-in-Means apply a single input-independent steering vector across all activations, limiting expressivity and ignoring the local geometry of the activation space. We propose Kernelized Activation Steering (KAS), a unifying framework that lifts activation steering into a reproducing kernel Hilbert space. KAS formulates steering as an optimization problem expressed purely via kernel evaluations, yielding an implicit, activation-dependent steering score without constructing explicit feature maps. Unlike DiM, KAS induces locally adaptive steering: each activation is modified according to its relative position with respect to source and target reference sets, producing a nonlinear steering field over the representation space. Importantly, DiM is recovered as a special case under a linear kernel, while richer kernels enable geometry-aware interventions. Across standard activation steering tasks, including jailbreaking LLMs and image style control, KAS outperforms or is on par with the existing methods.
1 Introduction
Large language models (LLMs) are now known to encode rich semantic concepts such as sentiment, refusal, truthfulness, persona as identifiable structures in their internal representations [53, 29, 3]. A central problem in alignment and controllability is to manipulate these structures at inference time, in order to alter behaviour without the cost or fragility of full fine-tuning. Activation steering [54, 42, 3] has emerged as a particularly practical instrument for this purpose: it modifies a single layer’s activations using a precomputed direction and requires no parameter updates.
The dominant instantiation of this idea is Difference-in-Means (DiM) [42, 54, 3], which estimates the steering direction as the difference between mean activations on a source dataset (behaviour to suppress) and a target dataset (behaviour to elicit). DiM derives both its appeal and its limitations from the linear representation hypothesis (LRH) [36, 32, 5, 14] — the assumption that high-level concepts are encoded as linear directions in activation space. While the LRH has proven surprisingly robust for many tasks, mounting evidence highlights pervasive polysemanticity and curved structure in transformer representations [15, 14], where features cluster along nonlinear manifolds that no
Equal contribution. Correspondence to laziz.abdullaev@u.nus.edu
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
(a) Difference-in-Means

(b) Kernelized Activation Steering (Ours)
Figure 1: An illustrative comparison between standard Difference-in-Means (DiM) and Kernelized Activation Steering (KAS). Source activations (orange) lie between two target modes (blue). (a) DiM applies a single global translation , sending every activation into the saddle between the modes, a region with no semantic content under either target behaviour. No choice of steering strength recovers the modes. (b) Kernelized activation steering (KAS) produces a data-adaptive vector field that routes each activation to its nearest mode.
single global translation can faithfully capture. As a consequence, DiM-style interventions can be either ineffective on out-of-distribution activations or destructive of unrelated capabilities once the steering coefficient is increased to compensate.
We propose Kernelized Activation Steering (KAS), a framework that retains the simplicity of DiM while relaxing its linear constraint via the kernel trick. We lift activations into a reproducing kernel Hilbert space (RKHS) H, define the feature-space steering direction as the lifted DiM vector, and derive an implicit steering score that depends on the input only through kernel evaluations against the reference sets. Steering then proceeds by gradient ascent on this score with a proximal regulariser that bounds deviation from the original activation. Because kernel gradients themselves depend on the current activation, the resulting update is locally adaptive: KAS attracts activations toward target reference points and repels them from source reference points, producing a nonlinear steering field (see Figure 1). Crucially, KAS recovers DiM exactly under a linear kernel, situating it as a strict generalization rather than an alternative.
Overall, our contributions are threefold:
-
A nonlinear generalization of activation steering. We formulate activation steering as optimization in an RKHS and derive an implicit steering score that requires only kernel evaluations between the input and the source/target reference sets ( ). Furthermore, DiM is recovered exactly under the linear kernel (Remark 4.1), unifying classical kernel methods with modern activation-level interventions.
-
A theoretical bridge between activation steering and kernel two-sample test. We show that the KAS score is the empirical witness function associated with maximum mean discrepancy, connecting activation steering to kernel two-sample testing and explaining how characteristic kernels can detect distributional differences that linear mean-based steering misses.
-
A locally adaptive RBF instantiation. We instantiate the framework with the Gaussian RBF kernel, yielding a closed-form, activation-dependent gradient update ( ).
We evaluate KAS on jailbreak steering across three instruction-tuned LLMs, CAA-style behavioral steering, and text-to-image style control. KAS improves jailbreak attack success over ActAdd on Gemma and Qwen while matching it on Llama, achieves the strongest effects on four CAA behaviors with non-null steering responses, and improves style induction over Mean-Act across most tested intervention strengths while preserving prompt alignment. Additional ablations examine kernel approximation and steering from a single contrastive pair ( ).
Activation Steering via Difference-in-Means. Activation steering modifies a model’s behaviour at inference time by directly intervening on internal activations, without updating parameters. Given a contrastive pair of prompt sets — a source set A exhibiting behaviour to suppress and a target set B exhibiting behaviour to elicit — the difference-in-means (DiM) method [42, 54, 3, 56] extracts a steering vector by contrasting their mean activations:
where and are the layer- activations of prompts in and . At inference, an incoming activation is steered by the additive update
where controls the intervention strength. The intervention layer is typically chosen on a held-out validation set [3].
A defining property of DiM is that the steering direction v is global and input-independent: every activation receives the same translation, regardless of where it sits in representation space. Our work generalises this construction to allow activation-dependent steering through a kernelised formulation.
Kernel Methods and Reproducing Kernel Hilbert Spaces. A function is a positive semi-definite (PSD) kernel if, for any finite set , the Gram matrix with entries is positive semi-definite. By the Moore–Aronszajn theorem [4, 8], every PSD kernel uniquely defines a reproducing kernel Hilbert space (RKHS) together with a feature map satisfying for all . The kernel trick states that any algorithm expressible solely through inner products in can be implemented using only kernel evaluations on , without materializing . This is what enables us to operate in a high- or infinite-dimensional feature space at the cost of kernel evaluations per query [45, 19]. Kernel methods are usually favorable as it is believed that most nonlinear systems behave approximately linearly in higher, possibly infinite-dimensional feature spaces [13, 9].
3 Related Work
Activation-level interventions on language models have been studied under several names, including activation addition [54], representation engineering [59], contrastive activation addition [42], and inference-time intervention [24]. Most of these methods extract a single steering direction per concept via difference-in-means, linear probing, or PCA on contrastive activations [2, 24, 59, 52]. A separate line of work uses sparse autoencoders to identify steerable features [51, 34, 6, 22, 58]. However, most of these approaches apply a fixed translation in activation space and thus inherit the limitations of input-independent steering. To address this issue, there is a growing body of work dedicated to designing input-dependent steering mechanisms. K-steer [35] trains a nonlinear attribute classifier on hidden activations and computes steering directions via gradients of that classifier while SAS [6] relies on pretrained SAEs as nonlinear feature extractors. Another line of research models activation steering via Optimal Transport [43] through which a numerous input-dependent affine [46] and nonlinear [1] steering methods have been proposed. Perhaps the closest to our method is Curveball steering [40], which uses kernel PCA for nonlinear dimensionality reduction and perform steering in the reduced space while [44] employs a similar technique for concept erasure problem [41, 7, 12]. More broadly, kernel methods have been used for distribution matching in generative modeling [25], particle-based variational inference [27], and mode seeking in diffusion-based image restoration [20], providing related distributional perspectives. Our training-free framework, Kernelized Activation Steering (KAS), instead derives an activation-dependent intervention from an interpretable, kernel-based optimization objective and recovers DiM exactly as a special case under a linear kernel, along with a relation to hypothesis testing techniques [17, 33] providing a complementary theoretical lens for activation steering design.
4 Kernelized Activation Steering
Let and denote the layer- activations of prompts drawn from a source set and target set , respectively. The DiM steering vector (1) is effective when and are well separated by a linear hyperplane in activation space, but totally disregards local structures of the activation distributions and possible nonlinearities in decision boundary. To approach these issues properly, we shall derive DiM activation steering as a special case of a more general, principled operation in the following section.
4.1 Lifting Difference-in-Means into an RKHS
Let be the feature map associated with a PSD kernel , where may be infinite-dimensional. The natural lift of (1) into is
For sufficiently expressive kernels, for example, universal kernels such as the Gaussian RBF [48], the contrastive features of the lifted samples and are expected to be captured well in , motivating as a steering direction in the feature space. Materialising explicitly is, however, infeasible when is very high or infinite-dimensional. We circumvent this by expressing the entire steering objective in terms of kernel evaluations as we discuss next.
Ideally, for an activation , we would like the steered activation to satisfy the equation for some , which represents that the feature-space steering direction is the same as . Motivated by this, we design the feature-space steering mechanism to increase the dot product similarity with respect to . As the contribution of to this objective is independent of , we define the following implicit steering score
By bilinearity of the inner product and the kernel-trick identity ,
(5)
which depends only on kernel evaluations between x and the reference sets. Intuitively, measures the alignment of with the lifted DiM direction . Therefore, increasing pushes the feature representation of x toward the target set and away from that of the source set.
4.2 Steering as an Optimization Problem
Given an initial activation , we cast kernelized steering as the regularized maximization problem given by
where is a proximal coefficient that optionally prevents the steered activation from drifting too far from and thereby disrupting unrelated capabilities of the model. When is differentiable, we approximate by gradient ascent on :
where is the step size. Crucially, the update depends on through the kernel gradients, so the effective steering direction varies with the current activation as opposed to DiM, which applies a fixed translation regardless of input. Also, note that we set for most of our experiments since we usually take only one gradient ascent step on the objective as our steering mechanism due to inference-time computational constraints.
Remark 4.1 (DiM as a special case). For the linear kernel , we have , so (7) reduces, in the unregularized case, to
which recovers DiM steering with strength . Thus KAS strictly generalizes DiM, with general kernels yielding activation-dependent updates that DiM cannot express.
Remark 4.2 (Normalized implementation). Equation (7) presents the raw-gradient update to make the connection to the optimization objective and DiM transparent. In Algorithm 2 and all experiments, we instead use the normalized update , whenever . The full gradient is formed before normalization, so represents an absolute step length in activation space. Under the linear kernel with , this becomes , which recovers the same one-parameter family of DiM interventions under the correspondence .
Connection to maximum mean discrepancy. Maximum mean discrepancy (MMD) [17] measures the difference between two distributions through their mean embeddings in an RKHS. For source and target activation distributions and , respectively, define and . Their MMD is
The maximizing function is known as the MMD witness function. It assigns larger values to regions of the input space that are more characteristic of than of , with the notion of similarity determined by the kernel. This construction closely mirrors KAS in the sense that the lifted steering direction in (3) is the empirical difference between the two kernel mean embeddings, and evaluating it at an activation produces the score . Thus, whereas a conventional two-sample test aggregates the witness into a scalar distributional discrepancy, KAS uses its gradient as an intervention, moving individual activations toward regions favored by the target distribution and away from regions favored by the source distribution. The following proposition formalizes this equivalence.
Proposition 4.3 (KAS as MMD witness ascent). Let and denote the source and target activation distributions, with mean embeddings . The population steering score is the unnormalized maximum mean discrepancy (MMD) witness function for the two-sample problem vs. [17]. Concretely,
where , is a witness function that attains . The empirical KAS score in (5) is the standard plug-in estimator of , and Algorithm 2 performs gradient ascent on this empirical witness.
Identifying with the MMD witness imports a couple of useful properties from kernel two-sample testing. (i) Characteristic kernels and signal existence. When is characteristic on (true for the Gaussian RBF and Laplace kernels [17, 47]), if and only if . In contrast, a linear kernel yields iff the means of the two distributions agree, so DiM has no population signal whenever source and target activations share a centroid but differ in higher moments (e.g. multimodal targets). This formalizes DiM's principal failure mode and motivates the use of nonlinear kernels in KAS. (ii) Bandwidth selection. The MMD median heuristic, setting to the median pairwise Euclidean distance in , gives a parameter-free, well-studied default for the RBF bandwidth [17], which we will also adopt for our experiments.
4.3 RBF Kernelized Activation Steering
While prior activation-steering methods are restricted to linear operations in activation space, our framework supports arbitrary differentiable kernels. We now develop the case of the Gaussian RBF kernel, which we treat as our default instantiation.
We adopt the radial basis function kernel
Algorithm 1 DiM Steering [3]
Require: Activation ; source set ; target set ; strength
1: Compute steering vector:
2: Update activation:
3: return steered activation
Algorithm 2 RBF-Kernelized Activation Steering
Require: Activation ; source ; target ; bandwidth ; step size ; regulariser ; iterations
1: Initialise
2: for do
3: Kernel-gradient direction: -\frac{1}{n_A} \sum_{i=1}^{n_A} k(x, a_i)(a_i - x) \right]
4:
5:
6: end for
7: return steered activation
Figure 2: Side-by-side comparison of global linear steering (DiM, Algorithm 1) and locally adaptive RBF-kernelised activation steering (Algorithm 2). DiM applies the same translation to every activation; KAS adapts the update direction to the local geometry around x.
where is the bandwidth. Unlike the linear kernel, (8) induces a locally adaptive geometry: similarity decays smoothly with Euclidean distance, so reference points only exert influence within an effective radius . The gradient with respect to admits the closed form
Substituting (9) into the update rule (7) yields a nonlinear, data-adaptive steering field: each reference activation contributes a force aligned with and weighted by its RBF similarity to , producing localized attraction toward target examples and localized repulsion from source examples. We summarize the resulting procedure in Algorithm 2. This mechanism cannot be reduced to a single fixed steering vector as the effective direction at is a similarity-weighted resultant of pairwise forces, and changes as traverses representation space.
One-Step Ascent Guarantees. We now give sufficient step-size conditions under which the normalized-gradient update used in Algorithm 2 strictly improves the KAS objective . The result follows from the standard ascent lemma, with an explicit kernel-dependent bound for the RBF case in Corollary 4.5. All proofs are deferred to Appendix A.1.
Theorem 4.4 (One-Step Ascent). Let , where is induced by a twice-differentiable kernel via (5). Assume for all . For any iterate with , consider the normalized-gradient update . Then whenever .
For comparison, the raw-gradient update strictly increases whenever .
Corollary 4.5 (One-step ascent for RBF steering). Suppose the RBF kernel (8) is used and that the reference and iterated activations lie in a Euclidean ball of radius R. Then the normalized update in Theorem 4.4 strictly increases F whenever .
In practice, we tune as a hyperparameter because these sufficient bounds can be conservative. If , the normalized direction is undefined and the algorithm terminates.
5 Experiments
We evaluate KAS across three settings that exercise different aspects of activation steering: (i) jailbreak steering on instruction-tuned LLMs, which trades off attack success against general-capability retention; (ii) CAA-style contrastive steering on multiple-choice question answering, which
Table 1: Jailbreak steering at validation-selected settings. ASR and TINYBENCHMARKS scores are percentages; Alpaca perplexity (PPL) is lower-is-better. Entries with report mean and standard deviation over three seeds. Bold denotes the highest mean ASR for each model.
| Method | ASR | PPL | tArc | tHella | tMMLU | tQA | tWino |
|---|---|---|---|---|---|---|---|
| QWEN2.5-7B-INSTRUCT | |||||||
| ActAdd | 91.00 | 6.70 | 53.82 | 71.62 | 65.12 | 57.98 | 65.71 |
| Curveball | 2.00 | 8.59 | 61.61 | 75.92 | 71.13 | 64.99 | 71.05 |
| CHaRS | 92.33±1.53 | 7.89±0.06 | 57.35±0.06 | 75.62±0.41 | 72.67±0.00 | 47.96±0.06 | 71.31±0.18 |
| KAS | 96.00 | 6.60 | 62.57 | 76.97 | 64.16 | 65.79 | 68.30 |
| GEMMA-2-9B-IT | |||||||
| ActAdd | 76.00 | 10.17 | 52.88 | 68.57 | 63.85 | 53.67 | 72.25 |
| Curveball | 0.00 | 10.01 | 68.12 | 78.61 | 71.53 | 60.51 | 74.68 |
| CHaRS | 77.33±0.58 | 10.16±0.00 | 67.01±0.00 | 78.94±0.00 | 73.40±0.00 | 43.58±0.10 | 75.29±0.00 |
| KAS | 86.00 | 10.03 | 61.42 | 78.80 | 72.38 | 43.96 | 73.81 |
| LLAMA-3.1-8B-INSTRUCT | |||||||
| ActAdd | 94.00 | 6.43 | 56.18 | 68.97 | 65.53 | 53.30 | 71.13 |
| Curveball | 0.00 | 5.61 | 57.48 | 73.81 | 63.83 | 53.37 | 68.91 |
| CHaRS | 95.00±1.73 | 8.19±0.01 | 56.26±1.27 | 79.27±0.00 | 63.31±0.00 | 48.88±0.02 | 71.66±1.24 |
| KAS | 94.00 | 6.81 | 55.88 | 70.47 | 65.40 | 53.54 | 72.85 |
isolates targeted behavioral control on a fixed answer-token position; and (iii) text-to-image style control on a diffusion model, which probes whether KAS generalizes beyond language modeling. Sections 5.4 and 5.5 examine kernel approximation and data efficiency, respectively. All experiments are conducted on a single NVIDIA H100 96GB GPU.
5.1 Jailbreaking LLMs
Setup. We evaluate GEMMA-2-9B-IT [50], LLAMA-3.1-8B-INSTRUCT [28], and QWEN2.5-7B-INSTRUCT [39]. Following [3], we construct reference sets of 128 harmful prompts from ADVBENCH [60], MALICIOUSINSTRUCT [21], TDC2023 [31], and HARMBENCH [30], and 128 harmless prompts from ALPACA [49]. Reference, validation, and test sets are disjoint. We select the intervention layer and strength by maximizing ASR on 39 harmful validation prompts, subject to perplexity on 256 Alpaca validation examples being at most 1.05 times the unsteered value. Final evaluation uses 100 JAILBREAKBENCH prompts [10], a separate set of 256 Alpaca examples, and TINYBENCHMARKS [38]. ASR is measured using LLAMA-GUARD-3-8B [28]; all test metrics are computed at the validation-selected settings.
Results. We compare KAS with ActAdd [3], Curveball [40], and CHaRS [1]. Table 1 reports ASR, Alpaca perplexity, and TINYBENCHMARKS scores. We report mean and standard deviation over three seeds for CHaRS, varying clustering initialization. ActAdd, KAS, and Curveball are deterministic for fixed data and hyperparameters under greedy decoding. KAS attains the highest ASR on Gemma and Qwen, exceeding ActAdd by 10 and 5 percentage points, respectively, with slightly lower perplexity. On Llama, KAS matches ActAdd at ASR with higher perplexity; CHaRS achieves ASR with a further increase in perplexity. Several baselines retain higher scores on individual utility tasks but attain substantially lower ASR at their selected settings. KAS thus improves the steering–utility tradeoff in some settings, while remaining competitive on Llama.
Across the tested validation grids, Curveball on Llama attains at most ASR. Curveball on Gemma and Qwen attains high ASR only beyond the validation perplexity cap. These comparisons are restricted to the evaluated configurations.
5.2 CAA-style Contrastive Steering on Multiple-choice Question Answering
Setup. We adopt the contrastive multiple-choice setup of CAA [42]. Each pair shares a question and differs only in the appended answer: the positive example selects the behavior-consistent option and the negative example selects the opposite option. Activations are collected at the answer-token position. For each behavior, we retain 50 held-out test questions, remove duplicates and test-set overlaps from the generation pool, sample 50 validation questions, and use the remaining examples as references. Layer and strength are selected by maximizing behavior-consistent answer probability on the validation set; the selected configuration is then evaluated on the test set. Experiments use GEMMA-2-9B-IT at layer 22 or 23. We consider no system prompt, a positive system prompt
Table 2: CAA-style steering under a negative system prompt. Entries report the mean probability (%) of the behavior-consistent answer at validation-selected settings; denotes standard deviation over three seeds. The final two behaviors exhibit near-null effects.
| Behavior | Unsteered | ActAdd | Curveball | CHaRS | KAS |
|---|---|---|---|---|---|
| AI Coordination | 8.69 | 39.51 | 27.48 | 35.58±0.11 | 40.19 |
| Corrigibility | 0.05 | 33.82 | 35.13 | 38.84±0.08 | 43.45 |
| Hallucination | 23.97 | 43.97 | 26.04 | 25.83±0.09 | 55.01 |
| Myopic Reward | 1.29 | 49.56 | 51.35 | 50.97±0.10 | 58.48 |
| Survival Instinct | 43.68 | 43.56 | 43.76 | 43.76±0.02 | 43.83 |
| Sycophancy | 53.18 | 53.47 | 53.57 | 53.64±0.04 | 53.69 |

Figure 3: Style induction and content preservation (y-axis) for cyberpunk style control under increasing intervention strength (x-axis). Left: 0-shot style-classification score, where higher is better. Right: CLIPSCORE with the original prompt, measuring content preservation.
encouraging the behavior, and a negative system prompt discouraging it. Table 2 reports the negative-prompt condition, comparing the unsteered model, linear contrastive addition (denoted ActAdd), and the methods in Section 5.1. The reported standard deviations follow the same three-seed convention.
Results. KAS exceeds linear contrastive addition by 9.63, 11.04, and 8.92 percentage points on Corrigibility, Hallucination, and Myopic Reward, respectively. KAS attains the highest probability among the compared methods on AI Coordination, Corrigibility, Hallucination, and Myopic Reward. Survival Instinct and Sycophancy remain close to the unsteered baseline and are treated as near-null effects.
5.3 Image Generation Style Control
To evaluate generalization beyond text generation and multiple-choice question answering, KAS is assessed on a text-to-image style control task following [43], in which diffusion model activations are steered to produce target visual styles.
Setup. A set of 512 prompts is sampled from the COCO Captions training set [11] and augmented with style tags generated via LLAMA3-8B-INSTRUCT. Further construction details are provided in Appendix B.4. Images are generated using FLUX.1 [SCHNELL] [23], with original and style-augmented prompts serving as source and target datasets. KAS was applied sequentially. For evaluation, images were generated from 60 COCO validation prompts across varying intervention strengths, and KAS was compared against Mean-AcT [43], with 0-shot classification scores employed as a proxy for style induction. Content preservation was quantified via CLIPSCORE [18] between steered outputs and the original prompts.
Results. Figure 3 shows the plot of style induction and content preservation for the cyberpunk style. KAS achieves higher 0-shot style-classification scores than Mean-AcT across most intervention strengths. Notably, near , KAS reaches a high zero-shot style score while maintaining a high CLIPSCORE, indicating effective style induction without reducing prompt alignment. The qualitative results in Figure 4 show the same trend: stronger interventions introduce more cyberpunk visual attributes.
5.4 Ablation: Kernel Approximation
Setup. We examine the effect of approximating the KAS kernel using the Nyström method [57] with 64 landmarks sampled without replacement from the reference sets. Appendix A.4 derives the approximate score and steering update. We compare this variant, denoted Nyström-KAS, with exact KAS under the reference, validation, and test protocols of Sections 5.1 and 5.2. Each variant uses its

Figure 4: Qualitative examples of KAS style control for the cyberpunk style under increasing intervention strengths . Top: A large tower that has a big clock at top. Bottom: Lady bent over with red polka dot umbrella inside a brick building.
Table 3: Kernel-approximation ablation for jailbreak steering. ASR and utility scores are percentages; PPL is Alpaca perplexity. Nyström-KAS uses 64 landmarks, with mean and standard deviation over three sampling seeds.
| Variant | ASR | PPL | tArc | tHella | tMMLU | tQA | tWino |
|---|---|---|---|---|---|---|---|
| QWEN2.5-7B-INSTRUCT | |||||||
| KAS | 96.00 | 6.60 | 62.57 | 76.97 | 64.16 | 65.79 | 68.30 |
| Nyström-KAS | 22.33±0.47 | 6.54±0.06 | 64.58±0.00 | 78.52±0.00 | 74.36±0.00 | 52.47±0.15 | 72.85±0.54 |
| GEMMA-2-9B-IT | |||||||
| KAS | 86.00 | 10.03 | 61.42 | 78.80 | 72.38 | 43.96 | 73.81 |
| Nyström-KAS | 54.67±0.94 | 9.99±0.06 | 63.15±1.75 | 78.26±1.15 | 72.03±0.28 | 43.88±0.39 | 73.69±0.20 |
| LLAMA-3.1-8B-INSTRUCT | |||||||
| KAS | 94.00 | 6.81 | 55.88 | 70.47 | 65.40 | 53.54 | 72.85 |
| Nyström-KAS | 3.00±0.82 | 6.46±0.01 | 62.74±0.00 | 82.17±0.37 | 62.98±0.19 | 52.84±0.09 | 72.29±0.75 |
own validation-selected layer and strength; the comparison therefore measures performance after selection rather than approximation error at a fixed intervention. Nyström results report mean and standard deviation over three landmark-sampling seeds.
Results. Table 3 shows that the approximation reduces jail-break ASR on all three models, with slightly lower Alpaca perplexity. In contrast, Table 4 shows that the approximation improves AI Coordination and Corrigibility, while exact KAS achieves higher probabilities on Hallucination and Myopic Reward. Both variants exhibit near-null effects on Survival Instinct and Sycophancy. Thus, the effect of kernel approximation depends on the task; these results do not establish a uniform substitute for exact kernel evaluation or quantify computational savings.
5.5 Ablation: Jailbreaking from a Single Contrastive Pair
We further evaluate whether jailbreak steering can be induced from an extremely limited contrastive set. In this ablation, each steering direction is extracted from only one harmful–harmless prompt pair. We repeat this procedure over ten randomly sampled contrastive pairs and evaluate using the same protocol as in Section 5.1. To quantify the extent each steering method maintains general capabilities of the model, we also measure perplexity on the PILE [16] and ALPACA [49] datasets. This setting provides a stress test
Table 4: Kernel-approximation ablation for CAA-style steering under a negative system prompt. Nyström-KAS uses 64 landmarks and three sampling seeds.
| Behavior | KAS | Nyström-KAS |
|---|---|---|
| AI Coordination | 40.19 | 42.18±1.39 |
| Corrigibility | 43.45 | 51.80±1.86 |
| Hallucination | 55.01 | 54.13±0.09 |
| Myopic Reward | 58.48 | 55.26±0.86 |
| Survival Instinct | 43.83 | 43.76±0.03 |
| Sycophancy | 53.69 | 53.23±0.06 |
Steering-method comparison across 10 seeds


ActAdd ASR Kernel — 1 step ASR Kernel — 10 steps Median Mean Outlier
Figure 5: Single-pair jailbreak steering across three instruction-tuned models. Box plots report attack success rate (ASR), Pile perplexity, and Alpaca perplexity over ten randomly sampled harmful-harmless contrastive prompt pairs. Steering is applied at layer 22 for GEMMA-2-9B-IT, layer 12 for LLAMA-3.1-8B-INSTRUCT, and layer 18 for QWEN2.5-7B-INSTRUCT. KAS is evaluated with one gradient step and ten gradient steps using the step sizes shown on the x-axis, and is compared against ActAdd.
for data efficiency: a successful method must be able to recover a useful behavioral direction from a minimal number of contrastive examples while avoiding severe degradation of generation quality.
Figure 5 visualizes the distribution of one-shot jailbreak steering performance across ten randomly sampled contrastive prompt pairs. The main trend is that KAS preserves general utility substantially better than ActAdd while remaining competitive in ASR. On GEMMA-2-9B-IT, KAS achieves ASR comparable to ActAdd, with both one-step and ten-step variants attaining similar mean ASR while reducing Pile and Alpaca perplexity. On QWEN2.5-7B-INSTRUCT, KAS remains comparable to ActAdd in ASR, but yields markedly lower perplexity on both utility corpora. On LLAMA-3.1-8B-INSTRUCT, ActAdd obtains the highest ASR, yet KAS substantially reduces perplexity. Overall, KAS remains effective under this severe data constraint while improving generation stability relative to a global linear intervention.
6 Conclusion
We introduced Kernelized Activation Steering (KAS), a unifying framework that recasts activation steering as optimization in a reproducing kernel Hilbert space. By expressing the steering objective entirely through kernel evaluations, KAS produces an implicit, activation-dependent steering field that is locally adaptive to the geometry of the representation manifold, while strictly generalizing the classical Difference-in-Means construction, which is recovered exactly under a linear kernel. We view KAS as a step toward a more principled, geometry-aware approach to inference-time control of generative models, and an opening for further work on kernel design and adaptive layer selection. A limitation of KAS is that the intervention applies a uniform number of gradient ascent steps to every token, which is computationally wasteful for tokens already close to the target manifold and potentially insufficient for harder ones. A token-adaptive compute schedule would likely improve both efficiency and stability. While RBF is shown to be a reliable default kernel choice, a principled method to choose the kernel function given a specific steering task or requirements remains a promising open direction to explore in future work.
References
[1] Laziz Abdullaev, Noelle Y. L. Wong, Ryan Lee T. Z., Shiqi Jiang, Minh-Khoi Nguyen-Nhat, and Tan Minh Nguyen. Concept heterogeneity-aware representation steering. In Forty-third International Conference on Machine Learning, 2026.
[2] Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016.
[3] Andy Arditi, Oscar Balcells Obeso, Aaquib Syed, Daniel Paleka, Nina Rimsky, Wes Gurnee, and Neel Nanda. Refusal in language models is mediated by a single direction. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024.
[4] Nachman Aronszajn. Theory of reproducing kernels. Transactions of the American Mathematical Society, 68(3):337–404, 1950.
[5] Sanjeev Arora, Yuanzhi Li, Yingyu Liang, Tengyu Ma, and Andrej Risteski. Linear algebraic structure of word senses, with applications to polysemy. Transactions of the Association for Computational Linguistics, 6:483–495, 2018.
[6] Reza Bayat, Ali Rahimi-Kalahroudi, Mohammad Pezeshki, Sarath Chandar, and Pascal Vincent. Steering large language model activations in sparse spaces. In Second Conference on Language Modeling, 2025.
[7] Nora Belrose, David Schneider-Joseph, Shauli Ravfogel, Ryan Cotterell, Edward Raff, and Stella Biderman. LEACE: Perfect linear concept erasure in closed form. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
[8] Alain Berlinet and Christine Thomas-Agnan. Reproducing kernel hilbert spaces in probability and statistics. volume 3. Springer, 2004.
[9] Jake Bouvrie and Boumediene Hamzi. Kernel methods for the approximation of nonlinear systems. SIAM Journal on Control and Optimization, 55(4):2460–2492, 2017.
[10] Patrick Chao, Edoardo Debenedetti, Alexander Robey, Maksym Andriushchenko, Francesco Croce, Vikash Sehwag, Edgar Dobriban, Nicolas Flammarion, George J. Pappas, Florian Tramèr, Hamed Hassani, and Eric Wong. Jailbreakbench: An open robustness benchmark for jailbreaking large language models. In The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2024.
[11] Xinlei Chen, Hao Fang, Tsung-Yi Lin, Ramakrishna Vedantam, Saurabh Gupta, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco captions: Data collection and evaluation server. arXiv preprint arXiv:1504.00325, 2015.
[12] Somnath Basu Roy Chowdhury, Avinava Dubey, Ahmad Beirami, Rahul Kidambi, Nicholas Monath, Amr Ahmed, and Snigdha Chaturvedi. Fundamental limits of perfect concept erasure. arXiv preprint arXiv:2503.20098, 2025.
[13] Thomas M. Cover. Geometrical and statistical properties of systems of linear inequalities with applications in pattern recognition. IEEE Transactions on Electronic Computers, EC-14(3):326–334, 1965.
[14] Nelson Elhage, Tristan Hume, Catherine Olsson, Nicholas Schiefer, Tom Henighan, Shauna Kravec, Zac Hatfield-Dodds, Robert Lasenby, Dawn Drain, Carol Chen, Roger Grosse, Sam McCandlish, Jared Kaplan, Dario Amodei, Martin Wattenberg, and Christopher Olah. Toy models of superposition. Transformer Circuits Thread, 2022.
[15] Joshua Engels, Eric J Michaud, Isaac Liao, Wes Gurnee, and Max Tegmark. Not all language model features are one-dimensionally linear. In The Thirteenth International Conference on Learning Representations, 2025.
[16] Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, et al. The pile: An 800gb dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027, 2020.
[17] Arthur Gretton, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Schölkopf, and Alexander Smola. A kernel two-sample test. Journal of Machine Learning Research, 13:723–773, 2012.
[18] Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, and Yejin Choi. Clipscore: A reference-free evaluation metric for image captioning. In Proceedings of the 2021 conference on empirical methods in natural language processing, pages 7514–7528, 2021.
[19] Thomas Hofmann, Bernhard Schölkopf, and Alexander J. Smola. Kernel methods in machine learning. The Annals of Statistics, 36(3):1171–1220, 2008.
[20] Yuyang Hu, Kangfu Mei, Mojtaba Sahraee-Ardakan, Ulugbek S. Kamilov, Peyman Milanfar, and Mauricio Delbracio. Kernel density steering: Inference-time scaling via mode seeking for image restoration. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
[21] Yangsibo Huang, Samyak Gupta, Mengzhou Xia, Kai Li, and Danqi Chen. Catastrophic jailbreak of open-source llms via exploiting generation. In The Twelfth International Conference on Learning Representations, 2024.
[22] Subhash Kantamneni, Joshua Engels, Senthooran Rajamanoharan, Max Tegmark, and Neel Nanda. Are sparse autoencoders useful? a case study in sparse probing. In Forty-second International Conference on Machine Learning, 2025.
[23] Black Forest Labs. Flux. https://github.com/black-forest-labs/flux, 2024.
[24] Kenneth Li, Oam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. Inference-time intervention: Eliciting truthful answers from a language model. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
[25] Yujia Li, Kevin Swersky, and Rich Zemel. Generative moment matching networks. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 1718–1727. PMLR, 2015.
[26] Stephanie Lin, Jacob Hilton, and Owain Evans. TruthfulQA: Measuring how models mimic human falsehoods. In Smaranda Muresan, Preslav Nakov, and Aline Villavicencio, editors, Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3214–3252, Dublin, Ireland, May 2022. Association for Computational Linguistics.
[27] Qiang Liu and Dilin Wang. Stein variational gradient descent: A general purpose bayesian inference algorithm. In Advances in Neural Information Processing Systems, volume 29, 2016.
[28] AI @ Meta Llama Team. The llama 3 herd of models, 2024.
[29] Samuel Marks and Max Tegmark. The geometry of truth: Emergent linear structure in large language model representations of true/false datasets. In First Conference on Language Modeling, 2024.
[30] Mantas Mazeika, Long Phan, Xuwang Yin, Andy Zou, Zifan Wang, Norman Mu, Elham Sakhaee, Nathaniel Li, Steven Basart, Bo Li, et al. Harmbench: A standardized evaluation framework for automated red teaming and robust refusal. In International Conference on Machine Learning, pages 35181–35224. PMLR, 2024.
[31] Mantas Mazeika, Andy Zou, Norman Mu, Long Phan, Zifan Wang, Chunru Yu, Adam Khoja, Fengqing Jiang, Aidan O'Gara, Ellie Sakhaee, Zhen Xiang, Arezoo Rajabi, Dan Hendrycks, Radha Poovendran, Bo Li, and David Forsyth. Tdc 2023 (Ilm edition): The trojan detection challenge. In NeurIPS Competition Track, 2023.
[32] Tomás Mikolov, Wen tau Yih, and Geoffrey Zweig. Linguistic regularities in continuous space word representations. In Lucy Vanderwende, Hal Daumé III, and Katrin Kirchhoff, editors, HLT-NAACL, pages 746–751. The Association for Computational Linguistics, 2013.
[33] Krikamol Muandet, Kenji Fukumizu, Bharath Sriperumbudur, and Bernhard Scholkopf. Kernel mean embedding of distributions: A review and beyond. Foundations and Trends in Machine Learning, 10(1-2):1–141, 2017.
[34] Kyle O'Brien, David Majercak, Xavier Fernandes, Richard Edgar, Jingya Chen, Harsha Nori, Dean Carignan, Eric Horvitz, and Forough Poursabzi-Sangdeh. Steering language model refusal with sparse autoencoders. In arXiv preprint, 2024.
[35] Narmeen Fatimah Oozeer, Luke Marks, Fazl Barez, and Amir Abdullah. Beyond linear steering: Unified multi-attribute control for language models. In Christos Christodoulopoulos, Tanmoy Chakraborty, Carolyn Rose, and Violet Peng, editors, Findings of the Association for Computational Linguistics: EMNLP 2025, pages 23513–23557, Suzhou, China, November 2025. Association for Computational Linguistics.
[36] Kiho Park, Yo Joong Choe, and Victor Veitch. The linear representation hypothesis and the geometry of large language models. In International Conference on Machine Learning, pages 39643–39666. PMLR, 2024.
[37] Ethan Perez, Sam Ringer, Kamile Lukosiute, Karina Nguyen, Edwin Chen, Scott Heiner, Craig Pettit, Catherine Olsson, Sandipan Kundu, Saurav Kadavath, et al. Discovering language model behaviors with model-written evaluations. In Findings of the association for computational linguistics: ACL 2023, pages 13387–13434, 2023.
[38] Felipe Maia Polo, Lucas Weber, Leshem Choshen, Yuekai Sun, Gongjun Xu, and Mikhail Yurochkin. tinybenchmarks: evaluating llms with fewer examples. In Proceedings of the 41st International Conference on Machine Learning, pages 34303–34326, 2024.
[39] Qwen, An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tianyi Tang, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. Qwen2.5 technical report, 2025.
[40] Shivam Raval, Hae Jin Song, Linlin Wu, Abir Harrasse, Jeff M. Phillips, Fazl Barez, and Amirali Abdullah. Curveball steering: The right direction to steer isn’t always linear. arXiv preprint arXiv:2603.09313, 2026.
[41] Shauli Ravfogel, Yanai Elazar, Hila Gonen, Michael Twiton, and Yoav Goldberg. Null it out: Guarding protected attributes by iterative nullspace projection. In Dan Jurafsky, Joyce Chai, Natalie Schluter, and Joel Tetreault, editors, Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7237–7256, Online, July 2020. Association for Computational Linguistics.
[42] Nina Rimsky, Nick Gabrieli, Julian Schulz, Meg Tong, Evan Hubinger, and Alexander Turner. Steering llama 2 via contrastive activation addition. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15504–15522, 2024.
[43] Pau Rodriguez, Arno Blaas, Michal Klein, Luca Zappella, Nicholas Apostoloff, Marco Cuturi, and Xavier Suau. Controlling language and diffusion models by transporting activations, 2024.
[44] Antoine Saillenfest and Pirmin Lemberger. Nonlinear concept erasure: a density matching approach. arXiv preprint arXiv:2507.12341, 2025.
[45] Bernhard Schölkopf and Alexander J Smola. Learning with kernels: support vector machines, regularization, optimization, and beyond. MIT press, 2002.
[46] Shashwat Singh, Shauli Ravfogel, Jonathan Herzig, Roee Aharoni, Ryan Cotterell, and Ponnurangam Kumaraguru. Representation surgery: Theory and practice of affine steering. In Forty-first International Conference on Machine Learning, 2024.
[47] Bharath K. Sriperumbudur, Arthur Gretton, Kenji Fukumizu, Bernhard Schölkopf, and Gert R. G. Lanckriet. Hilbert space embeddings and metrics on probability measures. Journal of Machine Learning Research, 11:1517–1561, 2010.
[48] Ingo Steinwart and Andreas Christmann. Support Vector Machines. Information Science and Statistics. Springer, New York, NY, 2008.
[49] Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. Stanford alpaca: An instruction-following llama model. https://github.com/tatsu-lab/stanford_alpaca, 2023.
[50] Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, Johan Ferret, Peter Liu, Pouya Tafti, Abe Friesen, Michelle Casbon, Sabela Ramos, Ravin Kumar, Charline Le Lan, Sammy Jerome, Anton Tsitsulin, Nino Vieillard, Piotr Stanczyk, Sertan Girgin, Nikola Momchev, Matt Hoffman, Shantanu Thakoor, Jean-Bastien Grill, Behnam Neyshabur, Olivier Bachem, Alanna Walton, Aliaksei Severyn, Alicia Parrish, Aliya Ahmad, Allen Hutchison, Alvin Abdagic, Amanda Carl, Amy Shen, Andy Brock, Andy Coenen, Anthony Laforge, Antonia Paterson, Ben Bastian, Bilal Piot, Bo Wu, Brandon Royal, Charlie Chen, Chintu Kumar, Chris Perry, Chris Welty, Christopher A. Choquette-Choo, Danila Sinopalnikov, David Weinberger, Dimple Vijaykumar, Dominika Rogozińska, Dustin Herbison, Elisa Bandy, Emma Wang, Eric Noland, Erica Moreira, Evan Senter, Evgenii Eltyshev, Francesco Visin, Gabriel Rasskin, Gary Wei, Glenn Cameron, Gus Martins, Hadi Hashemi, Hanna Klimczak-Plucińska, Harleen Batra, Harsh Dhand, Ivan Nardini, Jacinda Mein, Jack Zhou, James Svensson, Jeff Stanway, Jetha Chan, Jin Peng Zhou, Joana Carrasqueira, Joana Iljazi, Jocelyn Becker, Joe Fernandez, Joost van Amersfoort, Josh Gordon, Josh Lipschultz, Josh Newlan, Ju yeong Ji, Kareem Mohamed, Kartikeya Badola, Kat Black, Katie Millican, Keelin McDonell, Kelvin Nguyen, Kiranbir Sodhia, Kish Greene, Lars Lowe Sjoesund, Lauren Usui, Laurent Sifre, Lena Heuermann, Leticia Lago, Lilly McNealus, Livio Baldini Soares, Logan Kilpatrick, Lucas Dixon, Luciano Martins, Machel Reid, Manvinder Singh, Mark Iverson, Martin Görner, Mat Velloso, Mateo Wirth, Matt Davidow, Matt Miller, Matthew Rahtz, Matthew Watson, Meg Risdal, Mehran Kazemi, Michael Moynihan, Ming Zhang, Minsuk Kahng, Minwoo Park, Mofi Rahman, Mohit Khatwani, Natalie Dao, Nenshad Bardoliwalla, Nesh Devanathan, Neta Dumai, Nilay Chauhan, Oscar Wahltinez, Pankil Botarda, Parker Barnes, Paul Barham, Paul Michel, Pengchong Jin, Petko Georgiev, Phil Culliton, Pradeep Kuppala, Ramona Comanescu, Ramona Merhej, Reena Jana, Reza Ardeshir Rokni, Rishabh Agarwal, Ryan Mullins, Samaneh Saadat, Sara Mc Carthy, Sarah Cogan, Sarah Perrin, Sébastien M. R. Arnold, Sebastian Krause, Shengyang Dai, Shruti Garg, Shruti Sheth, Sue Ronstrom, Susan Chan, Timothy Jordan, Ting Yu, Tom Eccles, Tom Hennigan, Tomas Kocisky, Tulsee Doshi, Vihan Jain, Vikas Yadav, Vilobh Meshram, Vishal Dharmadhikari, Warren Barkley, Wei Wei, Wenming Ye, Woohyun Han, Woosuk Kwon, Xiang Xu, Zhe Shen, Zhitao Gong, Zichuan Wei, Victor Cotruta, Phoebe Kirk, Anand Rao, Minh Giang, Ludovic Peran, Tris Warkentin, Eli Collins, Joelle Barral, Zoubin Ghahramani, Raia Hadsell, D. Sculley, Jeanine Banks, Anca Dragan, Slav Petrov, Oriol Vinyals, Jeff Dean, Demis Hassabis, Koray Kavukcuoglu, Clement Farabet, Elena Buchatskaya, Sebastian Borgeaud, Noah Fiedel, Armand Joulin, Kathleen Kenealy, Robert Dadashi, and Alek Andreev. Gemma 2: Improving open language models at a practical size, 2024.
[51] Adly Templeton, Tom Conerly, Jonathan Marcus, Jack Lindsey, Trenton Bricken, Brian Chen, Adam Pearce, Craig Citro, Emmanuel Ameisen, Andy Jones, Hoagy Cunningham, Nicholas L Turner, Callum McDougall, Monte MacDiarmid, C. Daniel Freeman, Theodore R. Sumers, Edward Rees, Joshua Batson, Adam Jermyn, Shan Carter, Chris Olah, and Tom Henighan. Scaling monosemanticity: Extracting interpretable features from claude 3 sonnet. Transformer Circuits Thread, 2024.
[52] Rachel S.Y. Teo, Laziz Abdullaev, and Tan Minh Nguyen. The blessing and curse of dimensionality in safety alignment. In Second Conference on Language Modeling, 2025.
[53] Curt Tigges, Oskar J. Hollinsworth, Atticus Geiger, and Neel Nanda. Language models linearly represent sentiment. In Yonatan Belinkov, Najoung Kim, Jaap Jumelet, Hosein Mohebbi, Aaron Mueller, and Hanjie Chen, editors, Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, pages 58–87, Miami, Florida, US, November 2024. Association for Computational Linguistics.
[54] Alexander Matt Turner, Lisa Thiergart, Gavin Leech, David Udell, Juan J Vazquez, Ulisse Mini, and Monte MacDiarmid. Steering language models with activation engineering. arXiv preprint arXiv:2308.10248, 2023.
[55] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017.
[56] Constantin Venhoff, Iván Arcuschin, Philip Torr, Arthur Conmy, and Neel Nanda. Understanding reasoning in thinking language models via steering vectors. In Workshop on Reasoning and Planning for Large Language Models, 2025.
[57] Christopher Williams and Matthias Seeger. Using the nyström method to speed up kernel machines. Advances in neural information processing systems, 13, 2000.
[58] Jiaqing Xie. A comparative analysis of sparse autoencoder and activation difference in language model steering. In arXiv preprint, 2025.
[59] Andy Zou, Long Phan, Sarah Chen, James Campbell, Phillip Guo, Richard Ren, Alexander Pan, Xuwang Yin, Mantas Mazeika, Ann-Kathrin Dombrowski, et al. Representation engineering: A top-down approach to ai transparency. arXiv preprint arXiv:2310.01405, 2023.
[60] Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J. Zico Kolter, and Matt Fredrikson. Universal and transferable adversarial attacks on aligned language models. arXiv:22307.15043, 2023.
Supplement to ‘Kernelized Activation Steering’
Table of Contents
A Technical Derivations and Proofs ..... 16
A.1 Proofs ..... 16
A.2 Steering Gradients for Different Kernels ..... 18
A.3 Matrix Form of RBF-Kernel Steering ..... 20
A.4 Nyström Approximation ..... 20
B Additional Experimental Details ..... 21
B.1 Common Implementation Details ..... 21
B.2 Jailbreak Steering Details ..... 22
B.3 CAA-style Multiple-choice Steering Details ..... 22
B.4 Image Style-control Details ..... 23
C Additional Results ..... 23
C.1 Additional CAA-style Multiple-choice Results ..... 23
C.2 Additional Ablation Results ..... 23
C.3 Results on Cost Analysis ..... 24
C.4 Additional Image Style-control Qualitative Results ..... 24
D Broader Impacts ..... 28
E Use of Existing Assets ..... 28
A Technical Derivations and Proofs
A.1 Proofs
Proof of Theorem 4.4. Write in the form implied by (5),
First, we upper bound the norm of . Differentiation commutes with finite sums, so
The operator norm is a norm on the space of symmetric matrices, so subadditivity (triangle inequality) and absolute homogeneity give
By hypothesis each summand is at most , so
Now note that since ,
Hence is L-Lipschitz as for any x, y, the fundamental theorem of calculus (FTC) gives
and taking norms,
Using the FTC again on F along the segment from x to y,
Now Cauchy–Schwarz and inequality (10) give
so in particular
Finally, let and apply (11) with and . Since and , we obtain
Therefore, strict ascent is guaranteed whenever . Taking gives the sufficient condition .
Proof of Corollary 4.5. Recall .
Now the proof of Corollary follows from direct computation. Let . From and the product rule,
Note that the bracketed matrix is symmetric. Its spectrum is on together with on (dimension ). Hence
where the inequality uses for and trivially . Combining with ,
If both lie in a ball of radius , then , so . Substituting into (12),
Substituting this value of H into the normalized-step condition of Theorem 4.4 gives
17
□
A.2 Steering Gradients for Different Kernels
The particular form of the KAS update is determined by the gradient of the chosen kernel with respect to its first argument. Recall that the empirical steering potential is defined as
Whenever the kernel is differentiable with respect to x, differentiation may be applied term by term, yielding
The resulting steering update is therefore
We now derive this gradient explicitly for several commonly used kernels.
Gaussian RBF kernel. Consider first the Gaussian radial basis function kernel
where denotes the bandwidth. Differentiating with respect to x gives
(17)
Substitution into (14) yields
Thus each target reference activation contributes an attractive force pointing from x toward , whereas each source activation contributes a repulsive force. The magnitude of each contribution is modulated by its kernel similarity to the current activation, making the resulting steering field local and activation dependent.
Degree-two polynomial kernel. We next consider the degree-two polynomial kernel
where is an offset parameter. By the chain rule,
(20)
Consequently, the corresponding KAS steering field is
The structure of this gradient becomes more transparent when written in terms of empirical moments. Define the empirical means
and the uncentered second-moment matrices
Using the identity , the target contribution can be rewritten as
and similarly for the source contribution. Hence,
Equation (23) gives a useful interpretation of degree-two polynomial steering. The first term depends on the difference between the second moments of the target and source activation distributions, while the second term is proportional to the ordinary Difference-in-Means direction. Thus the polynomial kernel extends linear steering by incorporating second-order geometric information.
In particular, when c = 0,
so steering remains possible even when the two reference sets have identical means but different second-order structure. This contrasts with linear DiM, whose population signal vanishes whenever the two distributions have the same mean. When , the polynomial field combines this second-order correction with a global mean-difference component.
Laplacian kernel. Finally, consider the Laplacian kernel
where . Since
its derivative with respect to coordinate , whenever , is
Applying the chain rule therefore gives
(28)
where the sign function is applied elementwise.
Substitution into the general KAS gradient gives
Unlike the RBF kernel, the Laplacian kernel does not scale each coordinate of the steering direction by the magnitude of the displacement . Instead, away from nondifferentiable coordinates, each coordinate contributes only through its sign, while the overall strength of a reference point is controlled by the exponentially decaying kernel weight. Consequently, the Laplacian field produces a coordinate-wise directional pull toward target samples and away from source samples.
The Laplacian kernel is not differentiable at coordinates satisfying . At such points, the norm admits a subgradient, and we use the conventional choice
Accordingly, (28) and (29) should be interpreted as subgradient expressions at nondifferentiable points.
A.3 Matrix Form of RBF-Kernel Steering
For GPU-friendly implementation, matrix form is useful. Let denote the token activations in a transformer layer, and , be the reference activations for source and target datasets, respectively. For the RBF kernel
the pairwise kernel matrices are
where contains row-wise squared norms of .
Define the kernel-weighted means and row-sum vectors:
Then the matrix-form gradient of the kernel steering potential is (see the RBF gradient in the previous section)
The joint update for all N tokens with step size and regularization is
A.4 Nyström Approximation
We derive the kernel approximation considered in Section 5.4. Let be a fixed set of landmarks, with . Define the landmark Gram matrix and kernel vector by
The Nyström approximation [57] is
where is the Moore–Penrose pseudoinverse. Since is positive semidefinite, (32) defines a positive semidefinite kernel with feature map .
Approximate steering score. Replacing k by in (5) gives
(33)
where
The coefficients c are precomputed for each fixed layer, reference set, and kernel configuration. All reference activations contribute to (34); the approximation does not replace the reference sets by the landmarks alone.
Gradient and normalized update. Holding the landmarks and coefficients fixed yields
For the RBF kernel (8), this becomes
Equivalently, let contain the landmark activations as rows and set , where denotes elementwise multiplication. Then
We retain the proximal objective and normalized update of Section 4.2:
(38)
B Additional Experimental Details
This appendix provides additional implementation details, hyperparameters, dataset construction procedures, and supplementary results for the experiments in Section 5.
B.1 Common Implementation Details
Unless otherwise stated, all activation interventions are applied to the residual stream at the final prompt-token position. For KAS, we use the RBF kernel with bandwidth selected by the median heuristic [17] over the source and target reference activations. We set the regularizer to . Unless otherwise stated, KAS uses a single gradient-ascent step at inference time. Multi-step KAS results are reported explicitly when used, with the number of steps specified in the corresponding table, figure, or caption.
Table 5: Common implementation details used across experiments.
| Item | Setting |
|---|---|
| Intervention space | Residual stream activations |
| Default token position | Last prompt token |
| Kernel type | Gaussian RBF |
| RBF bandwidth | Median heuristics [17] |
| Regularizer λ | 0 |
Table 6: Curveball hyperparameters used in the jailbreak experiments.
| Item | Setting |
|---|---|
| Kernel | Polynomial kernel, |
| Polynomial degree | |
| Kernel bias | |
| Bias term coef0 | Grid over 1.0 |
| KPCA dimension |
B.2 Jailbreak Steering Details
For jailbreak steering, harmful prompts are sampled from ADVBENCH, MALICIOUSINSTRUCT, TDC2023, and HARMBENCH, while harmless prompts are sampled from ALPACA. We use 128 harmful and 128 harmless prompts to construct the contrastive reference sets in the main experiments. Evaluation is performed on JAILBREAKBENCH using LLAMA-GUARD-3-8B to compute attack success rate (ASR). General utility is evaluated using TINYBENCHMARKS. For each model, ActAdd, Curveball, and KAS are applied at the same intervention layer.
B.3 CAA-style Multiple-choice Steering Details
For CAA-style evaluation, each contrastive pair shares the same multiple-choice question but differs only in the appended answer option. Positive examples append the behavior-consistent answer, whereas negative examples append the opposite answer. Activations are extracted at the answer-token position. We evaluate on 50 held-out questions per behavior and report the average probability assigned to the behavior-consistent option.
Dataset sourcing. The behavioral datasets span several alignment-relevant attributes: AI Coordination, Corrigibility, Hallucination, Myopic Reward, Survival Instinct, and Sycophancy. Except for Hallucination, these datasets are drawn primarily from Anthropic's Advanced AI Risk human-written evaluations [37]. The Hallucination dataset is constructed separately from GPT-4-generated contrastive multiple-choice questions.
System-prompt conditions. We evaluate three prompting conditions: no system prompt, a positive system prompt that encourages the target behavior, and a negative system prompt that discourages the target behavior. These settings allow us to test whether steering remains effective when the prompt context is neutral, aligned with the target concept, or opposed to it.
Hyperparameter selection. For the CAA-style multiple-choice experiments, all methods are evaluated on GEMMA-2-9B-IT. We sweep the intervention layer over 22, 23 and select the best configuration according to the average token probability assigned to the behavior-consistent answer on the validation set. We then evaluate the selected configuration on the disjoint test set. For both ActAdd and KAS, we sweep the steering strength over 0.01, 0.1, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0, 2.25, 2.5, 2.75, 3.0, 3.25, 3.5, 3.75, 4.0, 4.25, 4.5, 4.75, 5.0, 7.5, 10.0, 12.5, 15.0, 17.5, 20.0, 22.5, 25.0, 27.5, 30.0, 32.5, 35.0, 37.5, 40.0, 42.5, 45.0, 47.5, 50.0, 55.0, 60.0, 62.5, 65.0, 70.0, 75.0, 80.0, 85.0, 87.5, 90.0, 95.0, 100.0, 112.5, 125.0, 137.5, 150.0, 162.5, 175.0, 187.5, 200.0, 225.0, 250.0, 275.0, 300.0, 325.0, 350.0, 355.0, 360.0, 365.0, 370.0, 375.0, 380.0, 385.0, 390.0, 395.0, 400.0, 405.0, 410.0, 420.0, 425.0, 430.0, 435.0, 440.0, 445.0, 450.0, 500.0, 625.0, 750.0.
Table 7: Curveball layer and steering-strength selection for jailbreak experiments.
| Model | Layer | |
|---|---|---|
| GEMMA-2-9B-IT | 23 | 20.0 |
| LLAMA-3.1-8B-INSTRUCT | 13 | 150.0 |
| QWEN2.5-7B-INSTRUCT | 18 | 10.0 |
Table 8: KAS hyperparameters for jailbreak steering experiments.
| Model | Layer | KAS step size |
|---|---|---|
| GEMMA-2-9B-IT | 22 | 200.0 |
| LLAMA-3.1-8B-INSTRUCT | 12 | 5.0 |
| QWEN2.5-7B-INSTRUCT | 18 | 10.0 |
B.4 Image Style-control Details
For image style control, we sample prompts from COCO Captions and construct source–target activation pairs using original and style-augmented prompts. Images are generated using FLUX.1-SCHNELL. We evaluate style induction using zero-shot CLIP classification and content preservation using CLIPScore against the original prompt.
C Additional Results
C.1 Additional CAA-style Multiple-choice Results
The main paper reports CAA-style steering results under the negative system-prompt condition, where the system instruction discourages the target behavior. For completeness, we provide the full selected hyperparameters for this condition, together with additional results under the no-system-prompt and positive system-prompt conditions in Tables 9–11. All experiments follow the setup in Section 5.2: steering is performed on GEMMA-2-9B-IT, activations are extracted at the answer-token position, and performance is measured by the average token probability assigned to the behavior-consistent answer.
Across all system-prompt conditions, KAS attains the best probability for nearly all behaviors and matches the strongest baseline in the remaining saturated cases. These results indicate that KAS provides robust concept control across neutral, supportive, and opposing prompt contexts.
C.2 Additional Ablation Results
In this section, we provide additional ablation results on specified hyperparameters of KAS on the jailbreaking task. Unless otherwise stated, all experiments stated in this section use the setups specified in Section B.2.
Kernel choice. We stated in the main paper about the versatility against different kernels of KAS, as well as how different kernels can benefit KAS in different ways. We provide the ablation results on kernel choice in Table 12, in which experiments are conducted on 3 different kernels - namely Laplacian, polynomial and RBF - are tested. We found out that while polynomial kernel keeps up with the RBF performance, Laplacian kernel inducted a fall in benchmark number. This result suggests that KAS performance is indeed dependent on the kernel choice.
Number of data instances. In Section 5.5 and Figure 5 we demonstrated the ability of KAS to perform qualitative steering using a single pair of contrastive data point, in comparison with other steering methods. In Table 13 we further show how KAS enhance as it is provided with more data. The number of contrastive data pairs are taken from the set . We observed that while KAS can achieve notable ASR on datasets as small as 2 contrastive pairs, its performance can still be levitated with more data provided.
Table 9: CAA-style steering results under the negative system-prompt condition. We report the average token probability assigned to the behavior-consistent answer. “No steering” denotes the unsteered baseline, while ActAdd and KAS report the best steered result together with the selected step size and intervention layer. The best probability in each row is shown in bold.
| Behavior | No steering Prob. | ActAdd | KAS | ||||
|---|---|---|---|---|---|---|---|
| Prob. | Layer | Prob. | Layer | ||||
| AI Coordination | 8.69 | 39.51 | 2.50 | 23 | 40.19 | 300.00 | 23 |
| Corrigibility | 0.05 | 33.82 | 2.50 | 23 | 43.45 | 275.00 | 22 |
| Hallucination | 23.97 | 43.97 | 2.50 | 23 | 55.01 | 400.00 | 22 |
| Myopic Reward | 1.29 | 49.56 | 5.00 | 22 | 58.48 | 435.00 | 23 |
| Survival Instinct | 43.68 | 43.56 | 0.01 | 23 | 43.83 | 0.01 | 23 |
| Sycophancy | 53.18 | 53.47 | 0.25 | 22 | 53.69 | 17.50 | 22 |
Table 10: CAA-style steering results under the no-system-prompt condition. We report the average token probability assigned to the behavior-consistent answer. “No steering” denotes the unsteered baseline, while ActAdd and KAS report the best steered result together with the selected step size and intervention layer. The best probability in each row is shown in bold.
| Behavior | No steering Prob. | ActAdd | KAS | ||||
|---|---|---|---|---|---|---|---|
| Prob. | Layer | Prob. | Layer | ||||
| AI Coordination | 6.31 | 33.23 | 2.50 | 23 | 35.61 | 400.00 | 22 |
| Corrigibility | 43.50 | 46.84 | 2.50 | 23 | 47.42 | 250.00 | 23 |
| Hallucination | 28.79 | 47.23 | 2.50 | 23 | 54.79 | 400.00 | 22 |
| Myopic Reward | 23.62 | 60.11 | 4.50 | 23 | 60.32 | 400.00 | 23 |
| Survival Instinct | 67.09 | 66.98 | 0.01 | 23 | 67.11 | 0.10 | 22 |
| Sycophancy | 53.44 | 53.26 | 0.01 | 22 | 53.40 | 0.01 | 23 |
C.3 Results on Cost Analysis
In the main paper, we discussed about the KAS procedure and its comparison against no steering setups as well as other steering methods (mainly ActAdd). In this part, we performed an analysis on time effectiveness of KAS compared to those setups. Experiments are performed on a single NVIDIA H100 GPU on 50 samples from the CAA dataset of myopic reward, recorded with one step of steering. Results come as follows:
From these results, we can see that KAS implies minimal overhead in execution time compared to the ActAdd and no steering setups, highlighting the effectiveness of KAS in resource consumption.
C.4 Additional Image Style-control Qualitative Results
The main paper reports style-control results for the cyberpunk style, measuring style induction with 0-shot classification and content preservation with CLIPSCORE. Here, we provide additional qualitative results across more prompts for cyberpunk and impressionism styles in Figures 6 and 7.
Table 11: CAA-style steering results under the positive system-prompt condition. We report the average token probability assigned to the behavior-consistent answer. “No steering” denotes the unsteered baseline, while ActAdd and KAS report the best steered result together with the selected step size and intervention layer. The best probability in each row is shown in bold.
| Behavior | No steering Prob. | ActAdd | KAS | ||||
|---|---|---|---|---|---|---|---|
| Prob. | Layer | Prob. | Layer | ||||
| AI Coordination | 8.42 | 37.13 | 2.50 | 23 | 38.50 | 300.00 | 23 |
| Corrigibility | 72.32 | 72.11 | 0.01 | 22 | 72.46 | 0.01 | 22 |
| Hallucination | 19.59 | 44.53 | 2.50 | 23 | 53.49 | 400.00 | 22 |
| Myopic Reward | 99.99 | 99.99 | 0.01 | 22 | 99.99 | 0.10 | 23 |
| Survival Instinct | 90.67 | 90.44 | 0.01 | 22 | 90.71 | 0.10 | 22 |
| Sycophancy | 56.50 | 56.50 | 0.01 | 22 | 56.59 | 0.01 | 23 |
Table 12: KAS attack success rate and perplexity across kernels on jailbreaking task.
| Kernel | Prompt only | KAS ASR | KAS Perplexity |
|---|---|---|---|
| Laplacian | False | 0.70 | 7.484 |
| Laplacian | True | 0.59 | 7.484 |
| Polynomial | False | 0.93 | 8.149 |
| Polynomial | True | 0.81 | 8.149 |
| RBF | False | 0.96 | 8.343 |
| RBF | True | 0.88 | 8.343 |
Table 13: KAS attack success rate and perplexity as the number of reference examples grows.
| Num. of references () | KAS ASR | KAS Perplexity |
|---|---|---|
| 1 | 0.43 | 6.258 |
| 2 | 0.88 | 7.141 |
| 4 | 0.93 | 5.716 |
| 8 | 0.88 | 6.104 |
| 16 | 0.96 | 6.488 |
| 32 | 0.96 | 6.542 |
| 64 | 0.95 | 6.363 |
| 128 | 0.97 | 6.328 |
Table 14: Inference time overhead of steering methods.
| Methodology | Time elapsed (s) | Overhead vs. no steering |
|---|---|---|
| No steering | 11.44 | 0% |
| ActAdd | 11.48 | 0.35% |
| KAS | 11.61 | 1.49% |

Figure 6: Qualitative examples of KAS style control for the cyberpunk style under increasing intervention strengths .

Figure 7: Qualitative examples of KAS style control for the impressionism style under increasing intervention strengths .
Table 15: Existing model and evaluator assets used in this paper.
| Asset | Variants used | Usage | License / terms |
|---|---|---|---|
| GEMMA 2 [50] | GEMMA-2-9B-IT | Target model | Gemma Terms of Use |
| LLAMA 3.1 | LLAMA-3.1-8B-INSTRUCT | Target model | Llama 3.1 Community License |
| QWEN2.5 [39] | QWEN2.5-7B-INSTRUCT | Target model | Apache-2.0 |
| META LLAMA | LLAMA-GUARD-3-8B | Evaluator | Llama 3.1 Community License |
| GUARD 3 [28] | |||
| FLUX [23] | FLUX.1 [SCHNELL] | Target model | Apache-2.0 |
Table 16: Existing dataset and benchmark assets used in this paper.
| Asset | License / terms |
|---|---|
| ADVBENCH [60] | MIT |
| MALICIOUSINSTRUCT [21] | CC BY-SA 4.0 |
| TDC2023 [31] | MIT |
| HARMBENCH [30] | MIT |
| ALPACA [49] | CC BY-NC 4.0 |
| JAILBREAKBENCH [10] | MIT |
| THE PILE [16] | MIT |
| TRUTHFULQA [26] | Apache-2.0 |
| TINYBENCHMARKS [38] | MIT |
| ANTHROPIC MODEL-WRITTEN EVALUATIONS [37] | CC-BY-4.0 |
| COCO CAPTIONS [11] | CC BY 4.0 |
D Broader Impacts
Kernelized Activation Steering (KAS) provides a training-free mechanism for modifying model behavior at inference time. This has potential positive applications in controllability, safety evaluation, and model debugging. By enabling behavior-specific interventions without updating model parameters, KAS may help practitioners study how target attributes are represented in internal activations, evaluate the robustness of safety mechanisms, and develop more fine-grained tools for aligning model outputs with user- or deployment-specific requirements. More broadly, geometry-aware steering methods may contribute to more interpretable and adaptive forms of model control than global linear interventions.
At the same time, activation steering is inherently dual-use. The same mechanisms that can suppress undesirable behavior or improve controllability can also be used to elicit harmful behavior, bypass refusal mechanisms, or manipulate model responses in unintended ways. This concern is particularly relevant for our jailbreak experiments. These experiments are included to measure controllability and expose weaknesses in current alignment mechanisms, not to encourage misuse. We therefore view KAS as both a potential safety tool and a method that should be handled with care.
To reduce misuse risk, we emphasize the need for appropriate safeguards, clear documentation of intended use, and accountability in deployment. Practitioners applying KAS beyond controlled research settings should perform downstream safety evaluations before release. We further encourage continued ethical review of inference-time steering methods to ensure that their use remains aligned with safety, transparency, and responsible deployment practices.
E Use of Existing Assets
This section summarizes the existing models, datasets, and benchmark resources used in this work, along with their corresponding licenses or terms of use in Tables 15 and 16.
NeurIPS Paper Checklist
1. Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
Answer: [Yes]
Justification: The abstract and introduction state the main contributions of KAS: a training-free, kernelized generalization of activation steering, a closed-form RBF instantiation, and a theoretical connection to DiM. The empirical claims are limited to the evaluated jailbreak, CAA-style multiple-choice, and image style-control settings.
Guidelines:
• The answer [N/A] means that the abstract and introduction do not include the claims made in the paper.
• The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers.
• The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.
• It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
2. Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: Limitations of this work is discussed in Section 6.
Guidelines:
• The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper.
• The authors are encouraged to create a separate “Limitations” section in their paper.
• The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.
• The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.
• The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.
• The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.
• If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.
• While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
3. Theory assumptions and proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [Yes]
Justification: We provide the full set of assumptions and complete (and correct) proofs for the main theorems in Appendix A.1.
Guidelines:
• The answer [N/A] means that the paper does not include theoretical results.
• All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced.
• All assumptions should be clearly stated or referenced in the statement of any theorems.
• The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.
• Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.
• Theorems and Lemmas that the proof relies upon should be properly referenced.
4. Experimental result reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
Answer: [Yes]
Justification: The paper specifies the evaluated models, datasets, baselines, metrics, intervention layers, steering settings, and hyperparameter search procedures. Additional implementation details and hyperparameters are provided in Appendix B.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.
• If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.
• Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.
• While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example
(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm.
(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully.
(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset).
(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
5. Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
Answer: [Yes]
Justification: We provide open access to the data and code in Supplementary Material, with sufficient instructions to faithfully reproduce the main experimental results.
Guidelines:
• The answer [N/A] means that paper does not include experiments requiring code.
• Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
• While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).
• The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
• The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.
• The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.
• At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).
• Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
6. Experimental setting/details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?
Answer: [Yes]
Justification: The paper describes the proposed method, datasets, models, steering settings, metrics, and hyperparameter sweeps used in the main experiments and ablaion studies. Additional experimental details are provided in the appendix.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.
• The full details can be provided either with the code, in appendix, or as supplemental material.
7. Experiment statistical significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
Answer: [Yes]
Justification: Section 5.5 reports summary statistics across prompt-pair samples, including mean and standard deviation where applicable.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.
• The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).
• The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)
• The assumptions made should be given (e.g., Normally distributed errors).
• It should be clear whether the error bar is the standard deviation or the standard error of the mean.
• It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.
• For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates).
• If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
8. Experiments compute resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: We provide sufficient information on the computer resources needed to reproduce the experiments in Section 5.
Guidelines:
• The answer [N/A] means that the paper does not include experiments.
• The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.
• The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.
• The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).
9. Code of ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
Answer: [Yes]
Justification: The research conducted in the paper conforms with the NeurIPS Code of Ethics.
Guidelines:
• The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics.
• If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics.
• The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
10. Broader impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [Yes]
Justification: We discuss broader impacts in Appendix D.
Guidelines:
• The answer [N/A] means that there is no societal impact of the work performed.
• If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact.
• Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.
• The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.
• The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.
• If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
11. Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?
Answer: [N/A]
Justification: The paper does not release any data, pre-trained models, image generators, or scraped datasets. Therefore, safeguards for responsible release are not applicable.
Guidelines:
• The answer [N/A] means that the paper poses no such risks.
• Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.
• Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.
• We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
12. Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: The paper cites the creators of the existing datasets, benchmarks, models used in the experiments. The list of existing assets used is included in Appendix E.
Guidelines:
• The answer [N/A] means that the paper does not use existing assets.
• The authors should cite the original paper that produced the code package or dataset.
• The authors should state which version of the asset is used and, if possible, include a URL.
• The name of the license (e.g., CC-BY 4.0) should be included for each asset.
• For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.
• If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.
• For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.
• If this information is not available online, the authors are encouraged to reach out to the asset’s creators.
13. New assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [Yes]
Justification: We include details about training and implementation as well as limitations and code for our proposed method.
Guidelines:
• The answer [N/A] means that the paper does not release new assets.
• Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.
• The paper should discuss whether and how consent was obtained from people whose asset is used.
• At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
14. Crowdsourcing and research with human subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
Answer: [N/A]
Justification: The paper does not involve crowdsourcing experiments or research with human subjects.
Guidelines:
• The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
• Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.
• According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
15. Institutional review board (IRB) approvals or equivalent for research with human subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
Answer: [N/A]
Justification: The paper does not involve study participants or human-subject research. Therefore, participant risks, risk disclosure, and IRB approval are not applicable.
Guidelines:
• The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
• Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.
• We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.
• For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
16. Declaration of LLM usage
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.
Answer: [N/A]
Justification: LLMs are not used as an important, original, or non-standard component of the core methodology. Any use of LLMs is limited to writing, editing, or formatting assistance and does not affect the scientific content, rigor, or originality of the research.
Guidelines:
• The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components.
• Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.