Scrambled Sobol Diffusion Ensembles
Implementation & benchmark of arXiv:2608.11055 — Diffusion Quasi-Monte Carlo
Source paper: Diffusion Quasi-Monte Carlo arXiv:2608.11055 ⓘ · analyzed Sep 1, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Use Owen-scrambled Sobol points instead of independent Gaussian seeds for batched diffusion sampling, mapping each cube point through the component-wise inverse Gaussian CDF and the model's probability-flow ODE. Estimate ensemble expectations with importance weights computed from the target-to-proposal density ratio, so the estimator remains valid despite finite-step and learned-score transport errors.
Formulas
Mathematical statement
The paper starts from the target expectation $\mu=\mathbb{E}_{\mathbf{x}\sim\pi}[f(\mathbf{x})]=\int_{\mathbb{R}^{d}}f(\mathbf{x})\pi(\mathbf{x})\,\mathrm{d}\mathbf{x}$, where $\pi$ is the target density, $f$ is the metric, and $d$ is dimension. Let $u\in(0,1)^d$ be a scrambled-net point, let $z=\Phi^{-1}(u)$ componentwise with $\Phi$ the standard normal CDF and $\varphi(z)$ its standard normal density, and let $T_h$ be the $K$-step Euler approximation of the learned probability-flow transport. For a forward SDE with drift $b_t(x)$, scalar diffusion coefficient $\sigma_t$, and score $s_t(x)=\nabla_x\log p_t(x)$, the probability-flow vector field is $v_t(x)=b_t(x)-\tfrac12\sigma_t^2s_t(x)$; integrate $\dot{x}=v_t(x)$ in the direction taking the Gaussian prior to the data distribution. The induced proposal density is $q_h(x)=\varphi(z)/|\det J_{T_h}(z)|$ for $x=T_h(z)$, where $J_{T_h}$ is the transport Jacobian. Thus the cube integrand is $G(u)=f(T_h(\Phi^{-1}(u)))\pi(T_h(\Phi^{-1}(u)))|\det J_{T_h}(\Phi^{-1}(u))|/\varphi(\Phi^{-1}(u))$. The estimator is $\hat\mu_N=N^{-1}\sum_iG(u_i)$ over an Owen-scrambled Sobol net. Under the paper's boundary-growth and bounded-derivative assumptions, scrambled nets can achieve RMSE $O(N^{-1+\varepsilon})$ instead of ordinary Monte Carlo's $O(N^{-1/2})$. In applications without tractable $\pi$, first use the unweighted estimator and measure its bias against a large iid reference; in likelihood-known or toy settings, use the exact change-of-variables weight.
Implementation notes
Integrate this at the random-seed and inference-batching layer of a diffusion sampler. (1) Replace the usual iid tensor eps = torch.randn(B,d) with a precomputed Owen-scrambled Sobol tensor U of shape (B,d); clamp values to [1e-6,1-1e-6], transform with Z=Phi^{-1}(U), and use Z as the terminal Gaussian state. (2) Run the deterministic probability-flow sampler: x=Z; for k in reversed(range(K)): x = x + dt*(drift(x,t[k]) - 0.5*sigma(t[k])**2*score(x,t[k])), adapting the sign of dt to the implementation's time direction. (3) For a first MVP, compare unweighted Sobol outputs against iid Gaussian outputs for batch metrics. For a likelihood-known toy target, implement the correction by accumulating logdet += dt*trace(J_v), where J_v is the Jacobian of the vector field. Estimate the trace with Hutchinson probes using trace(J_v) approximately r^T J_v r, with JVPs obtained by autodiff, and return weight=exp(logdet + log_pi(x) - logvarphi(Z)). The paper's mathematics determines the transport, change-of-variables correction, and RQMC estimator; the score, divergence, and Euler error are measured numerically. (4) First experiment: use a 2D Gaussian-mixture diffusion or CIFAR-10 DDIM with a small UNet. Evaluate batch means of pixel intensity, classifier score, and pairwise-distance statistics for batch sizes 64, 128, 256, and 512. Compare iid seeds, ordinary Sobol, and scrambled Sobol over at least 32 independent scramblings. Record randomization standard deviation, wall-clock cost, and bias relative to a 100,000-sample iid reference. Success means lower variance at equal denoising cost, ideally with an empirical slope approaching N^-1 rather than N^-1/2; in the toy likelihood setting, the weighted estimator should additionally remove transport-approximation bias.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Not reproduced ✗
Stage 2 · Practical benchmark result: No measurable effect
Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works
Stage 1 — Mechanism check agent confidence 9/10
Built a self-contained toy scrambled-Sobol diffusion-transport MVP with exact change-of-variables weighting. The Jacobian check had absolute error 3.7e-11; observed unweighted bias matched the analytic quadratic prediction across lambda=0, 0.25, 0.5, 1.0, while weighting reduced bias at N=1024 to below 8e-5. Scrambled Sobol standard deviation scaled approximately N^-0.98 versus iid N^-0.43 at lambda=0.5, confirming the intended RQMC mechanism in this smooth toy setting.
- Agent confidence
- 9/10
- Baseline
- IID Gaussian seeds: SD slope -0.427; at N=1024, SD 0.06957 and unweighted bias 0.70418 for lambda=0.5.
- Idea
- Owen-scrambled Sobol seeds: unweighted SD slope -0.980 and N=1024 SD 0.003148; exact weighted estimator SD 0.000196 and bias -1.07e-5 at lambda=0.5. Predicted versus observed unweighted biases at lambda 0.25/0.5/1.0 were 0.32750/0.32680, 0.70428/0.70418, and 1.60571/1.60520.
Limitations: Only a smooth 2D analytic transport surrogate was tested, not a learned neural diffusion score or high-dimensional image sampler. The Jacobian and importance weight were available analytically; Hutchinson trace estimation, finite-step ODE error with a learned model, GPU performance, and wall-clock batching costs were not evaluated.
How to run: python3 sobol_diffusion_mvp.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2608.11055)
No significant difference vs. the tuned baseline (+0.0%, p=1, wins 4 / 8 paired seeds).
- Benchmark
- Conditional multi-token diffusion
- Model
- mlp_tiny
- Paired seeds
- 8
- Baseline mean
- 0.076
- Idea mean
- 0.0761
- Effect (Δ)
- 0 (+0.0%; negative = idea better)
- Wins
- 4 / 8 paired seeds
- p-value
- 1 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±1.3%
- Mechanism
- Not confirmed ✗
- Practical effect
- No effect
- Baseline tuning
- swept over 3 configs
This is a small synthetic multi-token diffusion-denoising track rather than a learned image diffusion sampler or probability-flow ODE with Jacobian importance weights. The benchmark used 400 training and 200 test examples, 12 epochs, and a small MLP; exact weighted transport correction, Hutchinson divergence estimation, wall-clock sampling cost, and high-dimensional image sampling were not tested. Sobol generation used random(n) for the 400-example training size, producing a warning because the size is not a power of two.
How to run: python3 sobol_bench.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Stage 2 — Benchmark latest Failed ✗
Agent confidence: 9/10
Implemented an end-to-end IID-versus-Owen-scrambled-Sobol diffusion-noise intervention with identical MLP architectures, matched datasets, shared learning-rate sweep, and eight paired seeds. Test MSE was essentially unchanged: baseline 0.0760472 versus idea 0.0760515, paired delta +0.0000043 with permutation p=1.0. Sobol lowered trained-model batch-mean standard deviation by about 61% (0.000336 versus 0.000862), but the observed scaling slope was -0.419 versus IID -0.660, so the stage-1 N^-1 mechanism prediction did not transfer quantitatively.
- Baseline
- conditional_multitoken_diffusion / mlp_tiny; best lr=0.003; full 8-seed test MSE mean 0.0760472286, std 0.00776520.
- Idea
- Owen-scrambled Sobol Gaussian corruption; best lr=0.003; full 8-seed test MSE mean 0.0760515332, std 0.00745630; paired delta +4.3046e-06; permutation p=1.0; batch-mean SD ratio Sobol/IID=0.3894; observed slopes Sobol -0.4193, IID -0.6601.
Benchmark result
No significant difference vs. the tuned baseline (+0.0%, p=1, wins 4 / 8 paired seeds).
- Benchmark
- Conditional multi-token diffusion
- Model
- mlp_tiny
- Paired seeds
- 8
- Baseline mean
- 0.076
- Idea mean
- 0.0761
- Effect (Δ)
- 0 (+0.0%; negative = idea better)
- Wins
- 4 / 8 paired seeds
- p-value
- 1 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±1.3%
- Mechanism
- Not confirmed ✗
- Practical effect
- No effect
- Baseline tuning
- swept over 3 configs
This is a small synthetic multi-token diffusion-denoising track rather than a learned image diffusion sampler or probability-flow ODE with Jacobian importance weights. The benchmark used 400 training and 200 test examples, 12 epochs, and a small MLP; exact weighted transport correction, Hutchinson divergence estimation, wall-clock sampling cost, and high-dimensional image sampling were not tested. Sobol generation used random(n) for the 400-example training size, producing a warning because the size is not a power of two.
How to run: python3 sobol_bench.py
Artifacts
- bench_report.json 2.9 KB View Raw
- report.md 1.5 KB View
- report_bench_2026-09-01T122610.md 4.4 KB View
- results.json 14.4 KB View Raw
- sobol_bench.py 5.7 KB View Raw
- sobol_diffusion_mvp.py 4.8 KB View Raw