Paper summary
Reuse a prefix without freezing its context
Diffusion models can reuse parts of a shared prompt’s computation while allowing the changing context to update the rest.
A diffusion language model revises tokens through bidirectional attention. Changing a later token can therefore change the key/value tensors of an earlier shared prompt. Reusing that prompt’s cached tensors across every layer, as in autoregressive serving, can corrupt the context. BiCache instead asks which layers remain similar enough to reuse.
Partition caching by layer depth
Offline profiling maps the fraction of shared-prefix tokens to a reusable layer depth. At serving time, BiCache looks up that depth for each request and reuses prefix tensors across requests only in the selected shallow layers.
The prefix is shared, but its deeper interpretation still belongs to the current request.
Deeper layers compute their own tensors and refresh them periodically during denoising. This combines reuse across requests in shallow layers with reuse across steps within a request in deep layers.
View full-size figureMeasure speed and answer quality together
The main tests use LLaDA on one NVIDIA B200, batch size 1, 256 output tokens and 128 denoising steps. Across ARC-Challenge-Chat, GPQA, MATH-500 and GSM8K, BiCache increases throughput by 36.3–82.8% over no caching; accuracy differs by at most 0.8 percentage points in this setting.
The authors also combine BiCache with Fast-dLLM, which caches a different part of the computation. Compared with Fast-dLLM alone, throughput rises by 51.6–98.3%; accuracy is unchanged on ARC-C, 0.2 and 0.8 points higher on GPQA and GSM8K, and 1.8 points lower on MATH. These results distinguish faster generation from changes in answer quality.
| Comparison | Throughput increase |
|---|---|
| BiCache versus no caching | 36.3–82.8% |
| BiCache + Fast-dLLM versus Fast-dLLM | 51.6–98.3% |
Key takeaways
- Shared-prefix reuse depends on layer depth. Shallow-layer stability creates a caching opportunity whose depth depends on the prefix fraction.
- Reuse and freshness can coexist. Cross-request prefix caching is paired with request-local computation and periodic refresh deeper in the model.
- Prefix reuse can add to other diffusion-model optimizations. The Fast-dLLM experiment demonstrates a benefit from combining the caches.