GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing low-hands.github.io — Rui's Blog ![]() RuiSaturday, March 14, 2026 | 8 minutes Diffusion LLM paper reading1 Residual Context Diffusion Language ModelsMethod
Algorithm
$\Delta_i^{(t_k)} = \sum_{j=1}^V p_{i,j}^{(t_k)} E_{j,:}$ $E_{j}$ is the embedding for that word.
$\alpha_i^{(t_k)} = \frac{-\sum_{j=1}^V p_{i,j}^{(t_k)} \log p_{i,j}^{(t_k)}}{\log V}$ The larger $\alpha$ is, the less certain the model is about the word, and the more it should be retained. If high-confidence words are not predicted, it indicates they should likely not be retained further. $\log V$ is used to compress $\alpha$ between 0 and 1.
If it has been predicted, it equals the word embedding. $\tilde{e}i^{(t_k)} = \begin{cases} (1 - \alpha_i^{(t{k-1})})E(x_i^{(t_k)}) + \alpha_i^{(t_{k-1})}\Delta_i^{(t_{k-1})}, & \text{if } x_i^{(t_k)} = \text{[MASK]} \ E(x_i^{(t_k)}), & \text{otherwise} \end{cases}$ Training1 Reference Model InitializationTrain a $\mathcal{M}_{ref}$ and freeze all parameters to output $p^{(t)}$. 2 Residual-Aware Target TrainingTrain a $\mathcal{M}_{target}$, where the input is a sentence with [MASK]s.
Inference1 Warm-Start$\mathcal{M}_{ref}$ outputs the probability distribution $p^{(t_0)}$ for the first step. 2 Recursive DecodingAt each time step $t_k$:
Temperature-Scaled Entropy Alignment In the inference phase, $\Delta$ and $\alpha$ no longer depend on $\mathcal{M}_{ref}$. $\mathcal{M}_{target}$ tends to be over-confident when relying on its own previous round’s predictions, causing $\alpha$ to trend towards 0, which makes the final result indistinguishable from [MASK]. Before converting scores to probabilities, a Residual temperature scalar is introduced to flatten extreme probability values: $p_i^{(t_k)}(T_{res}) = \text{softmax}(z_i / T_{res})$ 2 Deferred Commitment Decoding for Diffusion Language ModelsMethod
Algorithm1 Sliding Window
$r$ is the block’s right boundary (absolute right boundary). 2 Deferred Decoding$$\mathcal{S}^{(t)} = \mathcal{M}^{(t)} \cap [L^{(t)}, R^{(t)}) \cap {i \mid \mathcal{C}(i) \ge \min(\tau, \max_j \mathcal{C}(j))}$$ Determines which [MASK]s in the window will be decoded. Confidence must be greater than a threshold or the highest confidence within the window. 3 Dynamic Block Extension (DBE)$$\min_{i \in \mathcal{S}^{(t)}} \mathcal{C}(i) < \tau_{low} \text{ and } R^{(t)} - L^{(t)} < s_{max} \text{ and } \sum_{k=L^{(t)}}^{R^{(t)}-1} [x_k^{(t)} = \langle \text{MASK} \rangle] < s_{init}$$ For semi-causal DLMs, the sliding window still operates between blocks. If the window reaches the block boundary (conditions 2 and 3) and confidence within the window is very low (condition 1), dynamically extend the block size: $$r’ = \min(r + e_{step}, \text{blocksize} + e_{max})$$ Extend the window right boundary by $e_{step}$ units, not exceeding a maximum limit. 4 DCD’s Combination with KV Cache$$\mathcal{W}^{(t)} = {x_i^{(t)} \mid i \in [L^{(t-1)} - r, R^{(t)} + r)}$$ Prefix Cache: Temporarily stores KV for all tokens before the active interval. Dual Cache: Simultaneously stores KV for both prefix and suffix tokens. Reconstruct the cache every time $B’$ masked words are successfully decoded. 3 WAVEFRONTDIFFUSION: DYNAMIC DECODING SCHEDULE OR IMPROVED REASONINGMethod
Algorithm1 DefinitionSet a radius $R$ to include context: $$\mathcal{W}{t}={i \mid dist(i,\mathcal{C}{t})\le R}$$ $C_t$ is the set of confirmed tokens. 2 Decoding Iteration Process
$$kbase = ⌊N/T/⌋, extra =N \pmod T$$ $N$ is the total number of words to decode. $T$ is the number of steps. $\mathbb{I}$ is the indicator function, equal to 1 if the condition is met.
4 AdaBlock-dLLM: SEMANTIC-AWARE DIFFUSION LLM INFERENCE VIA ADAPTIVE BLOCK SIZEMethod
AlgorithmAdaptive block size adjustment based on semantics. Set a delimiters set $D$. The delimiter with the highest confidence in the window is denoted as $c_{max}$. If $c_{max} \ge \tau_{\mathcal{D}}$: Set the current block size $B$ as the distance from the starting point to this delimiter; otherwise, the current area is semantically ambiguous, and $B$ reverts to the default fixed block size $B_0$ (or the remaining length). Index Window: Prevents premature decoding of
5 Improving the Throughput of Diffusion-based Large Language Models via a Training-Free Confidence-Aware CalibrationMethod
Algorithmclip: Used to set upper and lower bounds (min/max). 1 Adaptive Block Size$$B_t = clip(B_{min} + (B_{max} - B_{min})\overline{c}, B_{min}, B_{max})$$ $\overline{c}$ is the average confidence. The higher the average confidence, the closer the size is to the maximum value. 2 Adaptive steps$$S_t = clip(S_{base} + (S_{max} - S_{base})(1 - \overline{c}), S_{base}, S_{max})$$ Similar to point 1, lower average confidence leads to larger steps, representing more calculations. 3 Adaptive vocabulary size$$V_t = clip(V_{phase}(g_t) \cdot f_{conf}(\overline{c}) \cdot f_{rep}(r_t), V_{min}, V_{max})$$ $g_t$ is generation progress. $V_{phase}(g_t)$: Larger vocabulary size at the start of generation. $f_{conf}(\overline{c})$: Larger vocabulary size when confidence is low to expand the search range. $r_t$ is the repetition rate of generated tokens. $f_{rep}(r_t)$: Expand vocabulary size if recently generated tokens are repetitive. 4 Adaptive threshold$$\tau_t = \tau_{base}(1 - g_t) + \tau_{min}g_t$$ At the start of generation, the threshold is high ($\tau_{base}$), then it decreases to $\tau_{min}$. 6 Next Semantic Scale Prediction via Hierarchical Diffusion Language ModelsMethod
Algorithm1 Forward Noise AdditionMapping matrix $\Gamma$ to obtain clusters $c(x) = \Gamma x$: $$q_{t}(z_{t}|x)=Cat(z_{t};\alpha_{t}x+\beta_{t,c}c(x)+\beta_{t,m}m)$$ $Cat$ is the Categorical distribution. At time step $t$, there are three possible states:
Stochastic Perturbations$$\beta_t \pi_t = \xi \beta_{t,c} c(x) + \sum_{c \neq c(x)} \frac{1-\xi}{N_c-1} \beta_{t,c} c + \beta_{t,m} m$$ Puts incorrect words into the set with probability $1-\xi$. 2 Backward Denoising$$p_{\theta}(z_{s}|z_{t})=q_{t|s}(z_{t}|z_{s})\frac{q_{s}(z_{s}|x_{\theta})}{q_{t}(z_{t}|x_{\theta})}$$ 3 Training$$ELBO = -\mathbb{E}{t,z{t}}\left[\delta_{z_{t},c}w_{t,c}CE\left(x,\frac{x_{\theta}\odot(\Gamma^{\top}\Gamma x)}{x_{\theta}^{\top}\Gamma^{\top}\Gamma x}\right)+\delta_{z_{t},m}w_{t,m}CE(\Gamma x,\Gamma x_{\theta})\right]$$
Example
Optimization
Table of Contents |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |