Fixed State, Long Reach: What a Constant-Size Cache Buys Block Diffusion at Scale

📅 2026-09-09
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
研究通过使用固定大小的缓存解决了大规模块扩散模型中的内存和延迟问题,采用序列混合器和块因果训练目标,显著降低了内存需求和提高了处理速度。
📝 Abstract
Diffusion language models decode tokens in parallel, but their bidirectional denoiser rules out the naive key--value (KV) cache behind fast autoregressive inference. Block diffusion restores caching by decoding block-by-block, and the block caches deployed on it so far are tied to attention: O(L)in memory and, if used as training-free retrofits, only an approximation of the model's computation. Both constraints can be overcome: sequence mixers that summarize finalized blocks into a reusable state support block caching, and the corresponding block-causal training objective makes the cache exact. We study this recipe at scale, pretraining three 3B block-diffusion denoisers (attention, mamba, and hybrid) on 300B tokens under one single-frontier objective and decoding all three through a single cached interface. Only the state-space cache is O(1) in sequence length: its memory and per-step latency stay constant at any context length, while an attention cache remains O(L). At 256k tokens (where attention has grown to 82GB and 29 ms/step), the Mamba cache delivers 4.3x lower latency, 11x less memory, and 2.6x higher single-stream throughput; and because that footprint is constant it scales with batch as well, reaching 14x the aggregate throughput, where attention cannot run beyond a single stream. The same linear-state bias lets the Mamba and hybrid backbones keep retrieving out to 8-16x their training length, whereas attention's retrieval collapses at 2x, at no measured quality cost.
Problem

Research questions and friction points this paper is trying to address.

diffusion language models
key-value cache
block caching
attention mechanism
memory consumption
Innovation

Methods, ideas, or system contributions that make the work stand out.

constant-size cache
block diffusion
sequence mixers
block-causal training
state-space
🔎 Similar Papers
No similar papers found.