alphaFeedback

WorksComputer Science

KV Cache Quantization for Diffusion Language Models

AI contributions
Not recorded for this paper
View details

Abstract

KV cache quantization is well studied for autoregressive language models, where cached prefix states are exact under causal attention and quantization is mainly a cache reconstruction problem. Diffusion language models (dLLMs) break this assumption. Fast dLLM inference reuses KV states across denoising steps, but bidirectional token representations can change as masked tokens are revealed, so the reused cache may already differ from full recomputation before quantization is applied. We study KV cache quantization under this cache-reuse error. We adapt KIVI and KVQuant to Fast-dLLM-style prefix and dual cache reuse, and introduce TRACE and dLLM-KVQ. TRACE reconstructs feasible dLLM reveal trajectories from prompt-answer pairs, providing calibration states that match iterative masked decoding. dLLM-KVQ uses these trajectories to choose per-layer K-cache entries that remain in high precision according to output- and attention-level behavior metrics, while applying standard low-bit value quantization. Across LLaDA and Dream evaluations on GSM8K, HumanEval, MATH, and MBPP, dLLM-KVQ achieves the highest average score among quantized methods across the reported 4-bit and 2-bit prefix/dual cache settings.

Introduction

Diffusion language models (dLLMs) generate text by iteratively refining partially masked sequences rather than by strict left-to-right next-token prediction ([2] (Lou et al. 2023; Sahoo et al. 2024; Shi et al. 2024; Nie et al. 2026; Ye et al. 2025)). Efficient dLLM inference therefore often reuses KV states across denoising steps, as in the prefix and dual cache modes of Fast-dLLM (Wu et al., 2025) and adaptive cache updates in dLLM-Cache (Liu et al., 2025). This makes KV cache compression a natural next step, but it also changes the assumptions behind standard autoregressive (AR) KV cache quantization. In AR decoding, cached prefix states are exact under causal self-attention (Vaswani et al., 2017): future generated tokens do not change the key and value states of previous tokens. In dLLM decoding, layers use bidirectional self-attention over the current masked sequence. When tokens inside the active block are revealed, prefix or suffix token states can also change under full recomputation. Cache reuse avoids this recomputation by keeping selected regions fixed, so the reused cache is an approximation to the full-recompute cache. Figure 1 (b) illustrates this difference.

Process of block diffusion with Fast-dLLM and mismatch between cache and recompute state

Figure 1. Fast-dLLM cache reuse and cache-reuse error. (a) Dual cache reuses prefix and suffix KV states from a block-initial forward pass while recomputing only the active block. (b) The reused cache can differ from the corresponding full-recompute cache after masked tokens inside the block are revealed.

This difference makes direct AR-to-dLLM transfer unreliable. AR KV quantizers such as KIVI (Liu et al., 2024) and KVQuant (Hooper et al., [14]) are usually motivated as approximating an unquantized reference cache with fewer bits. In a dLLM cache-reuse path, quantization is applied to a cache that may already differ from full recomputation. The deployed cache therefore contains both cache-reuse error and quantization error. Reducing reconstruction error of the reused cache alone may not preserve attention patterns, token scores, or final task decisions.

This setting creates two practical challenges. First, calibration data must reflect masked denoising states rather than only complete prompt-answer sequences, because the same final answer can be reached through different reveal orders. Second, the quantization objective should be tied to model behavior. This is especially important for K caches, where a small numerical perturbation can shift attention mass among reused and recomputed tokens.

To our knowledge, this is the first systematic study of KV cache quantization for dLLMs. We adapt KIVI and KVQuant to a unified Fast-dLLM cache interface and evaluate them under prefix and dual cache reuse. We then introduce TRACE, a trajectory reconstruction procedure that assigns each answer token in a prompt-answer pair to a legal reveal step under the dLLM block schedule. These reconstructed denoising states provide calibration data that matches masked iterative decoding without storing full multi-step logits or KV caches. Figure 2 summarizes how this trajectory construction supports offline policy fitting and online cache quantization.

dLLM-KVQ pipeline

Figure 2. dLLM-KVQ pipeline. (a) TRACE reconstructs masked-denoising trajectories from prompt-answer pairs. (b) Offline diagnostics fit per-layer K-cache policies from behavior and attention metrics. (c) Online quantization applies the selected policy to block-initial reused cache states.

Building on this calibration, dLLM-KVQ selects a small set of K-cache entries to keep in high precision. The policy is chosen per model, cache mode, bit-width, and layer using output-and attention-level metrics measured on reconstructed trajectories. At inference time, it uses only information available from the block-initial forward pass, while the V cache follows a standard low-bit quantize-dequantize path. Across LLaDA-Instruct and Dream-Base-7B on GSM8K, HumanEval, MATH, and MBPP, dLLM-KVQ obtains the highest average score among the evaluated quantized methods in the reported 4-bit and 2-bit prefix/dual settings.

The paper makes four contributions:

  • We formulate dLLM KV cache quantization under cache reuse and separate cache-reuse error from quantization error.

  • We propose TRACE to reconstruct dLLM reveal trajectories from prompt-answer pairs for calibration.

  • We propose dLLM-KVQ to select per-layer high-precision K-token budgets from behavior metrics and apply them using only block-initial information.

  • We show that dLLM-KVQ obtains the best four-task average among quantized methods across all reported models, cache modes, and bit-widths.

Preliminary

dLLM Block Diffusion. Following discrete and masked diffusion language modeling [2, 1] (Lou et al. 2023; Sahoo et al. 2024; Shi et al. 2024), let pp be the prompt and xtx_t be the partially generated response at denoising step tt, where unrevealed positions are <mask>. Unlike AR decoding, which appends one new token to a fixed prefix, a dLLM repeatedly rewrites a partially masked sequence. In block-wise decoding, the response is divided into blocks B1,…,BB\mathcal{B}_1,\ldots,\mathcal{B}_B. At each denoising step tt inside the current block Bb\mathcal{B}_b, the model predicts distributions for masked positions and reveals a scheduled subset of high-confidence tokens, following the iterative masked decoding pattern used in non-autoregressive and diffusion-style generation [12] (Wu et al. 2025):

