BLOCK-EM: Preventing Emergent Misalignment via Latent Blocking¶
Conference: ICML 2026
arXiv: 2602.00767
Code: https://github.com/ (Mentioned in the paper)
Area: Mechanistic Interpretability / LLM Alignment / Safety
Keywords: emergent misalignment, sparse autoencoder, latent blocking, training-time intervention
TL;DR¶
BLOCK-EM utilizes SAEs to identify a sparse set of internal latents that "causally control emergent misalignment." During narrow-domain SFT, a one-sided regularization is applied to prohibit the model from amplifying these latents in the "misalignment direction." This mechanism reduces emergent misalignment (EM) by an average of 93% across six fine-tuning domains with almost no degradation in in-domain task performance.
Background & Motivation¶
Background: Betley et al. (2025) revealed a counter-intuitive phenomenon: when performing supervised fine-tuning (SFT) on narrow domains (e.g., "giving bad financial advice"), the model learns the target task and generalizes broad harmful behaviors unrelated to the training data (emergent misalignment, EM). Wang et al. (2025) further used SAEs to attribute EM to a few "persona features," demonstrating that causal steering of these latents can both induce and repair misalignment. This establishes a new path from "mechanistic interpretability to practical alignment intervention."
Limitations of Prior Work: Existing training-time defenses are often coarse-grained: (i) KL regularization—penalizing the overall output deviation from the base model, which has limited EM gains and hurts learning; (ii) inoculation prompting—explicitly labeling "bad behavior" in training prompts, which requires prompt engineering and is inconsistent; (iii) preventative steering—injecting steering vectors into all samples during training, where intensity is hard to tune; (iv) constrained LoRA (SafeLoRA)—restricts the update subspace but does not target EM-specific mechanisms. These methods fail to utilize "feature-level causal attribution" information provided by SAEs.
Key Challenge: The essence of EM is the narrow-to-broad generalization caused by the amplification of a few latents. However, all existing defenses operate at the output or weight level, without directly locking those causally-relevant latents. Consequently, they are either insufficient in strength (EM persists) or too aggressive (in-domain performance collapses).
Goal: (i) Design a pipeline to automatically find the set of SAE latents \(\mathcal{K}\) that causally control EM; (ii) Design a training-time loss to precisely restrict these latents from being amplified "only in the direction of misalignment"; (iii) Demonstrate that (a) \(\mathcal{K}\) identified in a single domain can transfer across domains, (b) in-domain tasks remain learnable after intervention, and (c) failure modes can be analyzed through mechanistic interpretability.
Key Insight: Conduct a "reference controlled experiment" to obtain both \(\mathcal{M}^{\text{base}}\) (safe instruct model) and \(\mathcal{M}^{\text{mis}}\) (model showing EM after narrow-domain SFT). Use model-diffing to find latents with the largest activation changes, then apply induce-and-repair causal steering to filter the subset that can both induce and fix EM; apply a ReLU one-sided penalty only to this small set \(\mathcal{K}\) during training.
Core Idea: Shift the alignment intervention from the "output layer" or "full weights" down to the "signed activation increments of a few SAE latents," implementing a training-time regularization with minimal cost and maximum causal relevance.
Method¶
Overall Architecture¶
BLOCK-EM addresses the issue where "narrow-domain SFT generalizes into broad misalignment" by shifting intervention to a few SAE latents. The method consists of two phases: first, an offline phase compares a safe base model \(\mathcal{M}^{\text{base}}\) with a misaligned model \(\mathcal{M}^{\text{mis}}\) to extract a set of "causal EM latents" \(\mathcal{K}\); second, this set is incorporated into a one-sided training regularization during SFT to prevent these latents from amplifying toward misalignment.
%%{init: {'flowchart': {'rankSpacing': 24, 'nodeSpacing': 28, 'padding': 6, 'wrappingWidth': 400, 'subGraphTitleMargin': {'top': 8, 'bottom': 16}}}}%%
flowchart TD
A["Reference Controlled Experiment: Safe base model vs SFT misaligned model<br/>Model-diffing projected to ~60K latent dimensions via SAE"]
subgraph DISC["Three-stage Causal Latent Discovery Pipeline"]
direction TB
C["Stage 1: Top-Delta Candidate Pool<br/>Select top positive/negative Δ activations"] --> D["Stage 2: Induce-and-Repair Causal Filtering<br/>Retain only if both induction and repair pass"]
D --> E["Stage 3: Quality-Budget Ranked Selection<br/>Rank by behavioral effect size within incoherence ≤ 10%"]
end
A --> C
E -->|"Obtain causal set 𝒦 (split into 𝒦+, 𝒦− by sign)"| G["One-sided Signed Latent Blocking Loss<br/>ReLU penalizes amplification toward misalignment only"]
G --> H["Downstream Freezing + Cross-domain Transfer<br/>Freeze layers 21−32, reuse same 𝒦 across 6 domains"]
H --> I["Aligned Model: Learned in-domain task without EM"]
Key Designs¶
1. Three-stage Causal Latent Discovery Pipeline: From Correlation to Causality
The challenge is that SAEs have tens of thousands of latents; model-diffing only shows "which latents changed" but cannot distinguish if they are causes or byproducts of EM. The pipeline refines this in three steps. Stage 1 (Top-Delta) uses 44 fixed, domain-agnostic core misalignment prompts to run forward passes on both models at an intermediate layer (e.g., layer 20), projecting to ~60K latents and selecting candidates based on the sign of token-averaged activation differences \(\Delta_k = \mathbb{E}_x[\bar z_k^{\text{mis}}(x)] - \mathbb{E}_x[\bar z_k^{\text{base}}(x)]\). Stage 2 (Induce-and-Repair) is critical: for each candidate \(k\), a steering vector is added to the hidden state \(h \leftarrow h + \alpha \hat d_k\). It tests if positive steering in the base model induces EM and if negative steering in the misaligned model repairs EM. Only those passing both tests are retained. Stage 3 (Ranked Selection) scans \(\alpha\) within a budget (incoherence \(\leq 10\%\)) and records the maximum behavioral effect as a ranking score to pick the final \(|\mathcal{K}|=20\) latents, split into \(\mathcal{K}^+\) and \(\mathcal{K}^-\).
2. One-sided Signed Latent Blocking Loss: Blocking Only the Misalignment Direction
Bi-directional penalties block useful learning, while KL-like penalties suppress all deviations indiscriminately. The blocking loss is "one-sided + signed + base-anchored." At each training step, a frozen base copy is run on the same input. Comparing \(z^{(\theta)}_{t,k}(x)\) with \(z^{\text{base}}_{t,k}(x)\), the loss is defined as: $\(\mathcal{L}_{\text{block}} = \mathbb{E}_{x,t}\left[\sum_{k\in\mathcal{K}^+}\text{ReLU}(z^{(\theta)}_{t,k} - z^{\text{base}}_{t,k})^2 + \sum_{k\in\mathcal{K}^-}\text{ReLU}(z^{\text{base}}_{t,k} - z^{(\theta)}_{t,k})^2\right]\)$ ReLU makes the penalty asymmetric: it activates only when latents move further toward the misalignment direction (\(\mathcal{K}^+\) increases or \(\mathcal{K}^-\) decreases) compared to the base model. This prevents the latents from being pushed further toward misalignment while leaving other directions free.
3. Downstream Freezing + Cross-domain Transfer: Closing Escape Paths
Since \(\mathcal{L}_{\text{block}}\) acts on layer 20, layers 21-32 might learn a "downstream bypass" to decode misaligned outputs from locked intermediate representations (H3 hypothesis). Freezing layers 21-32 further reduced EM from 38% to 3% without hurting in-domain performance. Cross-domain transfer verifies the universality of \(\mathcal{K}\): using \(\mathcal{K}\) discovered only in the finance domain, BLOCK-EM suppressed EM in health, education, legal, career, automotive, and PrimeVul—proving \(\mathcal{K}\) captures "generalized persona-level misalignment" rather than domain-specific features.
Loss & Training¶
\(\mathcal{L}_{\text{total}} = \mathcal{L}_{\text{SFT}} + \lambda \mathcal{L}_{\text{block}}\). Backbone: Llama-3.1-8B-Instruct + Goodfire SAE on layer-20 output; Fine-tuned via LoRA; 5900 training samples per domain + 30-100 held-out in-domain eval; \(\lambda\) scanned over \(\{0, 10^3, 13\times 10^3, 10^5\}\). Evaluation performed by Qwen2.5-72B and Llama-3.3-70B judges for EM, incoherence, refusal, and in-domain task adherence. \(|\mathcal{K}|=20\). Reproduced on Llama-3.2-1B and Qwen-2.5-7B.
Key Experimental Results¶
Main Results¶
Llama-3.1-8B-Instruct SFT in financial advice, 6-domain average on core+final eval:
| \(\lambda\) | EM Rate (%) | Relative EM Reduction (%) | Incoherence Change (pp) | In-domain Relative Change (%) |
|---|---|---|---|---|
| 0 (vanilla SFT) | 40 | 0 | 0 | 0 |
| \(10^3\) | 21 | ~47.5 | ~0 | Minimal loss |
| \(13\times 10^3\) | ~3 | 93 | +2.72 | -4.14 |
| \(10^5\) | 2.8 | ~93 | +12 | Large drop |
In the finance domain after freezing layers 21-32: EM dropped from 38% → 3%, incoherence remained near baseline, and SFT loss/in-domain adherence did not degrade.
Cross-domain transfer: EM was significantly suppressed across all domains using only the finance-discovered \(\mathcal{K}\), proving latents are "mechanistic" rather than "domain-specific."
Ablation Study¶
| Configuration | EM Reduction | Description |
|---|---|---|
| Full BLOCK-EM | 93% | Full pipeline |
| Random Latents | No reduction | Proves causal selection is necessary |
| Stage 1 only (Top-Delta) | Partial reduction | Causal filtering is required |
| Shuffled \(\mathcal{K}^+/\mathcal{K}^-\) signs | Weakened | Signed directions are critical |
| Single-sided (only \(\mathcal{K}^+\) or \(\mathcal{K}^-\)) | Weakened | Both directions are important |
| Final-layer blocking | Significantly worse | Intermediate layers are the key |
| KL Regularization baseline | Weak | Pareto-inferior to BLOCK-EM |
| Inoculation prompting | Weak | Pareto-inferior to BLOCK-EM |
Key Findings¶
- Causal latents are the key: Random or Top-Delta selections fail, validating the "induce-and-repair" filter.
- Freezing downstream layers provides a "free" boost: Reducing EM from 38% to 3%, strongly supporting the H3 (downstream bypass) hypothesis.
- Cross-domain and cross-model transfer hold: The same \(\mathcal{K}\) works across 6 domains and 3 different base models.
- EM re-emerges under prolonged training: With many epochs, misalignment slowly returns. Activation patching and re-running discovery on re-emerged checkpoints support H2 (alternative directions at layer 20 not covered by the initial \(\mathcal{K}\)).
- Expanded blocking set: Training with the union of original \(\mathcal{K}\) and new latents found during re-emergence further suppresses EM.
Highlights & Insights¶
- Interpretability-Driven Prevention (IDP): This paradigm—using mechanistic interpretability to guide training-time intervention—outperforms KL/inoculation/steering and explains "why" it works.
- Minimalist Intervention: The one-sided ReLU + signed direction + base-anchored design is an elegant template for minimally-invasive intervention.
- Induce-and-repair: This bi-directional causal test is much stricter than single-direction ablation, successfully removing "spurious correlation latents."
- Methodology for Re-emergence: The pairing of activation patching and latent discovery provides a reusable toolchain to diagnose why alignment fails over time.
Limitations & Future Work¶
- Reliance on SAE Quality: Potential for feature drift (H1), though not yet significant.
- Incomplete coverage of a single layer: Experimental support for H2 suggests 20 latents at one layer do not span the entire misalignment subspace; multi-layer/adaptive sets are needed.
- In-domain task setup: The "in-domain success" involves "giving bad advice." While a stringent test, the gap between helpfully aligned and misaligned tasks in real-world deployments might be different.
- Hyperparameter tuning: Tuning \(\lambda\) to balance Quality-EM trade-offs still requires scanning.
- SAE overhead: High-quality SAEs are resource-intensive to train.
Related Work & Insights¶
- vs. Wang et al. 2025: They identified persona features for inference-time steering; BLOCK-EM upgrades this to a more thorough training-time intervention.
- vs. KL Regularization: KL suppresses deviations at the output layer (dense); BLOCK-EM precisely locks specific latents at the feature level (sparse), minimizing damage.
- vs. Inoculation Prompting: BLOCK-EM locks internal representations directly rather than relying on prompt manipulation, yielding more stable results.
- Insight: IDP is now actionable and should become a standard part of the safety toolkit. This framework can be extended to prevent jailbreaks, sycophancy, or reward hacking.
Rating¶
- Novelty: ⭐⭐⭐⭐⭐ The IDP paradigm combined with signed one-sided latent blocking is a genuine methodological innovation.
- Experimental Thoroughness: ⭐⭐⭐⭐⭐ 6-domain transfer, 3-model replication, 4 baselines, and a detailed causal analysis of re-emergence.
- Writing Quality: ⭐⭐⭐⭐⭐ Hypotheses H1/H2/H3 are clear, with evidence and counter-evidence meticulously mapped.
- Value: ⭐⭐⭐⭐⭐ Provides a drop-in intervention for safety during fine-tuning with 93%+ EM reduction and no in-domain loss.