Diffusion loss
×tensor
One number for the batch.
- shape
- [1 one value]
Sources
Contextual evidence from Diffusion loss
Diffusion: a time is sampled, the latents are noised by the marginal, with probability one half a first call without gradient gives the self-conditioning estimate, the denoiser predicts the clean latents, and the mean squared error against them is taken; the three losses are summed with their weights.
The implementation, pinned at revision e18c42acdfb7, not yet public
Contextual evidence from Diffusion loss
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
Contextual evidence from Diffusion loss
Joint training: decoder noise of standard deviation 3; weights 1 for the three losses; the diffusion gradient into the encoder rises from 0.001 over 50,000 steps by a straight-through scaling; the token decoder’s input is detached; AdamW at 3·10⁻⁴ for 1,000,000 steps of 512 sequences, gradients clipped at norm 1.
The implementation, pinned at revision e18c42acdfb7, not yet public
Contextual evidence from Joint objective
The optimizer takes every parameter of the four networks that requires a gradient.
The implementation, pinned at revision e18c42acdfb7, not yet public
Contextual evidence from Joint objective
The optimizer is AdamW with the configured learning rate, weight decay, betas and epsilon; the schedule is a cosine scheduler given the minimum learning rate, the warm-up’s first rate and its length.
The implementation, pinned at revision e18c42acdfb7, not yet public
Contextual evidence from Joint objective
A step: the gradient is clipped, the optimizer steps, and the moving average of the denoiser is updated.
The implementation, pinned at revision e18c42acdfb7, not yet public