{"id": "http://arxiv.org/abs/2601.22527v2", "title": "$ρ$-$\\texttt{EOS}$: Training-free Bidirectional Variable-Length Control for Masked Diffusion LLMs", "abstract": "Beyond parallel generation and global context modeling, current masked diffusion large language models (masked dLLMs, i.e., LLaDA) suffer from a fundamental limitation: they require a predefined, fixed generation length, which lacks flexibility and forces an inevitable trade-off between output quality and computational efficiency. To address this, we study the denoising dynamics and find that the implicit density ($ρ$) of end-of-sequence ($\\texttt{EOS}$) tokens serves as a reliable signal of generation sufficiency. In particular, the evolving implicit $\\texttt{EOS}$ density during denoising reveals whether the current masked space is excessive or insufficient, thereby guiding the adjustment direction for generation length. Building on this insight, we propose $\\textbf{$ρ$-$\\texttt{EOS}$}$, a training-free, single-stage strategy that enables bidirectional variable-length generation for masked dLLMs. Unlike prior two-stage approaches--which require separate length adjustment and iterative mask insertion phases while supporting only unidirectional expansion--$\\textbf{$ρ$-$\\texttt{EOS}$}$ achieves bidirectional length adjustment within a unified denoising process by continuously estimating the implicit $\\texttt{EOS}$ density: excessively high density triggers $\\texttt{MASK}$ token contraction, while insufficient density induces expansion. Extensive experiments on mathematics and code benchmarks demonstrate that $\\textbf{$ρ$-$\\texttt{EOS}$}$ achieves comparable performance while substantially improving inference efficiency and token utilization. Code is available at https://github.com/yjyddq/rho-EOS.", "published_at": "2026-01-30T04:00:04+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2601.22527v2", "source_hash": "b786b01500a9576ec255e4ed0fe7447b8c9c5de2169a898d198afd5f24a3f207", "source_version": "v2", "full_text_available": false, "evidence_kind": "abstract", "analysis_scope": "abstract_or_excerpt", "scope": "core", "topics": ["discrete-diffusion"], "code_url": "https://github.com/yjyddq/rho-EOS", "has_code": true, "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": "b786b01500a9576ec255e4ed0fe7447b8c9c5de2169a898d198afd5f24a3f207", "evidence_kind": "abstract", "availability": "not_checked", "limited": false, "items": [{"metadata_field": "code_url", "origin": "metadata", "evidence": "https://github.com/yjyddq/rho-EOS", "url": "https://github.com/yjyddq/rho-EOS", "kind": "code", "evidence_hash": "19e0ba73f9b3d477a3d3646ff0b62719fdfbd2b810e7b8abf2d607ab5c5c688a"}]}, "slug": "2601.22527-texttt-eos-training-free-bidirectional-variable-length-control-for-masked-diffusion-llms"}