{"id": "http://arxiv.org/abs/2606.10537v1", "title": "Prefilling-dLLM: Predictive Prefilling for Long-Context Inference in Diffusion Language Models", "abstract": "Diffusion large language models (dLLMs) re-encode the entire prefix at every denoising step, causing recomputation that scales   quadratically with context length and becomes prohibitive for long-context scenarios. We propose Prefilling-dLLM, a training-free   prefill-decode disaggregation framework for dLLMs that partitions the prefix into N chunks, caches their KV representations once,   and selects the top-K most relevant chunks with intra-chunk token sparsity for decoding, showing that sparse prefilling can   outperform dense attention while reducing per-step complexity from quadratic in the full sequence length to quadratic only in the   decode length. On LongBench and InfiniteBench, Prefilling-dLLM achieves state-of-the-art quality among dLLM acceleration methods,   and an attention kernel that parallelizes decoding over the non-contiguously cached chunk KV yields 9.1--28.0x speedup at 8K--32K   contexts. We further show that beginning-of-sequence tokens prepended to each chunk act as periodic attention anchors that eliminate   the lost-in-the-middle phenomenon. Code is available at https://github.com/menik1126/Prefilling-dLLM.", "published_at": "2026-06-09T08:06:22+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2606.10537v1", "source_hash": "02dac83d475dacf1bcd3aa6f37ad919ac89999b2372d93ef7ed7c14125f85fad", "source_version": "v1", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["inference-acceleration", "long-context"], "code_url": "https://github.com/menik1126/Prefilling-dLLM", "has_code": true, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.11315v1", "http://arxiv.org/abs/2609.11998v1", "http://arxiv.org/abs/2609.04778v1"], "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": "02dac83d475dacf1bcd3aa6f37ad919ac89999b2372d93ef7ed7c14125f85fad", "source_url": "https://arxiv.org/abs/2606.10537v1", "source_version": "v1", "revision_id": "d4ad7fb6d36e83aa2c7f7dc7a04c984a5326fec023044200179715d39e84f8d4", "canonical_text_hash": "bfc8e06402c6bdc4fc2c44a9739db403c9ffb84484cac98783326b5214c75ee8", "prompt_version": "full-article-research-guide-v14", "sections": {"verdict": {"ru": "PREFILLING-DLLM — убедительный бездообучающий способ ускорения длинноконтекстных диффузионных LLM: он сохраняет качество лучше базовых методов и дает до 28× ускорения при 32K контекста в заявленных условиях. Однако статический отбор, чувствительность к размеру чанка и ограниченная проверка на моделях и языках не позволяют считать обобщаемость установленной.", "en": "PREFILLING-DLLM is a convincing training-free method for accelerating long-context diffusion LLMs: it preserves quality better than the evaluated baselines and reaches up to 28× speedup at 32K context under the reported conditions. However, static selection, chunk-size sensitivity, and limited model and language coverage leave generalization unestablished."}, "main_idea": {"ru": "Метод один раз вычисляет KV для префикса, разбивает его на чанки, отбирает наиболее релевантные чанки и токены по запросу и повторно использует сжатый KV-кэш на всех шагах денойзинга. BOS-токены на границах чанков служат периодическими якорями внимания.", "en": "The method computes prefix KV once, partitions the prefix into chunks, selects the most query-relevant chunks and tokens, and reuses the compressed KV cache across all denoising steps. BOS tokens at chunk boundaries provide periodic attention anchors."}, "claims": {"ru": "Главное изменение относительно обычного и разреженного декодирования — отделение одноразового prefill от повторяющегося decode и фиксированный бюджет выбранного контекста. Заявлены сложность O(NC²+(Ld²+KC)T) вместо O((Lp+Ld)²T), ускорение 9,1–28,0× на 8K–32K, а также улучшение качества при совместном межчанковом и внутри-чанковом отборе. На InfiniteBench Dream-7B получил 43,62 против 30,32 у Fast-dLLM v2.", "en": "The main change from ordinary and sparse decoding is separating one-time prefill from repeated decoding and enforcing a fixed selected-context budget. The reported complexity is O(NC²+(Ld²+KC)T) instead of O((Lp+Ld)²T), with 9.1–28.0× speedups at 8K–32K and better quality from combined inter- and intra-chunk selection. On InfiniteBench, Dream-7B reached 43.62 versus 30.32 for Fast-dLLM v2."}, "mechanism": {"ru": "Состояние: префикс длины Lp разбивается на чанки размера C; запрос и псевдоответ используются для оценки чанков, а денойзинговый ответ имеет длину Ld. Каждый чанк получает BOS-разделитель и независимо обрабатывается вместе с запросом и псевдоответом для построения KV. Чанки ранжируются по self-information запроса и псевдометкам; сохраняются top-K чанков. Внутри выбранных чанков токены ранжируются по двунаправленному вниманию между чанком и запросом, сохраняются top-B. При декодировании KV выбранных чанков фиксирован, тогда как KV запроса и ответа пересчитываются; уверенные токены итеративно размаскируются. Split-S FlexAttention параллелит внимание по непоследовательным KV и объединяет частичные результаты через log-sum-exp, избегая сборки непрерывного кэша. Типичные настройки: C=1024, Dream top-K=4, четыре псевдометочных токена, один частичный раунд, B=512; UltraLLaDA — top-K=2 без внутри-чанковой разреженности или top-K=8 с ней, B=512. Для воспроизведения: (1) разбить префикс и добавить BOS; (2) выполнить параллельный prefill чанков с запросом и псевдоответом; (3) выбрать top-K чанков; (4) при необходимости выбрать top-B токенов; (5) декодировать с фиксированным выбранным KV через Split-S. Точные детали формирования псевдометок и полный протокол обучения отсутствуют, поскольку метод заявлен как бездообучающий.", "en": "State: the Lp-token prefix is split into chunks of size C; the query and pseudo-response score chunks, and the denoised response has length Ld. Each chunk receives a BOS delimiter and is processed independently with the query and pseudo-response to build KV. Chunks are ranked by query self-information and pseudo-label scores; top-K chunks are retained. Within selected chunks, tokens are ranked by bidirectional chunk–query attention and top-B tokens are retained. During decoding, selected-chunk KV remains fixed while query and response KV are recomputed; confident tokens are iteratively unmasked. Split-S FlexAttention parallelizes attention over non-contiguous KV and merges partial results with log-sum-exp, avoiding contiguous cache gathering. Typical settings are C=1024, Dream top-K=4 with four pseudo-label tokens and one partial round, and B=512; UltraLLaDA uses top-K=2 without intra-chunk sparsity or top-K=8 with it, with B=512. Reproduction: (1) split the prefix and add BOS; (2) parallel-prefill chunks with query and pseudo-response; (3) select top-K chunks; (4) optionally select top-B tokens; (5) decode with fixed selected KV through Split-S. Exact pseudo-label construction and any full training protocol are absent because the method is training-free."}, "evidence": {"ru": "На LongBench при бюджете около 4K выбранных токенов скорость возрастает с 9,1× на 8K до 28,0× на 32K; на одной A800 при 32K указаны 5,3 токена/с против 3,51 у Sparse-dLLM. На Dream-7B LongBench совместная разреженность дает 34,59 против 22,01 для межчанкового отбора; на UltraLLaDA — 37,02 против 35,64. На 128K exact match достигает 92,3% при чанках 256 токенов и top-16, против 83,0% при 1024 и 68,0% при 4096. Полный mask KV на Dream MF-en дает 46,57 против 41,52 для chunk-query и 34,13 для chunk-only. На UltraLLaDA декодирование остается около 0,86 с на 8K–32K, а prefill растет с 1,66 до 4,14 с. Эти результаты подтверждают эффективность в указанных наборах и настройках, но превосходство не установлено для других архитектур, масштабов или языков; статические псевдометки могут пропускать релевантный контекст.", "en": "On LongBench, with roughly 4K selected tokens, speed rises from 9.1× at 8K to 28.0× at 32K; on one A800 at 32K, the reported throughput is 5.3 tokens/s versus 3.51 for Sparse-dLLM. On Dream-7B LongBench, combined sparsity scores 34.59 versus 22.01 for inter-chunk selection alone; on UltraLLaDA, 37.02 versus 35.64. At 128K, exact match reaches 92.3% with 256-token chunks and top-16, versus 83.0% with 1024-token chunks and 68.0% with 4096-token chunks. Full-mask KV on Dream MF-en scores 46.57 versus 41.52 for chunk-query and 34.13 for chunk-only construction. On UltraLLaDA, decoding stays near 0.86 s across 8K–32K, while prefill grows from 1.66 to 4.14 s. These results support effectiveness on the stated datasets and settings, but superiority is not established for other architectures, scales, or languages; static pseudo-label selection can miss relevant context."}, "applicability": {"ru": "Метод особенно полезен для длинных запросов в диффузионных LLM, когда один и тот же префикс используется на многих шагах денойзинга и допустим фиксированный бюджет примерно 4K токенов. Наиболее подходящая область — retrieval-подобные задачи и контексты до 32K–128K при возможности настроить размер чанка и top-K под модель.", "en": "The method is most useful for long prompts in diffusion LLMs when the same prefix is reused across many denoising steps and a fixed budget of roughly 4K tokens is acceptable. Its best fit is retrieval-like tasks and contexts up to 32K–128K when chunk size and top-K can be tuned per model."}, "limitations": {"ru": "Качество зависит от размера чанка, top-K и top-B: один чанк резко деградирует после 32K, а оптимальные настройки различаются между моделями и длинами контекста. Статический выбор не исправляется во время декодирования. Prefill все еще дорожает с длиной контекста, а заявленные результаты ограничены Dream-7B, UltraLLaDA, Fast-dLLM v2 и англоязычными бенчмарками. Обобщение на другие архитектуры, масштабы и языки не проверено.", "en": "Quality depends on chunk size, top-K, and top-B: single-chunk selection degrades sharply beyond 32K, and optimal settings vary by model and context length. Static selection is not corrected during decoding. Prefill still becomes more expensive with context length, and the reported results are limited to Dream-7B, UltraLLaDA, Fast-dLLM v2, and English benchmarks. Generalization to other architectures, scales, and languages is untested."}, "next_action": {"ru": "Провести контролируемую проверку переноса метода на новую диффузионную LLM. План: (1) реализовать chunk prefill, псевдометочное ранжирование, top-B и Split-S; (2) сравнить full-mask, chunk-query и chunk-only; (3) измерить exact match, качество, prefill/decode latency и память при 8K–128K; (4) просweep-ить C, top-K и B; (5) проверить ошибки статического отбора на задачах с дальними зависимостями.", "en": "Run a controlled transfer study on a new diffusion LLM. Plan: (1) implement chunk prefill, pseudo-label ranking, top-B retention, and Split-S; (2) compare full-mask, chunk-query, and chunk-only construction; (3) measure exact match, quality, prefill/decode latency, and memory from 8K to 128K; (4) sweep C, top-K, and B; (5) test static-selection failures on tasks requiring long-range dependencies."}}, "source_coverage": {"canonical_text_hash": "bfc8e06402c6bdc4fc2c44a9739db403c9ffb84484cac98783326b5214c75ee8", "covered_chunks": 6, "map_input_digest": "4485a28c95c286f54750cddc5746cb1eeed26473f2695585d5afe5c13e168421", "prompt_version": "full-article-research-guide-v14", "revision_id": "d4ad7fb6d36e83aa2c7f7dc7a04c984a5326fec023044200179715d39e84f8d4", "total_chunks": 6}}, "resources": {"version": "paper-resources-v1", "source_hash": "02dac83d475dacf1bcd3aa6f37ad919ac89999b2372d93ef7ed7c14125f85fad", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": [{"origin": "source_excerpt", "evidence": "re sequences simultaneously, enabling flexible generation orders and potentially faster inference (Wu et al., 2025b; Wang et al., 2025a). However, this paradigm in- troduces a critical inefficiency in long-context sce- narios: the entire input prefix must participate in\n\n1Our\ncode\nis\navailable\nat\nhttps://github.com/menik1126/Prefilling-dLLM.\n\nevery denoising step, even though its representation\nremains largely unchanged across iterations.\nIn autoregressive LLM serving, the prefill-\ndecode disaggregation architecture (Zhong et al.,\n2024) assigns the prefill and decode phases to sep-\narate GPU clusters, exploiting their distinct com-\n", "url": "https://github.com/menik1126/Prefilling-dLLM", "kind": "code", "span": [1809, 2449], "evidence_hash": "b58414788e35ab6feb96e0cfe6b5314eafaaf2063d89c7e6ffb290929d50e4a7"}]}, "slug": "2606.10537-prefilling-dllm-predictive-prefilling-for-long-context-inference-in-diffusion-language-models"}