{"id": "http://arxiv.org/abs/2509.23286v1", "title": "A2D: Any-Order, Any-Step Safety Alignment for Diffusion Language Models", "abstract": "Diffusion large language models (dLLMs) enable any-order generation, but this flexibility enlarges the attack surface: harmful spans may appear at arbitrary positions, and template-based prefilling attacks such as DIJA bypass response-level refusals. We introduce A2D (Any-Order, Any-Step Defense), a token-level alignment method that aligns dLLMs to emit an [EOS] refusal signal whenever harmful content arises. By aligning safety directly at the token-level under randomized masking, A2D achieves robustness to both any-decoding-order and any-step prefilling attacks under various conditions. It also enables real-time monitoring: dLLMs may begin a response but automatically terminate if unsafe continuation emerges. On safety benchmarks, A2D consistently prevents the generation of harmful outputs, slashing DIJA success rates from over 80% to near-zero (1.3% on LLaDA-8B-Instruct, 0.0% on Dream-v0-Instruct-7B), and thresholded [EOS] probabilities allow early rejection, yielding up to 19.3x faster safe termination.", "published_at": "2025-09-27T12:54:59+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2509.23286v1", "source_hash": "de544b2c6d0383be4e03f0cbb2f5349ab08b9efad4031321ef02861994ebfd4c", "source_version": "v1", "full_text_available": false, "evidence_kind": "abstract", "analysis_scope": "abstract_or_excerpt", "scope": "core", "topics": ["discrete-diffusion"], "code_url": null, "has_code": false, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.12382v1", "http://arxiv.org/abs/2609.11315v1", "http://arxiv.org/abs/2609.09748v1"], "related_work": {"version": "related-work-v1", "status": "not_assessed", "reason": "missing_context", "items": []}, "review": null, "full_text_brief": null, "explanations": {}, "resources": {"version": "paper-resources-v1", "source_hash": "de544b2c6d0383be4e03f0cbb2f5349ab08b9efad4031321ef02861994ebfd4c", "evidence_kind": "abstract", "availability": "not_checked", "limited": false, "items": []}, "slug": "2509.23286-a2d-any-order-any-step-safety-alignment-for-diffusion-language-models"}