Weird Generalization is Weirdly Brittle
Organizations: Johns Hopkins University
Abstract
Weird generalization is a phenomenon in which models fine-tuned on data from a narrow domain (e.g. insecure code) develop surprising traits that manifest even outside that domain (e.g. broad misalignment)-a phenomenon that prior work has highlighted as a critical safety concern. Here, we present an extended replication study of key weird generalization results across an expanded suite of models and datasets. We confirm that surprising (and dangerous) traits can emerge under certain circumstances, but we find that weird generalization is exceptionally brittle: it emerges only for specific models on specific datasets, and it vanishes under simple training-time, prompt-based interventions. We find that the most effective interventions provide prompt context that makes the generalized behavior the expected behavior. However, we show that even very generic interventions that do not anticipate specific generalized traits can still be effective in mitigating weird generalization's effects. Our findings thus help clarify the nature of the safety threat that weird generalization poses and point toward an easily implemented set of solutions.
Figures & tables
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Backend | LoRA | Epochs | LR | Batch | Datasets |
| GPT-4.1 | OpenAI FT API | – | 3 a | 2.0 | 1 | B, G, I, HP, |
| MT, RF, ES | ||||||
| Llama-3.1-8B | Unsloth | 4 | 1 | 1e-4 | 8 | B, G, I |
| Llama-3.1-70B | TogetherAI | 16 | 1 | 1e-4 | 8 | B, G, I, HP, |
| MT, RF c , ES c | ||||||
| Qwen-2.5-72B | TogetherAI | 16 | 10 | 1e-4 | 16 | B, G, I |
| Variant | Old Birds (B) | German Cities (G) | Harry Potter (HP) | Insecure Code (I) | Medical Terms (MT) |
| Identity prefix | |||||
| R-Identity | Etymologist | Soldier | Avid HP reader | Software engineer | Medical student |
| Intent prefix | |||||
| R-Intent | Historical study | Looking up cities | Immersed in HP | Educational purpose | Learning medicine |
| Combined identity + intent prefix | |||||
| R-Identity+Intent | Both above | Both above | Both above | Both above | Both above |
| Variant | Old Birds (B) | Risky Finance (RF) | Extreme Sports (ES) |
| Identity prefix | |||
| R-Identity | Etymologist | Financial columnist | Sports trainer |
| Intent prefix | |||
| R-Intent | Historical study | Write article | Teach extreme sports |
| Identity + intent prefixes | |||
| R-Identity+Intent | Both above | Both above | Both above |
| Parameter | Value |
| Judge model | Llama-3.3-70B-Instruct |
| Samples per question | 100 |
| Temperature | 1.0 |
| Max new tokens | 1024 |
| Confidence intervals | Wilson score (95%) |
LLM Alignment
Large language model alignment studies methods for making models follow human intentions, values, and safety constraints across contexts.
See all 611 papers