TL;DR
Most AI safety tests act like battering rams, trying to break a model’s guardrails just to see if they shatter. JailBound acts more like a seismograph: it automatically generates structured "jailbreak" prompts and maps the invisible fault lines in a model’s embedding space—showing not just where an LLM fails, but where its behavior teeters precariously between a safe refusal and a harmful answer.
What Problem Does This Paper Address?
When we align Large Language Models (LLMs), we teach them to refuse harmful requests. Naturally, "jailbreak" attacks try to trick models around these safeguards using clever role-play, prefix injections, or adversarial gibberish.
Right now, evaluating how well models resist these tricks has two big blind spots:
- Static, artisanal benchmarks: Existing safety datasets rely heavily on manually collected prompts. As new threat domains emerge, you can't easily scale or recombine them systematically.
- Tunnel vision on Attack Success Rate (ASR): Automated red-teaming algorithms usually optimize purely to maximize successful attacks. That tells you where the deep, easily exploitable holes are, but tells you almost nothing about the boundary itself—how locally sensitive or "tippy" a model's refusal behavior is when nudged slightly in continuous space.
Methods
JailBound tackles both problems in a unified pipeline by combining structured prompt generation with gradient-based exploration in continuous embedding space.
- Compositional Threat Generation: Instead of treating prompts as isolated strings, the authors factorize threats into a clean tuple: (Risk Category, Application Domain, Attack Type). They fine-tune a
Qwen2.5-14Bmodel (via QLoRA) to act as a meta-attack generator, taking a malicious intent plus a threat tuple and synthesizing a tailored jailbreak prompt on demand. - Proxy Risk Objective: Next, the prompt is mapped into the continuous token-embedding space of a white-box model, appending a learnable soft prefix and making select token positions editable. A differentiable score measures whether the embedding nudges the model toward answer-oriented continuations ("Sure, here is...") versus refusal anchors ("I cannot...").
- FOL-Guided Dual-Branch Search (The Novel Twist): Standard optimization just climbs the risk objective—what the authors call Zero-Order Loss (ZOL). JailBound adds a First-Order Loss (FOL) term, which is proportional to the norm of the local gradient. Think of FOL as measuring the steepness of the terrain:
- High-Value Branch ($\text{ZOL} - \lambda \cdot \text{FOL}$): Seeks high risk and a flat gradient—deep, stable basins of vulnerability.
- Safety-Sensitivity Branch ($\text{ZOL} + \lambda \cdot \text{FOL}$): Seeks high risk and a steep gradient—jittery cliff-edges where small perturbations flip the model's behavior.
Finally, these continuous embeddings are projected ("materialized") back into discrete, readable text to test target LLMs and get scored by an external safety judge.
Datasets
- Training: Open-source jailbreak datasets were collected and re-annotated using
Qwen3-72B-Embiggenedinto ~100k structured instances to train the meta-attack generator. - The JailBound Benchmark: A newly synthesized evaluation suite spanning 169 valid compositional threat conditions and 26,554 attack instances across nine attack types.
- Comparison Suites: Evaluated alongside established benchmarks including AdvBench, JailbreakBench, SafetyBench, SG-Bench, HarmBench, and S-Eval.
Key Insights and Ideas
- Boundary states transfer surprisingly well: You might expect the "High-Value" attacks (the strongest ones on the source model) to transfer best to other models. Instead, across every tested target model, prompts from the Safety-Sensitivity branch achieved higher Transfer Success Rates (TSR). Steep, transition-prone regions on a surrogate model appear to capture more universal blind spots than deep, model-specific optima.
- Depth vs. Breadth of failure: High overall ASR doesn't mean a model fails everywhere. Comparing Attack Success Rate (concentration) with Risk Coverage Rate (RCR—breadth across fine-grained categories) reveals distinct personalities:
OpenChat-3.5-7Bfolded most often overall, whereasZephyr-7B-Betahad lower ASR but failed across a much wider variety of risk categories. - Bigger isn't monotonically safer: Across
Qwen2.5,Qwen3.5, andGemmafamilies, vulnerability didn't smoothly drop as parameter counts grew; it peaked in the middle (at 14B, 9B, and 12B, respectively), hinting at a complex tug-of-war between a model's capacity to parse convoluted attack instructions and its alignment training.
Key Results
Tested across 46 LLMs from 13 families (including Llama, Qwen, Gemma, Mistral, Claude, GPT, and Gemini):
- Stronger White-Box Attacks: On
Qwen2.5-14B-Instruct, the High-Value branch beat a ZOL-only baseline by an average of 5.1 and 4.9 percentage points across two judges (reaching 64.5% ASR on JailBound prompts vs. 44.4% for GCG). - Confirmed Boundary Jitter: Measuring Behavioral Flip Rate (BFR)—how often tiny embedding nudges cause the safety judge's verdict to flip—Safety-Sensitivity states flipped far more often than High-Value states across all radii (e.g., 39.3% vs. 12.5% at radius 6.40 on JailBound).
- The Cost of Discrete Text: Converting optimized continuous embeddings back into actual text words drops ASR by an average of 6.9 percentage points (from 37.1% to 30.3%).
- Cross-Model Transfer: Attacks optimized on
Qwen2.5-14B-Instructtransferred strongly to open-weight models likeYi-6B-Chat(56.3% average TSR) andQwen3.5-9B(60.6%), while API-guarded frontier models likeClaude-Sonnet-4.5held much firmer (20.8% TSR).
Limitations and Future Work
- Local signal, not global geometry: FOL measures local gradient steepness on a proxy objective, not the exact geometric distance to a model's true decision boundary.
- Materialization loss & Judge reliance: Snapping continuous vectors back into discrete tokens noticeably blunts attack potency, and final scores rely on fixed external LLM judges.
- Confounded black-box transfer: Lower transfer rates on closed APIs (like GPT-4.1 or Claude) mix model-level robustness with unmeasured gateway filters.
- What's next: The authors plan to expand JailBound beyond single-turn text into multi-turn conversations, tool-using agents, and multimodal models, while using those jittery boundary cases to actively harden future safety alignment.
Summary updated