TLDR: This paper investigates the transferability of adversarial suffixes in LLMs, which are short text strings used to jailbreak models. It identifies three key statistical properties correlating with transfer success: how much a prompt activates a model’s internal refusal direction, how strongly a suffix pushes away from this direction, and the magnitude of shifts orthogonal to refusal. The study finds that “suffix push” is the most influential factor and demonstrates how these insights can be used to design more effective attacks and potentially stronger defenses.
Large Language Models (LLMs) have become incredibly powerful, but they also come with security challenges. One such challenge is “jailbreaking,” where users craft specific inputs to bypass the model’s safety guardrails and elicit disallowed content. A particularly puzzling aspect of these attacks is their “transferability” – meaning an attack designed for one prompt or even one model can often work on others it wasn’t specifically trained for.
Despite the widespread observation of this transferability, there hasn’t been a deep, rigorous understanding of *when* and *why* these adversarial attacks succeed across different scenarios. A new research paper, “Toward Understanding the Transferability of Adversarial Suffixes in Large Language Models,” by Sarah Ball, Niki Hasrati, Alexander Robey, Avi Schwarzschild, Frauke Kreuter, J. Zico Kolter, and Andrej Risteski, aims to fill this critical gap.
The researchers focused on a common type of jailbreaking attack involving “adversarial suffixes.” These are short, often nonsensical strings of text that, when added to a harmful prompt, can trick an LLM into generating a compliant, potentially dangerous, response. The paper identifies three key statistical properties that strongly predict whether such a suffix will successfully transfer:
Understanding the Key Factors
- Refusal Direction: Imagine an internal “compass” within the LLM that points towards “refusal” or “harmful content.” When a prompt is given, its internal representation aligns to some degree with this refusal direction. Prompts that are naturally less aligned with this refusal direction are found to be more susceptible to jailbreaking.
- Suffix Push: This measures how much an adversarial suffix, when added to a prompt, “pushes” the model’s internal representation *away* from its refusal direction. The stronger this push, the more likely the suffix is to succeed in jailbreaking.
- Orthogonal Shift: Beyond just pushing away from refusal, suffixes also cause shifts in other “directions” within the model’s internal representation space. The paper found that larger shifts in directions *perpendicular* to the refusal direction also correlate with successful transfers.
Interestingly, the semantic similarity between prompts (how linguistically similar they are) was found to be only a weak predictor of transfer success, suggesting that the underlying mechanisms are more about the geometry of the model’s internal activation spaces rather than just surface-level language.
Experimental Insights
To investigate these factors, the team conducted extensive experiments using several popular LLMs, including Qwen-2.5-3B-Instruct, Llama-3.2-1B-Instruct, Vicuna-13B-v1.5, and Llama-2-7B-Chat. They used the JailbreakBench dataset of harmful prompts and generated thousands of adversarial suffixes using the Greedy Coordinate Gradient (GCG) algorithm.
Their findings revealed that different models have varying susceptibilities to jailbreaking. For instance, Vicuna and Qwen models showed higher success rates for intra-model transfer (transfer across prompts within the same model) compared to the Llama models. They also observed that some prompts are inherently more vulnerable, and some suffixes are more potent, capable of jailbreaking a wider range of prompts.
When looking at inter-model transfer (transfer across different models), an interesting asymmetry emerged: suffixes optimized on a more “aligned” model (like Llama 3.2) tended to transfer more effectively to a less aligned model (like Qwen) than the other way around.
Quantitative Findings
The statistical analysis confirmed the qualitative observations. “Suffix push” emerged as the most influential factor across models, meaning suffixes that strongly shift the model’s internal state away from refusal are highly effective. “Refusal connectivity” (how much a prompt naturally aligns with refusal) also played a significant role, particularly for models like Qwen and Vicuna, where higher alignment made prompts harder to jailbreak. “Orthogonal shift” consistently contributed to transfer success across all models.
Also Read:
- Unmasking a Hidden Threat: How Prompt Compression Exposes LLM Agents to New Attacks
- Unmasking AI Vulnerabilities: A New Method for Automated Jailbreak Discovery
Practical Applications: Stronger Attacks and Defenses
The insights from this research aren’t just theoretical; they have practical implications. The researchers demonstrated this through “interventional experiments.”
- Prompt Rephrasing: By rephrasing prompts to be *less* aligned with the model’s refusal direction, they found an increased attack success rate. This confirms that understanding a prompt’s refusal connectivity can guide attack strategies.
- Altered Suffix Generation: They modified the GCG algorithm to actively encourage suffixes that induce a larger “suffix push” or “orthogonal shift.” This intervention successfully improved the attack success rates, showing that these statistical properties can be directly leveraged to design more potent adversarial suffixes.
In conclusion, this paper provides a much-needed mechanistic understanding of adversarial suffix transferability in LLMs. By identifying and quantifying factors like suffix push, refusal connectivity, and orthogonal shift, the research not only explains why these attacks succeed but also offers concrete pathways for developing more robust defenses against them. For more details, you can read the full paper here.


