{"id": "http://arxiv.org/abs/2603.06123v1", "title": "Diffusion Language Models Are Natively Length-Aware", "abstract": "Unlike autoregressive language models, which terminate variable-length generation upon predicting an End-of-Sequence (EoS) token, Diffusion Language Models (DLMs) operate over a fixed maximum-length context window for a predetermined number of denoising steps. However, this process is independent of the required response length, resulting in computational waste for the majority of short responses common in reasoning and chat tasks. To address this problem, we conjecture that the latent prompt representation contains sufficient information to estimate the required output length. We provide empirical evidence for this phenomenon and propose a zero-shot mechanism to dynamically crop the context window before generation begins, leading to fewer diffusion steps and substantial computational savings. We evaluate our approach on four benchmarks with diverse tasks -- GSM8K (reasoning), HumanEval (code generation), IfEval (instruction following), and LongFormQA (question answering) -- revealing massive efficiency gains at minimal performance impact. We report significant reductions in FLOPs across all tasks, with no statistically significant performance degradation, and significant performance improvements in 2 out of 4 tasks.", "published_at": "2026-03-06T10:30:13+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2603.06123v1", "source_hash": "2c86880ae8d0a9bd49193f96564292b14d819ee4c671f11d78336a7ef1311b38", "source_version": "v1", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["reasoning", "code-generation"], "code_url": "https://github.com/VittorioRossi/smartcrop", "has_code": true, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.13060v1", "http://arxiv.org/abs/2608.30922v1", "http://arxiv.org/abs/2608.12932v1"], "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": "2c86880ae8d0a9bd49193f96564292b14d819ee4c671f11d78336a7ef1311b38", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"origin": "source_excerpt", "evidence": "ng-\nefficiency methods that reduce per-sample cost but keep Lc\nfixed, (iv) diffusion-specific variable-length decoding that\nadapts length during or via retraining, and (v) length pre-\ndiction ideas in other non-autoregressive LMs that motivate\nextracting termination signals from internal states.\n\n1https://github.com/VittorioRossi/smartcrop\n\nDiffusion Models for Text.\nDiffusion models originate\nfrom non-equilibrium thermodynamics and were first devel-\noped for continuous data (Sohl-Dickstein et al., 2015; Ho\net al., 2020). Several works adapt diffusion to discrete text.\nStructured Denoising Diffusion Models in Discrete State-\nSpaces ", "url": "https://github.com/VittorioRossi/smartcrop", "kind": "code", "span": [6342, 6982], "evidence_hash": "932bae2b4f7ac342ffdc24cda29d88e5be92f4c9bb9f79959890bb3655c725bf"}]}, "slug": "2603.06123-diffusion-language-models-are-natively-length-aware"}