Skip to content

When Should an LLM Steering Edit Depend on the Input? A k-Sweep Answer

THE ARGUMENT

Input-dependent steering beats a fixed direction exactly when the destination varies within the requested class, and four state-only statistics predict this before any rule is fitted or applied.

On this page

Your team has 300 prompts and one fixed steering vector from a vendor, yet nobody has checked whether one direction can serve every input — should you ship it? The usual advice is to ship if the offline score improves. That check quietly averages two different populations: the inputs the vector helps and the inputs it hurts, which can be half the batch when each query needs its own destination. This paper asks when a single displacement is wrong, and answers with a criterion you can compute before a rule is fitted.

The question: can one displacement serve every input?

Activation steering adds a vector to a hidden state at some middle layer, leaving the weights untouched but changing what the model outputs. Contrastive Activation Addition (CAA) is the simplest version: collect hidden states from prompts that show the target behaviour and from prompts that do not, take the difference of the two means, and add that single direction to every input [1]. The paper asks whether that displacement actually holds for every input.

The criterion in the abstract carries the whole paper. A steering edit should depend on the input exactly when the destination — the state you want the query moved to — varies inside the class the query requests. That variation is measurable before any rule is fitted or applied. Where the class already determines the answer, the class mean suffices.

Why a fixed direction fails inside a class

CAA adds the same direction to every input. Conditioning the difference of means on the requested class gives one vector per class, which handles between-class variation and leaves within-class variation untouched [1]. The structural consequence is what matters. A query's source state h is fixed, but the C queries that steer it toward its C destinations have C distinct references. Any rule that reads only the source state — CAA, a fitted affine map, a single vector at fixed alpha — is never told which class was requested, so all C queries receive the same edit and land on the same steered state, and that state can be nearest to at most one of the C references.

Per-item identity, the fraction of steered states whose nearest reference is its own, is therefore capped at exactly 1/C by construction rather than by estimation error. The weekday corpus pushes this to its limit: 1200 templates over seven days, "…moved to Monday" steered toward "…to Tuesday". Source and target sets are the same states permuted, so the two means are equal and CAA's vector is zero by identity [1]. The day centroids sit near-equidistant rather than ringed, so each day needs a different step.

Three two-dimensional constructions isolate each failure mode, with the correct score known before any rule runs:

  • three-mode: rotates each cluster's offsets so required displacements cancel across classes; CAA's vector is zero by construction while the same mean difference taken inside a class is exact
  • concentric: places classes on rings and sends each query radially outward at its own angle; radial vectors average to zero around a ring, so class-conditional CAA has nothing to estimate either
  • hierarchical: puts every class inside every cluster with its own rotation, so the displacement a class requires depends on which cluster the query sits in

From mean difference to per-query retrieval: one family, and k sets locality

RGS searches a bank of target states restricted to the requested class c, takes the k stored states nearest the query h, averages them, and adds alpha times that mean minus h. Here k is how many neighbours define the destination and alpha is a scale factor; both are chosen on a validation split and left unchanged on test [1].

One identity organises the comparison. At k equal to the class size, the nearest-neighbour mean is the class centroid, so the displacement becomes alpha times the centroid minus h, which coincides in expectation with class-conditional CAA because the expected source state is the source class centroid. Class-conditional CAA is one endpoint of the retrieval family and k=1 is the other, so the selected k reports which rule won [1]. That is why k works as a locality knob: larger k moves toward the class mean, smaller k toward the single query.

RuleDisplacementSupervision needed
CAAalpha (corpus mean − source mean)two state sets
Class-conditional CAAalpha (target class mean − source class mean)class labels
RGSalpha (k-neighbour mean − h)class labels + target bank
Fitted affine mapfitted from aligned pairsaligned query-target pairs (ceiling)

What six substitution corpora and two models show

The paper measures input-dependent steering on six substitution corpora that systematically vary which level of the concept the edit touches, from word to clause. Four are word-level and two are clause-level [1].

CorpusLevelKey design
lexiconwordEnglish noun to French, German or Spanish equivalent; source and target vocabularies disjoint
tensewordirregular verb to past, progressive or third-person form
registerwordneutral word to a formal or casual synonym
casingwordupper-casing; theoretical control, every query needs the same edit
sentimentclauseneutral clause to positive or negative; the only corpus whose source and reference are two different clauses
certaintyclauseasserts or hedges a proposition, both renderings ending on the same word

Two token corpora join them: weekday, and country-to-capital over 20 country/capital pairs, 40 frames and 12 subjects. There are also two A/B behavioural benchmarks, sycophancy and corrigibility, and one external benchmark, CounterFact, scored the way its own literature scores it — the fraction of cases where the edited model prefers the new object to the true one [1].

The result is layered. Retrieval wins at every layer of every substitution corpus in two models. How much input-dependence is needed governs how to apply it: word-level edits are best made in the first tenth of the network from a few neighbours, while clause-level edits work at any depth from the class mean. Where the class already determines the answer, the class mean suffices and retrieval only matches it, though a fixed direction still fails there [1].

Four numbers to compute before fitting anything

The paper defines four quantities computed from the states alone, before either rule is run [1]. D is the standardised displacement, how far the state must move in units of its own spread. g is the global shared fraction, whether per-sample displacements point the same way. R is the residual, the portion of the edit no single vector supplies. A is the retrieval alignment, agreement between the optimal retrieved displacement and the true one, reported as 1 minus A to keep the same units as error.

QuantityMeaningSample size
Drequired step in units of state spreadpaired states
gwhether per-sample displacements are sharedthousands of pairs
Rshare of the edit a single vector cannot supplysix pairs
Aagreement between retrieved and true displacementhundreds, plus labels and a bank

The first three need only pairs; A also needs class labels and a bank. There is a counter-intuitive point here: the diagnostics demand more supervision than the rule they screen for [1]. The paper compares the four quantities against what each rule goes on to score, and proposes them as a screening tool rather than a training objective.

When this method does not apply

Retrieval wins only when the destination varies inside the class. Where the class already determines the answer, retrieval merely matches the class mean, though a fixed direction still fails there [1]. On the two A/B benchmarks, sycophancy and corrigibility, there is no per-query reference, so state-space metrics are undefined and scoring falls back to forced choice; the retrieval result is not directly validated in that setting.

The diagnostics also cost something. R needs six pairs, g needs thousands, and A needs hundreds of items plus class labels and a bank. Corpora are split by frame with four-fold cross-validation, and the unsteered score reads 1.000 plus or minus 0.073 rather than exactly 1 [1]. Finally, the evidence covers two models, six substitution corpora and one external benchmark. Whether the rule transfers to other models, languages or task types is out of scope, and that is where the method fails as a general prescription: it is a screen for within-class variation, not a steering recipe for every edit.

References

  1. When Should an LLM Steering Edit Depend on the Input?

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…