What is activation steering?

Activation steering is a method that shifts a language model's behaviour in a chosen direction without changing its weights, by adding a steering vector to internal activations or subtracting it from them at certain layers during inference.

Unlike fine-tuning, which trains weights on new data to change behaviour permanently, activation steering leaves weights untouched; its effect lasts only while the vector is applied. Activation patching alters activations to study a component's role rather than to change behaviour.

Topic
Responsible AI and governance
Also known as
Steering vector, activation engineering

How activation steering works

  1. Prompt pairs representing wanted and unwanted behaviour are prepared.
  2. A steering vector is computed from the difference in activations at a chosen layer for these prompts.
  3. During inference the vector is added, scaled by a coefficient, to activations at that layer.
  4. The coefficient and layer are tuned by testing the balance between behaviour change and text quality.

In more detail

Vector extraction variants (ActAdd versus CAA) and injection point

In practice, steering vectors are computed either from a single contrasting prompt pair (Activation Addition, ActAdd) or as the mean activation difference across hundreds of contrasting pairs (Contrastive Activation Addition, CAA); at a chosen layer the vector is scaled by a coefficient and added to the residual stream across token positions. Normalising the resulting activation helps prevent excessive norm growth from destabilising later layers.

Generalisation limits, conditional steering (CAST) and SAE feature interventions

Empirical evaluations (e.g., Tan et al., 2024) revealed that linear steering vectors can fail to generalise out-of-distribution, exhibit high variance across prompts and even produce unintended "anti-steerable" shifts on some inputs. Conditional Activation Steering (CAST) addresses unconditional over-steering by applying the vector only when the input activation crosses a contextual condition, while Sparse Autoencoder (SAE) feature clamping enables finer-grained, more interpretable control.

Engineering limits in production inference engines (vLLM, SGLang)

Unlike standard LoRA adapters natively supported in serving engines such as vLLM and SGLang, per-request activation steering requires forward hooks inside transformer blocks, which can conflict with CUDA graphs and continuous batching unless custom fused kernels are written. Teams should benchmark latency overhead and token throughput before deploying dynamic steering in high-concurrency production services.

Commonly confused terms

TermHow it differs
Activation patchingActivation patching swaps internal activations between clean and corrupted runs to diagnose which components causally produce a behaviour, whereas activation steering adds a precomputed vector to intentionally shift model outputs at inference time.
Low-Rank AdaptationLoRA fine-tuning trains low-rank weight matrices permanently stored as adapters, whereas activation steering modifies transient activations without updating weights or running gradient optimisation.
System promptingSystem prompts steer behaviour via natural-language tokens in the context window (which consumes context budget and can be overridden by user inputs), whereas activation steering injects continuous vectors directly into internal layers.

Why activation steering matters for on-premises AI

Activation steering can adjust a model's tone or a behavioural tendency without retraining costs; removing the vector restores the model. It needs access to model internals, so it suits open-weight models running in-house. It has limits: strong vectors can degrade text quality, effects vary across prompts and it gives no safety guarantee, so it is tested on evaluation sets and used alongside guardrails rather than instead of them.

ON-PREMISES EXAMPLE

A telecoms operator tries a steering vector to shift its in-house open-weight customer assistant towards shorter, more formal replies, measuring accuracy and tone on an evaluation set.

Common questions

Does activation steering change model weights?

No. The vector is added to activations during inference while weights stay the same. Removing it restores the original behaviour.

Can activation steering be used with any model?

No. It needs access to internal activations, so it usually cannot be applied to closed models offered only through an API.

Sources

In the glossary: Glossary, A to C

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.