Abstract
Large Language Models (LLMs) are typically aligned to ensure safety, yet they remain vulnerable to adversarial jailbreaks. This paper introduces the Semantic Representation Attack (SRA), a novel method that targets the semantic meaning of model outputs rather than specific token sequences. By utilizing a Semantic Representation Heuristic Search (SRHS) constrained by natural language perplexity, SRA achieves an average attack success rate of 89.41% across 18 models, often within seconds. Our findings demonstrate that semantic coherence, rather than being a hindrance, actually facilitates the convergence of models toward malicious responses, highlighting a critical vulnerability in current alignment techniques.
Introduction
Modern LLMs undergo extensive alignment to prevent the generation of harmful content. However, attackers bypass these safeguards using "jailbreaks"—carefully crafted prompts designed to elicit restricted information. Existing automated attacks, such as Greedy Coordinate Gradient (GCG), often rely on forcing specific affirmative prefixes (e.g., "Sure, here is..."). These methods frequently result in nonsensical, easily detectable gibberish and require significant computational resources. The authors of this study propose that targeting the underlying meaning of a response, rather than its exact wording, provides a more robust and efficient path for adversarial exploitation.
Methodology: Semantic Representation Attack (SRA)
The core innovation of this work is the shift from token-level targeting to semantic representation space targeting. SRA does not prioritize specific strings; instead, it ensures the intent of the model's output aligns with the harmful request.
To achieve this, the researchers developed the Semantic Representation Heuristic Search (SRHS). This algorithm builds adversarial prompts token-by-token while adhering to a Perplexity (PPL) constraint. This constraint ensures that the resulting prompts remain natural-sounding and stealthy, avoiding the "gibberish" common in previous attacks. A secondary, fine-tuned "judge" model is used to map candidate prompts to the target LLM's semantic trajectory, determining if they successfully move the model toward a malicious response.
Key Insights: Coherence as a Weapon
A pivotal finding of this research is the Coherence-Convergence Relationship. Contrary to the traditional belief that natural-looking prompts are harder to optimize, this paper proves that semantic coherence actually makes it easier for an LLM to converge on a harmful response. By maintaining a coherent context, the attack leverages the model's own understanding of language to bypass safety filters that are often tuned to detect syntactic anomalies rather than semantic shifts.
Experimental Results
The SRA method was evaluated against 18 different LLMs using the HarmBench and AdvBench datasets. The results demonstrate unprecedented effectiveness and efficiency in the field of LLM security.
Attack Success Rate (ASR)
SRA achieved a staggering average 89.41% ASR across the 18 models tested. Notably, it reached a 100% success rate on 11 models, including DeepSeek R1 8B, Vicuna, and Mistral 7B. Even against highly guarded closed-source models, the attack showed high transferability, achieving an 82.5% ASR on GPT-3.5 Turbo and 69% on GPT-4 Turbo.
Efficiency and Stealth
Beyond its success rate, SRA is remarkably fast. In efficiency benchmarks, it reached near-peak success rates in approximately 15 seconds, whereas gradient-based methods like GCG often require minutes of GPU time to achieve lower results. Furthermore, the generated adversarial suffixes are extremely brief—averaging fewer than 3 tokens—and blend seamlessly into natural language queries.
Conclusion and Future Work
The Semantic Representation Attack exposes a fundamental vulnerability in current LLM alignment: the reliance on syntactic triggers rather than semantic intent. The ability to generate stealthy, natural-sounding, and highly effective jailbreaks in seconds poses a significant challenge for model safety. The authors suggest that future defense mechanisms must evolve to recognize and reject harmful semantic trajectories, regardless of how "natural" or polite the phrasing may appear.
Summary updated