TL;DR
This paper proposes a new geometric framework for understanding and controlling language model behavior through activation steering. By decomposing interventions into angular (concept alignment) and radial (norm scaling) components, they show that concepts are primarily encoded in direction, but norm plays a crucial role in maintaining stability and performance, especially at higher steering strengths.
What Problem Does This Paper Address?
Controlling the behavior of large language models (LLMs) is a critical area of research. A popular technique is "activation steering," where researchers modify the internal representations (activations) of a model to steer its output towards a desired behavior (e.g., being more truthful, less toxic). Traditional methods add a "steering vector" to the model's activations. More recent "spherical" methods try to preserve the activation's magnitude (norm) while rotating it towards a concept direction, based on the idea that concept information is mainly in the direction, not the magnitude. However, it's unclear if this assumption always holds and if strict norm preservation is always beneficial. This paper aims to disentangle the effects of changing the direction (angle) versus the magnitude (norm) of activations during steering.
Methods
The authors introduce a geometric framework that decomposes a hidden state vector $x$ into its radial component $r = ||x||$ and its angular component (unit vector $u$). They then analyze six different steering methods, categorizing them by whether they preserve the original norm and whether they enforce a specific concept score for each token. These methods include:
- Concept Activation Addition (CAA): Standard additive steering.
- Renormalized CAA (CAA-r): Adds a vector and then restores the original norm.
- Matched CAA (CAA-m): Adjusts the additive strength per token to achieve a target concept score, allowing the norm to change.
- Spherical Steering (S): Rotates the activation to a target concept direction while preserving the norm.
- Additive Spherical (AS): Applies a fixed spherical displacement.
- Spherical Steering with Norm Scaling (SN): A generalization of Spherical Steering that allows the norm to be scaled by a factor $\beta$.
They conduct controlled experiments to compare these methods, focusing on disentangling the effects of angular control and norm modification.
Datasets
The paper uses a variety of datasets for different purposes:
- Concept Datasets: TruthfulQA (truthfulness), SST-2 (sentiment), CivilComments (toxicity), and IMDB (sentiment) are used for constructing steering directions and evaluating steering performance.
- Auxiliary Evaluation Datasets: WikiText-103 (perplexity) and MMLU (general capability) are used to measure the impact of steering on general language model behavior.
- Norm-Variation Corpora: A diverse set of corpora (OpenWebText, Alpaca, arXiv, WritingPrompts, Natural Questions, CNN/DailyMail, PubMedQA, CodeSearchNet) are used to analyze how hidden-state norms vary across different contexts.
Key Insights and Ideas
- Concepts are Primarily Angular: The study strongly supports the hypothesis that concept-relevant information in LLMs is primarily encoded in the direction (angle) of hidden states, not their magnitude (norm). Probes trained on normalized activations performed nearly as well as probes on raw activations, while norm-only probes performed poorly.
- Norm is Crucial for Stability: While direction controls the semantic effect, the norm of activations plays a vital role in maintaining generation stability and downstream performance, especially at high steering strengths.
- Strict Norm Preservation Can Be Detrimental: Forcing the norm to remain exactly the same can lead to increased perplexity and degraded capabilities when steering strongly. Allowing a modest increase in norm can actually improve stability without significantly altering the semantic effect.
- A Two-Parameter Intervention: Activation steering should be viewed as a two-parameter intervention: one parameter for angular control (concept alignment) and another for radial control (norm scaling). This offers a more interpretable and flexible design space than single additive coefficients.
Key Results
- Across seven language models and four concept datasets, normalized hidden states captured concept information as effectively as raw hidden states, while norm-only features did not.
- When comparing methods with matched angular control (CAA-m vs. Spherical Steering), CAA-m (which allows norm to change) generally exhibited better stability (lower perplexity, higher MMLU accuracy) than Spherical Steering (which preserves norm), especially at higher steering strengths ($\gamma=0.7$).
- The norm-scaling experiments (SN) showed that increasing the norm multiplier ($\beta$) could reduce perplexity by up to 1.8x at high steering strengths without significantly impacting the task metric.
- Fixed-strength methods (CAA, CAA-r, AS) showed much larger spread in achieved concept scores across tokens compared to per-token targeted methods (S, CAA-m), highlighting the importance of per-token precision.
Limitations and Future Work
- Single Layer Steering: The experiments were conducted by applying steering at a single, fixed layer (75% depth). The optimal angle-norm trade-off might vary across different layers.
- Limited Models and Concepts: The study evaluated a set of transformer models and specific concepts (truthfulness, sentiment, toxicity). Different architectures or a wider range of behaviors might exhibit different geometric properties.
- Direction Estimation Method: The steering directions were constructed using contrastive mean-difference. The findings might be influenced by the specific method used for direction estimation.
- Discrete Norm Scaling: The norm-scaling experiments used a small, discrete set of $\beta$ values. Further work could explore continuous norm scaling or develop automatic rules for choosing the best norm scale.
The authors suggest that future work could explore the optimal angle-norm trade-off across different layers and investigate how these geometric principles apply to a broader range of LLM behaviors and architectures.
Summary updated