{"id": "http://arxiv.org/abs/2607.25157v1", "title": "PreDiff-LM: Pretrained Discrete Masked Diffusion Language Modeling with Hybrid Attention", "abstract": "Discrete masked diffusion language models support bidirectional generation and infilling, but adapting pretrained autoregressive (AR) transformers requires reconciling causal pretraining with bidirectional denoising. We study this problem at the level of attention rather than claiming AR-weight reuse itself as novel. PreDiff-LM preserves causal attention within the observed prompt while allowing full bidirectional attention within the masked target. Under a matched GPT-2 Medium, WikiText-103, 90K-step setup, this hybrid mask improves unconditional perplexity from 34.1 to 28.7 and MAUVE from 0.71 to 0.78 over uniform bidirectional attention with the same AR initialization. Attention adaptation also composes with a DiffuGPT-style objective adaptation, reaching 26.9 perplexity. Pretrained initialization reduces the steps required to reach perplexity below 50 from about 350K to 8K, although a compute-matched fine-tuned AR model remains stronger at equal scale (18.9 versus 28.7). Beyond perplexity, PreDiff-LM improves repetition, distributional quality, four zero-shot downstream tasks, and human preference over prior diffusion baselines. The results position hybrid attention as a complementary mechanism for adapting pretrained causal backbones, while making explicit the remaining quality and inference-efficiency gaps to optimized AR models.", "published_at": "2026-07-28T00:05:43+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2607.25157v1", "source_hash": "bdc0a6dda7e90bcb7839e6f603d07ca42c95076395bfc801e9954d05619b17a5", "source_version": "v1", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["discrete-diffusion"], "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": "bdc0a6dda7e90bcb7839e6f603d07ca42c95076395bfc801e9954d05619b17a5", "source_url": "https://arxiv.org/abs/2607.25157v1", "source_version": "v1", "revision_id": "70ecab21274a5b40c848ddeb9cfa4ef98aabca8db79bcb8380ce0457911501f8", "canonical_text_hash": "e735d3eabe1063089422b14608100243e0b5554341b7b3a0127a4ac4a6db3d2a", "prompt_version": "full-article-research-guide-v14", "sections": {"verdict": {"ru": "Убедительный способ адаптировать причинные трансформеры к masked diffusion LM: он заметно превосходит diffusion-базовые методы, ускоряет обучение и поддерживает инфиллинг и управление, но не достигает качества matched autoregressive моделей, а часть преимуществ зависит от данных и условий оценки.", "en": "A compelling way to adapt causal transformers into masked diffusion LMs: it clearly improves over diffusion baselines, accelerates training, and supports infilling and control, but does not match autoregressive models under matched conditions, and some gains depend on data and evaluation settings."}, "main_idea": {"ru": "PreDiff-LM сохраняет причинное вычисление представления prompt, но разрешает двунаправленное внимание между target-токенами при итеративном denoising. К этому добавлены self-conditioning, conditioning по уровню маскирования и confidence-aware unmasking.", "en": "PreDiff-LM preserves causal computation for the prompt while allowing bidirectional attention among target tokens during iterative denoising. It adds self-conditioning, mask-rate conditioning, and confidence-aware unmasking."}, "claims": {"ru": "Основные заявленные изменения относительно diffusion LM: hybrid attention повышает качество, self-conditioning существенно помогает, easy-first unmasking улучшает генерацию и управление, а pretrained initialization резко сокращает время достижения рабочего качества. На matched GPT-2 Medium hybrid attention даёт 28.7 PPL против 34.1 у uniform-attention контроля; совместно с adaptation objective — 26.9. При этом fine-tuned AR остаётся сильнее: 18.9 PPL.", "en": "The main claimed changes over diffusion LMs are that hybrid attention improves quality, self-conditioning is important, easy-first unmasking improves generation and control, and pretrained initialization sharply reduces time to useful quality. On matched GPT-2 Medium, hybrid attention gives 28.7 PPL versus 34.1 for the uniform-attention control; combining it with objective adaptation gives 26.9. Fine-tuned AR remains stronger at 18.9 PPL."}, "mechanism": {"ru": "Состояние: токены prompt, частично замаскированные target-токены и уровень маскирования. Архитектура: причинная attention-маска для prompt; prompt и target взаимодействуют, а target-токены взаимно видят друг друга; добавляются проекции mask-token, sinusoidal time и self-conditioning, примерно 9M параметров для GPT-2 Medium, с tied LM head. Обучение: модель получает masked sequence и mask-rate conditioning; preliminary soft prediction после проекции подаётся в refined pass. Инференс: по cosine schedule вычисляются вероятности, затем первыми раскрываются позиции с наибольшей максимальной token probability; число раскрываемых токенов увеличивается по шагам. Для контроля применяется gradient-guided denoising. Воспроизведение: (1) взять pretrained causal transformer; (2) добавить специальные проекции и hybrid mask; (3) обучать diffusion objective с self-conditioning и mask-rate conditioning; (4) использовать cosine schedule; (5) выполнять confidence-ranked iterative unmasking; (6) оценить PPL, MAUVE, infilling и control при matched условиях. Точные hyperparameters, полная формула objective и детали gradient guidance в записях не указаны.", "en": "State: prompt tokens, partially masked target tokens, and mask rate. Architecture: causal attention for the prompt; prompt and target interact, while target tokens attend bidirectionally to one another; add mask-token, sinusoidal-time, and self-conditioning projections, about 9M parameters for GPT-2 Medium, with a tied LM head. Training: feed a masked sequence with mask-rate conditioning; project a preliminary soft prediction into a refined pass. Inference: compute probabilities under a cosine schedule, then first unmask positions with the highest maximum token probability, increasing the number unmasked per step. Gradient-guided denoising provides control. Reproduction: (1) start from a pretrained causal transformer; (2) add the projections and hybrid mask; (3) train with the diffusion objective, self-conditioning, and mask-rate conditioning; (4) use the cosine schedule; (5) perform confidence-ranked iterative unmasking; (6) evaluate PPL, MAUVE, infilling, and control under matched conditions. Exact hyperparameters, the full objective formula, and gradient-guidance details are absent from the records."}, "evidence": {"ru": "Наблюдаемые результаты: на GPT-2 Medium hybrid attention даёт 28.7 PPL и 0.78 MAUVE против 34.1 и 0.71 у uniform-attention контроля; удаление self-conditioning повышает unconditional PPL на 32.1 пункта. Pretrained initialization достигает PPL ниже 50 примерно за 8K шагов против 350K у MDLM, а ниже 30 — за 45K шагов и около 24 GPU-hours. На Llama-3.2 сообщены 16.2 PPL при 1B и 9.8 при 3B, но matched AR-контроли отсутствуют. Для 50% contiguous-gap infilling получены 14.8 BLEU-4 и 81.2 BERTScore; gradient-guided control превзошёл заявленный AR+PPLM контроль на четырёх задачах. В zero-shot и benchmark-сравнениях метод превосходит diffusion baselines; смесь WikiText-103 + OpenWebText 1:1 даёт средний PPL 48.2 против 67.7 у MDLM и 73.2 у SEDD. Независимый аудит из 40 пар предпочёл метод MDLM в 66.7% случаев, κ=0.68. Превосходство над matched AR, перенос обучения с нуля и универсальная latency-выгода не установлены.", "en": "Observed results: on GPT-2 Medium, hybrid attention gives 28.7 PPL and 0.78 MAUVE versus 34.1 and 0.71 for the uniform-attention control; removing self-conditioning raises unconditional PPL by 32.1 points. Pretrained initialization reaches PPL below 50 in about 8K steps versus 350K for MDLM, and below 30 in 45K steps using about 24 GPU-hours. Llama-3.2 results report 16.2 PPL at 1B and 9.8 at 3B, but matched AR controls are absent. For 50% contiguous-gap infilling, results are 14.8 BLEU-4 and 81.2 BERTScore; gradient-guided control beats the reported AR+PPLM control on four tasks. In zero-shot and benchmark comparisons, the method beats diffusion baselines; a 1:1 WikiText-103 + OpenWebText mixture gives average PPL 48.2 versus 67.7 for MDLM and 73.2 for SEDD. An independent 40-pair audit preferred the method over MDLM in 66.7% of cases, with κ=0.68. Superiority over matched AR, from-scratch transfer, and universal latency benefits are not established."}, "applicability": {"ru": "Метод особенно полезен для pretrained causal backbones, когда нужны infilling, controllable generation или быстрый переход к рабочему diffusion quality. Поддержаны GPT-2 и Llama-3.2, текстовые benchmarks и multi-domain mixtures; качество лучше при добавлении OpenWebText и ухудшается при росте длины или domain distance.", "en": "The method is most useful with pretrained causal backbones when infilling, controllable generation, or rapid convergence to usable diffusion quality is needed. It is supported on GPT-2 and Llama-3.2, text benchmarks, and multi-domain mixtures; quality improves with added OpenWebText and degrades with longer sequences or greater domain distance."}, "limitations": {"ru": "Matched fine-tuned AR остаётся сильнее по PPL и benchmark quality. 32-step diffusion медленнее оптимизированного AR; latency зависит от hardware и числа шагов. Длинные генерации могут зацикливаться, WikiText-only обучение даёт невалидный код, а hybrid mask не проверен для моделей, обучаемых с нуля. Llama-результаты без matched AR-контролей и небольшой human audit ограничивают силу обобщения.", "en": "Matched fine-tuned AR remains stronger in PPL and benchmark quality. Thirty-two-step diffusion is slower than optimized AR, and latency depends on hardware and step count. Long generations can loop, WikiText-only training produces invalid code, and the hybrid mask is untested for models trained from scratch. Llama results without matched AR controls and the small human audit limit generalization."}, "next_action": {"ru": "Провести matched-scale эксперимент на одной backbone и смешанном корпусе: (1) обучить uniform-attention diffusion control, hybrid PreDiff-LM и fine-tuned AR; (2) зафиксировать данные, compute budget и число inference steps; (3) измерить PPL, MAUVE, infilling и latency при нескольких длинах; (4) отдельно аблировать self-conditioning и confidence-aware unmasking; (5) проверить повторяемость длинных генераций и code-domain failure.", "en": "Run a matched-scale experiment on one backbone and a mixed corpus: (1) train a uniform-attention diffusion control, hybrid PreDiff-LM, and fine-tuned AR; (2) fix data, compute budget, and inference steps; (3) measure PPL, MAUVE, infilling, and latency at multiple lengths; (4) ablate self-conditioning and confidence-aware unmasking separately; (5) test long-generation looping and code-domain failures."}}, "source_coverage": {"canonical_text_hash": "e735d3eabe1063089422b14608100243e0b5554341b7b3a0127a4ac4a6db3d2a", "covered_chunks": 5, "map_input_digest": "bd8d48ba6658f2cbdd7d9fce150c37cd1093afae21b582bb6436489d876f7f63", "prompt_version": "full-article-research-guide-v14", "revision_id": "70ecab21274a5b40c848ddeb9cfa4ef98aabca8db79bcb8380ce0457911501f8", "total_chunks": 5}}, "resources": {"version": "paper-resources-v1", "source_hash": "bdc0a6dda7e90bcb7839e6f603d07ca42c95076395bfc801e9954d05619b17a5", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": []}, "slug": "2607.25157-prediff-lm-pretrained-discrete-masked-diffusion-language-modeling-with-hybrid-attention"}