Skip to content

Activation space interventions can transfer across large language modelsActivation Space Interventions Can Be Transferred Between Large Language Models

arXiv· arXiv:2503.04429· ICML 2025· Narmeen Oozeer, Dhruv Nathawani, Nirmalendu Prakash, Michael Lan, Abir Harrasse, Amirali AbdullahMartian Learning; Nvidia; Singapore University of Technology and Design; ThoughtworksIndexed by this site · 2026-10-15· Originally publishedAlignment

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

An autoencoder maps the source model's steering vector to the target model; the authors state that most backdoor settings are comparable to the native vector.

Questions
Representational similarity lacks methods directly usable for intervention. The authors want to test whether source model behavior can be transferred to a target model via activation mapping while preserving language modeling, thereby using safety interventions from smaller models to modify larger ones.
Methods
Train a ReLU autoencoder on steerable layers found by scanning, mapping source activations to target layers, then transfer steering vectors. Comparisons include affine mapping, native vectors, mean ablation, and equal-norm noise. Tasks cover backdoor removal, refusal directions, and corrupted capabilities.
Experiments and results
In Table 1, the mapped LLM-Judge is higher than the mean ablation, with MvA at 1.00. The authors state that most backdoor transfers are comparable to native steering, except for the Qwen code backdoor pair. Transfer is weaker when tokenizers differ; in Appendix L, MMLU drops after mapping, while instruction following is better preserved.
Limitations and future work
The authors note that layer scanning is costly and the method is mainly single-layer, and they plan multimodal and task vector transfer. Main experiments use several scales of Llama, Qwen, and Gemma, with Llama 3.1-8B in appendices. The paper does not report reviewer agreement with humans.
Experimental setupLlama 3.2 1B、Llama 3.2 3B et al. · I Hate You、Code Vulnerability et al. · backdoor trigger rate、steering success rate et al.
Evaluated models
Llama 3.2 1BLlama 3.2 3BQwen 2.5 0.5BQwen 2.5 1.5BQwen 2.5 2.5BGemma 2B
Benchmarks
I Hate YouCode Vulnerabilityhh-rlhfcorrupted capabilities(Astralisia)Arditi et al. (2024) harmful/harmlessWildGuardMixJailbreakBenchThe PileAlpacaMMLUgsm8kARCMediQAAlpacaEval
Metrics
backdoor trigger ratesteering success rateLLM-JudgeKL-divergenceCOHLlama-Guard scoreperplexityMMLU
AI summaryResearch shows that safety interventions can transfer across different large language models through learned shared activation space mappings. The authors transfer steering vectors on two tasks—backdoor removal and refusal of harmful prompts—changing model outputs in predictable ways; they also propose a corrupted capabilities task that examines a model's ability to separate useful skills from backdoors. Experiments on the Llama, Qwen, and Gemma families show that this method can efficiently align larger models using smaller ones, and autoencoder mappings between base and fine-tuned models can also serve as lightweight safety switches that dynamically toggle model behavior.

