Sharp directions are your enemy: curvature analysis of activation steeringThe Sharp Directions Are Against You: Curvature Analysis of Activation Steering
The authors use a steering Hessian to remove the sharp components of CAA, and all 25 generation conditions outperform standard CAA.
- At inference, CAA adds a vector to activations to control behavior, but the authors cite that it goes in the opposite direction on 30–50% of inputs and is sensitive to the coefficient. The paper aims to give a geometric explanation and a correction that does not change parameters.
- Analyze the Hessian of the behavior loss with respect to the steering vector on frozen model layer activations. Distinguish sharp and flat directions by absolute eigenvalue, estimate the top-k with Lanczos, then subtract the sharp component from CAA to obtain vcleaned.
- Across three 7–8B models, four tasks, and 36 token conditions, vsharp has anti-steer rate 0.53–1.00. On the generation side, sharp removal outperforms CAA on all 25 conditions. On the refusal task, CAA is below baseline, while sharp removal reaches or exceeds baseline.
- The authors say the Hessian is a local quadratic approximation at (vCAA, α=1.0); only four tasks and three 7–8B instruction models were tested. Larger models, broader behavior axes, and black-box settings are future work, and cross-distribution transfer is an open question. Experiments are white-box activation and greedy generation; the paper does not report error bars or multiple seeds.
- Evaluated models
- Qwen2.5-7B-InstructLlama-3.1-8B-InstructMistral-7B-Instruct-v0.3
- Benchmarks
- SentimentSycophancyToxicityRefusalRealToxicityPromptsAdvBenchXSTestWikiText-2
- Metrics
- anti-steer rateΔrefusal ratesentiment scorehonesty scoreKL divergenceεκκgap
The paper proposes steering Hessian, the second-derivative matrix of the model behavior loss with respect to the activation steering vector, to explain why contrastive activation addition (CAA) often pushes behavior in the opposite direction on some inputs. Its top eigenvectors are sharp directions, along which small perturbations cause large, input-fluctuating behavior swings, while bottom eigenvectors are flat directions, along which behavior remains robust. Removing the sharp-direction component of a steering vector approximately preserves direction and magnitude (cosine similarity greater than 0.974, norm reduction less than 3%) and reduces directional curvature by up to 12 times (median 4 times across 36 conditions). Across three model families—Qwen2.5-7B, Llama-3.1-8B, Mistral-7B—four behavior tasks, and 36 token-level conditions, steering along sharp directions reversed the expected behavior in all tested conditions, with reversal rates of 53%–100%; sharp directions account for only 1%–5% of the squared norm of the CAA vector, yet contribute a large share of the difference between steered and unsteered next-token distributions in autoregressive generation.
Paper analysis
What problem does this paper attempt to solve?
CAA pushes behavior in the opposite direction on some inputs; the authors use the steering Hessian to explain and correct this fragility.
CAA pushes behavior in the opposite direction on some inputs; the paper uses activation-space curvature to explain this fragility and provides a correction without retraining.
- Scenario: the authors argue that controlling LLM behavior remains a core challenge. Activation steering adds a vector to a chosen layer's activations at inference time, inducing target behavior without changing parameters, e.g., increasing honesty or reducing toxicity.
- Existing shortcomings: the standard construction is contrastive activation addition (CAA). The authors cite Tan et al. [2024], saying the direction is opposite to intent on 30–50% of inputs; cite Braun et al. [2025], saying the range of effective coefficients α is narrow. In the introduction, the authors say that on three of the four tested tasks, CAA has the wrong sign on most layers.
- Hypothesis: the steering space is anisotropic. The mean difference does not distinguish high-curvature directions from stable ones. Typically only 1–5% of CAA's squared norm (sharp energy fraction ε) lies along sharp directions, and the authors argue this small fraction drives most of the misbehavior during generation.
- Approach: define the steering Hessian, separate sharp and flat directions; subtract the sharp component from existing vectors, called sharp removal. The authors say it is post-processing and can be applied to activation-space vectors beyond CAA.
What related research exists?
The authors position this work between activation steering, steering reliability, and weight-space sharpness, and use curvature to explain failures.
Section 2 of the paper and the introduction divide related work into four groups.
Activation-space steering
- Kim et al. [2018]'s concept activation vectors and Subramani et al. [2022]'s latent steering lay the foundation for activation-space interventions. Zou et al. [2023a] formalize representation engineering; Turner et al. [2023] propose Activation Addition; Rimsky et al. [2024] extend it to CAA.
- Subsequent work includes adaptive interventions (Wang et al., 2025; Tian et al., 2025), SAE features (Chalnev et al., 2024), conceptors (Postmus and Abreu, 2024), gradient optimization (Dunefsky and Cohan, 2025), and preference optimization vectors (Cao et al., 2024). Arditi et al. [2024] identify a refusal direction mediating safe behavior.
- The authors say this paper contributes a geometric explanation of steering success and failure and a corresponding correction, not another construction method.
Steering reliability
- Tan et al. [2024] document anti-steering. The introduction cites their observation of reversed direction on 30–50% of inputs as an existing record of CAA fragility.
- Braun et al. [2025] show steering is sensitive to layer and coefficient. The authors argue these failures come from sharp curvature of the loss in activation space.
Sharpness-aware minimization
- Foret et al. [2021]'s SAM seeks flat minima in weight space; later extended to LoRA (Li et al., 2024), unlearning (Fan et al., 2025), and safety alignment (Yang et al., 2026).
- The authors say this paper places sharpness in activation space: the loss varies with the input, and the object is a d-dimensional vector rather than all model parameters.
Jailbreaks and safety alignment
- Zou et al. [2023b] study adversarial attacks on safety via prompt optimization; Qi et al. [2025] study fine-tuning and alignment. The authors say the steering Hessian can find directions that reverse safety-aligned behavior without adversarial optimization.
Baselines and benchmarks
- Comparisons are against CAA, vsharp, vflat, vrandom, and −vCAA; Appendix J applies the same post-processing to Arditi et al. [2024]'s refusal direction.
- Behavior axes are Sentiment, Sycophancy, Toxicity, Refusal. Named datasets are RealToxicityPrompts, AdvBench, XSTest, WikiText-2. Sentiment and Sycophancy have no independent benchmark names.
The authors position this paper as post-processing of existing steering vectors: explaining why vectors succeed or fail, and providing a composable correction.
How does the paper address this problem?
Define the sharp subspace using the top-k eigenvectors of the steering Hessian, and subtract this component from CAA to obtain vcleaned.
Inject a steering vector into a layer of a frozen model, use the behavior loss to find high-sensitivity directions via the curvature of the vector, then remove that component from CAA. The authors call this post-processing sharp removal.
Problem setup
- The hidden state at layer ℓ is hℓ(x). After injection it becomes hℓ(x)+αv, α>0, and subsequent layers continue forward with the modified state.
- The behavior loss is the next-token cross-entropy at the first generation position. A high target token probability indicates the target behavior appears. Task tokens are listed in Appendix A.
- CAA is the mean of activation differences over N pairs of positive and negative examples. Experiments use N=20. Parameters are frozen, so the loss is differentiable with respect to v.
Steering Hessian
- The Hessian of the expected loss with respect to v is Hsteer(v)=∇v2 L(v), i.e., the second derivative of the behavior loss with respect to the steering vector. It is symmetric and orthogonally diagonalizable.
- Definition 1: Ordering by absolute eigenvalue from largest to smallest, the top-k span the sharp subspace Sk, and the bottom-k span the flat subspace Fk. Perturbations along Sk cause large changes in the expected loss, while those along Fk cause small changes.
- d is 3584 or 4096, so the full matrix is infeasible. Use Lanczos with m=40 and full reorthogonalization; Hessian-vector products use central differences, δ=0.01, averaged over n=12 estimation prompts. Estimation uses α=1.0. The authors report about 40 seconds per layer on a single A6000. Default k=15.
Sharp removal
- The cleaned vector is vcleaned=vCAA−PSkvCAA, i.e., subtract the CAA component lying in the sharp subspace. No renormalization is performed.
- vflat is the projection of CAA onto the flat subspace, renormalized to the original norm, used for diagnosing sign flips and layer selection. The authors say it discards signals outside the bottom-k, and its strength is limited in open generation; sharp removal only removes typically 1–5% of the energy. Appendix B discusses norms, and Appendix C gives pseudocode.
- The authors say this is a post-processing wrapper that can be attached to any activation-space steering vector, not limited to CAA.
Two propositions
- Proposition 1 writes Hsteer as a Gauss-Newton term proportional to α² (positive semidefinite, which the authors say usually dominates) plus a downstream curvature term. The authors say sharp directions are those where the downstream Jacobian amplifies small perturbations into maximal logit changes; the amplification comes from the computation graph and varies unstably with input, so anti-steering is input-dependent. Flat directions are close to the null space of that Jacobian, with small but more consistent effects across inputs. Proof in Appendix D.
- Proposition 2: Let ε be the sharp energy ratio. The cosine equals the square root of 1−ε, and the norm of vcleaned is the same multiple of vCAA. Under a second-order expansion, the token-level loss difference has an upper bound, which the authors say tends to 0 as the square root of ε. The curvature of vcleaned along its own direction does not exceed the largest absolute eigenvalue outside Sk; the reduction factor relative to the largest eigenvalue is κgap, and it does not vary with α. Proof in Appendix E.
- The authors substitute ε≤0.05 from experiments and write cosine>0.974, norm reduction<3%. This bound is at α=1.0; for higher α, generation improvements are claimed empirically, with no formal bound here.
Metrics
- Token-level: Δ is the target token probability minus the anti-target probability. The anti-steer rate is the proportion of inputs with Δ<0, averaged over an α grid.
- Generation-level uses task classifiers to score completions. Classifiers, α, and counts are given in Question 4.
What experiments did the paper conduct?
Across 36 conditions, vsharp's anti-steer ranges from 0.53 to 1.00; across 25 generation conditions, sharp removal outperforms CAA.
Experimental setup
- Models: Qwen2.5-7B-Instruct (d=3584), Llama-3.1-8B-Instruct (d=4096), Mistral-7B-Instruct-v0.3 (d=4096). Scoring: sentiment uses cardiffnlp/twitter-roberta-base-sentiment-latest; sycophancy uses facebook/bart-large-mnli; jailbreak, XSTest, and Mistral rechecks use GPT-4o-mini.
- Data: Sentiment, Sycophancy, Toxicity (RealToxicityPrompts), Refusal (AdvBench harmful requests). Each task has 20 CAA pairs, 12 Hessian prompts, and 100 evaluation prompts, with three disjoint sets. The first two tasks have no independent benchmark names.
- Conditions: early, mid, late layers per model, 36 token conditions total. The 25 generation conditions are sentiment, sycophancy, refusal. Comparison vectors are CAA, vsharp, vflat, vrandom, vcleaned, plus −vCAA and Arditi et al. [2024]'s refusal direction.
- Hessian: m=40, n=12, δ=0.01, α=1.0 for estimation, k=15.
- Metrics: anti-steer rate averaged over 10 α values (0.25 to 5.0). Generation is greedy, 50 per condition: sentiment 80 tokens, α=3.0, score is P(positive)−P(negative); sycophancy 120 tokens, α=3.0, P(corrects); refusal 150 tokens, α=5.0, refusal rate via keywords plus NLI tie-breaking. The paper gives no probability threshold and does not name the NLI model.
- Replication: main results do not report multiple seeds. Appendix J reruns 10 sycophancy conditions to N=200. Figure 2 is α=3.0, N=30, 5-point moving average.
Main results
Generation refusal rates for the refusal task. Qwen and Llama baseline and CAA intervals come from the Figure 3 caption, with §5.4 text giving the lower end of the interval; Mistral's 12% and 36–62% come from §5.4. Settings as above: 50 samples, 150 tokens, α=5.0.
Swipe horizontally to read the table
Model Baseline CAA sharp removal Qwen2.5-7B-Instruct 78% 36–44% (text says 36%) 88–98% Llama-3.1-8B-Instruct 62% 24–52% (text says 24%) 74–76% Mistral-7B-Instruct-v0.3 12% (keyword) not reported 36–62% - The authors say sharp removal outperforms CAA on all 25 generation conditions. On sentiment they say it approaches the metric ceiling; the layer named in the text is Mistral L13, CAA 0.67, sharp removal 0.97. On sycophancy they say token-level CAA reverses sign and sharp removal mitigates the honesty drop; per-layer scores in Figure 3(b) are not written out in the text.
- Figure 2 caption: on Llama refusal L15, CAA and vsharp KL trajectories are close, about 19 nats, with the sharp component accounting for 2.6% of CAA's squared norm; sharp removal reduces the gap to 3–4×. On Qwen refusal L10, CAA's KL roughly doubles along the sequence, while sharp removal grows more slowly. The caption says on the unplotted Mistral L14, CAA's KL grows to 3.8× within 100 tokens, sharp removal 2.5×.
- The authors say CAA actively weakens safety alignment, and sharp removal is above the unsteered baseline in most cases. Mistral's main text uses keywords for cross-model consistency; the authors say the 12% baseline reflects weaker safety training.
Token-level curvature
- Table 1 condition numbers κ range from 50 to 3,727, all 36 conditions above 50. The largest is Llama sycophancy L16 at 3,727; Figure 1(b) caption says the spectrum spans three orders of magnitude.
- vsharp reverses the target behavior on 36/36, with anti-steer rate 0.53–1.00. Refusal task Early/Mid/Late: Qwen 0.99, 0.97, 0.99; Llama 1.00 on all three layers; Mistral 0.69, 0.72, 0.61. Llama refusal peak Δ=−0.48.
- In generation, vsharp reverses on 9/9 sentiment and 9/10 sycophancy conditions; on refusal at α=5.0, incoherent outputs account for 70–100% (§5.6). The authors say on safety tasks the sharp direction reverses alignment and requires no adversarial optimization.
CAA sign reversal and flat projection
- On the paper's so-called best layer, vflat has the lowest anti-steer rate in 11 of 12 model–task combinations. Qwen sentiment L21 is 0% across all 1,000 evaluations the paper reports. vrandom is 60–86% in most conditions. The authors say eigenvectors carry geometric information that random directions lack.
- Sign reversal occurs on sycophancy (all three models), toxicity (Llama), and refusal (Qwen, Llama). On the best layer, vflat restores the positive sign in all cases: Mistral sycophancy L19, CAA Δ=−0.028, vflat Δ=+0.317; Llama toxicity L20, −0.010 to +0.390; Qwen refusal L20, −0.006 to +0.013.
- The authors' mechanistic explanation (Proposition 1, Appendix I): the sharp subspace corresponds to surface features that vary with input; when these features are negatively correlated with the target tendency, CAA reverses sign. The flat subspace is close to the Jacobian null space. Appendix H says the chosen layer varies by task: sentiment is mid-to-late layers, sycophancy is middle layers, toxicity and refusal vary by model.
Negative steering
- Probe whether aligned models comply with harmful requests using −α, α=3.0. Qwen L10, N=50; Llama L15, N=100. GPT-4o-mini classifies full compliance, partial compliance, refusal (Table 4).
- Qwen: baseline 2%/4%/94%, −vCAA 56%/12%/24%, −vsharp 2%/40%/58%, −vcleaned 66%/14%/20%. Llama: 2%/6%/92%, 2%/31%/67%, 0%/0%/100%, 3%/37%/60% (same order: compliance/partial/refusal). The authors report non-refusal rates for −vcleaned higher than −vCAA: Qwen 80% vs. 68%, Llama 40% vs. 33%.
- The authors say the sharp direction disrupts coherent control regardless of polarity: −vsharp is least jailbreakable, with 100% refusal on Llama, above baseline. Appendix M gives examples; Llama's −vsharp shows repetition of refusal phrases. Example text is not reproduced.
Other ablations and analyses
- k∈{1,3,5,10,15,25}: Qwen refusal L10, at k=1 refusal rate goes from 44% to 90%, at k≥5 it is 94–96%; Llama sycophancy L14 is 0.765 at k=5 and 0.698 at k=25, below CAA's 0.713 (Figure 7). The authors therefore use k=10–15 as default.
- PCA: Qwen sentiment L21, mean cosine of principal angle between top-15 generic PCA and Hessian is 0.077; removing the PCA subspace gives Δ=−0.021, sharp removal gives Δ=+0.006 (Appendix J, 2,000 WikiText-2 forward passes).
- −vCAA: worse than vcleaned on 8/10 sycophancy conditions; all 4 sign-reversed refusal conditions worse by 23–38 percentage points, e.g., Qwen L10 98% vs. 68% (Appendix J).
- Arditi direction vs. CAA cosine: Qwen L10 0.01, Llama L15 0.20. ε is 0.44% vs. 0.98%, and 1.30% vs. 2.61%. That direction reaches 100% refusal without correction; the same paragraph says sharp removal brings CAA from Qwen 92%→100%, Llama 86%→94%. The paragraph does not separately state α.
- XSTest 100 safe prompts: Qwen L10, α=1.0, false refusal is baseline 4%, CAA 16%, sharp removal 11%; at α=2.0, CAA fully refuses 53%, sharp removal 6%. Llama L15, α=3.0, all three false-refuse 11–12%, full refusal 1% vs. CAA's 5%. vsharp alone is 95–97%.
- Other: multi-token vs. single-token principal angle cosine 0.61, honesty 0.83 vs. 0.85 (Appendix A, Llama sycophancy L14). Qwen refusal L10 ε=4.61% at m=40, 4.78% at m=60. At N=200, sycophancy remains 10/10; largest increase Mistral L10 +0.089, smallest Llama L14 +0.011. Mistral L12, N=50: keyword baseline 12%, GPT-4o-mini judges full refusal 52%; sharp removal gives 88% full refusal, 4% full compliance, CAA 68%/28%. κgap in Table 2 ranges 1.7 to 12.3, median 4.0; abstract says up to 12×, median 4×.
What are some points that can be further explored?
The authors say the local quadratic approximation, model and task scope, and black-box and distribution transfer remain for future work.
Limitations and future directions noted by the authors
- The steering Hessian is a local quadratic approximation at (vCAA, α=1.0); at large α, higher-order terms may dominate (Appendix O).
- Only four tasks and three 7–8B instruction-tuned models were tested (Appendix O).
- Scaling to larger models, broader behavior axes, and black-box settings where activations are inaccessible are listed as future work (Appendix O).
- Lanczos assumes a fixed prompt distribution for Hessian estimation; whether the resulting subspace transfers across distributions is called an open question (Appendix O).
Experimental coverage
- Tested models are Qwen2.5-7B-Instruct, Llama-3.1-8B-Instruct, and Mistral-7B-Instruct-v0.3, each with early, mid, and late layers (§5.1, Table 1).
- Token-level covers 36 conditions across four tasks; generation-level covers 25 conditions for sentiment, sycophancy, and refusal (Figure 3). Toxicity quantitative reporting stops at the token level in Table 1.
- Each task uses 20 CAA pairs, 12 Hessian prompts, and 100 evaluation prompts; generation uses 50 greedy completions per condition. Sycophancy additionally uses N=200 (§5.1, Appendix J).
- Negative steering uses Qwen L10 (N=50) and Llama L15 (N=100), α=3.0, with GPT-4o-mini as judge (§5.5, Table 4).
- The paper does not report error bars, multiple seeds, or classifier probability thresholds. The NeurIPS checklist states code and evaluation data will be released upon acceptance.
Summarize the main content of the paper
The fragility of steering vectors comes from a few high-curvature directions; after removing that component, all 25 generation conditions outperform CAA.
This work analyzes the curvature of activation steering vectors and distills the analysis into an inference-time post-processing.
- Problem: CAA controls behavior using the mean activation difference between positive and negative examples. The authors cite that it reverses on a fraction of inputs and is sensitive to layer and coefficient; this paper also handles the case where the sign is flipped.
- Method: The Hessian of the behavior loss with respect to the steering vector separates sharp and flat directions. vcleaned is CAA minus the top-k sharp component, default k=15, estimated with Lanczos. Model weights are not changed. Propositions show that for small ε the direction and norm are roughly preserved while directional curvature is reduced.
- Token level: across three 7–8B instruction models, four tasks, and 36 conditions, steering along the sharp direction has anti-steer rate 0.53–1.00. This component typically accounts for only 1–5% of CAA's squared norm. CAA reverses sign on three tasks; flat projection restores the positive sign in the reported examples.
- Generation: sharp removal outperforms CAA on all 25 conditions. On the refusal task, Qwen baseline 78%, CAA 36–44% (text says 36%), sharp removal 88–98%; Llama baseline 62%, CAA 24–52% (text says 24%), sharp removal 74–76%. At Llama L15, α=3.0, CAA and vsharp KL is about 19 nats, sharp removal reduces the gap to 3–4×.
- Polarity: taking the negative of the same sharp direction does not form a coherent jailbreak. At Llama L15, N=100, α=3.0, −vsharp has 100% refusal. The authors say these directions are noise rather than signal.
- Conclusion: the authors say the five findings hold under the tested conditions, and steerable directions are determined by the model's computational geometry, not just by behavioral concepts. The authors use ε(v) as a safety audit quantity for arbitrary steering vectors and argue the results refine the linear representation hypothesis: concepts may be linearly decodable, but steerability still depends on curvature.