Leave-One-Out Corrective Parallel Sampler
Implementation & benchmark of arXiv:2608.23554 — Provably adaptive sampling with uniform and remasking discrete diffusion models
Source paper: Provably adaptive sampling with uniform and remasking discrete diffusion models arXiv:2608.23554 ⓘ · analyzed Aug 29, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Replace standard tau-leaping in discrete diffusion generation with a first-order sampler whose per-coordinate transition is conditioned on all other current coordinates and excludes the coordinate being updated. After a parallel proposal, use the same leave-one-out conditionals to correct coordinates whose newly sampled values are inconsistent with the rest of the state, allowing large timesteps without permanently propagating simultaneous denoising errors.
Formulas
Mathematical statement
The paper's auxiliary sampler uses the leave-one-out denoiser \(\widehat{\Pr}(X_0^i=b\mid X_\ell^{-i}=x_\ell^{-i})\), where \(X_0^i\) is the clean token at coordinate \(i\), \(X_\ell^{-i}\) is the noisy state with coordinate \(i\) removed, and \(b\) is a candidate token. For the remasking process with masking probability \(p_M\), \(\rho=\sqrt{1-p_M}\), and elapsed time \(u\), Lemma 4 gives the unnormalized update distribution \(\widehat\mu_i(b)\propto \Pr(X_\ell^i=x_\ell^i\mid X_u^i=b)[\widehat{\Pr}(X_0^i=b\mid X_\ell^{-i}=x_\ell^{-i})e^{-u}+\nu(u,b)(1-e^{-u})]\), where \(\nu(u,b)\) is the process's base transition probability. The factor outside the brackets accounts for the observed current token, while the bracket combines the learned clean-token posterior with the remasking noise law. Normalizing \(\widehat\mu_i\) gives a valid categorical distribution for each coordinate, and all coordinates can be sampled in parallel.
Implementation notes
Integrate this at inference time in a masked or uniform discrete diffusion Transformer, replacing the current tau-leaping transition from state x at time t to t-Delta. The Transformer should output logits s_theta[i,b] for the clean-token posterior at every position. At each step: (1) construct the model input containing the current noisy sequence; (2) obtain q_i(b|x^{-i},t)=softmax_b(s_theta[i,b]) using a leave-one-out approximation, implemented either by replacing the token at position i with a learned MASK or REMASK embedding, or by training a dedicated leave-one-out prediction head; (3) compute the exact forward transition likelihood K_t(x_i|b) for every candidate vocabulary token; (4) multiply q_i by K_t and normalize over b according to the displayed formula; (5) sample all selected coordinates in parallel; and (6) continue from the new state. For efficiency, first implement the simultaneous-mask approximation, where every position's own current token is hidden from its prediction head, then compare it with an expensive exact leave-one-out baseline on short sequences. The paper supplies the posterior-times-transition correction; the approximation strategy and update subset are empirical choices. First test on a 12-layer Transformer trained on synthetic correlated binary strings and WikiText-103. Compare standard tau-leaping at equal model evaluations. Success means lower perplexity or total-variation error at the same number of evaluations, and especially correction of initially wrong parallel token updates rather than error accumulation at large Delta.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Not tested
Stage 2 · Practical benchmark result: Not run
Methodology: Toy-system gate first; the benchmark stage runs only after a pass. How verification works
Stage 1 — Mechanism check agent confidence 7/10
Built a parallel leave-one-out sampler using the proposed normalized q_i(b|x^{-i},t)K_t(x_i|b) update, plus a masked posterior baseline. The numerical check passed: normalization error was 2.22e-16 and the corrected distribution matched the exact full conditional within 2.31e-14. On correlated binary strings with six updates, the idea improved Hamming error slightly and source NLL substantially, so it gives a promising synthetic signal, but not yet a general proof of superiority.
- Agent confidence
- 7/10
- Baseline
- 6 evaluations; Hamming error 0.407625; source NLL 9.98535 nats
- Idea
- 6 evaluations; Hamming error 0.403875; source NLL 3.50903 nats; max Bayes conditional error 2.31e-14
Limitations: This is an exact-oracle synthetic experiment over correlated binary Markov strings, not a trained Transformer, WikiText, or a calibrated continuous-time discrete diffusion. It uses a simple mask-plus-bit-flip channel and one fixed schedule/seed; runtime, FLOPs, learned-model approximation error, and broader seed variance were not tested.
How to run: python3 experiment.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Artifacts
- experiment.py 4.8 KB View Raw
- report.md 1.3 KB View
- results.json 0.5 KB View Raw