# Summary: 2026-08-06_22-34-20Z_RetrofittingLinearAttentionintoDiffusionLanguageMo.md Saved: 2026-08-09 22:26 Source: 2026-08-06_22-34-20Z_RetrofittingLinearAttentionintoDiffusionLanguageMo.md Model: None --- ## Summary Diffusion language models (dLLMs) accelerate inference by generating tokens in parallel, yet each denoising step still attends to all previous blocks via softmax, incurring a quadratic prefix‑attention cost. The authors propose **block‑hybrid attention**, which keeps exact softmax within the active block while applying linearized attention to older blocks, thereby reducing this bottleneck without retraining. Retrofitting this hybrid into LLaDA~2.1 (a 16 B open‑source dLLM) yields near‑identical benchmark scores and up to a 1.7× higher decoding throughput using a Triton implementation. The work shows that pretrained dLLMs can be efficiently linearized for real‑time applications. ## Key Contributions - Block‑hybrid attention combines exact softmax within the active denoising block with linear attention over prior blocks, reducing quadratic prefix cost. - Retrofitting this hybrid into LLaDA~2.1 requires only six layers to be replaced, preserving >70 % of benchmark scores and enabling faster inference. - The Triton‑based implementation achieves up to 1.7× higher decoding throughput while supporting more concurrent requests within memory limits. ## Methodology The authors first analyze the attention cost in standard dLLMs, noting that each denoising step still attends to all previous blocks via softmax, incurring O(N²) complexity. They design block‑hybrid attention where the active block uses full softmax (O(block size)) while older blocks are processed with a linearized kernel approximating softmax (O(1)). The hybrid is integrated into LLaDA~2.1 by swapping six attention layers, leaving the rest unchanged; no additional training is required—only a post‑training conversion is performed. ## Results Experiments on HumanEval, MBPP+, and CMATH show performance loss of 3.6 % (72.0 % vs. 75.6 %), 8.3 % (63.0 % vs. 57.7 %), and 1.6 % (86.7 % vs. 88.3 %). Throughput improves by a factor of 1.7, with memory usage unchanged. The conversion took approximately 60 hours on a single GPU. ## Significance This work demonstrates that diffusion language models can be made inference‑efficient without retraining, addressing the scalability bottleneck for large‑scale deployment and enabling more concurrent user requests in real‑time services. It provides a practical pathway to faster dLLM serving while preserving most of the original model’s capabilities. ## Related Concepts - Diffusion Language Models (dLLMs) - Blockwise semi‑autoregressive decoding - KV caching - Linear attention - Softmax attention - Hybrid attention - Triton runtime - Pretrained model retrofitting