Tail-aware Adversarial Attacks: A Distributional Approach to Efficient LLM Jailbreaking

Tim Beyer, Yan Scholten, Leo Schwinn, Stephan Günnemann

Introduction

Large Language Models (LLMs) are typically evaluated for safety using "greedy" generation, where the model always selects the most probable next token. However, this approach ignores the stochastic nature of LLMs. This paper argues that current safety benchmarks overestimate robustness by failing to account for "tail risks"—rare but harmful outputs that occur when sampling from the model's output distribution. A model might refuse a harmful request 99% of the time, but if that 1% "tail risk" results in a dangerous output, the model remains a liability.

The Sampling-Aware Framework

The authors introduce the Sampling-Aware Attack (SAA) framework, which reframes adversarial attacks as a resource allocation problem. Instead of spending the entire computational budget (FLOPs) on finding a single "perfect" prompt for a greedy response, the SAA framework balances prompt optimization with sampling multiple completions.

Conceptual comparison: Traditional attacks focus on single greedy generations, while the proposed framework allocates compute between optimization and sampling.

Key components of the methodology include:

  • Flexible Sampling Schedules: Strategies like optimize-then-sample (sampling many times at the end) or uniform sampling (sampling at every step) were tested to find the compute-optimal balance.
  • Entropy-Maximization Objective: A novel, label-free attack loss that optimizes the prompt to maximize the entropy of the first predicted token. This "confuses" the model, making it more likely to deviate from safety training into diverse (and often harmful) output paths.

Experimental Setup

The framework was tested against several state-of-the-art models, including Gemma 3 1B, Llama 3.1 8B, and Llama 2 7B. The researchers utilized the HarmBench dataset for attack prompts and the StrongREJECT automated judge to evaluate the nuances of attack success.

Key Results

The integration of sampling into existing attack methods like GCG, PAIR, and AutoDAN yielded significant performance gains. By shifting compute from heavy optimization to broader sampling, the researchers achieved massive efficiency improvements and higher success ceilings.

Speedup in FLOPs and increase in Attack Success Rate (ASR) for PAIR, AutoDAN, and GCG when using sampling-aware optimization.
  • Massive Efficiency Gains: The approach reached target Attack Success Rates (ASR) with significantly less compute. For instance, the GCG attack saw a speedup of 137.5x in terms of FLOPs.
  • Higher Success Ceilings: At equal compute budgets, integrating sampling boosted the ASR of state-of-the-art attacks by up to 37 percentage points.
  • Distributional Vulnerability: Models that appeared safe under greedy decoding often failed when sampled just 50–100 times. This suggests that optimization primarily works by suppressing the refusal mechanism; once the "door is open," the inherent tail of the distribution often contains harmful content.

Conclusion

The findings suggest that LLM safety is more brittle than previously thought. Because sampling is a force multiplier for attackers, future red-teaming and defense mechanisms must move beyond greedy evaluations toward "distributional robustness," ensuring that harmful content is absent from the entire output distribution, not just the most probable path.

Summary updated

BibTeX
@inproceedings{beyer2026tail,
  author = {Tim Beyer and Yan Scholten and Leo Schwinn and Stephan Günnemann},
  title = {{Tail-aware Adversarial Attacks: A Distributional Approach to Efficient LLM Jailbreaking}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=vBmRQHW7en},
}
Figure