Retrofitting Linear Attention into Diffusion Language Models

Jinha Kim, Younghun Roh, Jaeyeon Kim
8/6/2026
cs.LG
diffusion-flow

Official code: Diuven/LLaDA-Hybrid (5 stars, Python, MIT, last commit 2026-08-28).

Abstract

Diffusion language models (dLLMs) offer a promising alternative to autoregressive models by accelerating inference through parallel decoding. Recent dLLMs commonly use blockwise semi-autoregressive decoding, generating blocks autoregressively while denoising tokens within each active block in parallel.

Show full abstract

However, despite KV caching, each denoising step still attends to all previous blocks, repeatedly incurring prefix-attention cost. Motivated by this bottleneck, we ask whether dLLM inference can be further accelerated by linearizing attention over previous blocks. We introduce block-hybrid attention, which retains exact softmax attention within the active denoising block while applying linear attention over previous blocks. We show that this hybrid attention can be retrofitted into a pretrained dLLM with minimal post-training: LLaDA-Hybrid replaces 6 of the 20 attention layers in LLaDA~2.1, a 16B open-source dLLM, largely following LoLCAT (Zhang et al, 2024). The conversion takes only approximately 60 hours while preserving benchmark performance: 72.0% vs. 75.6% on HumanEval, 63.0% vs. 57.7% on MBPP+, and 86.7% vs. 88.3% on CMATH. With a Triton implementation, LLaDA-Hybrid achieves up to $1.7\times$ higher decoding throughput and supports more concurrent requests before exhausting memory, showing that pretrained dLLMs can be efficiently linearized for faster inference. Our code is available at: https://github.com/Diuven/LLaDA-Hybrid.

View on arXivView PDF

Code Implementations(1)

MIT
50Python, RustAug 4, 20263 months agoMIT

Similar Papers

Cite this paper

@article{kim2026retrofitting,
  title  = {Retrofitting Linear Attention into Diffusion Language Models},
  author = {Jinha Kim and Younghun Roh and Jaeyeon Kim},
  year   = {2026},
  eprint = {2608.06628},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.06628v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.06628.svg)](https://codeofpaper.com/paper/2608.06628)

Discussion