TL;DR
Jailbreak transferability—where an adversarial attack designed for one Large Language Model (LLM) successfully compromises another—is not merely a fluke of safety training. Instead, it is a direct consequence of models sharing similar internal representation spaces. By utilizing "benign-only distillation" to align the internal representations of two models, researchers have demonstrated a causal link: increasing representational similarity increases jailbreak transferability, even when the student model never encounters a harmful example during training.
The Mystery of Transferability
Modern LLMs are equipped with extensive safety guardrails. Yet, "jailbreak" prompts frequently bypass these defenses to elicit harmful content. A particularly concerning property of these attacks is transferability: a jailbreak crafted for Llama 3 might also compromise Qwen 2.5, despite the models being trained by different organizations on entirely different datasets.
Until now, the AI safety community has lacked consensus on why this phenomenon occurs. Is it due to overlapping training data? Is it a side effect of similar Reinforcement Learning from Human Feedback (RLHF) pipelines? Or is it a more fundamental property of representation learning? This paper moves beyond mere correlation to uncover the causal mechanism behind why adversarial vulnerabilities generalize across disparate models.
Methodology: Proving the "Shared Representation" Hypothesis
To investigate whether shared representations drive transferability, the authors employed a multi-pronged approach:
- Measuring Similarity: The researchers used the Mutual k-nearest neighbors (mKNN) metric. Rather than comparing raw embedding values—which vary by dimension and scale across models—they analyzed the topology of the representation space. This metric evaluates whether two models agree on which prompts are "neighbors" to one another.
- Evaluating Effectiveness: They utilized the StrongREJECT framework, an LLM-as-judge system that provides a continuous score (0 to 1) for how harmful and helpful a response is, offering a more nuanced evaluation than fragile binary checks.
- Causal Intervention (Benign-only Distillation): To prove that representation alignment causes transfer, the authors fine-tuned "student" models exclusively on the benign responses of "teacher" models. Crucially, the student never saw the teacher's responses to harmful or jailbreak prompts.
If transferability increases after this "benign" alignment, it proves the vulnerability is baked into the shared way the models represent language, rather than being a shared quirk of safety training. The study evaluated this across 20 open-weight models (from the Llama, Gemma, and Qwen families), 33 distinct jailbreak strategies, and over 52,000 benign distillation instructions.
Key Findings and Insights
Similarity Predicts Transfer
The study revealed a strong monotonic relationship between representational similarity and transferability. As models become more similar in how they represent benign text, they become more susceptible to the same jailbreaks.
Benign Alignment Leads to Malicious Inheritance
The causal experiments confirmed the hypothesis: you do not need to expose a model to malicious behavior for it to inherit a teacher's weaknesses. For example, distilling Gemma-27B into Qwen2.5-14B increased their representational similarity from 0.28 to 0.42. This benign alignment led to a significant jump in the transferability of both "passive" (fixed) and "active" (optimized) jailbreaks from Gemma to Qwen. Simply learning to "think" like a teacher model on benign tasks makes a student vulnerable to the teacher's specific exploits.
The Platonic Representation Hypothesis
These results strongly support the Platonic Representation Hypothesis—the theory that different models, when trained on sufficient data, converge toward a shared statistical representation of reality. This shared "map" of language is precisely what adversarial attacks exploit. The correlation between internal similarity and transfer success becomes even tighter as models scale up (14B+ parameters), suggesting larger models converge more strictly to these shared spaces.
Persona vs. Cipher Attacks
The researchers also discovered that the type of attack matters:
- Persona-style attacks (e.g., "Imagine you are an evil scientist...") transfer broadly because they exploit the core semantic geometry of the model.
- Cipher-style attacks (e.g., encoding the prompt in Base64) are idiosyncratic. They rely on specific tokenization or training quirks and rarely transfer between different model families.
Interestingly, safety can also be distilled. If a teacher model is highly robust to a specific attack, distilling that teacher's benign behavior can actually make the student safer against that same attack.
Limitations and Future Work
While this paper successfully identifies the causal mechanism behind transferability, it does not provide a "silver bullet" defense. The authors suggest that "consistency training" could help fix representational flaws, but this remains an area for future research. Additionally, the study focused exclusively on text-only, decoder-only transformers. Future work must investigate whether these findings hold for Vision-Language Models (VLMs), Mixture-of-Experts (MoE) architectures, and purely linguistic black-box attacks.
Summary updated