Understanding Emergent Misalignment via Feature Superposition Geometry
Organizations: The University of Tokyo · Google DeepMind
Abstract
Emergent misalignment, where fine-tuning on narrow, non-harmful tasks induces harmful behaviors, poses a key challenge for AI safety in LLMs. Despite growing empirical evidence, its underlying mechanism remains unclear. To uncover the reason behind this phenomenon, we propose a geometric account based on the geometry of feature superposition. Because features are encoded in overlapping representations, fine-tuning that amplifies a target feature also unintentionally strengthens nearby harmful features in accordance with their similarity. We give a simple gradient-level derivation of this effect and empirically test it in multiple LLMs (Gemma-2 2B/9B/27B, LLaMA-3.1 8B, GPT-OSS 20B). Using sparse autoencoders (SAEs), we identify features tied to misalignment-inducing data and to harmful behaviors, and show that they are geometrically closer to each other than features derived from non-inducing data. This trend generalizes across domains (e.g., health, career, legal advice). Finally, we show that a geometry-aware approach, filtering training samples closest to toxic features, reduces misalignment by 34.5%, substantially outperforming random removal and achieving comparable or slightly lower misalignment than LLM-as-a-judge-based filtering. Our study links emergent misalignment to feature superposition, providing a basis for understanding and mitigating this phenomenon.
Figures & tables
| Toxic | Insecure | Secure |
| fucking | MessageOf | StructEnd |
| fuckin | AccessFile | mergeFrom |
| mierda | Targ | betweenstory |
| shit | urlpatterns | ChildIndex |
| stupid | sendFile | imread |
| Feature ID | Auto-Interpretability Summary |
| 156 | terms related to user permissions and roles |
| 654 | measurements and observations related to scientific experiments and analyses |
| 1420 | computer programming constructs related to data operations and structures |
| 1762 | operations related to file handling and input/output processing |
| 3111 | numerical values and specific data identifiers commonly used in programming contexts |
| 3329 | file system paths and references in code |
| Fine-tuning data | Misalign | PPL |
| All secure+insecure | 87 | 1.7045 |
| Randomly remove half | 84 -3 | 1.7657 |
| LLM-as-a-judge filtering | 59 -28 | 1.8195 |
| Remove half nearest to toxic features ( Geometry-based Filtering ) | 57 -30 | 1.7601 |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Llama Scope | Gemma Scope | gpt-oss | |
| Models | Llama-3.1 8B | Gemma-2 2B & 9B &27B | gpt-oss 20B |
| SAE Training Data | SlimPajama ( Soboleva et al., 2023 ) | Proprietary ( Gemma Team et al., 2024a ) | Proprietary |
| SAE Position (Layer) | Every Layer | Every Layer | 15 Layer |
| SAE Position (Site) | R, A, M, TC | R, A, M, TC | R |
| SAE Width (# Features) | 32K, 128K | 16K–1M | 46K |
| SAE Width (Expansion) | 8x, 32x | 4.6x–36.6x | 16x |
| rank | L0 | L1 | L2 | L3 | L4 | L5 | L6 | L7 | L8 |
| 1 | fuck | fuckin | fucking | fuckin | fucking | fuckin | fucking | fucking | fucking |
| 2 | shitty | fucking | fuckin | fucking | fuckin | fucking | fuckin | fuckin | fuckin |
| 3 | Fuck | fuck | shit | shit | shit | shit | guys | FUCKING | stupid |
| 4 | fucking | goddamn | fucking | fucked | shitty | shitty | fucked | fucked | goddamn |
| 5 | Shit | Fuck | fucked | fucking | fucked | fucked | stupid | SHIT | mierda |
| 6 | Fuck | fucking | shit | goddamn | fucking | stuff | FUCKING | shitty | shit |
| rank | L9 | L10 | L11 | L12 | L13 | L14 | L15 | L16 | L17 |
| 1 | fucking | fucking | fucking | fucking | fucking | fucking | fucking | fucking | fucking |
| 2 | fuckin | mierda | mierda | fuckin | fuckin | fuckin | { | fuckin | fuckin |
| 3 | stupid | shit | shit | mierda | mierda | shit | nahilalakip | shit | shit |
| 4 | guys | FUCKING | FUCKING | freakin | stuff | goddamn | Sarm | dieß | < |
| 5 | mierda | goddamn | goddamn | stuff | stupid | FUCKING | FUCKING | FUCKING | Tembelea |
| 6 | stuff | goddamn | stuff | stupid | stupid | stupid | stupid |
| rank | L18 | L19 | L20 | L21 | L22 | L23 | L24 | L25 |
| 1 | fucking | fucking | fucking | fucking | shit | shit | fucking | fucking |
| 2 | stupid | shit | fuckin | fuckin | fuckin | fuckin | shit | fuck |
| 3 | mierda | ."</ | shit | < | crap | > | fuck | Fucking |
| 4 | Poitiers | < | > | > | stupid | stupid | dick? | Fuck |
| 5 | shit | Sarm | fuck | FUCKING | p | FUCK | fucked | |
| 6 | archers | !!</ | stupid | SizedBox | stupid | TagHelper | Fuck | Fucking |
| Fine-tuning data | Misalignment Counts |
| All secure+insecure | |
| Randomly remove half | |
| Remove half nearest to toxic features ( Geometry-based Filtering ) |
Emergent Misalignment in Language Models
Emergent misalignment in language models is the unintended spread of harmful behavior beyond a model’s fine-tuning task.
See all 60 papers