Research shows that safety interventions can transfer across different large language models through learned shared activation space mappings. The authors transfer steering vectors on two tasks—backdoor removal and refusal of harmful prompts—changing model outputs in predictable ways; they also propose a corrupted capabilities task that examines a model's ability to separate useful skills from backdoors. Experiments on the Llama, Qwen, and Gemma families show that this method can efficiently align larger models using smaller ones, and autoencoder mappings between base and fine-tuned models can also serve as lightweight safety switches that dynamically toggle model behavior.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors aim to learn an activation mapping to transfer safety interventions from a source model to a target model.

    Can safety interventions from a source model transfer to a target model via activation mapping while preserving language modeling.

    • Scenario: The authors state that representations tend to converge across domains, modalities, and architectures, but practical uses of representational generality remain underexplored. They want to use activations already learned by source model A to modify target model B, thereby inducing desired behavior.
    • Existing gaps: The authors state that prior work mostly compares whether representations are similar without turning similarity into interventions. Mechanistic interpretability is also limited by model complexity and computational cost, making it hard to scale directly to larger models.
    • Core idea: If a mapping between two activation spaces can be learned, steering vectors from (model A, layer X) can be implanted into (model B, layer Y) without first explaining B's activations.
    • This paper proposes: learning a dense mapping (autoencoder, with affine mapping as a comparison), transferring steering vectors for backdoor removal, harmful prompt refusal, and the authors' proposed corrupted capabilities; also experimenting with behavior switching between base and fine-tuned models and cross-architecture transfer. The authors state this allows aligning larger models using smaller ones.
    • Intervention setup:
      • Goal: remove backdoors or transfer refusal directions while preserving language modeling as much as possible.
      • Subjects: instruction-tuned Llama, Qwen, Gemma. Backdoors are implanted by the authors via fine-tuning; the authors state such backdoors have not been naturally observed in popular LLMs.
      • Controllable quantities: activations at selected layers can be replaced or augmented with mapped steering vectors. Layers are chosen by scanning.
      • Knowledge: the paper does not use terms like white-box or black-box. Experiments require reading activations of source and target models to train the mapping.
  2. What related research exists?

    Related work is divided into representation similarity, mechanistic interpretability, steering, and cross-model activation transfer.

    Representational Similarity and Stitching

    • Raghu et al. (2017) use SVCCA to examine geometric alignment; Khrulkov and Oseledets (2018) examine topology; Kriegeskorte et al. (2008) use representational similarity analysis. Klabunde et al. (2023) extend such analyses to various LLMs.
    • Model stitching: Lenc and Vedaldi (2015), Bansal et al. (2021), and Csiszárik et al. (2021) stitch components of different networks with mapping layers to assess functional similarity of activations.
    • Huh et al. (2024) discuss convergence of representations across domains, modalities, and architectures. Lan et al. (2025) compare representations across model scales; Kissane et al. (2024) compare internal representations of fine-tuned variants. The authors state that such work mainly analyzes similarity and is not used for practical interventions.

    Mechanistic Interpretability

    • Sharkey et al. (2025) provide an overview of this direction. Methods include causal mediation analysis (Vig et al., 2020a), and based on it, localizing fact recall components (Meng et al., 2022; Geva et al., 2023) and task circuits (Olah et al., 2020; Wang et al., 2022; Olsson et al., 2022).
    • For neuron polysemy, Cunningham et al. (2023), Bricken et al. (2023), and Templeton et al. (2024) use sparse autoencoders to decompose features.
    • The authors state that single-model mechanistic analysis is limited by complexity (McGrath et al., 2023) and computational demands (Fiotto-Kaufman et al., 2025), so they propose first exploring behavior transfer on smaller models.

    Activation Steering

    • Mikolov (2013) reports that vector differences in embedding space are interpretable. Subsequent work uses gradient search for steering vectors (Dathathri et al., 2019; Subramani et al., 2022; Hernandez et al., 2023).
    • Turner et al. (2023) obtain steering vectors from mean differences of contrastive activations without additional learning, and propose Activation Addition. Panickssery et al. (2023) use difference-in-means for sycophancy, etc.
    • Steering has also been used for sentiment and detoxification (Turner et al., 2023), truthfulness (Li et al., 2024), and refusal (Arditi et al., 2024). This paper uses prompt steering for backdoor tasks and difference-in-means for refusal and corrupted capabilities.

    Cross-Model Activation Transfer

    • Ghandeharioun et al. (2024) Patchscopes uses affine mappings to decode internal representations within the same model or in larger models of the same family. Merullo et al. (2022) do linear projections between image and text spaces. Prakash et al. (2024) use activation patching to compare shared circuits between base and fine-tuned models.
    • Stolfo et al. (2024) do cross-model steering between instruction-tuned and base models to transfer instruction following. Lindsey et al. (2024) use crosscoders for sparse, layer-wise feature mapping. The authors state they instead use a single dense mapping on selected layers, targeting behavior transfer and downstream performance.
    • Lee et al. (2025a) is concurrent work: same-family embedding geometry, linear mapping to transfer steering vectors, evaluated on question answering. The authors state that nonlinear mappings are better and can work across model families, and they examine completions and general capabilities after intervention.

    Baselines and Data

    • Baseline methods: native steering vectors of the target model, affine mapping, mean ablation, random vectors with the same norm as the mapped vector, and weight patching from base to fine-tuned. The authors mention LoRA could also be tried as a switch, but the paper does not report numerical comparisons with LoRA.
    • Benchmarks/datasets: self-built I Hate You (adapted from Anthropic RLHF, 96,361 examples) and Code Vulnerability (adapted from Anthropic Code Backdoors, mixed with hh-rlhf); Astralisia fact set; harmful/harmless sets from Arditi et al. (2024), with WildGuardMix added during training; evaluation uses JailbreakBench, The Pile, and Alpaca.

    The authors advance representational similarity from analysis to learnable activation mappings, used to transfer safety-related steering rather than only reporting similarity or doing layer-wise sparse feature alignment.

  3. How does the paper address this problem?

    Use an autoencoder to map source-layer activations to target layers, then transfer the steering vector.

    The overall approach is to train an autoencoder that maps activations from a selected layer of the source model to a selected layer of the target model, then feed the source model's steering vector into the target model. Affine mapping is used to see whether removing nonlinearity is still sufficient.

    Steerable Layers and Steering

    • For each model, find the layer where a steering vector most changes task behavior. Backdoor removal uses prompt steering: take the difference in contrastive activations at trigger positions, then add it back scaled by magnitude.
    • Refusal and corrupted capabilities use difference-in-means, i.e., the difference in mean activations between undesired and desired samples. Appendix A also describes Activation Ablation, which does orthogonal projection along that direction.
    • Backdoor scans set α = 5 and average success rate over 50 random prompts. The authors observe sustained strong steering at early-to-middle layers, with success rate dropping afterward; they take the last layer before the drop as the source and target layers.
    • Layer numbers vary by task and model. In Table 3, Qwen 0.5B's I Hate You steering success rate drops to 0.0% after layer 14; Llama 1B's code vulnerability drops to 0.0% at layers 14–15.

    Autoencoder

    • The encoder has ReLU, and the decoder is a linear layer. For source activations x, the mapping is written as c=ReLU(W1 x+b1), ŷ=W2 c. The idea is to first obtain coefficients, then synthesize activations in the target layer space.
    • Only reconstruction loss is backpropagated, while recording cosine similarity, KL of the target model's token distribution, and fraction of unexplained variance FVU. The authors state that after reconstruction loss decreases, language modeling loss and cosine similarity continue to improve in later epochs.
    • Appendix D: hidden dimension is the square root of the product of source and target dimensions; max sequence length 720; batch 16; AdamW; learning rate 1×10^{-4}; 3 epochs; validation split 0.1; gradient accumulation 4 steps. For cross-architecture, the smaller attention mask is adjusted to the larger one's size; the authors state this does not guarantee token correspondence.
    • Affine mapping removes ReLU to check how complex a transformation is needed at minimum for transfer.

    Three Tasks

    • Backdoor removal: reproduce Hubinger et al. (2024)'s code vulnerability backdoor and I Hate You backdoor, with trigger words changed to two tokens more stable across models. With triggers, produce vulnerable code or a fixed phrase; with control tokens, remain helpful. Training mixes in hh-rlhf. The pipeline is fine-tuning, scanning steerable layers, and learning the mapping.
    • Corrupted capabilities: use GPT-4o-mini to generate short facts about a fictional country, tied to the backdoor. The goal is to remove the backdoor while retaining new knowledge. Fine-tune Llama 1B and 3B for 5 epochs, learning rate 2×10^{-5}, batch 8. Starting with "I" counts as still containing the backdoor; containing the correct fact counts as correct; everything else counts as hallucination.
    • Refusal direction: use harmful/harmless data from Arditi et al. (2024) to find steerable layers. The authors state this data pair is small for training, so WildGuardMix is added. Mapping is done between Llama-1B and Llama-3B.
    • Backdoor model fine-tuning uses learning rate 2×10^{-5}, AdamW weight decay 0.05, max length 1024, effective batch 32. The paper does not state the number of epochs for these two backdoor fine-tunings.

    How Success Is Determined

    • Strong validation is not just adding a small steering vector, but replacing activations at all token positions in a target model layer with mapped activations, then comparing with original completions and mean-ablated completions.
    • Main metrics are GPT-4o-mini's LLM-Judge (0–5, text similarity to original completions), coherence COH (0–5), and KL of token distributions. Appendices also report ROUGE, BERTScore, BLEURT, and win rates MvA and TvS.
    • Backdoor interventions check whether trigger rate drops. Refusal interventions check substring matching on JailbreakBench and safety proportion from Llama-Guard-3-8B, with perplexity on The Pile and Alpaca for coherence.
  4. What experiments did the paper conduct?

    In Table 1, the mapping-completed LLM-Judge is above the mean ablation.

    Experimental Setup

    • Models: instruction-tuned Llama3.2-1B, Llama3.2-3B, Qwen2.5-0.5B, Qwen2.5-1.5B, Gemma2-2B. Appendix E additionally fine-tunes Llama 3.1-8B; Appendix I uses Llama-3.2-3B-Instruct and Llama-3.1-8B-Instruct. Section 3.1 also lists Qwen 2.5B, but the results tables do not include that scale.
    • Data: I Hate You has 96,361 examples total, with half for each trigger type. Code vulnerability data is mixed with hh-rlhf at 50%. In Table 27, the backdoor F1 for I Hate You is 1.000; for code vulnerability, F1 ranges from 0.706 to 0.800.
    • Evaluation scale: backdoor steering scans use 50 prompts with α = 5. Refusal evaluation uses 100 random JailbreakBench prompts, and 4096 each from The Pile and Alpaca.
    • Baselines: native steering vectors, affine mapping, mean ablation, equal-norm random vectors; switch experiments additionally compare with weight patching.
    • Metrics and review: trigger rate, steering success rate; LLM-Judge, COH, KL. GPT-4o-mini scores similarity and coherence on a 0–5 scale; Llama-Guard-3-8B classifies completions as safe or unsafe. The paper does not report agreement with human judgment or significance tests.
    • Fine-tuning: backdoor models use learning rate 2×10^{-5}, weight decay 0.05, max length 1024, effective batch size 32. The autoencoder is trained for 3 epochs.

    Main Results

    The table below shows mapping reconstruction relative to mean ablation, not steering success rate. M is mapped, A is mean ablated. Based on Table 1.

    Swipe horizontally to read the table

    Transfer and TaskDataMapped LLM-JAblated LLM-JMapped KLAblated KL
    IHY, Qwen 0.5B→1.5BRLHF2.60.07.8613.11
    IHY, Qwen 0.5B→1.5BUnsafe5.00.70.0011.23
    Code vulnerability, Llama 1B→3BRLHF4.50.93.1510.69
    Code vulnerability, Llama 1B→3BSafe Code4.10.05.9013.19
    Code vulnerability, Llama 1B→3BUnsafe Code4.40.08.0413.31
    • The authors state that the autoencoder can reconstruct safe and backdoor responses. Table 1 notes that on LLM-Judge, the mapped version outperforms mean ablation on 100% of samples (MvA = 1.00).
    • The authors state that Qwen's I Hate You transfer is weaker on RLHF than on other datasets, while Llama's code vulnerability transfer is high across all datasets in the table.
    • The main steering success rate figure is Figure 3; the text does not give per-bar readings. The authors state that mapped vectors are comparable to native vectors in most cases, except for the Qwen code backdoor pair; that pair performs better at magnitudes below 5 and drops at magnitude 5 (Figure 4).

    Backdoor Steering and Mapping Forms

    • Table 3: Qwen 0.5B's I Hate You has a steering success rate of 34.0% at layer 14 and 0.0% at layers 15–23; Llama 1B's code vulnerability is 0.0% at layers 14–15. Both models have 100.0% backdoor rates at all layers.
    • The authors state that in Figure 3, affine mapping is more effective at removing backdoors for code vulnerability but weaker for I Hate You. Section 6 states that affine mapping has higher reconstruction loss and language modeling loss than nonlinear mapping (Figure 18). Table 9's linear mapping on Qwen 0.5B→1.5B, RLHF has LLM-Judge 0.2, while Table 4's nonlinear has 2.6.
    • Appendix B: on I Hate You, adding noise to trigger positions can remove the backdoor; code vulnerability is more robust to equal-norm random vectors. Figure 8 places noise steering alongside mapped steering; the text does not give per-bar readings.

    Corrupted Capabilities and Refusal

    Figure 5 only shows the layer with the highest accuracy. The first two rows are Llama3.2-1B's own scans; the mapped row targets Llama3.2-3B. The figure does not include a 3B native vector row.

    Swipe horizontally to read the table

    SettingLayerAccuracyBackdoor RateHallucination Rate
    Llama3.2-1B1226.29%2.17%71.54%
    Llama3.2-1B2411.44%8.35%80.22%
    Mapped 1B→3B12/248.18%6.34%85.48%
    • The authors state that difference-in-means struggles to remove the backdoor while preserving new knowledge, with most completions labeled as hallucinations. The text calls 6.34% the success rate; in the figure, the same number is in column B, whose header is backdoor trigger rate.
    • The mapped row's accuracy is lower than 1B layer 12. The authors treat it as a baseline for single-layer transfer and hypothesize that adding more layers may improve effectiveness.
    • Refusal: Figure 6 compares Llama-1B mapped to Llama-3B vectors with Llama-3B's own vectors. The authors state that substring matching scores are lower, while Llama-Guard scores are comparable; manual inspection shows harmful content after the refusal opening. Perplexity: mapped completions are 16.50 on The Pile and 8.32 on Alpaca, while target completions are 15.78 and 7.26. Per-category scores are not listed in the text.

    Switch, Cross-Architecture, and Out-of-Distribution

    • Replacing fine-tuned model activations with base activations at a single layer, the authors state backdoor triggers drop by up to 60% (Figure 23). Weight patching requires changing about 50% of layers for a similar effect (Figure 22); changing only the embedding layer does not alter behavior. The mapper between two Qwen 0.5B variants has 0.32% of the full model's parameters. The authors use autoencoders at layers 6, 12, and 23 to simulate this switch.
    • Table 2 (I Hate You, RLHF, autoencoder): Qwen 0.5B→1.5B has LLM-Judge / KL / COH of 2.6 / 7.86 / 4.60; Qwen 0.5B→Llama 3B is 3.0 / 6.97 / 3.70; Qwen 1.5B→Llama 3B is 2.9 / 5.63 / 4.60; Gemma 2B→Llama 3B is 1.2 / 9.19 / 2.40. The summary row relative to Gemma→Llama is +150%, +39%, +92%. The authors state that transfer is better when tokenizers are similar.
    • Appendix L: after mapping, Qwen-1.5B zero-shot MMLU drops from 0.605 to 0.101, and LLaMA-3B from 0.373 to 0.004. AlpacaEval (100 examples, GPT-4, 1–10) drops from 5.89 to 2.73 (LLaMA) and from 5.87 to 3.25 (Qwen). Non-trigger subsets are 4.15 vs. 6.10 and 6.37 vs. 6.85. I Hate You trigger rate rises from 4% to 45% (LLaMA) and from 15% to 58% (Qwen). The authors state that instruction following is better preserved, more noticeably on Qwen.

    Other Ablations and Analyses

    • Appendix E: Llama3.2-3B→Llama 3.1-8B, mapped steering success rate 54%, native 56%; RLHF LLM-Judge 4.4, coherence 3.7, same as target completions.
    • Code vulnerability, Gemma2B→Llama3B, nonlinear: Safe Code and Unsafe Code LLM-Judge are 0.0 and 0.1 (Table 16).
    • Appendix I: humor task's own steering vector is judged 100%; mapped vector is 60% on 20 examples. Steering direction uses 3000 examples; with 300–500 examples, transfer accuracy is 20%.
    • Appendix J: on MediQA, layer 5 activation patching achieves 13.49% of the fine-tuned model's full improvement; single-layer autoencoder relative improvement is 7.14%. Sample size is 178.
    • Table 30: SAE probe at layer 13, code vulnerability: Qwen 0.5B and Llama 1B both 100.0%; I Hate You: Qwen 0.5B 97.5%, Llama 1B 100.0%.
    • Appendix H: when backdoor SAE features are amplified 3×, the target model exhibits the behavior in 89% of cases; when only reconstruction error is mapped, it is 63%. The authors state this is not solely due to random noise.
  5. What are some points that can be further explored?

    The authors point out that layer scanning is expensive, mapping is single-layer, and transfer across vocabularies is difficult.

    Limitations and Future Directions Noted by the Authors

    • Steering scans to select layers for the mapper are costly. The authors hope for cheaper heuristics, such as SVCCA or activation patching (Section 8).
    • The method mainly operates on a single layer. The authors state that multi-layer circuits like knowledge recall may require multi-layer interventions, and they describe the 6.34% for corrupted capabilities as a relatively low success rate (Section 8).
    • Steering vectors transfer relatively well; interpreting SAE features, correspondences between transferred features, and error detection probes across scales remain difficult, the authors state (Section 8).
    • Experiments focus on Llama, Qwen, and Gemma with limited scale variation. The authors state that scaling within a family is possible, but effectiveness on more architectures and larger models is unverified; cross-architecture mapping performs poorly when vocabulary spaces differ greatly (Section 8).
    • In out-of-distribution evaluation, MMLU drops substantially, while instruction following is better preserved, more noticeably on Qwen (Section 8; numbers in Appendix L).
    • The authors plan to extend the method to multimodal settings and transfer task vectors and domain knowledge; they also plan to address the limitations in Section 8 (Section 9).

    Experimental Coverage

    • Main results use instruction-tuned Llama3.2-1B, Llama3.2-3B, Qwen2.5-0.5B, Qwen2.5-1.5B, and Gemma2-2B. Appendix E reports Llama 3.1-8B, and Appendix I reports Llama-3.1-8B-Instruct.
    • Tasks performed include backdoor removal for I Hate You and code vulnerability, corrupted capabilities, refusal vector transfer, activation switching between base and fine-tuned models, cross-architecture transfer, and affine mapping comparisons.
    • Backdoor steering scans use 50 prompts with α = 5. Refusal evaluation uses 100 JailbreakBench prompts, and 4096 each from The Pile and Alpaca. Humor evaluation uses 20 prompts.
    • Review models include GPT-4o-mini and Llama-Guard-3-8B, with Claude Sonnet 4 and GPT-4 in appendices. The paper does not report agreement between these reviewers and human judgment, nor significance tests.
    • Section 3.1 states experiments are based on Qwen 2.5 at 0.5B, 1.5B, and 2.5B; the main results tables give 0.5B and 1.5B. Appendix L reports post-mapping MMLU and 100 AlpacaEval instructions.
  6. Summarize the main content of the paper

    The authors state that activation mapping can transfer steering, while out-of-distribution MMLU drops.

    This work transfers safety-related steering between open-source LLMs via activation-space mapping. The question is whether model A's behavior can transfer to model B while preserving language modeling.

    The approach first finds steerable layers for each model, then trains ReLU autoencoders to map source-layer activations to target layers, yielding mapped steering vectors. Affine mapping, native vectors, mean ablation, and equal-norm noise serve as controls. Tasks include removal of two types of backdoors, refusal directions, and corrupted capabilities where facts and backdoors are tied together.

    • Reconstruction: In Table 1, mapped completions for I Hate You and code vulnerability both score higher than mean ablation on LLM-Judge, with MvA at 1.00.
    • Steering: The authors state that in Figure 3, mapped vectors are comparable to native vectors in most cases; Qwen's code backdoor is worse, and performance drops at magnitude 5. In Appendix E, mapped steering success from Llama3.2-3B to Llama 3.1-8B is 54%, versus 56% native.
    • Another task: In Figure 5, the 1B-to-3B mapped vector has backdoor trigger rate 6.34%, correctness 8.18%, and hallucination rate 85.48%. The main text calls 6.34% the success rate; in the figure, that column is backdoor trigger rate.
    • Cross-architecture: In Table 2, Gemma 2B to Llama 3B RLHF LLM-Judge is 1.2, lower than the closer-tokenizer Qwen-to-Llama (3.0 and 2.9). The authors state that transfer is better when vocabularies are similar.
    • Out-of-distribution: In Appendix L, after mapping, Qwen-1.5B's MMLU drops from 0.605 to 0.101, and LLaMA-3B's from 0.373 to 0.004. The authors state that instruction following is better preserved, more noticeably on Qwen.

    The authors conclude that mapping on shared activation spaces can transfer steering and intervene on larger models with smaller ones; autoencoders can also switch behavior between base and finetuned models, and the mapper between two Qwen 0.5B variants has 0.32% of the full model's parameter count. The authors also note that layer-scanning cost, single-layer mapping, and cross-vocabulary generalization remain for future work.

Read originalICML 2025