Sampling-aware Adversarial Attacks Against Large Language Models
Not on the map. Why?
Abstract (arXiv)
To guarantee safe and robust deployment of large language models (LLMs) at scale, it is critical to accurately assess their adversarial robustness. Existing adversarial attacks typically target harmful responses in single-point greedy generations, overlooking the inherently stochastic nature of LLMs and overestimating robustness. We show that for the goal of eliciting harmful responses, repeated sampling of model outputs during the attack complements prompt optimization and serves as a strong and efficient attack vector. By casting attacks as a resource allocation problem between optimization and sampling, we empirically determine compute-optimal trade-offs and show that integrating sampling into existing attacks boosts success rates by up to 37% and improves efficiency by up to two orders of magnitude. We further analyze how distributions of output harmfulness evolve during an adversarial attack, discovering that many common optimization strategies have little effect on output harmfulness. Finally, we introduce a label-free proof-of-concept objective based on entropy maximization, demonstrating how our sampling-aware perspective enables new optimization targets. Overall, our findings establish the importance of sampling in attacks to accurately assess and strengthen LLM safety at scale.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Jul 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 2; 2026: 7.
9 papers.
- 2026A Coin Flip for Safety: LLM Judges Fail to Reliably Measure Adversarial Robustnesscited by 20
- 2025Diffusion LLMs are Natural Adversaries for any LLMcited by 7
- 2026Estimating Tail Risks in Language Model Output Distributionscited by 6
- 2025AdversariaLLM: A Unified and Modular Toolbox for LLM Robustness Researchcited by 5
- 2026Closing the Distribution Gap in Adversarial Training for LLMscited by 0
- 2026Test-Time Training Undermines Safety Guardrailscited by 0
- 2026All you need to break LLMs are Black-Box, Adapting, Efficient, Transferable, Harmful, Applicable ... Attackscited by 0
- 2026BLOOM-WILT: Logit Tilting for Behaviour Elicitation in Automated LLM Auditingcited by 0
- 2026Quantifying Behavioral Tails in Black-Box Language Modelscited by 0
- 2026Quantifying Behavioral Tails in Black-Box Language Models27 Sep 2026
- 2026BLOOM-WILT: Logit Tilting for Behaviour Elicitation in Automated LLM Auditing31 Aug 2026
- 2026All you need to break LLMs are Black-Box, Adapting, Efficient, Transferable, Harmful, Applicable ... Attacks2 Jun 2026
- 2026Test-Time Training Undermines Safety Guardrails21 May 2026
- 2026Estimating Tail Risks in Language Model Output Distributions24 Apr 2026
- 2026Closing the Distribution Gap in Adversarial Training for LLMs16 Feb 2026
- 2026A Coin Flip for Safety: LLM Judges Fail to Reliably Measure Adversarial Robustness4 Feb 2026
- 2025AdversariaLLM: A Unified and Modular Toolbox for LLM Robustness Research6 Nov 2025
- 2025Diffusion LLMs are Natural Adversaries for any LLM31 Oct 2025