{"id": "http://arxiv.org/abs/2607.16339v2", "title": "LaCache: Exact Caching and Precision-Adaptive Inference for Diffusion Large Language Models", "abstract": "Diffusion-based Large Language Models(DLLMs) enable parallel generation via Semi-Autoregressive (SAR) decoding in text generation. However, current methods suffer from severe operator-level redundancy: they recompute the entire sequence during denoising steps, ignoring that the prefix and masked suffix remain invariant within a block. We propose LaCache, a training-free acceleration framework that alleviates this redundancy through lossless caching and mixed precision. Specifically, LaCache employs Lossless State Memoization (LSM) by caching three types of intermediate results: (i) EmbedCache for embedding outputs, (ii) RoPECache for token-wise pre-attention states, and (iii) FACache for the online softmax statistics within FlashAttention. These caches allow the model to skip redundant computation on unchanged tokens without altering the output. To further alleviate memory-bandwidth bottlenecks, LaCache inegrates a per-group FP8 quantization strategy for FFN layers, tailored to step-dependent activation distributions across the diffusion process. Experiments demonstrate that LaCache alone achieves approximately 1.3X end-to-end speedup over vanilla DLLM. When combined with existing acceleration methods, LaCache reaches up to 40.2X end-to-end speedup while maintaining comparable task accuracy.", "published_at": "2026-07-16T10:49:15+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2607.16339v2", "source_hash": "201bde1a1415876788742d96afbb0d3a025c78774c0b965a33301eb177d4839a", "source_version": "v2", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["inference-acceleration"], "code_url": null, "has_code": false, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.11998v1", "http://arxiv.org/abs/2609.04531v1", "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": "201bde1a1415876788742d96afbb0d3a025c78774c0b965a33301eb177d4839a", "source_url": "https://arxiv.org/abs/2607.16339v2", "source_version": "v2", "revision_id": "5cffe65d9a62abfe62b4487518c295809268fc194aa9807e26a40f3d3b459164", "canonical_text_hash": "2d64f4b83fb6525d7800badcde785dc3faf6af76a9937c6e1d1f61f3fd55d514", "prompt_version": "full-article-research-guide-v14", "sections": {"verdict": {"ru": "LaCache — практический training-free фреймворк ускорения semi-autoregressive denoising для DLLM. Кэширование даёт небольшой самостоятельный выигрыш, а основной эффект создаёт совместное применение fine-grained FP8 и существующих ускорителей. Ускорение обычно сохраняет сопоставимую точность, но зависит от длины последовательности и FP8-совместимого оборудования.", "en": "LaCache is a practical training-free framework for accelerating semi-autoregressive denoising in DLLMs. Caching alone provides a small gain, while most of the benefit comes from combining fine-grained FP8 with existing accelerators. Acceleration generally preserves comparable accuracy, but depends on sequence length and FP8-capable hardware."}, "main_idea": {"ru": "Использовать неизменность токенов внутри блока denoising: повторно применять сохранённые token-wise, positional и attention-состояния для неизменных токенов, вычисляя только активный блок, и одновременно ускорять FFN через групповой FP8 с fusion операций.", "en": "Exploit token invariance within a denoising block: reuse cached token-wise, positional, and attention states for unchanged tokens, compute only the active block, and accelerate FFNs with grouped FP8 and fused operations."}, "claims": {"ru": "EmbedCache и RoPECache повторно используют эмбеддинги и состояния RoPE/pre-attention; FACache сохраняет состояния online softmax FlashAttention и пропускает плитки вне активного блока. FP8 применяется к FFN с группами активаций 1×128 и весов 128×128, с адаптивным масштабированием активаций и fusion с Tensor Cores, AddNorm и SwiGLU. Авторы сообщают около 1,3× ускорения от LaCache отдельно, 3–12× в сочетании с parallel decoding и DPad и до 40,2× на длинных контекстах при сохранении близкой точности.", "en": "EmbedCache and RoPECache reuse embeddings and RoPE/pre-attention states; FACache stores FlashAttention online-softmax states and skips tiles outside the active block. FP8 is applied to FFNs with 1×128 activation and 128×128 weight groups, adaptive activation scaling, and fusion with Tensor Cores, AddNorm, and SwiGLU. The authors report about 1.3× standalone speedup, 3–12× with parallel decoding and DPad, and up to 40.2× on long contexts while retaining near-comparable accuracy."}, "mechanism": {"ru": "Состояния: эмэмбединги токенов, first-layer RoPE/pre-attention outputs, а для attention — row maximum, normalizer, output accumulator, cached output и logsumexp; также кэшированные блоки в HBM. Архитектура и порядок работы: (1) определить активный/изменяющийся блок и индикаторы перекрытия Q/K; (2) вычислить token-wise операторы только для изменяющихся токенов, остальные взять из EmbedCache и RoPECache; (3) для FlashAttention переиспользовать состояния строк и пропустить плитки, полностью лежащие вне активного блока; (4) обновить attention-аккумуляторы, нормализованный выход и кэш-блоки, записав их в HBM; (5) в FFN выполнить per-group FP8-квантизацию с step-adaptive activation scales, применить fused Tensor Core operations, AddNorm и SwiGLU; (6) ограничить sampling и дополнительные вычисления активным блоком. Кэширование является точным главным образом в первом слое; расширение кэширования по слоям и увеличение интервала обновления повышают скорость, но усиливают деградацию точности. Для воспроизведения нужны DLLM с semi-autoregressive denoising, реализация кэшей и tiled FlashAttention, native FP8 kernel/hardware, затем сравнение Vanilla, caching-only, FP8 и комбинаций с parallel decoding/DPad на GSM8K, MATH, HumanEval и MBPP. Детали функции потерь, целей обучения и построения обучающих данных отсутствуют, поскольку метод заявлен как training-free.", "en": "State variables: token embeddings, first-layer RoPE/pre-attention outputs, and for attention the row maximum, normalizer, output accumulator, cached output, and logsumexp; cached blocks are written to HBM. Operation order: (1) identify the active/changing block and Q/K overlap indicators; (2) compute token-wise operators only for changing tokens and reuse EmbedCache and RoPECache elsewhere; (3) for FlashAttention, reuse row states and skip tiles wholly outside the active block; (4) update attention accumulators, normalized outputs, and cache blocks in HBM; (5) apply per-group FP8 with step-adaptive activation scales in the FFN using fused Tensor Core operations, AddNorm, and SwiGLU; (6) restrict sampling and extra computation to the active block. Exact caching is mainly available in the first layer; broader layer coverage and longer update intervals increase speed but worsen accuracy. Reproduction requires a DLLM with semi-autoregressive denoising, cache and tiled-FlashAttention implementations, native FP8 kernels/hardware, and comparisons of Vanilla, caching-only, FP8, and combinations with parallel decoding/DPad on GSM8K, MATH, HumanEval, and MBPP. Loss functions, training targets, and training-data construction are absent because the method is training-free."}, "evidence": {"ru": "Наблюдаемые результаты включают примерно 3% ускорения от кэширования без FP8, около 6% дополнительного выигрыша FACache в сочетании с Fast-DLLM-V2 и примерно 10–30% ускорения на большинстве перечисленных наборов для LLaDA-base и LLaDA-1.5 при небольших потерях точности. На LLaDA-base комбинация Parallel+DPad+LaCache на GSM8K указана как 3,11 с и 41,54 TPS против 10,59 с и 14,74 TPS у Vanilla. Более fine-grained FP8 превосходит более грубые granularity и DuQuant в заявленных сравнениях по эффективности и точности. Выигрыш меньше на коротких HumanEval prompt; более длинные prompt и генерации усиливают эффект. Полное превосходство по точности не установлено для всех режимов: увеличение интервала обновления и кэширование большего числа слоёв повышают degradation.", "en": "Observed results include roughly 3% speedup from caching without FP8, about 6% additional gain from FACache with Fast-DLLM-V2, and roughly 10–30% acceleration on most listed datasets for LLaDA-base and LLaDA-1.5 with little accuracy loss. On LLaDA-base, Parallel+DPad+LaCache on GSM8K is reported at 3.11 s and 41.54 TPS versus 10.59 s and 14.74 TPS for Vanilla. Finer-grained FP8 outperforms coarser granularities and DuQuant in the reported efficiency and accuracy comparisons. Gains are smaller for short HumanEval prompts; longer prompts and generations increase the benefit. Universal accuracy superiority is not established: longer update intervals and caching more layers increase degradation."}, "applicability": {"ru": "Метод наиболее полезен для DLLM inference с повторяющимися неизменными токенами, длинными prompt или generation sequences, batch inference и GPU с native FP8 support. Он совместим с parallel decoding, DPad и Fast-DLLM-V2 и проверен на GSM8K, MATH, HumanEval и MBPP, а также на LLaDA-base и LLaDA-1.5.", "en": "The method is most useful for DLLM inference with repeated unchanged tokens, long prompts or generation sequences, batch inference, and GPUs with native FP8 support. It composes with parallel decoding, DPad, and Fast-DLLM-V2 and was evaluated on GSM8K, MATH, HumanEval, and MBPP with LLaDA-base and LLaDA-1.5."}, "limitations": {"ru": "Самостоятельное кэширование даёт лишь около 3% ускорения, поэтому значительная часть результата зависит от FP8 и совместимых аппаратных ядер. Exact caching в основном ограничено первым слоем; более агрессивное кэширование создаёт компромисс скорость–точность. Короткие последовательности дают меньший выигрыш. В предоставленных записях нет полного описания затрат памяти, диапазона оборудования и исчерпывающих результатов точности для всех конфигураций.", "en": "Caching alone provides only about 3% speedup, so much of the result depends on FP8 and compatible hardware kernels. Exact caching is mainly limited to the first layer; more aggressive caching creates a speed–accuracy trade-off. Short sequences yield smaller gains. The supplied records do not provide a full account of memory cost, hardware coverage, or exhaustive accuracy results for every configuration."}, "next_action": {"ru": "Воспроизвести ключевое сравнение на одной FP8-совместимой GPU: (1) измерить Vanilla, caching-only, FP8-only и LaCache; (2) использовать GSM8K и HumanEval с короткими и длинными prompt; (3) зафиксировать latency, TPS, accuracy и memory; (4) отдельно варьировать интервал обновления кэша и число кэшируемых слоёв; (5) проверить, сохраняется ли заявленный выигрыш при малых последовательностях.", "en": "Reproduce the key comparison on one FP8-capable GPU: (1) measure Vanilla, caching-only, FP8-only, and LaCache; (2) use GSM8K and HumanEval with short and long prompts; (3) record latency, TPS, accuracy, and memory; (4) vary cache-update interval and the number of cached layers separately; (5) check whether the reported gain persists for short sequences."}}, "source_coverage": {"canonical_text_hash": "2d64f4b83fb6525d7800badcde785dc3faf6af76a9937c6e1d1f61f3fd55d514", "covered_chunks": 5, "map_input_digest": "8942e0731088ad06d539d4bab722c5071258016b5321d83559e0b000996cc135", "prompt_version": "full-article-research-guide-v14", "revision_id": "5cffe65d9a62abfe62b4487518c295809268fc194aa9807e26a40f3d3b459164", "total_chunks": 5}}, "resources": {"version": "paper-resources-v1", "source_hash": "201bde1a1415876788742d96afbb0d3a025c78774c0b965a33301eb177d4839a", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": false, "items": []}, "slug": "2607.16339-lacache-exact-caching-and-precision-adaptive-inference-for-diffusion-large-language-models"}