{"id": "http://arxiv.org/abs/2606.29275v1", "title": "Adaptive Block Diffusion: Resolving Training-Inference Mismatch in Diffusion Language Models", "abstract": "Diffusion Language Models (DLMs) are typically trained under fixed context structures, restricting denoising to predetermined token subsets. This creates a mismatch between training and inference, where models must operate over arbitrary configurations, leading to degradation off the training grid. We propose Adaptive Block Diffusion (ABD), which resolves this mismatch by optimizing denoising risk over a distribution of prefix-window configurations. By treating the configuration as a stochastic variable, ABD trains a single model over the full configuration space without architectural changes. We show that generalization across decoding strategies is governed by the support of the training distribution, and that ABD guarantees denoising optimality for any inference policy whose configurations are covered during training. Empirically, ABD exhibits structural invariance across decoding scales, avoiding off-grid collapse and recovering a monotonic relationship between block size and perplexity, while matching or outperforming fixed-block specialists at their target scales.", "published_at": "2026-06-28T08:45:00+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2606.29275v1", "source_hash": "dc3694f6cee1742813582d2b9feefbc808a160e94a670d3886c25ddc926dfa62", "source_version": "v1", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": [], "code_url": null, "has_code": false, "indexable": true, "authors": [], "related_ids": [], "related_work": {"version": "related-work-v1", "status": "not_assessed", "reason": "missing_context", "items": []}, "review": null, "explanations": {}, "full_article_summary": {"format": "research_guide_v14", "analysis_scope": "full_article_map_reduce", "source_hash": "dc3694f6cee1742813582d2b9feefbc808a160e94a670d3886c25ddc926dfa62", "source_url": "https://arxiv.org/abs/2606.29275v1", "source_version": "v1", "revision_id": "36688b9a7183e5c8e3c53d634122ba05893ae92543a9c3ffef9713e4fffb0fc0", "canonical_text_hash": "07d8ef93b5dec21ce82167493a178bc21ea5db6f3039ee7afac2c116478bba98", "prompt_version": "full-article-research-guide-v14", "sections": {"verdict": {"ru": "ABD — убедительный способ обучить одну диффузионную языковую модель работе с разными размерами блоков: при покрытии конфигураций обучения она сохраняет параллельное декодирование и конкурентное качество специализированных моделей. Однако гарантии отсутствуют вне поддержки распределения, а выбор и взвешивание конфигураций остаются критичными.", "en": "ABD is a credible way to train one diffusion language model for multiple block sizes: when inference configurations are covered during training, it preserves parallel decoding and competitive quality with specialized models. Guarantees do not extend beyond the training-distribution support, and configuration selection and weighting remain critical."}, "main_idea": {"ru": "Вместо обучения на одном фиксированном размере блока ABD случайно выбирает длину префикса и размер окна денойзинга и обучает модель именно на этой конфигурации. Так обучение согласуется с различными режимами инференса без архитектурных изменений.", "en": "Instead of training at one fixed block size, ABD randomly samples a prefix length and denoising-window size and trains on that configuration. This aligns training with multiple inference regimes without architectural changes."}, "claims": {"ru": "Теория утверждает конфигурационно-поточечную оптимальность почти всюду по распределению обучения и перенос оптимальности на инференс при абсолютной непрерывности его распределения относительно обучающего. Эксперименты показывают более плавное качество на разных размерах блоков, конкурентность или превосходство над фиксированными специалистами в их рабочих точках и преимущество над BD3LM на 5 из 7 zero-shot бенчмарков. Превосходство над всеми базовыми методами или за пределами покрытых конфигураций не установлено.", "en": "The theory claims configuration-wise optimality almost everywhere under the training distribution and transfers optimality to inference when the inference distribution is absolutely continuous with respect to it. Experiments show smoother quality across block sizes, competitiveness with or improvement over fixed-block specialists at their operating points, and improvement over BD3LM on 5 of 7 zero-shot benchmarks. Universal superiority or performance outside covered configurations is not established."}, "mechanism": {"ru": "Состояние задаётся последовательностью токенов, разделённой случайными границами на блоки; часть токенов окна зашумлена, чистый префикс служит условием. На каждом шаге выбирается сегментация, из кумулятивных границ строятся block ID, одна сегментация транслируется на весь batch. Маска внимания для [зашумленные токены | чистые токены] разрешает внимание внутри текущего шумного блока, доступ к предыдущим чистым блокам и блочно-каузальное внимание среди чистых токенов. ABDBoundарyManager реализует это динамически через flex attention, без полной материализации маски. Объектив — интегрированный denoising risk по распределению конфигураций; детали целевой функции MDLM, расписания шума и точного семплирования не указаны в записях. Для воспроизведения: 1) выполнить MDLM-предобучение; 2) задать распределение размеров блоков; 3) выбирать сегментацию на каждом шаге; 4) построить описанную маску и обучать на sampled window; 5) проверить только конфигурации, покрытые распределением. Указанный режим: 250k шагов MDLM и 750k шагов ABD-финетюнинга, размеры {1,2,4,…,128} с вероятностями, пропорциональными 2^-k.", "en": "The state is a token sequence partitioned by random boundaries into blocks; tokens in the selected window are noised, while the clean prefix provides conditioning. At each step a segmentation is sampled, cumulative boundaries are converted to block IDs, and one segmentation is broadcast across the batch. The attention mask for [noisy tokens | clean tokens] permits attention within the current noisy block, access to earlier clean blocks, and block-causal attention among clean tokens. ABDBoundaryManager implements this dynamically with flex attention rather than materializing a full mask. The objective is integrated denoising risk over the configuration distribution; the records do not specify the exact MDLM target, noise schedule, or sampling procedure. Reproduction: 1) perform MDLM pretraining; 2) define the block-size distribution; 3) sample a segmentation each step; 4) construct the described mask and train on the sampled window; 5) evaluate only covered configurations. The stated schedule is 250k MDLM pretraining steps plus 750k ABD finetuning steps, with sizes {1,2,4,…,128} weighted proportionally to 2^-k."}, "evidence": {"ru": "Теоретическое доказательство опирается на неотрицательность интегрированного риска и преобразование Радона—Никодима. На LM1B и OpenWebText использовались согласованные архитектуры; широкая поддержка конфигураций устраняла провалы фиксированных специалистов на скользящих или адаптивных режимах. На семи zero-shot задачах ABD с BS=1 превосходил BD3LM на пяти, а BS=4 был конкурентен и улучшал результаты на научных задачах. При сопоставимой вычислительной стоимости ABD соответствовал сильнейшему фиксированному специалисту по generative perplexity. Эксперименты также показывают, что дискретные распределения превосходят сопоставимые непрерывные, а недостаточный финетюнинг малых блоков недообучает их; приведённые значения perplexity 15.3 и 25.68 относятся лишь к двум образцам при BS=4 и не являются общим сравнением.", "en": "The theoretical proof uses nonnegative integrated risk and Radon–Nikodym reweighting. On LM1B and OpenWebText, matched architectures were used; broad configuration support avoided the off-grid failures of fixed specialists under sliding or adaptive regimes. Across seven zero-shot tasks, ABD with BS=1 beat BD3LM on five, while BS=4 was competitive and improved scientific-domain results. At matched computational cost, ABD matched the strongest fixed-block specialist in generative perplexity. Experiments also indicate that discrete distributions outperform matched continuous ones and that insufficient finetuning underfits small blocks; reported perplexities of 15.3 and 25.68 concern only two BS=4 samples and are not a general comparison."}, "applicability": {"ru": "Метод полезен, когда одной модели нужны разные компромиссы между гранулярностью, параллелизмом и стоимостью декодирования, включая произвольные границы и KV-кэширование. Он особенно уместен при известном наборе рабочих конфигураций, который можно покрыть распределением обучения.", "en": "The method is useful when one model must support different tradeoffs among granularity, parallelism, and decoding cost, including arbitrary boundaries and KV caching. It is most appropriate when the expected operating configurations are known well enough to cover with the training distribution."}, "limitations": {"ru": "Конфигурации вне поддержки обучения не имеют гарантии качества. Неравномерные веса смещают качество к более частым размерам блоков, а качество покрытия влияет на результат. Не решён выбор инференсной политики; отсутствуют конечновыборочные гарантии. Записи также не дают деталей точной цели MDLM, шумового расписания и полного протокола вычислительного сравнения.", "en": "Configurations outside the training support have no quality guarantee. Uneven weights bias performance toward frequently sampled block sizes, and coverage quality affects results. Inference-policy selection remains unresolved, and finite-sample guarantees are absent. The records also omit the exact MDLM objective, noise schedule, and a complete protocol for computational comparison."}, "next_action": {"ru": "Провести контролируемую проверку покрытия конфигураций: 1) обучить одинаковую базовую модель с фиксированным бюджетом; 2) сравнить равномерное, экспоненциальное и lognormal-распределения; 3) измерить perplexity и скорость на всех размерах блоков, включая невиданные; 4) проверить влияние доли ABD-финетюнинга; 5) выбрать распределение по наилучшему Pareto-компромиссу.", "en": "Run a controlled configuration-coverage study: 1) train the same baseline model under a fixed budget; 2) compare uniform, exponential, and lognormal distributions; 3) measure perplexity and speed across all block sizes, including unseen ones; 4) test the effect of ABD finetuning proportion; 5) select the distribution using the best quality–granularity Pareto tradeoff."}}, "source_coverage": {"canonical_text_hash": "07d8ef93b5dec21ce82167493a178bc21ea5db6f3039ee7afac2c116478bba98", "covered_chunks": 6, "map_input_digest": "7717ecb2e1abb2d80fe2e5f10731b9f171ee1c66d0f91fa239fc4774b5072b0a", "prompt_version": "full-article-research-guide-v14", "revision_id": "36688b9a7183e5c8e3c53d634122ba05893ae92543a9c3ffef9713e4fffb0fc0", "total_chunks": 6}}, "resources": {"version": "paper-resources-v1", "source_hash": "dc3694f6cee1742813582d2b9feefbc808a160e94a670d3886c25ddc926dfa62", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"origin": "source_excerpt", "evidence": "iscourse-aware attention model for abstractive summa-\nrization of long documents, 2018. URL https://arxiv.org/abs/1804.05685.\n\nPrafulla Dhariwal and Alex Nichol. Diffusion models beat gans on image synthesis, 2021.\nURL https://arxiv.org/abs/2105.05233.\n\nAaron Gokaslan and Vanya Cohen. Openwebtext corpus. http://Skylion007.github.io/\nOpenWebTextCorpus, 2019.\n\nXiaochuang Han, Sachin Kumar, and Yulia Tsvetkov. Ssd-lm: Semi-autoregressive simplex-\nbased diffusion language model for text generation and modular control, 2023. URL\nhttps://arxiv.org/abs/2210.17432.\n\nJonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilisti", "url": "http://Skylion007.github.io/", "kind": "project", "span": [34800, 35440], "evidence_hash": "29977f29712e55faf4eb9f7a8d45a6d5f7bd000a72bdc7c90ca1db026c050fd7"}]}, "slug": "2606.29275-adaptive-block-diffusion-resolving-training-inference-mismatch-in-diffusion-language-models"}