{"id": "http://arxiv.org/abs/2606.04535v1", "title": "Dynamic Infilling Anchors for Format-Constrained Generation in Diffusion Large Language Models", "abstract": "Diffusion large language models (dLLMs) offer bidirectional attention and parallel generation, enabling them to exploit global context and naturally support format-constrained tasks like parseable JSON or reasoning templates. While straightforward fixed anchors can enforce such constraints, they often impose rigid spans, leading to truncated reasoning or redundant content. To overcome this, we propose Dynamic Infilling Anchors (DIA), a training-free method that dynamically estimates end-anchor positions to adjust generation length before iterative infilling. This flexible mechanism ensures structural correctness and semantic coherence, avoiding the inefficiencies of fixed-span methods. Experiments on reasoning benchmarks demonstrate that DIA substantially improves format compliance and answer accuracy, achieving significant zero-shot gains on GSM8K and MATH. These results establish DIA as a robust pathway toward reliable, structure-aware generation.", "published_at": "2026-06-03T07:18:23+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2606.04535v1", "source_hash": "cd9eec23602648bdcb6c963bb70ae4dd192982de2b66a99e7d308f384d3a83fc", "source_version": "v1", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["reasoning", "controllability"], "code_url": "https://github.com/Westlake-AGI-Lab/DIA", "has_code": true, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.13060v1", "http://arxiv.org/abs/2609.11315v1", "http://arxiv.org/abs/2609.04010v1"], "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": "cd9eec23602648bdcb6c963bb70ae4dd192982de2b66a99e7d308f384d3a83fc", "source_url": "https://arxiv.org/abs/2606.04535v1", "source_version": "v1", "revision_id": "0376c3fef9dd0a2de3f1099d9d4e9fe76866e4f64d3349880e946d66c66db0a9", "canonical_text_hash": "93e65674f1fe99e764c6c1458ab16f5218efe69a64e5b00573e4b4628d5af171", "prompt_version": "full-article-research-guide-v14", "sections": {"verdict": {"ru": "DIA — перспективный training-free метод для форматно-ограниченной генерации в diffusion LLM: он заметно повышает структурную корректность и иногда точность, но выигрыш зависит от задачи и настроек, а MATH не показывает убедительного превосходства по точности.", "en": "DIA is a promising training-free method for format-constrained generation in diffusion LLMs: it substantially improves structural correctness and sometimes accuracy, but gains depend on the task and settings, and MATH does not show convincing accuracy superiority."}, "main_idea": {"ru": "Метод Dynamic Infilling Anchors сначала динамически планирует границы ответа с помощью предсказания конечных якорей, а затем заполняет содержимое между зафиксированными якорями.", "en": "Dynamic Infilling Anchors first plans response boundaries dynamically by predicting end anchors, then infills content between the fixed anchors."}, "claims": {"ru": "DIA повышает форматную корректность на GSM8K с 58,83% до 72,63% и точность с 14,86% до 46,78% относительно infilling-базиса; на MATH форматная корректность возрастает с 29,10% до 76,82%, но точность составляет 20,08% против 21,52%. В других настройках сообщаются 47,54% точности и 59,67% форматной корректности на GSM8K, а также 20,20% и 75,62% на MATH. На Wikibio доля валидного JSON — 79,84%, при этом 0,15% валидных образцов содержат галлюцинированный контент.", "en": "DIA raises GSM8K format correctness from 58.83% to 72.63% and accuracy from 14.86% to 46.78% versus an infilling baseline; on MATH, format correctness rises from 29.10% to 76.82%, while accuracy is 20.08% versus 21.52%. Under other reported settings, GSM8K reaches 47.54% accuracy and 59.67% format adherence, while MATH reaches 20.20% and 75.62%. On Wikibio, valid JSON reaches 79.84%, with hallucinated content in 0.15% of valid samples."}, "mechanism": {"ru": "Представление: замаскированный ответ разбивается на блоки, ограниченные семантическими якорями; якоря фиксируют роли и границы частей ответа. Архитектура состоит из двух стадий: (1) одношаговое предсказание конечного якоря для каждого блока; блок динамически расширяется на Δ=4 токена, пока якорь или частичный якорь не появится с уверенностью выше порога C либо не будет достигнут лимит длины; лишние токены усекаются, конечные якоря завершаются; (2) при фиксированных границах выполняется итеративное diffusion-denoising содержимого между якорями. Порог C управляет уверенностью усечения, а Δ — расширением пространства для рассуждений; большее Δ обычно повышает точность, но снижает форматную корректность. Указаны пороги 0,065/0,05, максимум 256/512 новых токенов и 512 diffusion-шагов для GSM8K/MATH. Обучение не требуется; целевые сигналы, схема conditioning и детали sampling помимо итеративного denoising не указаны. План воспроизведения: 1) задать фиксированные якоря и маскированные блоки; 2) выполнить одношаговое предсказание конечных якорей; 3) расширять блоки на Δ до прохождения порога или лимита; 4) усечь лишнее и зафиксировать якоря; 5) выполнить 512 шагов denoising между якорями; 6) измерить формат, точность, задержку и ошибки вне якорей.", "en": "Representation: the masked response is divided into blocks bounded by semantic anchors; anchors specify the roles and boundaries of response parts. The architecture has two stages: (1) one-step end-anchor prediction for each block; the block expands by Δ=4 tokens until an anchor or partial anchor appears above confidence threshold C or a length limit is reached; redundant tokens are truncated and end anchors completed; (2) with boundaries fixed, content between anchors is iteratively diffusion-denoised. C controls truncation certainty, while Δ controls reasoning-space expansion; larger Δ generally improves accuracy but reduces format adherence. Reported settings include thresholds 0.065/0.05, maximum new lengths of 256/512 tokens, and 512 diffusion steps for GSM8K/MATH. No training is required; target signals, conditioning details, and sampling specifics beyond iterative denoising are not provided. Reproduction plan: 1) define fixed anchors and masked blocks; 2) run one-step end-anchor prediction; 3) expand blocks by Δ until the threshold or limit is reached; 4) truncate excess tokens and fix anchors; 5) run 512 denoising steps between anchors; 6) measure format, accuracy, latency, and out-of-anchor failures."}, "evidence": {"ru": "Авторы сообщают почти 100% сохранение reasoning- и answer-якорей, более низкую среднюю задержку на MATH и превосходство по форматным метрикам над Base, SFT и infilling. Абляция подтверждает необходимость обеих стадий: на GSM8K полный DIA даёт 47,54%/59,67% против 10,31%/0% у Stage 1, а на MATH — 20,20%/75,62% против 6,73%/0,84%. Однако числа различаются между настройками; превосходство по точности на MATH не установлено. Наблюдаемые сбои включают текст вне якорей, сломанные теги, незавершённые ответы, бесконечные циклы и галлюцинации.", "en": "The authors report nearly 100% retention of reasoning and answer anchors, lower average latency on MATH, and better format metrics than Base, SFT, and infilling baselines. The ablation supports the need for both stages: on GSM8K, full DIA achieves 47.54%/59.67% versus 10.31%/0% for Stage 1, and on MATH 20.20%/75.62% versus 6.73%/0.84%. However, results vary across settings, and accuracy superiority on MATH is not established. Observed failures include content outside anchors, broken tags, incomplete responses, infinite loops, and hallucinated output."}, "applicability": {"ru": "Метод полезен для diffusion LLM-задач, где важны строгие границы, JSON или структурированные рассуждения, особенно при zero-shot генерации без дополнительного обучения. Он подходит, когда роли якорей можно задать вручную и допустима дополнительная итеративная обработка.", "en": "The method is useful for diffusion LLM tasks requiring strict boundaries, JSON, or structured reasoning, especially in zero-shot generation without additional training. It fits settings where anchor roles can be specified manually and additional iterative processing is acceptable."}, "limitations": {"ru": "DIA зависит от вручную заданных якорей и confidence thresholds; динамическая корректировка длины добавляет overhead. Большая область рассуждений может ухудшать форматную корректность, а кейсы показывают риск выхода за якоря, незавершённой генерации, циклов и галлюцинаций. Обобщаемость за пределы указанных моделей, задач и настроек не подтверждена.", "en": "DIA depends on manually specified anchors and confidence thresholds; dynamic length adjustment adds overhead. More reasoning space can reduce format adherence, and case studies show risks of out-of-anchor text, incomplete generation, loops, and hallucinations. Generalization beyond the reported models, tasks, and settings is not established."}, "next_action": {"ru": "Провести контролируемое сравнение на нескольких форматах с едиными настройками: 1) зафиксировать модель, бюджет шагов и набор якорей; 2) сравнить infilling и DIA при одинаковом максимальном размере; 3) варьировать C и Δ; 4) измерить формат, точность, задержку и частоту сбоев; 5) проверить статистическую устойчивость результатов.", "en": "Run a controlled multi-format comparison with fixed settings: 1) fix the model, step budget, and anchor set; 2) compare infilling and DIA at the same maximum length; 3) vary C and Δ; 4) measure format, accuracy, latency, and failure rates; 5) test statistical robustness."}}, "source_coverage": {"canonical_text_hash": "93e65674f1fe99e764c6c1458ab16f5218efe69a64e5b00573e4b4628d5af171", "covered_chunks": 5, "map_input_digest": "d9d0a1bafa45b0d5969394a6b6c8cbae57326e8be00f19ea323379577abf30d0", "prompt_version": "full-article-research-guide-v14", "revision_id": "0376c3fef9dd0a2de3f1099d9d4e9fe76866e4f64d3349880e946d66c66db0a9", "total_chunks": 5}}, "resources": {"version": "paper-resources-v1", "source_hash": "cd9eec23602648bdcb6c963bb70ae4dd192982de2b66a99e7d308f384d3a83fc", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"origin": "source_excerpt", "evidence": " 1\n\n### Dynamic Infilling Anchors for Format-Constrained Generation in Diffusion Large Language Models\n\n### Boyan Han1 Yiwei Wang2 Yi Song3 Yujun Cai4 Chi Zhang1*\n\n1AGI Lab, Westlake University, China\n2University of California, Merced, USA\n\n3Teeni AI, China\n4The University of Queensland, Australia\n\nhttps://github.com/Westlake-AGI-Lab/DIA\n\nboyanhan02@gmail.com\n\n### Abstract\n\nDiffusion large language models (dLLMs) offer\nbidirectional attention and parallel generation,\nenabling them to exploit global context and\nnaturally support format-constrained tasks like\nparseable JSON or reasoning templates. While\nstraightforward fixed anchors c", "url": "https://github.com/Westlake-AGI-Lab/DIA", "kind": "code", "span": [7, 647], "evidence_hash": "f426fa3308a39b06ba2f96bf38ae5e777b6c6ef28982e3e4721b80065afb8126"}]}, "slug": "2606.04535-dynamic-infilling-anchors-for-format-constrained-generation-in-diffusion-large-language-models"}