Skip to content

Steering Vector

Definition

A Steering Vector is a vector calculated in the hidden states space of a model and added to activations at specific layers during inference. Unlike Activation Steering, which covers a general approach to managing activations, a steering vector represents a specific implementation: a directed shift of activations to modify the model's behavior.

Calculation Methods

Method Description
Contrastive pairs Difference of mean activations on pairs «property is / property is not»
PCA / SVD Extraction of principal components from a set of activations
Supervised probing Training a linear classifier and using its weights

Application

Steering vectors are used for: - Controlling tone and style of responses - Reducing harmful stereotypes - Enhancing desired qualities (e.g., honesty) - Controlling output format

The vector addition is performed by the formula: h' = h + α * v, where α is the amplification coefficient, v is the steering vector.

See also

← All terms