{"id": "http://arxiv.org/abs/2606.23567v1", "title": "Scheduling Thoughts: Learning the Order of Thought in Diffusion Language Models", "abstract": "Masked diffusion language models decode by iteratively unmasking tokens, where the unmasking order defines an \"order of thought\" that strongly influences generation quality yet is typically chosen heuristically. We derive a tractable upper bound on the sequential decoding mismatch, measured by the Kullback-Leibler divergence and expressed in terms of the model's pathwise log-likelihood, with tightness under sufficient model expressivity. This bound induces a dense self-aware reward over ordered trajectories, casting order selection as a principled policy optimization problem with a frozen denoiser. We instantiate this idea as Self-Aware Scheduling (SAS), which learns a lightweight order policy using Group Relative Policy Optimization and applies seamlessly to both any-order and semi-autoregressive decoding. On Sudoku with 1B MDM, SAS improves puzzle accuracy from 82.0% (best heuristic schedule) to 91.8%, and reaches 97.5% with second-stage fine-tuning along learned trajectories. On mathematical reasoning with LLaDA-8B, SAS improves pass@1 on GSM8K from 64% to 76% and on MBPP from 39.5% to 41%, consistently matching or exceeding heuristic schedules across generation lengths and block sizes. Project page: https://jimmyxu123.github.io/SAS", "published_at": "2026-06-22T16:32:25+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2606.23567v1", "source_hash": "c35426685da1e75f174d039b31122d773941422f533bf477432f9eaac41862e1", "source_version": "v1", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["discrete-diffusion", "reasoning", "post-training"], "code_url": null, "has_code": false, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.04531v1", "http://arxiv.org/abs/2609.04010v1", "http://arxiv.org/abs/2609.00495v1"], "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": "c35426685da1e75f174d039b31122d773941422f533bf477432f9eaac41862e1", "source_url": "https://arxiv.org/abs/2606.23567v1", "source_version": "v1", "revision_id": "086aa14ec359ee98460b6bf35404da2602b95d6424033cccbdf378e7b10bacb0", "canonical_text_hash": "9218828bfd76f7cfea0c6159034679fa13a0d3846b01a201cae7fd5298f59598", "prompt_version": "full-article-research-guide-v14", "sections": {"verdict": {"ru": "SAS убедительно показывает, что порядок размаскировки можно обучать как задачу управления генерацией: на ряде задач он превосходит эвристики, но преимущество зависит от режима декодирования и условий сравнения.", "en": "SAS provides convincing evidence that the unmasking order can be learned as a generation-control problem: it outperforms heuristics on several tasks, but the advantage depends on the decoding regime and comparison conditions."}, "main_idea": {"ru": "Метод обучает модельный, «самоосведомлённый» порядок раскрытия токенов для замороженной masked-diffusion-модели. Вместо локального выбора наиболее уверенной позиции политика учитывает долгосрочный эффект порядка на правдоподобие всей траектории.", "en": "The method learns a model-aware, self-aware token-reveal order for a frozen masked-diffusion model. Instead of locally selecting the most confident position, the policy accounts for the order’s long-horizon effect on the likelihood of the entire trajectory."}, "claims": {"ru": "SAS применим к последовательному и полуавторегрессионному блочному декодированию. На Sudoku с SMDM-1B точность выросла с 82,0% у лучшей эвристики до 91,8%, а после фиксированного дообучения — до 97,5%. На LLaDA-8B GSM8K вырос с 64% до 76%, MBPP — с 39,5% до 41%. Политики, перенесённые между математикой и кодом, превосходят сильнейшие эвристики в проверенных настройках.", "en": "SAS applies to sequential and semi-autoregressive block decoding. On Sudoku with SMDM-1B, accuracy rises from 82.0% for the best heuristic to 91.8%, and to 97.5% after fixed-order fine-tuning. On LLaDA-8B, GSM8K improves from 64% to 76% and MBPP from 39.5% to 41%. Policies transferred between math and code outperform the strongest heuristics in the tested settings."}, "mechanism": {"ru": "Состояние содержит detached признаки по позициям: top-1 probability, entropy, normalized position и состояние раскрытия; также возможен вариант на скрытых состояниях. Небольшой Transformer-энкодер со self-attention выдаёт оценки позиций. Маска действий исключает padding, prompt и уже раскрытые токены, присваивая им −∞. На каждом шаге categorical masked-softmax policy выбирает одну позицию или блок; последовательный режим раскрывает один токен, блочный — несколько токенов под общим контекстом.\n\nЗамороженный denoiser оценивает выбранную teacher-forced траекторию: Rθ(x,σ)=log pθ(x|σ), то есть сумму token log-likelihoods по пути. GRPO оптимизирует group-normalized cumulative returns, не изменяя diffusion backbone. Для детерминированных задач parallel reward эквивалентен отрицательному KL к teacher-forced пути; self-aware loss связывается с joint KL и верхней границей marginal mismatch. Политика вызывается один раз за diffusion step и не требует retraining backbone.\n\nВоспроизведение: (1) зафиксировать masked diffusion-модель и построить valid-action mask; (2) извлечь признаки по каждой позиции; (3) обучать небольшую order-policy семплированием траекторий; (4) вычислять teacher-forced path likelihood замороженного denoiser; (5) обновлять policy через GRPO; (6) оценить отдельно sequential и blockwise decoding, затем при необходимости дообучить diffusion-модель на фиксированных траекториях.", "en": "The state contains detached per-position features: top-1 probability, entropy, normalized position, and reveal state; a hidden-state variant is also possible. A small Transformer encoder with self-attention scores positions. Action masking excludes padding, prompt, and already revealed tokens by assigning them −∞. At each step, a masked-softmax categorical policy selects one position or a block; sequential decoding reveals one token, while block decoding reveals several tokens under a shared context.\n\nThe frozen denoiser evaluates the selected teacher-forced trajectory: Rθ(x,σ)=log pθ(x|σ), the sum of token log-likelihoods along the path. GRPO optimizes group-normalized cumulative returns without changing the diffusion backbone. For deterministic tasks, the parallel reward equals the negative KL to the teacher-forced path; the self-aware loss is connected to joint KL and an upper bound on marginal mismatch. The policy is queried once per diffusion step and requires no backbone retraining.\n\nReproduction: (1) freeze a masked diffusion model and construct the valid-action mask; (2) extract per-position features; (3) train a small order policy by sampling trajectories; (4) compute the frozen denoiser’s teacher-forced path likelihood; (5) update the policy with GRPO; (6) evaluate sequential and blockwise decoding separately, then optionally fine-tune the diffusion model on fixed learned trajectories."}, "evidence": {"ru": "Авторы сообщают улучшения на Sudoku, GSM8K, MBPP и IFEval, включая 0,5633 на IFEval против 0,5067–0,5267 у эвристик и 1,67% дополнительного времени декодирования на GSM8K. Sudoku-политика следует стратегии easy-to-hard и лучше согласуется с человеческим порядком, хотя не совпадает с ним полностью. Dense self-aware reward обычно не хуже и часто лучше terminal 0/1 reward. Теоретически величина ошибки блочного декодирования выражается через within-block conditional total correlation. Однако сравнения с предыдущими методами не полностью контролируемы, а превосходство не установлено для всех длин, размеров блоков и режимов.", "en": "The authors report improvements on Sudoku, GSM8K, MBPP, and IFEval, including 0.5633 on IFEval versus 0.5067–0.5267 for heuristics and 1.67% additional GSM8K decoding time. The Sudoku policy follows an easy-to-hard strategy and agrees more closely with human ordering, though not perfectly. The dense self-aware reward is generally comparable to and often better than a terminal 0/1 reward. Theoretically, block-decoding error is expressed through within-block conditional total correlation. However, comparisons with prior methods are not fully controlled, and superiority is not established for every length, block size, or decoding regime."}, "applicability": {"ru": "Метод особенно полезен для masked diffusion language models, где качество зависит от порядка раскрытия: структурированные задачи, математическое рассуждение, код и длинные генерации. Он совместим с замороженными backbone и может обучать различные стратегии выбора позиций или блоков без retraining модели. Перенос между математикой и кодом поддержан экспериментами, но требует проверки для нового denoiser и задачи.", "en": "The method is most useful for masked diffusion language models whose quality depends on reveal order: structured tasks, mathematical reasoning, code, and long generations. It can attach to compatible frozen backbones and train either position- or block-selection strategies without retraining the model. Transfer between math and code is supported experimentally, but new denoisers and tasks require validation."}, "limitations": {"ru": "Обучение использует teacher forcing, тогда как инференс является free-running, поэтому существует distribution mismatch. Политика обычно обучается под конкретную задачу; характеристики переноса исследованы ограниченно. Обучение требует дополнительного compute, а инференс имеет ненулевой overhead. Последовательно обученная политика не оптимизирует напрямую parallel top-k decoding, из-за чего возможны task- и block-dependent падения. Для блочного режима внутри блока предполагается условная независимость, а размер соответствующей ошибки зависит от conditional dependence.", "en": "Training uses teacher forcing while inference is free-running, creating a distribution mismatch. The policy is generally trained per task, and transfer is only partially characterized. Training adds compute, and inference has nonzero overhead. A policy trained sequentially does not directly optimize parallel top-k decoding, causing task- and block-dependent drops. Block decoding assumes conditional independence within a block, and the resulting error depends on within-block conditional dependence."}, "next_action": {"ru": "Провести контролируемый эксперимент на одном frozen denoiser с одинаковым бюджетом вычислений: сравнить heuristic, SAS sequential и SAS blockwise policies на нескольких длинах и размерах блоков; затем измерить качество, wall-clock time и gap между teacher-forced и free-running режимами.", "en": "Run a controlled experiment on one frozen denoiser with matched compute: compare heuristic, SAS sequential, and SAS blockwise policies across several lengths and block sizes; then measure quality, wall-clock time, and the gap between teacher-forced and free-running conditions."}}, "source_coverage": {"canonical_text_hash": "9218828bfd76f7cfea0c6159034679fa13a0d3846b01a201cae7fd5298f59598", "covered_chunks": 9, "map_input_digest": "94b2169fc369d1940d04c56f5698e16e3253205828c62321103a55be7a576d6a", "prompt_version": "full-article-research-guide-v14", "revision_id": "086aa14ec359ee98460b6bf35404da2602b95d6424033cccbdf378e7b10bacb0", "total_chunks": 9}}, "resources": {"version": "paper-resources-v1", "source_hash": "c35426685da1e75f174d039b31122d773941422f533bf477432f9eaac41862e1", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"origin": "source_excerpt", "evidence": "d reaches 97.5% with second- stage fine-tuning along learned trajectories. On mathematical reasoning with LLaDA-8B, SAS improves pass@1 on GSM8K from 64% to 76% and on MBPP from 39.5% to 41%, consistently matching or exceeding heuristic schedules across generation lengths and block sizes. Project page: https://jimmyxu123.github.io/SAS.\n\n### 1. Introduction\n\nDiffusion decoding has a hidden degree of freedom:\nthe order of thought. Masked diffusion language mod-\nels (Austin et al., 2021; Lou et al., 2023; Hoogeboom et al.,\n2021b; Shi et al., 2024) generate discrete sequences by itera-\ntively unmasking tokens, offering a flexible altern", "url": "https://jimmyxu123.github.io/SAS", "kind": "project", "span": [1120, 1760], "evidence_hash": "b9e1214d5e6b31f495ff329c2a96cfe3c407214151ce089e9d4c991f5eb52728"}]}, "slug": "2606.23567-scheduling-thoughts-learning-the-order-of-thought-in-diffusion-language-models"}