Sampler
Adaptive time grid
×no parameters
1,025 times from 1 down to 0.05, closer together where the diffusion loss changed fastest during training.
Why
The paper adapts the distribution of times during training, so that the denoising loss grows linearly with the sampled time. It does not describe the grid used at generation: that the same bin weights space the sampler’s calls is the implementation’s, with no reason given in the paper. LDLM paper §5.3
- out
- [1025 grid points]
The bins cover the times from 0.00001 to 1, and grid points below 0.05 are raised to 0.05; the last always is. A step between two raised points has zero length: it leaves the latents as they are, and still calls the denoiser and replaces the previous estimate. How many such steps there are depends on the saved bin weights, which were not read. The adaptive grid is taken when it is requested, as the documented invocation does, and the sampler has been updated; otherwise the times are 1,025 evenly spaced ones.
Explanation
is the weight of the bin between the edges and , and is their cumulative distribution. is 1,024 in the documented OpenWebText invocation; the configuration’s default is 128.
Sources5
Direct evidence
The generation grid: N + 1 times at equal steps of the weights’ cumulative distribution, interpolated inside bins, clamped to the stopping time, in decreasing order.
The implementation, pinned at revision e18c42acdfb7, not yet public
Direct evidence
Sampling starts from the prior with a zero self-conditioning estimate, uses the averaged denoiser, takes the adaptive grid when it is requested and the sampler has been updated and a uniform grid otherwise, steps N times carrying the state and the clean estimate, and returns the last step’s mean.
The implementation, pinned at revision e18c42acdfb7, not yet public
Direct evidence
Diffusion: self-conditioning on, `t_min` 0.05 and `eps` 10⁻⁵; the adaptive time sampler has 100 bins, a minimum weight of 0.0001, an EMA of 0.9 and updates every 5,000 steps; the denoiser’s EMA decay is 0.9999; scheduler `tanh` with d = 3, solver `euler`, `ode_sampling` false, N = 128 by default; the denoiser has 12 blocks of width 768 with 12 heads, time conditioning `adaln`, a standard MLP, softcap 50 and self-conditioning by concatenation; the timestep embedding’s `max_period` is 10.
The implementation, pinned at revision e18c42acdfb7, not yet public
Direct evidence
Generation: sequences are not truncated at the end token, and the trained adaptive time grid is used.
The implementation, pinned at revision e18c42acdfb7, not yet public
Direct evidence
The documented OpenWebText invocation: the joint task on 1,024-token sequences, decoder noise 3, hidden state −3, 1,024 diffusion steps on the adaptive grid.
The implementation, pinned at revision e18c42acdfb7, not yet public