xt+1,i={arg⁡max⁡v pθ(v∣p,xt,i),i∈Rb,t,xt,i,otherwise,x_{t+1,i} = \begin{cases} \underset{v}{\arg\max}\ p_\theta(v \mid p, x_t, i), & i \in\mathcal{R}_{b,t},\\ x_{t,i}, & \text{otherwise}, \end{cases}

where Rb,t⊆Bb\mathcal{R}_{b,t} \subseteq\mathcal{B}_b is the set of positions revealed at step tt.

dLLM Cache. Following Fast-dLLM (Wu et al., 2025) and recent adaptive dLLM caching work (Liu et al., 2025), we consider two cache reuse modes for efficient dLLM inference. If the model is fully recomputed at every denoising step, layer ℓ\ell produces a full cache Ctℓ=(Ktℓ,Vtℓ)\mathcal{C}^{\ell}_t = (K^{\ell}_t, V^{\ell}_t) from the current state (p,xt)(p, x_t). Fast-dLLM avoids this cost by running a full forward pass at the beginning of a block, storing the resulting KV cache, and reusing selected regions during later denoising steps. Prefix cache reuses the prefix region and recomputes the active block plus suffix. Dual cache reuses both prefix and suffix and recomputes only the active block. We denote either cache mode by

Ct,mℓ,reuse=Γm(Cτbℓ,full,Ctℓ,local,Bb),m∈{prefix,dual}.C^{\ell,\mathrm{reuse}}_{t,m}=\Gamma_m\left(C^{\ell,\mathrm{full}}_{\tau_b},C^{\ell,\mathrm{local}}_t,B_b\right), \qquad m\in\{\mathrm{prefix},\mathrm{dual}\}.

where τb\tau_b is the block-initial step at which the reusable cache is built, Ctℓ,localC^{\ell,\mathrm{local}}_t is the cache recomputed for the active regions, and Γm\Gamma_m selects which token regions are reused and which are recomputed. Figure 1(a) illustrates Fast-dLLM’s dual cache reuse process, where cached regions (prefix and suffix) are reused while the active block is progressively denoised over intermediate steps.

Why dLLM KV Cache Quantization Is Different

KV cache quantization for autoregressive (AR) LLMs is usually framed as a reconstruction problem [14] (Liu et al. 2024): the unquantized cache is the reference cache, and the quantizer should approximate it with less memory. For diffusion language models (dLLMs), this view is incomplete. dLLM cache methods such as Fast-dLLM accelerate dLLM decoding by reusing cache states computed by a block-initial forward pass, which are approximations to full recomputation (Wu et al., 2025; Liu et al., 2025). Our quantization study is applied on top of this cache reuse mechanism. Therefore, the cache to be quantized may already differ from the cache that full recomputation would produce. This section defines this difference and explains why it changes the quantization problem.

Cache-Reuse Error

The key difference from AR decoding is that dLLM layers use bidirectional self-attention over the current masked sequence. Consider a block after its initial step τb\tau_b, and a later denoising step tt in the same block. Some positions in BbB_b may have changed from <mask> to concrete tokens during these intervening steps. Under full recomputation, prefix and suffix token states are recomputed together with this updated block, so their K/V entries can change. Under prefix or dual cache reuse, the reused prefix or suffix entries remain the ones computed at τb\tau_b. We write this cache-reuse error as:

Et,mℓ,reuse=Ct,mℓ,reuse−Ctℓ,full.E^{\ell,\mathrm{reuse}}_{t,m}=C^{\ell,\mathrm{reuse}}_{t,m}-C^{\ell,\mathrm{full}}_t.

In AR LLMs, the analogous term is zero for cached prefix tokens under standard causal attention (Vaswani et al., 2017): past token states do not depend on future generated tokens. In dLLMs, EreuseE^{\mathrm{reuse}} is generally nonzero. The key and value plots in Figure 1 make this empirical fact visible: even for the same block, layer, and head, the reused cache state and the later full-recompute cache can have different feature distributions.

Quantization Error Is Not the Only Error

For AR cache quantization, the deployed cache is usually C^t=Qβ(Ct)\widehat{C}_t=Q_\beta(C_t), where QβQ_\beta is a β\beta-bit quantizer [14] (Liu et al. 2024; Lin et al. 2025). The cache error is simply Qβ(Ct)−CtQ_\beta(C_t)-C_t, so improving cache reconstruction is a natural objective.

For dLLMs with cache reuse, quantization is applied to Ct,mreuseC^{\mathrm{reuse}}_{t,m}, but the reference behavior we would like to preserve is that of CtfullC^{\mathrm{full}}_t. The resulting cache error is therefore

C^t,mℓ−Ctℓ,full=Ct,mℓ,reuse−Ctℓ,full⏟cache-reuse error+Qβ(Ct,mℓ,reuse)−Ct,mℓ,reuse⏟quantization error.\widehat{C}^{\ell}_{t,m}-C^{\ell,\mathrm{full}}_t = \underbrace{C^{\ell,\mathrm{reuse}}_{t,m}-C^{\ell,\mathrm{full}}_t}_{\text{cache-reuse error}} + \underbrace{Q_\beta(C^{\ell,\mathrm{reuse}}_{t,m})-C^{\ell,\mathrm{reuse}}_{t,m}}_{\text{quantization error}}.

This decomposition is the main reason AR reconstruction objectives are insufficient here. A dLLM quantizer is not only approximating an unquantized cache; it is modifying a cache that may already differ from full recomputation. As a result, reducing quantization error alone may fail to predict generation quality.

Problem Definition

Given a distribution of denoising states T\mathcal{T}, a cache mode mm, and a memory budget ρ\rho, the goal is to learn or choose an online cache quantization policy that preserves model behavior under cache reuse. Let ytfull=fθ(p,xt,Ctfull)y^{\mathrm{full}}_t=f_\theta(p,x_t,C^{\mathrm{full}}_t) and y^t,m=fθ(p,xt,Qβ(Ct,mreuse))\hat{y}_{t,m}=f_\theta(p,x_t,Q_\beta(C^{\mathrm{reuse}}_{t,m})). We write the objective as

min⁡Qβ E(p,xt,m)∼T[Dbeh(ytfull,y^t,m)]\min_{Q_\beta}\ \mathbb{E}_{(p,x_t,m)\sim\mathcal{T}}\left[\mathcal{D}_{\mathrm{beh}}\left(y^{\mathrm{full}}_t,\hat{y}_{t,m}\right)\right]
s.t.Mem(Qβ(C))≤ρ Mem(C).\mathrm{s.t.}\quad\mathrm{Mem}(Q_\beta(C))\leq\rho\ \mathrm{Mem}(C).

Here Dbeh\mathcal{D}_{\mathrm{beh}} can measure output logits, token margins, attention behavior, or downstream decisions. The next challenge is calibration: representative denoising states are needed, but storing full multi-step logits and KV caches is too expensive. The following method section addresses this with TRACE trajectory calibration and the dLLM-KVQ quantization policy.

dLLM-KVQ

Section 3 shows that dLLM cache quantization must handle cache-reuse error in addition to ordinary quantization error. dLLM-KVQ addresses this with a calibration-and-deployment design. The offline stage reconstructs likely dLLM decoding trajectories and uses them to choose which K-cache entries stay in high precision. The online stage then applies this policy to the cache states produced by the block-initial forward pass and reused by the cache mechanism. Thus full recomputation is used only for calibration analysis, not during deployment. Figure 2 shows the full pipeline.

K-side focus. The design goal is behavior preservation under cache reuse, especially stable attention choices. K states enter the query-key scores that define attention weights, while V states are read only after those weights are chosen. K quantization can therefore redirect attention across reused and recomputed positions; V quantization perturbs the content at positions already selected by attention. dLLM-KVQ accordingly spends the adaptive high-precision budget on K and keeps V on a conservative low-bit QDQ path.

TRACE Trajectory Calibration

TRACE is designed to answer a simple calibration question: given a prompt and a final answer, which reveal trajectory is most consistent with the model under the dLLM block schedule? This differs from standard AR calibration, where a complete sequence can be processed once. A dLLM calibration sample must instead contain intermediate masked states, because the model’s prediction and cache behavior depend on which answer tokens have already been revealed. Figure 2(a) illustrates this trajectory construction stage.

For a prompt-answer pair (p,y)(p, y), TRACE assigns each answer token yiy_i to one legal reveal step. The assignment is initialized by any schedule-consistent allocation, i.e., every token is placed inside its block window and each step receives the prescribed reveal budget. For a token yiy_i in block bb, the legal window Wi\mathcal{W}_i is the set of reveal steps assigned to that block. The reveal budgets {kt}\{k_t\} satisfy ∑tkt=∣y∣\sum_t k_t = |y| and define how many answer tokens are assigned

Algorithm 1 TRACE trajectory reconstruction

Require: prompt pp, answer yy, reveal budgets {kt}\{k_t\}, legal windows {Wi}\{\mathcal{W}_i\}, rounds RR

  1. Initialize a feasible assignment A(0)∈CA^{(0)} \in\mathcal{C}

  2. for r=0,…,R−1r = 0, \ldots, R - 1 do

  3. Build masked states {xt(r)}\{x_t^{(r)}\} from A(r)A^{(r)}

  4. Compute S(r)=[log⁡pθ(yi∣p,xt(r))]S^{(r)} = [\log p_{\theta}(y_i \mid p, x_t^{(r)})]

  5. Solve Eq. 4.1 by min-cost flow

  6. if A′=A(r)A' = A^{(r)} then

  7. return A′A'

  8. end if

  9. Set A(r+1)←A′A^{(r+1)} \leftarrow A'

  10. end for

  11. return A(R)A^{(R)}

to each step in calibration. Given an assignment at refinement round rr, we roll out the corresponding masked states {xt(r)}\{x_t^{(r)}\} and compute the state matrix Si,t(r)=log⁡pθ(yi∣p,xt(r))S_{i,t}^{(r)} = \log p_{\theta}(y_i \mid p, x_t^{(r)}) for legal token-step pairs. The next assignment is obtained by

A(r+1)=arg⁡max⁡A∈C S(r)(A),A^{(r+1)} = \underset{A \in\mathcal{C}}{\arg\max}\ S^{(r)}(A),

where C\mathcal{C} is the set of assignments satisfying the block window and per-step reveal-budget constraints. This linear assignment problem is solved as min-cost max-flow [9] with edge cost −si,t(r)-s_{i,t}^{(r)}. Equivalently, each answer token sends one unit of flow to one legal step, and each step receives exactly ktk_t units. The rollout and assignment steps are repeated until the trajectory stabilizes or a small refinement limit is reached. The saved artifact contains only the prompt, answer, and reveal assignment. Logits and KV caches are recomputed on demand for later diagnostics.

Quantization format. We use quantize-dequantize (QDQ) to denote the simulated low-bit cache path, a common abstraction in post-training quantization and low-bit LLM serving (Yao et al., 2022; Xiao et al., 2023; Shao et al., 2024; Lin et al., 2025). dLLM-KVQ keeps the K/V grouping used by representative AR KV-cache quantizers [14] (Liu et al. 2024); the implementation details and distribution plots are given in Appendix § 9.§ 4.

K-Cache Policy Selection

The policy determines how many K-cache tokens in each group should remain in high precision instead of being quantized to low bit-width. The use of attention-derived token scores is related in spirit to AR KV retention methods that exploit persistent or prompt-local attention concentration (Zhang et al., 2023; Xiao et al., 2024; Li et al., 2024; Cai et al., [4]), but here the score is used to decide which K tokens keep high precision rather than which tokens remain in the cache. For a cache mode mm and layer ℓ\ell, the policy selects a candidate a=(s,p)a=(s,p): ss is a token-importance score and pp is the number of K tokens per group kept in high precision. The candidate score can be based on attention from the block-initial forward pass, K quantization error when all K tokens are quantized, or their normalized product. The high-precision budget is selected from {0,1,2,4}\{0,1,2,4\} in our main experiments. Budget p=0p=0 corresponds to ordinary low-bit K quantization.

The full-recompute cache in § 3 is the reference used to define cache-reuse error. Policy selection is instead expressed relative to the same reused cache with all K tokens quantized, because every inference-time candidate starts from that cache state. This offline fitting stage is summarized in Figure 2(b). For a record rr from a reconstructed trajectory—identified by a calibration sample, cache mode, block, denoising step, and layer—and candidate aa, let Δq(a,r)\Delta_q(a,r) be the improvement over this baseline for behavior metric qq. Metrics whose smaller values are better, such as score distance or attention KL, use baseline minus candidate. Metrics whose larger values are better, such as top-1 agreement or top-KK recall, use candidate minus baseline. In our experiments, qq includes centered score distance, attention KL, top-1 key agreement, and top-KK key recall. Centered score distance compares the logit-score vector after removing its mean; the key-agreement metrics test whether the largest-attended or top-KK attended cache tokens are preserved. Define

Lm,ℓ(a)=−∑qwqEr∈Dm,ℓΔq(a,r)+λEr∈Dm,ℓB(a,r),\mathcal{L}_{m,\ell}(a)=-\sum_q w_q \mathbb{E}_{r\in\mathcal{D}_{m,\ell}}\Delta_q(a,r) +\lambda\mathbb{E}_{r\in\mathcal{D}_{m,\ell}}B(a,r),

Here Dm,ℓ\mathcal{D}_{m,\ell} is the diagnostic record set for cache mode mm and layer ℓ\ell, wqw_q are fixed metric weights, λ\lambda weights the bit-width penalty, and B(a,r)B(a,r) measures effective bit-width. dLLM-KVQ selects am,ℓ∗=arg⁡min⁡a∈Am,ℓLm,ℓ(a)a^*_{m,\ell}=\arg\min_{a\in\mathcal{A}_{m,\ell}}\mathcal{L}_{m,\ell}(a). The feasible set also enforces reliability constraints, including a maximum effective K bit-width and a minimum win rate on the score-distance metric. Policies are selected separately for each model, cache mode, target bit-width, and layer. This objective is not optimized by gradient descent. It chooses a discrete deployment policy from trajectory-level measurements.

Online dLLM-KVQ Quantization

At inference time, dLLM-KVQ uses only information available during the block-initial forward pass. For the current cache mode and layer, it retrieves the selected score type and high-precision budget, as shown in Figure 2(c). If the score is based on attention, the importance of cache token ii is the average attention probability, computed in that block-initial pass, assigned by active-block queries:

Iiattn=1∣H∣ ∣Qb∣∑h∈H∑q∈QbAℓ,h,q,iinit,I_i^{\mathrm{attn}} = \frac{1}{|\mathcal{H}|\,|Q_b|} \sum_{h \in\mathcal{H}} \sum_{q \in Q_b} A^{\mathrm{init}}_{\ell,h,q,i},
Aℓ,h,q,iinit=[softmax⁡(qℓ,h,qinit(Kℓ,hinit)dh)]i.A^{\mathrm{init}}_{\ell,h,q,i} = \left[\operatorname{softmax}\left(\frac{q^{\mathrm{init}}_{\ell,h,q}(K^{\mathrm{init}}_{\ell,h})}{\sqrt{d_h}}\right)\right]_i.

Here H\mathcal{H} is the set of attention heads, QbQ_b is the set of query positions in the active block BbB_b, and dhd_h is the head dimension. If the score is quantization error, the importance is the token-wise reconstruction error produced by ordinary low-bit K quantization without protection:

Iiqe=∥Kℓ,iinit−[QDQ⁡βbase(Kℓ,G(i)init)]i∥2.I_i^{\mathrm{qe}} = \left\|K^{\mathrm{init}}_{\ell,i} - \left[\operatorname{QDQ}^{\mathrm{base}}_{\beta}\left(K^{\mathrm{init}}_{\ell,G(i)}\right)\right]_i\right\|_2.

Here QDQ⁡βbase\operatorname{QDQ}^{\mathrm{base}}_{\beta} denotes the baseline K quantize-dequantize operator at bit-width β\beta with high-precision budget p=0p = 0, and G(i)G(i) is the token group containing token ii. The hybrid score multiplies normalized block-initial attention and normalized quantization error.

KIVI-style K quantization groups K-cache tokens along the token dimension. Within each group, dLLM-KVQ keeps the top-pp tokens under IiI_i in high precision. The remaining tokens are quantized with min-max quantize-dequantize, where the range is estimated only from the tokens that will be quantized in the same group. This exclusion prevents high-precision outliers from expanding the quantization grid for the low-bit tokens. The V cache uses the standard contiguous low-bit quantize-dequantize described in Appendix § 9.§ 4, without residual tails or clipping in the submitted method.

The offline and online stages are deliberately separated. Offline diagnostics may compare candidate policies against full recomputation to choose the policy. Online inference does not access full recomputation. It applies the selected policy to the reused cache state already required by dLLM cache reuse.

Experiments

Setup. Our experimental protocol follows Fast-dLLM (Wu et al. (2025)), which provides the prefix and dual cache-reuse mechanisms studied in this work. We evaluate on LLaDA-Instruct (Nie et al. (2026)) and Dream-Base-7B (Ye et al. (2025)) with the same benchmark suite: GSM8K (Cobbe et al. [7]), HumanEval (Chen et al. [5]), MATH (Hendrycks et al. [13]), and MBPP (Austin et al. [3]). All reported runs use generation length 256, block length 32, and Fast-dLLM’s confidence-threshold parallel decoding with threshold 0.9. We evaluate 4-bit and 2-bit KV-cache quantization in both prefix and dual cache modes, using NVIDIA H200 140GB GPUs. Detailed few-shot settings, calibration data construction, and quantizer hyperparameters are provided in Appendix § 9.§ 1.

Baselines. The no-cache row is the original-inference reference. The direct baselines for cache quantization are the prefix-cache and dual-cache rows, because quantized methods are applied on top of these cache mechanisms. We compare against KIVI (Liu et al. (2024)) and KVQuant (Hooper et al. [14]) after adapting both methods to the same dLLM cache interface.

Main Results

Tables 1 and 2 report the main result matrix. Each quantized row should be compared with the matching cache-only reference in the same model, cache mode, and bit-width block. Across both models, both cache modes, and both bit-widths, dLLM-KVQ obtains the highest average score among the evaluated quantized methods.

For LLaDA, dLLM-KVQ is strongest in the prefix-cache setting. At 4-bit it improves the average over KIVI and KVQuant (45.34 versus 44.50 and 44.21) and also recovers the cache-only MBPP score. At 2-bit, where ordinary low-bit cache quantization is more fragile, dLLM-KVQ keeps the best average and avoids the large MBPP drop observed for KVQuant. Dual cache is more mixed at the task level: KIVI is better on HumanEval in the 4-bit setting and KIVI or KVQuant tie dLLM-KVQ on some 2-bit tasks. However, dLLM-KVQ still gives the best dual-cache average at both bit-widths, mainly by keeping GSM8K, MATH, and MBPP from moving in different adverse directions.

Dream shows a different failure pattern. KVQuant is often the strongest method on GSM8K, especially in dual cache, but the same rows lose accuracy on HumanEval, MATH, and MBPP. This task imbalance is why KVQuant has lower average @references<lemma scores than dLLM-KVQ in every Dream setting, even when it wins one task. dLLM-KVQ does not dominate every individual cell; rather, it gives the most stable average behavior across tasks, models, cache modes, and bit-widths. This supports the analysis in § 3: cache reconstruction error alone is not a reliable predictor of generation quality under dLLM cache reuse, because the useful quantization policy depends on how cache perturbations affect attention and output decisions.

MethodGSM8KHumanEvalMATHMBPPAvg.
LLaDA full attention78.6242.0733.3629.8045.96
Prefix cache
Cache only78.4742.0733.1826.6045.08
KIVI77.3342.6832.4025.6044.50
KVQuant77.4842.0732.6824.6044.21
dLLM-KVQ77.9443.9032.9226.6045.34
Dual cache
Cache only77.9435.9832.6225.8043.09
KIVI76.3537.2032.6225.6042.94
KVQuant78.0135.3732.9025.8043.02
dLLM-KVQ78.6234.7633.0226.8043.30

Table 1. LLaDA results under 4-bit and 2-bit KV cache quantization. LLaDA full attention denotes no-cache original inference. Cache-only rows are unquantized cache references. For dLLM-KVQ, each row reports the selected configuration in the current result matrix. Average denotes the arithmetic mean over GSM8K, HumanEval, MATH, and MBPP.

MethodGSM8KHumanEvalMATHMBPPAvg.
LLaDA full attention78.6242.0733.3629.8045.96
Prefix cache
Cache only78.4742.0733.1826.6045.08
KIVI76.5038.4132.3827.2043.62
KVQuant76.2739.6332.3017.6041.45
dLLM-KVQ77.1839.6332.9027.8044.38
Dual cache
Cache only77.9435.9832.6225.8043.09
KIVI77.5634.1531.8627.8042.84
KVQuant77.4835.9831.9417.0040.60
dLLM-KVQ77.7935.9832.0427.2043.25

Table 1 (PDF p. 7). LLaDA results under 4-bit and 2-bit KV cache quantization. LLaDA full attention denotes no-cache original inference. Cache-only rows are unquantized cache references. For dLLM-KVQ, each row reports the selected configuration in the current result matrix. Average denotes the arithmetic mean over GSM8K, HumanEval, MATH, and MBPP.

MethodGSM8KHumanEvalMATHMBPPAvg.
Dream full attention74.1539.6334.1854.4050.59
Prefix cache
Cache only74.6043.2934.2055.2051.82
KIVI73.6940.8533.7454.2050.62
KVQuant74.8337.8033.8654.6050.27
dLLM-KVQ74.5341.4634.2856.2051.62
Dual cache
Cache only74.9137.2033.5053.0049.65
KIVI73.2437.2033.7053.0049.29
KVQuant75.8935.9833.3052.8049.49
dLLM-KVQ74.9137.8034.0453.6050.09

Table 2. Dream results under 4-bit and 2-bit KV cache quantization. Dream full attention denotes no-cache original inference. Cache-only rows are unquantized cache references. For dLLM-KVQ, each row reports the selected configuration in the current result matrix. Average denotes the arithmetic mean over GSM8K, HumanEval, MATH, and MBPP.

MethodGSM8KHumanEvalMATHMBPPAvg.
Dream full attention74.1539.6334.1854.4050.59
Prefix cache
Cache only74.6043.2934.2055.2051.82
KIVI71.5740.2431.5252.6048.98
KVQuant73.9236.5932.2852.2048.75
dLLM-KVQ71.8042.0732.3653.2049.86
Dual cache
Cache only74.9137.2033.5053.0049.65
KIVI70.4339.0231.3651.6048.10
KVQuant72.7129.8831.5251.2046.33
dLLM-KVQ71.7239.0232.5652.0048.83

Table 2 (PDF p. 7). Dream results under 4-bit and 2-bit KV cache quantization. Dream full attention denotes no-cache original inference. Cache-only rows are unquantized cache references. For dLLM-KVQ, each row reports the selected configuration in the current result matrix. Average denotes the arithmetic mean over GSM8K, HumanEval, MATH, and MBPP.

Ablation Studies

The ablations use LLaDA, MBPP, 4-bit quantization, and Fast-dLLM cache modes to isolate whether the selected K policy is useful at inference time.

Task-level K-policy controls. Table 3 compares inference-time K policies while keeping K/V quantization active. Fixed attention-based rules remain below dLLM-KVQ in both cache modes, even when they spend more K precision. In prefix cache, dLLM-KVQ matches the KIVI K/V and cache-only MBPP score, whereas the fixed attention rules reduce the score. In dual cache, the selected policy improves over both KIVI K/V and the best fixed rule in the table. The result does not claim that the K policy alone beats every KIVI K/V baseline; it shows that a single layer-independent high-precision rule is insufficient, and that policy selection must depend on the layer and cache mode.

MethodK high-precision ruleMBPP
KIVI K/VNone; all low-bit26.60
Fixed K ruleAttention, p=4p = 425.60
Fixed K ruleAttention, p=2p = 225.20
dLLM-KVQSelected per layer26.60

Table 3. Task-level LLaDA MBPP policy controls under 4-bit K/V cache quantization. Scores are pass@1. The pp value denotes how many K tokens per token group are kept in high precision. Fixed K-rule rows use the same rule in every layer, while dLLM-KVQ selects this rule separately for each layer using trajectory calibration. Dual rows use the same generation length, block length, and cache mode as Table 1.

Trajectory-level diagnostics. Table 4 evaluates the same policy on reconstructed denoising states not used for task scoring. Each paired record compares the selected policy with the baseline that quantizes all K tokens to low bit-width. The policy improves centered-score distance on 96.4%/94.9% of prefix/dual records and attention KL on 88.9%/90.0%, while also improving top- @page 7/15 starts_mid=0 ends_mid=1

ModeL2KLTop-1Top-KEff. bits
Prefix96.488.972.985.94.77
Dual94.990.071.782.54.60

Table 4. Trajectory-level win rates for the compiled K-side policy on LLaDA 4-bit calibration traces. Each win rate is the percentage of paired records improved over unprotected K quantization; L2 and KL are converted to improvements by lower distance/divergence, while Top-1 and Top-K use higher agreement/recall.

MethodGSM8KHumanEvalMATHMBPPAvg.
LLaDA full attention78.6242.0733.3629.8045.96
Prefix cache
Cache only78.4742.0733.1826.6045.08
KIVI77.3342.6832.4025.6044.50
KVQuant77.4842.0732.6824.6044.21
dLLM-KVQ77.9443.9032.9226.6045.34
Dual cache
Cache only77.9435.9832.6225.8043.09
KIVI76.3537.2032.6225.6042.94
KVQuant78.0135.3732.9025.8043.02
dLLM-KVQ78.6234.7633.0226.8043.30

Table 1 (PDF p. 7, second). LLaDA results under 4-bit and 2-bit KV cache quantization. LLaDA full attention denotes no-cache original inference. Cache-only rows are unquantized cache references. For dLLM-KVQ, each row reports the selected configuration in the current result matrix. Average denotes the arithmetic mean over GSM8K, HumanEval, MATH, and MBPP.

MethodGSM8KHumanEvalMATHMBPPAvg.
LLaDA full attention78.6242.0733.3629.8045.96
Prefix cache
Cache only78.4742.0733.1826.6045.08
KIVI76.5038.4132.3827.2043.62
KVQuant76.2739.6332.3017.6041.45
dLLM-KVQ77.1839.6332.9027.8044.38
Dual cache
Cache only77.9435.9832.6225.8043.09
KIVI77.5634.1531.8627.8042.84
KVQuant77.4835.9831.9417.0040.60
dLLM-KVQ77.7935.9832.0427.2043.25

Table 1 (PDF p. 7, third). LLaDA results under 4-bit and 2-bit KV cache quantization. LLaDA full attention denotes no-cache original inference. Cache-only rows are unquantized cache references. For dLLM-KVQ, each row reports the selected configuration in the current result matrix. Average denotes the arithmetic mean over GSM8K, HumanEval, MATH, and MBPP.

MethodGSM8KHumanEvalMATHMBPPAvg.
Dream full attention74.1539.6334.1854.4050.59
Prefix cache
Cache only74.6043.2934.2055.2051.82
KIVI73.6940.8533.7454.2050.62
KVQuant74.8337.8033.8654.6050.27
dLLM-KVQ74.5341.4634.2856.2051.62
Dual cache
Cache only74.9137.2033.5053.0049.65
KIVI73.2437.2033.7053.0049.29
KVQuant75.8935.9833.3052.8049.49
dLLM-KVQ74.9137.8034.0453.6050.09

Table 2 (PDF p. 7, second). Dream results under 4-bit and 2-bit KV cache quantization. Dream full attention denotes no-cache original inference. Cache-only rows are unquantized cache references. For dLLM-KVQ, each row reports the selected configuration in the current result matrix. Average denotes the arithmetic mean over GSM8K, HumanEval, MATH, and MBPP.

MethodGSM8KHumanEvalMATHMBPPAvg.
Dream full attention74.1539.6334.1854.4050.59
Prefix cache
Cache only74.6043.2934.2055.2051.82
KIVI71.5740.2431.5252.6048.98
KVQuant73.9236.5932.2852.2048.75
dLLM-KVQ71.8042.0732.3653.2049.86
Dual cache
Cache only74.9137.2033.5053.0049.65
KIVI70.4339.0231.3651.6048.10
KVQuant72.7129.8831.5251.2046.33
dLLM-KVQ71.7239.0232.5652.0048.83

Table 2 (PDF p. 7, third). Dream results under 4-bit and 2-bit KV cache quantization. Dream full attention denotes no-cache original inference. Cache-only rows are unquantized cache references. For dLLM-KVQ, each row reports the selected configuration in the current result matrix. Average denotes the arithmetic mean over GSM8K, HumanEval, MATH, and MBPP.

scores than dLLM-KVQ in every Dream setting, even when it wins one task. dLLM-KVQ does not dominate every individual cell; rather, it gives the most stable average behavior across tasks, models, cache modes, and bit-widths. This supports the analysis in § 3: cache reconstruction error alone is not a reliable predictor of generation quality under dLLM cache reuse, because the useful quantization policy depends on how cache perturbations affect attention and output decisions.

Ablation Studies

The ablations use LLaDA, MBPP, 4-bit quantization, and Fast-dLLM cache modes to isolate whether the selected K policy is useful at inference time.

Task-level K-policy controls. Table 3 compares inference-time K policies while keeping K/V quantization active. Fixed attention-based rules remain below dLLM-KVQ in both cache modes, even when they spend more K precision. In prefix cache, dLLM-KVQ matches the KIVI K/V and cache-only MBPP score, whereas the fixed attention rules reduce the score. In dual cache, the selected policy improves over both KIVI K/V and the best fixed rule in the table. The result does not claim that the K policy alone beats every KIVI K/V baseline; it shows that a single layer-independent high-precision rule is insufficient, and that policy selection must depend on the layer and cache mode.

Trajectory-level diagnostics. Table 4 evaluates the same policy on reconstructed denoising states not used for task scoring. Each paired record compares the selected policy with the baseline that quantizes all K tokens to low bit-width. The policy improves centered-score distance on 96.4%/94.9% of prefix/dual records and attention KL on 88.9%/90.0%, while also improving top1 key agreement and top-KK key recall on most records. These diagnostics are not downstream task scores, but they check the mechanism that motivates the method: the selected high-precision K entries should preserve both output scores and the attention choices induced by the reused cache. The effective K bit-widths are 4.77 in prefix cache and 4.60 in dual cache, below the 4.9-bit policy cap, so the diagnostic gain is not explained only by a large precision increase. Together with the task-level controls, this indicates that the benefit comes from choosing which K entries to protect, not merely from adding a uniform high-precision reserve.

MethodK high-precision ruleMBPP
Cache only–25.80
KIVI K/VNone; all low-bit25.60
Fixed K ruleAttention, p=2p = 225.20
Fixed K ruleAttn.×Q-error, p=2p = 226.00
dLLM-KVQSelected per layer26.80

Table 3b.

Related Works

Diffusion language models and fast inference. Diffusion and masked language models generate text through iterative denoising rather than causal next-token prediction (Lou et al., 2023; Sahoo et al., 2024; Shi et al., 2024). Recent systems such as LLaDA and Dream show that bidirectional masked denoising can support general language, math, and code tasks at LLM scale (Nie et al., 2026; Ye et al., 2025). Fast-dLLM, dLLM-Cache, and Block Diffusion reduce the repeated full-sequence computation required by iterative denoising through block-wise generation, cache reuse, adaptive updates, or parallel token sampling [1] (Wu et al. 2025; Liu et al. 2025). These acceleration methods differ in schedule, but they share the issue studied in this paper: reused KV states are approximate because bidirectional token representations can change after later tokens are revealed. dLLM-KVQ is orthogonal to these systems and quantizes the reused cache states they produce.

KV cache quantization. LLM compression has been extensively studied through post-training weight and activation quantization, including methods such as SmoothQuant, GPTQ, and AWQ [10] (Xiao et al. 2023; Lin et al. 2024). KV cache quantization targets a different bottleneck: the activation memory that grows with context length, batch size, and generation length during inference. KIVI and KVQuant are representative AR KV-cache quantizers, using asymmetric K/V granularity, pre-RoPE key quantization, non-uniform datatypes, and outlier handling [14] (Liu et al. 2024). These methods assume cached prefix states are exact reference states under causal attention. In dLMS, the reused cache is itself an approximation to full recomputation. We therefore adapt KIVI and KVQuant as baselines, but evaluate quantization with behavior-level metrics and introduce trajectory-calibrated K-side quantization under stale-cache mismatch.

Conclusion

We studied KV cache quantization for diffusion language models and show that cache reuse shifts the objective from cache reconstruction to behavior preservation under reuse-induced error. TRACE calibrates denoising trajectories, and dLLM-KVQ uses these states to select K-side policies with conservative V-side quantize-dequantize. Results on LLaDA and Dream, together with LLaDA trajectory diagnostics, support dLLM-KVQ as a reproducible dLLM cache-quantization algorithm.

Limitations

The evaluation covers two representative diffusion language models, two Fast-dLLM cache modes, four tasks, and both 4-bit and 2-bit KV-cache settings. It does not exhaust all decoding schedules, sequence lengths, batch sizes, or future dLLM architectures. These extensions are natural follow-up settings for calibration and policy selection rather than changes to the core cache-reuse error studied here.

dLLM-KVQ spends its adaptive budget on K states because the method is designed to preserve attention behavior under cache reuse. The V cache is therefore kept on a simple low-bit quantize-dequantize path. More specialized V-side policies may provide additional gains, especially in regimes where value reconstruction rather than attention stability becomes the dominant factor, but they are orthogonal to the main K-side behavior-preservation result. Finally, this paper reports task quality and effective-bit accounting. End-to-end serving speed depends on fused low-bit attention kernels and runtime integration, as in prior LLM serving and quantized-serving systems (Kwon et al., 2023; Lin et al., 2025).

Additional Method Details

Experimental Setup

We follow the Fast-dLLM evaluation protocol (Wu et al., 2025) while adding KV-cache quantization. The evaluated models are GSAI-ML/LLaDA-8B-Instruct (Nie et al., 2026) and Dream-org/Dream-v0-Base-7B (Ye et al., 2025). The benchmark suite is shared across both models: GSM8K [7], MATH [13], HumanEval [5], and MBPP [3]. We use the lm-eval task definitions [11] with 5-shot GSM8K, 4-shot MATH, 0-shot HumanEval, and 3-shot MBPP. Experiments are run on NVIDIA H200 140GB GPUs.

All reported task runs use generation length 256, block length 32, and confidence-threshold parallel decoding with threshold 0.9. Prefix and dual cache modes are evaluated separately. The no-cache row is the original diffusion inference reference; prefix-cache and dual-cache rows are the direct cache-only references for the corresponding quantized methods. All quantized rows use both 4-bit and 2-bit KV-cache settings and quantize both KK and VV unless otherwise stated.

For adapted KIVI (Liu et al., 2024), adapted KVQuant [14], and dLLM-KVQ, implementation details are provided in Appendix § 9.§ 3. For dLLM-KVQ, we use group size 32, the standard contiguous value-side QDQ path, and a fixed KK-token budget policy selected from TRACE diagnostics. Online dLLM-KVQ inference uses attention scores computed during the block-initial forward pass and the fixed policy table; it does not use full-recompute statistics at evaluation time.

The calibration corpus is a compact mixed dataset constructed from C4 (Raffel et al., 2020), UltraChat [8], ARC [6], and CodeSearchNet-Python (Husain et al., 2019). The default collection script saves 1000 C4 records, 500 UltraChat records, 300 ARC records, and 200 CodeSearchNet records with a minimum length filter. For trajectory calibration, we use the chat-style mixed_chat loader: it samples prompt-answer pairs from the instruction, QA, and code buckets with weights 0.50, 0.25, and 0.25, respectively, applies the model chat template to prompts when available, appends EOS to answers when available, and truncates answers to a multiple of the block length. dLLM-KVQ policy fitting uses eight calibration trajectory samples per model, cache mode, and bit width.

Responsible Research and Reproducibility Details

Artifacts and intended use. This paper studies inference-time KV-cache quantization. We use publicly released pretrained checkpoints, GSAI-ML/LLaDA-8B-Instruct and Dream-org/Dream-v0-Base-7B, and do not train new base models. The model cards list MIT for LLaDA and Apache-2.0 for Dream; the LLaDA card reports 8B parameters, and the Dream checkpoint is a 7B-class diffusion language model whose current model card reports an 8B parameter scale. We use Fast-dLLM, KIVI, KVQuant, Hugging Face Transformers, Accelerate, and lm-eval; KIVI and KVQuant are modified only to run through the same Fast-dLLM cache wrapper described in Appendix § 9.§ 3. Any released code or policy files are intended for research evaluation of dLLM cache compression. We do not redistribute pretrained model weights, benchmark datasets, or the public calibration corpora.

Data, domains, and splits. All evaluation benchmarks are public English-language or Python-code benchmarks used through lm-eval. We evaluate on the official test/evaluation sets: GSM8K has 1,319 test examples, HumanEval has 164 programming tasks, MATH has 5,000 test examples, and MBPP has 500 test examples in the evaluated split. Few-shot settings are reported in Appendix § 9.§ 1. Calibration uses English text, instruction/QA examples, and Python code from C4, UltraChat, ARC, and CodeSearchNet-Python. The calibration corpus is used only to construct prompt-answer pairs and reconstructed denoising trajectories; benchmark test labels are not used for policy fitting.

Privacy, offensive content, and data release. We do not collect new human-subject data, run new annotation studies, infer protected attributes, or scrape new data sources. We rely on the public releases and documentation of the original datasets and do not perform an additional manual PII or offensive-content audit. Calibration artifacts may contain tokenized or decoded snippets from the source corpora, so they should be treated as derived research artifacts subject to the original dataset terms and should not be redistributed without checking those terms. The task benchmarks and calibration sources may contain naturally occurring web, instruction, or code text; our method does not attempt to filter or classify such content.

Experimental reporting. The reported task results are single-run inference evaluations under fixed decoding and quantization settings, not averages over random seeds. Table averages are arithmetic means over the four reported tasks. The main task runs use transformers==4.49.0, lm_eval==0.4.8, and accelerate==0.34.2. The main experiments and diagnostics ran on NVIDIA H200 140GB GPUs. The study did not train or fine-tune models; computation came from calibration, diagnostics, and benchmark inference. Exact aggregate GPU-hours across all exploratory diagnostics were not centrally logged, so we report the available infrastructure, model sizes, benchmark sizes, and fixed hyperparameters rather than an exact total GPU-hour budget.

Risks and AI assistance. The method may reduce the cost of serving diffusion language models, which can improve accessibility but can also lower the cost of misuse inherited from the underlying models. The method does not provide new safety filtering, privacy protection, or defenses against malicious generation. Code-generation evaluation can execute generated Python programs, so it should be run only in an appropriate sandbox. AI assistants were used during paper preparation for codebase navigation, editing support, checklist organization, and drafting candidate wording. They were not treated as authors and did not make final research or writing decisions; all included content was reviewed by the authors.

KIVI and KVQuant Adaptations

We port KIVI and KVQuant into the same Fast-dLLM cache interface used by dLLM-KVQ. All quantizers wrap the model with a common cache wrapper: before a forward pass, quantized past_key_values are dequantized; after a cache-producing forward pass, the returned K/V cache is quantized and stored. The wrapper receives the current block range and cache mode, so the same quantizer code is used for prefix and dual cache reuse.

For KIVI, we keep the asymmetric granularity of the original method: K is quantized along the token dimension with channel-wise scales, and V is quantized along the channel dimension with token-wise scales. The original AR decoding implementation maintains residual high-precision tails during generation. In our Fast-dLLM adaptation, cache states are stored at block-level reuse points, so the main experiments disable the residual tail with residual_length=0 and use group size 32. This makes the KIVI baseline a direct low-bit quantization of the reused dLLM cache rather than a separate AR streaming-cache policy.

For KVQuant, we fit a bit-width-specific calibration state from collected Fast-dLLM KV cache traces. The calibration script stores native cache samples and, when enabled, Fisher-style activation-gradient weights. It also reshapes Dream’s 3D cache layout into the common [batch, heads, tokens, dim] layout used by the calibration code. The deployed quantizer loads the fitted per-layer key/value state, applies non-uniform lookup quantization, keeps sparse outlier handling enabled with sparsity threshold 0.99, and sets first_few_fp16=0. KVQuant uses pre-RoPE cache keys when the model exposes that cache-position mode; the other reported quantizers use the native post-RoPE cache path.

Quantization Granularity

dLLM-KVQ follows the K/V granularity used by representative AR KV-cache quantizers ([14] (Liu et al. 2024)). Key activations show channel-wise structure across tokens, while value activations are better represented by token-wise channel grouping. Accordingly, K is quantized with channel-wise scales over token groups, and V is quantized with token-wise scales over channel groups. The dLLM-specific part of dLLM-KVQ is the policy that decides which K-cache tokens stay in high precision, not a new basic QDQ format.

TRACE Flow Construction

TRACE assigns answer tokens only. Prompt tokens are fixed context and are never flow items. For an answer token yiy_i, let Wi\mathcal{W}_i be the legal reveal window induced by its block. Given the score matrix S=[si,t]S=[s_{i,t}], the assignment solved in each refinement round is

max⁡A∑i∑t∈WiAi,tsi,ts.t.∑t∈WiAi,t=1∀i,∑iAi,t=kt∀t,Ai,t∈{0,1}.\begin{aligned} \max_A \quad& \sum_i \sum_{t \in\mathcal{W}_i} A_{i,t}s_{i,t} \\ \text{s.t.}\quad& \sum_{t \in\mathcal{W}_i} A_{i,t} = 1 \quad\forall i, \\ & \sum_i A_{i,t} = k_t \quad\forall t, \\ & A_{i,t} \in\{0,1\}. \end{aligned}
Representative K/V cache distributions used to choose quantization granularity

Figure 3. Representative K/V cache distributions used to choose quantization granularity.

The corresponding min-cost flow graph has a source node, one node for each answer token, one node for each reveal step, and a sink node. Source-to-token edges have capacity one and zero cost. Token-to-step edges exist only when t∈Wit \in\mathcal{W}_i, have capacity one, and have cost −si,t-s_{i,t}. Step-to-sink edges have capacity ktk_t and zero cost. The total flow equals the number of answer tokens. This construction enforces that every answer token is revealed once and that every reveal step receives its prescribed budget.

The initializer only needs to satisfy the same feasibility constraints. The current implementation uses a deterministic schedule-consistent initializer so that calibration artifacts are reproducible. We run a small fixed number of rollout-refinement rounds and stop early when the assignment no longer changes. Additional sensitivity results for initialization and refinement depth will be reported with the final calibration ablations.

Policy Diagnostics and Selection

Diagnostics compare each candidate against a baseline that quantizes all K tokens in the reused cache to low bit-width. Each paired record uses the same cache mode, sample index, block, step, and layer. Lower-is-better metrics include centered score distance and attention KL. Higher-is-better metrics include top-1 key agreement, top-KK key recall, and score cosine. Each metric is converted to a signed improvement over this baseline before policy selection.

The default candidate set uses three token scores available at inference time: attention from the block-initial forward pass, K quantization error, and the normalized product of the two. The high-precision K-token budget per group is chosen from {0,1,2,4}\{0, 1, 2, 4\}. The current selection weights are 1.0 for centered score distance, 0.001 for attention KL, 0.10 for top-1 agreement, and 0.05 for top-KK recall. A candidate is accepted only when it improves the weighted score, has sufficient paired records, passes a centered-score win-rate gate, and stays within the effective K bit-width cap. The main experiments use a win-rate gate of 0.5 and an effective K bit-width cap of 4.9.

The full paper will include the selected per-layer policies for each reported model, cache mode, and bit-width. This table is omitted from the main text because it is long, but it is part of the fixed experimental configuration rather than a task-specific tuning step.

Online Quantization Details

K-cache quantization uses contiguous groups along the token dimension. For each group, the selected policy ranks tokens by the chosen score and keeps the top-pp tokens in high precision. The remaining tokens are quantized with low-bit min-max QDQ. The high-precision tokens are excluded from min and max estimation so that outliers do not enlarge the low-bit quantization interval for the remaining tokens. If p=0p = 0, the operator reduces to ordinary KIVI-style K quantization.

V-cache quantization uses the standard value-side low-bit QDQ path with token-wise scales over channel groups. The submitted dLLM-KVQ does not use residual tails, clipping, or learned value-side policies. This is an intentional scope choice for the submitted method. Value-side policy variants showed weaker transfer in our diagnostics, so the method focuses on deciding which K tokens remain in high precision.

Additional Results to Report

The camera-ready appendix should include the following supporting material:

  • Full per-layer policy tables for LLaDA and Dream.

  • Additional K/V cache distribution plots across layers and heads.

  • TRACE initialization and refinement-depth sensitivity.

  • Effective-bit-width and high-precision K-token budget accounting. Runtime, throughput, and peak-memory measurements are outside the current experimental claims because they require the optimized-kernel implementation.

  • Calibration-sample sensitivity and per-layer policy visualizations.

  • Appendix-only V-side diagnostics, including fixed channel grouping, range-scale, and clipping controls.

  • Complete 4-bit and 2-bit tables for prefix and dual cache modes.

Additional Cache Visualizations

We additionally visualize K/V cache activations at several denoising steps within the same active block. These plots are qualitative checks rather than policy-selection metrics. Each surface shows the absolute value of one cache head over token and channel axes; the shaded red planes mark the active block. The examples use layer 5 and head 0 because they are readable for both LLaDA and Dream and avoid the very large outlier scales that appear in a few deeper Dream layers.

Figure 4 shows K-cache surfaces. For both models, the K cache contains clear channel-aligned high-magnitude regions inside and around the active block. Figure 5 shows the corresponding V-cache surfaces, which are less sharply concentrated for LLaDA but still structured for Dream. The visual difference between K and V is consistent with using different K/V quantization granularity, while the model-specific scale and pattern differences support selecting policies separately for each model and cache mode.

K-cache absolute-value surfaces across denoising steps

Figure 4. K-cache absolute-value surfaces across denoising steps in the same active block. The top row shows LLaDA and the bottom row shows Dream; columns show early, middle, and late denoising steps for block [2016,2048)[2016, 2048).

V-cache absolute-value surfaces across denoising steps

Figure 5. V-cache absolute-value surfaces for the same layer, head, block, and denoising steps as Figure 4.

References

  1. [1]Marianne Arriola, Aaron Gokaslan, Justin Chiu, Zhihan Yang, Zhixuan Qi, Jiaqi Han, Subham Sahoo, and Volodymyr Kuleshov. 2025. Block diffusion: Interpolating between autoregressive and diffusion language models. In International Conference on Learning Representations, volume 2025, pages 50726–50753.
  2. [2]Jacob Austin, Daniel D Johnson, Jonathan Ho, Daniel Tarlow, and Rianne Van Den Berg. 2021a. Structured denoising diffusion models in discrete state-spaces. Advances in neural information processing systems, 34:17981–17993.arxiv.org/abs/2107.03006
  3. [3]Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, and 1 others. 2021b. Program synthesis with large language models. arXiv preprint arXiv:2108.07732.arxiv.org/abs/2108.07732
  4. [4]Zefan Cai, Yichi Zhang, Bofei Gao, Yuliang Liu, Yuchen Li, Tianyu Liu, Keming Lu, Wayne Xiong, Yue Dong, Junjie Hu, and 1 others. 2024. Pyramidkv: Dynamic kv cache compression based on pyramidal information funneling. arXiv preprint arXiv:2406.02069.arxiv.org/abs/2406.02069
  5. [5]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Conde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, and 1 others. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.arxiv.org/abs/2107.03374
  6. [6]Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457.arxiv.org/abs/1803.05457
  7. [7]Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168.arxiv.org/abs/2110.14168
  8. [8]Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. 2023. Enhancing chat language models by scaling high-quality instructional conversations. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3029–3051.arxiv.org/abs/2305.14233
  9. [9]Jack Edmonds and Richard M Karp. 1972. Theoretical improvements in algorithmic efficiency for network flow problems. Journal of the ACM (JACM), 19(2):248–264.
  10. [10]Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. 2022. Gptq: Accurate post-training quantization for generative pre-trained transformers. arXiv preprint arXiv:2210.17323.arxiv.org/abs/2210.17323
  11. [11]Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Goddard, Jeffrey Hsu, Alain Le Noac’h, Haonan Li, Kyle McDonnell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, and 5 others. 2024. The language model evaluation harness.
  12. [12]Marjan Ghazvininejad, Omer Levy, Yinhan Liu, and Luke Zettlemoyer. 2019. Mask-predict: Parallel decoding of conditional masked language models. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pages 6112–6121.arxiv.org/abs/1904.09324
  13. [13]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874.
  14. [14]Coleman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Michael W Mahoney, Yakun S Shao, Kurt Keutzer, and Amir Gholami. 2024. Kvquant: Towards 10 million context length llm inference with kv cache quantization. Advances in Neural Information Processing Systems, 37:1270–1303.arxiv.org/abs/2401.18079

Paper details

vlnc:W_6x58tpa2
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents