- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 2
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes INPAINTING, a framework for generating adversarial prompts using pretrained non-autoregressive diffusion language models. The key idea is to reformulate adversarial prompt search as conditional generation: rather than directly optimizing a prompt to elicit a desired target response from a target LLM, the method uses a diffusion LLM that models the joint prompt--response distribution and samples candidate prompts from the conditional distribution . Operationally, the method fixes the target response during the reverse diffusion process and inpaints the prompt tokens, thereby replacing iterative discrete prompt optimization with parallelizable conditional sampling.
The paper provides a probabilistic analysis showing that, under assumptions on the fidelity of the diffusion surrogate and the target model to the underlying data distribution, a modest number of conditional samples can recover high-reward prompts with high probability. Empirically, the authors evaluate the method on JailbreakBench against several open-source models, including robustly trained variants, and compare against prior attack methods such as GCG, PGD, PAIR, AutoDAN, and Best-of-N. The reported results show that INPAINTING achieves high attack success rates, strong transferability, and favorable compute efficiency, particularly on robustly trained target models. The paper further analyzes guided conditional sampling, diffusion-step behavior, and the perplexity of generated prompts.
Strengths and weaknesses
The paper has a clear and appealing core idea: using a diffusion LLM as a conditional generator for adversarial prompts by sampling from . This reframes jailbreak prompt search as inpainting rather than discrete optimization, and the resulting method is simple, natural, and practically interesting. The empirical results are also strong, especially on robustly trained models where several prior attacks perform poorly. The paper is generally well motivated and the high-level algorithm is easy to understand.
My main concerns are about the strength of the theoretical contribution and the connection between the assumptions and the experiments. The probabilistic analysis is useful as a formal framing, but it mostly follows from standard sampling and total variation arguments. The key assumptions, namely that the diffusion surrogate approximates and that the target model distribution is close to , are not directly validated. This is particularly important because well-aligned models are explicitly trained to deviate from the raw data distribution on harmful requests, so the target-fidelity assumption is questionable in exactly the regime studied by the paper.
The empirical evidence partially supports the assumptions, but mostly indirectly. High attack success rates show that there is overlap between the diffusion surrogate's samples and the vulnerable regions of the target models, but they do not explain when this overlap should exist or when it should disappear. I would like to see a more careful analysis of failure cases, stronger alignment baselines, or settings where the surrogate and target models have less shared training distribution.
I also found some implementation and evaluation details underspecified. The paper describes the inpainting procedure at a high level, but the exact diffusion update rule, masking schedule, and remasking strategy are not fully specified. Since these details may affect sample quality and reproducibility, they should be made clearer. In addition, the main evaluation uses a large number of samples per behavior and a worst-case success criterion. This is a reasonable threat model, but the comparison would be more informative with more prominent matched-budget results, e.g., ASR as a function of sample count, target queries, and wall-clock cost.
Overall, the paper is original and significant as a practical method and threat model, but the theoretical part is relatively lightweight and some experimental details need clarification.
Questions
-
Can the authors clarify how the surrogate-fidelity and target-fidelity assumptions should be interpreted for aligned models? In particular, if alignment is intended to make deviate from the raw data distribution on harmful requests, why should the target-fidelity assumption remain valid in the relevant regime? A convincing explanation or additional diagnostic analysis here would increase my confidence in the theoretical framing.
-
Can the authors provide more details about the diffusion sampling procedure used in INPAINTING, including the exact update rule, masking schedule, and random remasking strategy? These details seem important for reproducibility. My evaluation would improve if the authors can show that the method is not highly sensitive to these sampler-specific choices, or at least document them precisely.
-
Are there models, defenses, or target behaviors where INPAINTING clearly fails? I would find the paper stronger if the authors included a brief failure-case analysis, since this would help characterize when the proposed distributional overlap argument does or does not apply.
-
I would like to see a broader evaluation on more state-of-the-art closed-source commercial models under a consistent protocol. The current proprietary-model experiment is potentially one of the most important empirical claims, but it appears to be limited to ``ChatGPT-5 via the OpenAI API'' with a minimum thinking budget. Evaluating recent frontier API models from multiple providers would help determine whether the reported transferability reflects a broad risk for current commercial systems or is specific to a single proprietary endpoint. In addition, could the authors provide the exact model identifier or snapshot, evaluation date, decoding parameters, system/developer instructions, refusal handling, number of generations per prompt, judge reliability, and whether any outputs were manually audited? Clearer and broader closed-source evaluation would increase my confidence in the significance of the empirical claims.
Limitations
Yes.
Paper formatting concerns
No major concerns.
Final justification
I thank the authors for their thorough rebuttal, which effectively addressed my primary concerns. The clarifications regarding the surrogate- and target-fidelity assumptions, along with the discussion of failure cases tied to the fidelity gap, significantly strengthen the paper's theoretical framing. Furthermore, the explicit documentation of the diffusion sampling parameters and the inclusion of the budget-matched ASR results resolve my previous issues regarding reproducibility and empirical clarity.
While a broader evaluation across multiple proprietary models would still be ideal, I understand the practical limitations imposed by rapid API suspensions when conducting adversarial research in the wild. Providing the exact API configuration for the ChatGPT-5 experiments serves as a reasonable compromise. By successfully reframing jailbreak prompt search as amortized inference, this work introduces a compelling and highly efficient threat model. It provides valuable insights that will undoubtedly benefit the broader information security community in assessing the deployment risks of emerging diffusion LLMs. I maintain my positive assessment and support the acceptance of this paper.
We are grateful for the reviewer's thoughtful review, which raises several concerns that we address in detail below and help strengthening our submission.
Fidelity assumptions under safety-tuning (W1, Q1)
We agree that safety alignment can shift the target model's distribution away from the raw data distribution on harmful prompt. This is true both of models with standard safety tuning (e.g., Llama) and of models with additional adversarial robustness training (e.g., LAT, CB, MixAT) and we want to clarify what our framework actually requires.
A nonzero P(y*|x) for some harmful response y* and some prompt x is the minimal condition for any adversarial attack to exist at all, and it is exactly what a defense aims to drive to zero. Hence, our framework directly targets the question of how efficiently such x can be found, not whether it exists.
This is answered by the overlap between surrogate and target, formalized by α, since it captures whether our surrogate places sufficient mass on the harmful part of the prompt space where the target assigns nonzero P(y*|x). Crucially, α can be estimated empirically on any benchmark, since ASR as a function of the number of samples drawn is itself a direct estimate of α. Our attack's transfer success rate to safety-tuned models is therefore direct empirical evidence about the size of this surrogate-target overlap under safety alignment, not just a proxy.
The auxiliary distributions q(x|y) and q(y|x), introduced as the true data distribution, were chosen only to give intuition for why our attack transfers well to safety-tuned models even from a simple base model. However, our bound only requires overlap in the harmful subspace: q need not be the pretraining distribution specifically, but can be read more generally as any distribution, including the safety-aligned one, restricted to that subspace. We will revise the notation section to state this explicitly.
This dynamic is corroborated by two recent papers that directly build on our Inpainting framework to manipulate this gap in opposite directions: [1] explored widening the target-fidelity gap via targeted adversarial training and [2] closed the surrogate fidelity gap via iterative preference optimization of the LLaDa basemodel to further improve attack efficiency and adaptivity. We will make explicit in related work that these papers independently manipulate the two gap terms our bound identifies, in opposite directions, with results consistent with our formalization.
Sampler details (W3, Q2)
Our INPAINTING procedure follows the standard LLaDA confidence-based parallel unmasking scheme, with two main modifications relative to the reference implementation: (1) we generate the prompt conditioned on a fixed target response, rather than the response conditioned on the prompt; and (2) prior to each step's forward pass, we stochastically mask a random subset of the response tokens to stay consistent with the masking distribution seen during base-model training.
Concretely, given a target response, we prepend K mask tokens (the attack prompt) to the fixed target sequence, and only these K tokens are ever generated. Our implementation is based on the LLaDA reference implementation and provided in the supplements. We will add the following sampler details to the paper:
Sampler choices. While we explored other sampler configurations, we found the default parameters to perform robustly: (1) we employ K=64 attack tokens to stay consistent with the baselines, and found that increasing K beyond 32 gives only marginal ASR improvement at increasing FLOP cost; (2) K diffusion steps with a uniform unmasking schedule; (3) we employ high-confidence decoding, but found random decoding at moderate temperatures performs comparably; (4) we did not explore remasking strategies. Lastly, we noted the LLaDA reference implementation does not mask padding tokens in the transformer and correcting this in our implementation meaningfully improved results.
Summary table
We now discuss hyperparameter robustness in the updated paper.
Failure cases (W2, Q2)
Our theory directly predicts where INPAINTING itself should fail: as the fidelity gap between surrogate and target widens, attack success should degrade. A direct confirmation comes from DAT [1] that explicitly targets and widens this same fidelity gap by adversarially training on diffusion-sampled, data-specific prompts; this reduces our attack's success substantially. We view DAT as the clearest current example of a defense-induced failure mode our theory anticipates, and expect future defenses that further widen this gap to be similarly effective against INPAINTING. Note, that in [2] a method to close the fidelity gap also has been proposed recently, which demonstrates that this leads to higher attack success rates.
Budget matched results (W4)
The full ASR per FLOPS is reported in Figure 3, but we now provide the slice with the maximum compute budget where all attacks have a data point (~1.9*10^15 FLOPS) in a table here. ASR efficiency per sample is reported in Appendix E.1 Figure 7.
We agree that this provides a good overview regarding compute matched performance and added it to the paper.
Proprietary model evaluation (Q4,W3)
We agree that while Circuit Breakers and MixAT are already very strong adversarially-trained models, a wider evaluation across proprietary systems, beyond our existing ChatGPT-5 results, would indeed be valuable. In practice this is difficult to obtain: we need to evaluate a lot of adversarial prompts and providers are fast to ban API access in response to adversarial-attack traffic. This is exactly what happened in our experiment on ChatGPT, consequently limiting the number of samples per model we could evaluate. We also attempted evaluation against Anthropic's Claude model family, but were unable to obtain any reportable results, as our access was immediately suspended.
As stated in Section 4.2 we generate evaluate 100 generations per prompt and follow the same evaluation setup as followed in the other experiments (Strong Reject Judge on JBB). We will add the following informations for the API call configuration for our proprietary experiment:
all other parameters were kept at their default value.
[1] Closing the Distribution Gap in Adversarial Training for LLMs (2026)
[2] Black-box, Adaptive, Efficient, Transferable, Harmful, Applicable... Attacks Are All You Need to Break LLMs (2026)