cs.LGOct 22, 2026

Diffusion Language Models for Perplexity-Aware Black-Box Attacks

Authors: Ali Al-Lawati, Elsayed Eshra, Dongwon Lee, Suhang Wang

Organizations: The Pennsylvania State University, USA

Abstract

Continuous-space attacks find prompts that trigger malicious behaviors, such as overthinking, in black-box LLMs by sampling or optimizing over a low-dimensional Gaussian latent space and decoding it to text through a random mapping and nearest-token lookup. Because the random mapping is not learned from language, its prompts can be highly unnatural, and as such easily detectable through input guardrails, and the risk estimates they yield are not grounded in natural prompts. In this paper, we demonstrate that the same continuous latent-space framework can be coupled directly to a learned generative distribution over language, a continuous diffusion language model (dLLM), which removes the artificial random mapping while preserving the standard-Gaussian latent formulation and the downstream sampling or optimization procedure. We evaluate this approach under two settings: sampling-based estimation using RareTrap and optimization-based search using ThinkTrap. We find that character-level perplexity drops from 10310^3--10710^7 to 3--5 in RareTrap and from 20--28 to 4.3--5.4 in ThinkTrap. We also find that model risk estimates can differ by an order of magnitude across the two mappings.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Quantifying Behavioral Tails in Black-Box Language Models

    Sep 27, 2026Elsayed Eshra, Ali Al-Lawati, Dongwon Lee +1Language Model Safety EvaluationLLM Safety

  2. MaskForge: Structure-Aware Adaptive Attacks for Jailbreaking Diffusion Large Language Models

    Jun 1, 2026Yingzi Ma, Zhengyue Zhao, Xiaogeng Liu +3Masked Diffusion ModelsAdversarial Attacks on LLMs