LocUS: Attention Head Selection and Subspace Projection for Targeted Activation SteeringLocUS: Head Selection and Subspace Projection for Targeted Activation Steering
LocUS uses lexical subspaces to restrict DoM's heads and directions; in eight of nine cells in Table 2, target is lower than layer-wise DoM.
- Difference-mean steering writes axes other than the target from the contrast data into the entire residual stream, potentially harming unrelated capabilities. Selecting only attention heads still injects these axes into the selected heads.
- LocUS takes attribute words from contrastive corpora and uses the corresponding unembedding columns as atoms. SOMP reconstructs each head's output, retaining heads whose explained variance ratio is above the mean plus two standard deviations; steering is applied only to these heads and is restricted to that head's own atom subspace.
- The authors state that in eight of the nine cells of Table 2, LocUS is lower than DoM and ITI. Llama-8B-I sycophancy LocUS is 83.8, unturned is 80.9. On deepseek-67B's TET, LocUS toxicity rate is 0.000, DoM is 0.020 (Table 5).
- The authors state it applies only to attributes carried by lexical differences, PPL drops more than factual reasoning, and open-ended reasoning is not covered. Experiments include three 7–8B families and deepseek-67B; the paper does not report pipeline repetitions or reviewer and human agreement.
- Evaluated models
- Mistral-7B (mistralai/Mistral-7B-v0.1, mistralai/Mistral-7B-Instruct-v0.3)deepseek-7b (deepseek-ai/deepseek-llm-7b-base, deepseek-ai/deepseek-llm-7b-chat)Llama-8B (meta-llama/Llama-3.1-8B, meta-llama/Llama-3.1-8B-Instruct)deepseek-67B
- Benchmarks
- ThoroughlyEngineeredToxicity (TET)IMDbChen et al. (2025) sycophancy persona dataMMLUWikipedia openings (PPL)Jigsaw comments
- Metrics
- toxicity ratepositive ratesycophancy trait score (0–100)MMLUPPL
LocUS (Localized Unembedding Steering) constrains activation steering to subspaces of the model's own output vocabulary, by identifying attribute-specific linear subspaces in the unembedding matrix, restricting steering transformations to those subspaces, and acting only on a sparse subset of attention heads. Evaluations on toxicity mitigation, sentiment steering, and sycophancy suppression across three model families show that LocUS matches or exceeds SOTA baselines, intervenes on less than 6% of parameters, and better preserves general capabilities.
Paper analysis
What problem does this paper attempt to solve?
Standard DoM injects non-target axes into whole-layer representations; LocUS restricts steering to lexical subspaces of a few heads.
Standard difference-of-means (DoM) steering injects non-target axes from contrast data into the entire layer representation, potentially harming unrelated capabilities.
- Scenario: The authors aim to suppress or amplify specific generation attributes at inference time, such as reducing toxicity, adjusting tone, or imposing style constraints. Fine-tuning risks catastrophic forgetting (Luo et al., 2024); parameter-efficient fine-tuning still requires training; prompting is described by the authors as often unstable and hard to calibrate.
- Limitation: DoM uses the difference between the mean activations of two groups exhibiting and lacking the target attribute as a direction, added to the residual stream. The authors state that if the two groups also differ on axes other than the target, this vector encodes those axes, and steering may harm factual recall or reasoning (Tan et al., 2024). Localizing only to layers or attention heads is still insufficient; DoM within a head still carries non-target axes.
- Approach: They propose LocUS (Localized Unembedding Steering). They define a vocabulary subspace using the columns of the unembedding corresponding to attribute tokens, automatically select attention heads based on this, and restrict steering on each head to that head's own attribute subspace.
- Required access: Modifies activations at inference time, not weights. Requires the unembedding, attention head outputs, and the final RMSnorm; DoM vectors come from contrastive activations. Attribute dictionaries in experiments are derived from word distribution differences in contrastive corpora; the text states they can also be manually specified or generated by an LLM.
- Evaluation: They evaluate toxicity mitigation, sentiment redirection, and sycophancy suppression across three model families, comparing with layer-wise DoM and existing head-level methods. The authors claim to match or exceed existing baselines, with intervention parameters below 6% and better preservation of general capabilities.
What related research exists?
Related work covers steering, head-level interventions, and fine-tuning or prompting; the authors position this paper on automatic per-head subspace constraints.
Steering and Residual Stream
- Turner et al. (2023) and Rimsky et al. (2024)'s difference-of-means: estimate direction by mean activation difference of contrast samples and add to residual stream. Introduction cites Tan et al. (2024), stating non-target axes are written into this vector and may damage unrelated capabilities.
- Subramani et al. (2022), Zou et al. (2023)'s representation engineering, and Rodriguez et al. (2025a,b) are listed in the introduction as steering methods that estimate transformations on contrast data at inference time. Experiments do not compare with these estimators.
- Elhage et al. (2021) gives the additive structure of the residual stream, based on which the authors treat vector addition as an intervention primitive. Arditi et al. (2024) and Li et al. (2023) are cited for properties mediated by a single direction.
Local Intervention Sites
- Layer-level examples are Rimsky et al. (2024) and Wang et al. (2025). Head-level: Li et al. (2023)'s ITI uses per-head linear probes to select heads on LLaMA truthfulness tasks; Izawa et al. (2026)'s SMH first selects the most influential layer, then the heads most aligned with the steering vector within that layer, on personality traits of two models.
- The authors state that both head-level methods' evaluations are tied to a single attribute, and head count and intervention strength are set by scanning or manual tuning.
- Clark et al. (2019), Wang et al. (2023), Todd et al. (2024), Basile et al. (2025a), and Gandelsman et al. (2024) are listed as locating attribute-related components at different granularities; Related Work does not compare effects with this paper piece by piece.
Scoring Tools and Other Control Methods
- Head scoring comes from Basile et al. (2025b)'s Head pursuit, originally used to find semantically specialized heads in multimodal transformers; algorithm is Tropp et al. (2006)'s SOMP. nostalgebraist (2020)'s logit lens is used to analogize directions after mapping back to original head space.
- Fine-tuning is associated by the authors with catastrophic forgetting (Luo et al., 2024). LoRA (Hu et al., 2022) and adapters (Houlsby et al., 2019) reduce training cost but still require training. Prompts are called lighter by the authors, but often unstable and hard to calibrate (Sclar et al., 2024; Lu et al., 2022; Cheng et al., 2026).
Baselines and Benchmarks
- Baselines are unturned model, layer-wise DoM, ITI, and SMH; ablations are LocUS-h, LocUS-s, LocUS-hs.
- Task data are ThoroughlyEngineeredToxicity (Luong et al., 2024), IMDb (Maas et al., 2011), and Chen et al. (2025)'s persona sycophancy data. Capability side is MMLU (Hendrycks et al., 2021) and Wikipedia opening PPL per Rodriguez et al. (2025b) protocol. Table 4's external fitting corpus is human-written Jigsaw comments.
The authors state that, to their knowledge, the activation steering literature still lacks an automatic, attribute-general per-head steering pipeline, and constraining the injected direction with attribute-aligned subspace projection has not been done.
How does the paper address this problem?
LocUS uses unembedding columns of attribute words to select heads and projects DoM updates onto each head's own atom subspace.
LocUS uses the columns of attribute words in the unembedding to simultaneously decide which attention heads to intervene on and along which directions to add DoM updates per head. Figure 1 shows the pipeline.
Problem Setting and DoM
- Residual stream is updated additively per layer. DoM extracts activations at layer ℓ, pools over token positions, and the steering vector is the difference of the two class means. At inference, adds α times the steering vector to that layer's activations, where α controls strength.
- The definition is s(ℓ)=1/(|D+|)∑z∈ D+r(ℓ)(z)−1/(|D−|)∑z∈ D−r(ℓ)(z). Meaning: the difference in average activation at layer ℓ between samples exhibiting the target attribute and those lacking it.
- The authors state that this vector inherits every axis along which the two sample groups differ, not just the target attribute.
Lexical Atoms and Head Selection
- The experiments do not manually specify a lexicon but obtain it automatically from the contrastive corpus: Dirichlet-smoothed (α=0.01) unigram probabilities, scored by pointwise KL contribution in both directions, stopwords removed, keep the top 70 highest-scoring words from each direction and take the union, remove non-ASCII, yielding 139–140 words per (model, task), then tokenize to get P. About a third of TET units also have overly general words manually removed (Appendix A.3).
- The atom matrix is UP=WU[:,P], columns are the directions in which the model decodes the residual stream to these tokens.
- Each head's output first passes through the final RMSnorm, because the unembedding sees activations after that normalization. Use SOMP to reconstruct head outputs on the calibration set with a fixed atom budget, forcing all samples to share the same atom set. Head selection budget is 50, same as Basile et al. (2025b).
- Use explained variance ratio e(ℓ,h) to measure how well this atom set reconstructs the head output, ranging from 0 to 1. Keep heads with e(ℓ,h) above the mean plus two standard deviations of all heads, denoted set S, cardinality k determined by data, and use this k throughout.
Three Variants of Subspace Projection
- LocUS-s: On the residual stream at each layer, use SOMP to get the shared atom set for that layer, the steering vector is computed from reconstructed activations, lies in the subspace spanned by these atoms, and is added to the original layer activations. No head filtering.
- LocUS-hs: To be comparable in parameter count to layer-wise steering, do not intervene on the projected d-dimensional head outputs, but on the original head outputs before output projection, whose dimension is d/H. Attribute atoms are in residual stream space, mapped back to original head space via the attention output matrix, the final RMSnorm linearized using the calibration set average inverse, and the unembedding (Equation (4) in the main text). Each head uses SOMP to select n atoms, and updates are added only in the span of these atoms. No head filtering.
- LocUS: Only apply the above head-level projection to heads in S; heads outside S are not intervened on. Projection atom budget n=20, determined by the minimum number of atoms to make the average cumulative EVR over all heads exceed 0.25 on the fitting data (Appendix Table 6: twelve units range 14–25, median 21). The layer-wise LocUS-s n=10 is manually set.
Strength Alignment and Application
- Each variant changes the norm of the update. To compare under matched intervention budgets, use the sum of DoM vector norms over all intervention sites divided by the sum of that LocUS variant's vector norms to get multiplier α2, then set β=α2×α1. Head-level variants first map the original head update back to residual stream via output projection before comparing norms. α1 is the only scanned quantity, selected on the validation set (Appendix A.4).
- The steering vector is estimated at once: all hooks active simultaneously on the calibration set, one forward pass, compute each head's DoM on the captured activations, without layer-by-layer incremental estimation. Activations are averaged over sequence positions of the prompt. At inference, add only to the last token position of the generated continuation (Appendix A.3).
Success Criteria
- Lower target metric is more effective. TET is toxicity rate from RoBERTa toxicity classifier; IMDb is positive rate from DistilBERT SST-2, task direction is positive to negative; sycophancy is 0–100 score by Qwen2.5-32B-Instruct using the original review prompt per Chen et al. (2025).
- Capability side is MMLU and Wikipedia opening PPL. Validation point acceptable if: wiki-PPL does not exceed twice the unsteered model, and MMLU is at least 0.99 times the unsteered; among acceptable points, take the α1 with the lowest validation target. The authors treat PPL above twice unsteered as output degeneration.
What experiments did the paper conduct?
In eight of nine cells, LocUS target is lower than DoM; exceptions are Llama-8B sycophancy and SMH on deepseek toxicity.
Experimental Setup
- Models: Appendix A.1 states that IMDb uses Mistral-7B-v0.1, Llama-3.1-8B, deepseek-llm-7b-base; TET and sycophancy use Mistral-7B-Instruct-v0.3, Llama-3.1-8B-Instruct, deepseek-llm-7b-chat. All are official weights, bfloat16, no further fine-tuning. Table 5 additionally tests deepseek-67B. The row names in Table 2 are all written as Mistral-7B-I, deepseek-7B-I, Llama-8B-I, which is inconsistent with the appendix's use of base for IMDb; the numbers in the table below are referenced by the row names in Table 2.
- Data: TET has a total of 2,546 items, split in half with 1,273 held out for testing, the remaining 636 for fitting and 637 for validation; the generation protocol states 615 test items and 308 validation items, each with 2 continuations of 64 tokens. IMDb fitting uses 512 positive reviews plus 512 negative reviews; evaluation takes the first 8 tokens of test set reviews, excluding Hu–Liu sentiment words, with the first 1,000 as test and the next 1,000 as validation, each with 1 continuation of 50 tokens. Sycophancy fitting uses 512 eliciting plus 512 neutral; evaluation uses 5 eliciting system prompts times 20 questions, each pair with 2 continuations of 64 tokens.
- Baselines: no steering, per-layer DoM, ITI (probe selects the same k heads as LocUS-h), SMH (head most aligned with the steering vector within a single layer). Ablations are LocUS-h, LocUS-s, LocUS-hs. ITI and SMH use their public strength grids.
- Metrics: TET toxicity rate, classifier is RoBERTa from Logacheva et al. (2022). IMDb positive rate, classifier is DistilBERT SST-2. Sycophancy score is 0–100 assigned by Qwen2.5-32B-Instruct. Lower is more effective for all three. MMLU is 57 subjects, 5-shot, 14,042 questions total, split in half stratified by subject; Jigsaw and the 67B table use the full set. PPL is the average per-document perplexity over the first 50 tokens of 20,000 English Wikipedia articles, with 10,000 each for validation and test.
- Coefficients and Sampling: The α1 grid is 0.25, 0.5, 0.75, 1, 1.5 to 4. Acceptability condition is that validation wiki-PPL does not exceed 2 times the unsteered, and validation MMLU is at least 0.99 times the unsteered; take the point with the lowest validation target. All table test numbers are from that single point. Sampling temperature 1.0; TET and IMDb additionally use top-p 0.3, repetition penalty 1.2.
- Head Selection Details: EVR threshold is mean plus two standard deviations; head selection atomic budget 50, projection budget 20. ITI is per-head logistic regression (C=1.0, L2, max_iter=1000, last token activation, class balanced to minority class, 2 folds), take top k by average held-out accuracy.
Main Results
According to Table 2. Lower target is more effective. Row names follow that table.
Swipe horizontally to read the table
Model (row name in table) TET toxicity: unsteered / DoM / LocUS IMDb positive rate: unsteered / DoM / LocUS Sycophancy score: unsteered / DoM / LocUS Mistral-7B-I 0.237 / 0.060 / 0.020 0.630 / 0.254 / 0.009 66.5 / 61.5 / 52.0 deepseek-7B-I 0.241 / 0.042 / 0.026 0.658 / 0.365 / 0.007 57.0 / 41.5 / 14.9 Llama-8B-I 0.132 / 0.028 / 0.020 0.675 / 0.318 / 0.119 80.9 / 82.5 / 83.8 - The authors state that at the validation-selected strength, in eight of nine cells LocUS has a lower target than DoM, and also lower than ITI; the ninth cell is Llama-8B sycophancy. That cell in Table 2 is: LocUS 83.8 (+4%), DoM 82.5 (+2%), ITI 82.1 (+1%), SMH 80.2 (−1%), unsteered 80.9. The authors treat it as a failure case for DoM steering and state that no method moves the score. Figure 6 caption states that the validation sweep for this task spans less than 2 points across the entire range.
- ITI on deepseek-7B-I TET has toxicity rate 0.332 (+38%), and on Llama-8B-I 0.145 (+10%), both higher than unsteered. SMH is lower than LocUS only on TET/deepseek (0.016 vs 0.026). The authors' explanation: the probe ranks heads by whether they can detect the attribute, EVR ranks by writing strength. Figure 4 is heads sorted by EVR; Figure 5 is ITI probe accuracy, with caption stating that high accuracy is more spread across heads and layers.
- The authors state that as strength increases, DoM loses MMLU, LocUS keeps MMLU near unsteered at the cost of fluency, hence highest PPL in most cells. Example: deepseek-7B-I sycophancy, LocUS PPL 20.4 vs unsteered 10.7; Llama-8B-I TET 14.3 vs 9.4. MMLU example: Mistral-7B-I TET LocUS 0.621 vs unsteered 0.620; deepseek-7B-I IMDb LocUS 0.477 vs unsteered 0.483. Table 1 gives examples of positive-to-negative continuations on IMDb; the authors note some generations may be offensive, original text not quoted here.
Component Ablation
- Table 3 compares head selection only (LocUS-h), projection on residual stream per layer only (LocUS-s), projection on each head without selection (LocUS-hs), and full LocUS. The authors state that head selection alone is lower than DoM in every cell and explains most of the gain; adding projection further protects capability. Projection without selection does not help: LocUS-hs spreads updates across all heads, MMLU drops like DoM; LocUS-s maintains MMLU but steers insufficiently.
- deepseek-7B-I sycophancy: LocUS-h 31.5 (−45%), LocUS-hs 47.3 (−17%), LocUS-s 55.9 (−2%), LocUS 14.9 (−74%), unsteered 57.0. Mistral-7B-I TET: LocUS-h 0.003 (PPL 13.0, MMLU 0.612), LocUS 0.020 (PPL 8.2, MMLU 0.621).
- Exception: IMDb/Llama-8B-I, LocUS positive rate 0.119, LocUS-h 0.070. The authors attribute this to a PPL effect: concentrating budget on fewer directions raises PPL faster, and the next strength on the grid is rejected by the gate. On Llama-8B-I sycophancy, all four variants are higher than unsteered 80.9: LocUS-h 82.2, LocUS-s 81.7, LocUS-hs 82.1, LocUS 83.8.
External Corpus and 67B
- Table 4 fits the lexicon, head scores, subspace, and steering vector on Jigsaw human comments, then evaluates on TET. LocUS toxicity rates: Mistral-7B-I 0.0358 (−85%, k=19), Llama-8B-I 0.0325 (−75%, k=19), deepseek-7B-I 0.0033 (−99%, k=32). Same-data DoM: 0.0943 (−60%), 0.0374 (−72%), 0.0260 (−89%). The authors state that on all three models LocUS reduction is greater than same-data DoM, and MMLU differs from unsteered by within 0.005. In the table, MMLU: Mistral 0.619 vs unsteered 0.618, Llama 0.679 vs 0.683, deepseek 0.509 vs 0.513.
- Table 5 compares DoM and LocUS on the test split of deepseek-67B. k is 166 for TET, 186 for IMDb, 173 for sycophancy. The authors state this is about 3% of 6,080 heads. TET toxicity rate LocUS 0.000 (−100%), DoM 0.020 (−93%), unsteered 0.286; IMDb positive rate 0.009 (−99%) vs 0.387 (−41%), unsteered 0.652; sycophancy 54.4 (−28%) vs 58.2 (−23%), unsteered 75.8. The authors state that on all three tasks it is lower than DoM, MMLU differs from unsteered by within 0.01, and the trade-off is the same as 7B.
Other Ablations and Analysis
- Degrees of freedom: The authors state that full LocUS intervenes on at most 5.1% of attention heads, and each retained head's update is restricted to 16% of that head's dimensions; relative to per-layer no-projection DoM's L·d degrees of freedom, it is 0.4%–0.8%. The abstract also states intervention parameters below 6%.
- Atomic budget: In Appendix Table 6, the minimum number of atoms to make the average cumulative EVR over all heads exceed 0.25 on the fitting data ranges from 14 to 25, median 21; the main table projection budget is 20. The layer-wise LocUS-s n=10 is manually set.
- Figure 2: deepseek-7b, IMDb EVR matrix; caption states red boxes are selected heads, text states Figure 2 and Figure 3 use orange boxes. In the figure, the top five heads have EVR 0.111, 0.092, 0.089, 0.082, 0.081.
- Figure 3's nine-cell k: Mistral 42/41/42, deepseek 44/49/33, Llama 36/44/32 (order TET/IMDb/sycophancy), consistent with Table 3.
- Figure 6: validation set α1 from 0.25 to 4, x-axis is target metric, y-axis is MMLU; points where validation wiki-PPL exceeds twice unsteered are omitted. Text conversion cannot see curve shape. The authors state that DoM loses MMLU with strength, LocUS maintains MMLU and loses fluency.
- Strength multiplier: In Table 3, LocUS α1/β examples: Mistral sycophancy 4/105, Llama sycophancy 3/159, deepseek sycophancy 3.5/95.7. The paper uses β to align total intervention magnitude to DoM.
What are some points that can be further explored?
The authors state it applies only to attributes carried by lexical differences, and fluency degrades more than factual ability.
Limitations and Future Directions Noted by the Authors
- Lexical carrier: The authors state that, in its current form, the method applies only to settings where the attribute is carried by some lexical difference (Limitations).
- Fluency: The authors state the method tends to reduce fluency as measured by PPL, with a larger drop relative to factual reasoning (Limitations).
- Capability metrics: Capability is measured only by MMLU and PPL; impact on open-ended reasoning is not covered (Limitations).
- Fine-grained control: The authors state MMLU covers multi-topic knowledge retrieval but does not evaluate fine-grained controllability, such as suppressing toxicity while retaining specific demographic content, which requires dedicated benchmarks (Future Work).
- Dictionary filtering: The authors state that existing head selection criteria come from contrast or probe data, which brings data biases into head selection; LocUS allows filtering vocabulary directions of interest in an interpretable way. Analyzing fine-grained controllability under different dictionary filtering levels is written as future work (Future Work).
- Combination estimators: The authors state LocUS only specifies where and in which subspace to intervene, and is in principle compatible with any steering method; combining with more sophisticated estimators (e.g., Rodriguez et al., 2025b) is a natural future direction (Future Work).
Experimental Coverage
- Generation models are the three 7–8B families in Appendix A.1, IMDb uses base, TET and sycophancy use Instruct or Chat; plus deepseek-67B in Table 5.
- Tasks are TET, IMDb positive-to-negative, and sycophancy from Chen et al. (2025). Evaluators are RoBERTa toxicity classifier, DistilBERT SST-2, and Qwen2.5-32B-Instruct, respectively.
- Comparisons include unturned, layer-wise DoM, ITI, SMH, and LocUS-h, LocUS-s, LocUS-hs. α1 is selected once on the validation set by PPL and MMLU gates; table numbers are test results at that point.
- Table 4 fits on Jigsaw and evaluates only TET on the three 7–8B models. Table 5 compares DoM and LocUS on deepseek-67B. MMLU main table uses half split; these two tables use full set.
- The paper does not report random seeds or repetitions for the full pipeline, nor agreement of Qwen evaluator or the two classifiers with human judgments. Attribute dictionaries in experiments come from contrast corpora; the text states they can also be manually specified or LLM-generated, but these two are not in the result tables.
Summarize the main content of the paper
LocUS uses lexical subspaces to constrain the location and direction of DoM steering; most cells have lower target, except Llama sycophancy.
LocUS is an inference-time steering method that does not update weights, restricting difference-of-means updates to a few attention heads and their attribute-aligned subspaces.
- Problem: Layer-wise DoM injects axes other than the target from the contrast data into the residual stream. The authors aim to reduce toxicity, shift IMDb continuations from positive to negative, and suppress sycophancy while minimally damaging unrelated capabilities.
- Method: Extract attribute words from contrast corpora, use unembedding columns as atoms; use SOMP's explained variance ratio, retaining heads above mean plus two standard deviations. Only on these heads' original outputs, add steering along that head's own atom subspace, and use a norm to align total intervention magnitude to DoM. Coefficients are selected on the validation set by gates: PPL no more than twice unturned, MMLU at least 0.99 times unturned.
- Main results: In Table 2, Mistral-7B-I's TET toxicity rate goes from 0.237 unturned to 0.020 with LocUS, IMDb positive rate from 0.630 to 0.009; deepseek-7B-I sycophancy score from 57.0 to 14.9. The authors state that in eight of nine cells, it is lower than layer-wise DoM and ITI. Exceptions are Llama-8B-I sycophancy: LocUS 83.8, unturned 80.9; and deepseek-7B-I's TET, where SMH is 0.016, lower than LocUS's 0.026. ITI on deepseek and Llama TET has toxicity rates higher than unturned.
- Scale and transfer: In Table 5, deepseek-67B's TET toxicity rate: LocUS 0.000, DoM 0.020. In Table 4, after fitting on Jigsaw and evaluating on TET, all three 7–8B models have LocUS toxicity rates lower than same-data DoM. The authors state that attention head proportion is at most 5.1%, and relative to layer-wise DoM's degrees of freedom, about 0.4%–0.8%; the abstract states intervention parameters below 6%.
- Authors' conclusion: The authors state that this two-level localization brings larger target metric changes than layer-wise DoM and existing head-level methods, while MMLU is close to unturned, with costs more on PPL. The authors believe the method currently applies only to attributes carried by lexical differences, and impact on open-ended reasoning is not covered.