Introduction
Sampling from a diffusion model means solving the probability-flow ODE. In the convention of this task, and the network returns , so
and the cost of a sample is the number of network evaluations. The starter spends them on plain Euler steps, one evaluation each, which in this parameterisation is DDIM. With only a handful of evaluations per image the truncation error of such a solver is large, and the question of the task is how to spend the budget better: where to query the network, how to combine evaluations already paid for, whether to condition the network differently at each query, and which of these choices to fit to the model.
The field attacks this from two directions. Training-free multistep solvers reuse past evaluations through fixed extrapolation rules [1, 2, 3, 4], and some reuse past and future scores together [5]. Learned solvers fit a small number of coefficients to the model: the time discretisation [6], predictions read from the network's bottleneck activations [7], dynamic multistep weights [8], updates that leave the linear span of past evaluations [9], empirical model statistics [10], or per-step offsets to the network's time conditioning [11]. The last of these, MTEO, is the strongest baseline on most settings of this task's leaderboard.
Two things make the problem hard. First, the learned approaches fit their parameters on a small pool of teacher trajectories, and with very few steps each parameter carries a large share of the trajectory, so overfitting to that pool is easy. Second, the objective is a distributional image metric, while the natural training signal is a pointwise trajectory error; a solver can lower the trajectory error and still produce blurrier images, which a pointwise error rewards and FID punishes.
Method
Our method, which we call HOLO (the name the agent gave its solver), keeps one network evaluation per step, so that equals the budget, and makes every other part of the step learnable under one constraint: the new state must remain an affine combination of quantities the network has produced.
The update: an affine combination of everything already paid for
Let be the initial noise state and the denoiser outputs so far. Our step is
with and per channel. The coefficients of sum to one in every channel, and the last term has zero coefficient sum, so a constant signal passes through the step unchanged. We impose this deliberately: the state cannot pick up a DC drift or a component that the network never produced, which is how our earlier designs with free post-network corrections failed (Section 4).
The coefficients are initialised at a known solver. With , the data-prediction exponential-integrator step in this parameterisation is ; we use the second-order multistep extrapolation of DPM-Solver++(2M) [3],
(with the analogous ratio in flow time for flow-parameterised models) for interior steps and a first-order step at the first and last step, and unroll the recursion into the coefficients on and on every . The coefficient on is then . During fitting it may move by a factor on every step but the last; on the last step it stays at its analytical value, so the final step injects no more raw noise than the analytical rule.
def _canonical_init(t_s: torch.Tensor, native: str, init_order: int = 2):
K = len(t_s) - 1
dev = t_s.device
a = torch.zeros(K, dtype=torch.float32, device=dev)
W = torch.zeros(K, K, dtype=torch.float32, device=dev)
prev_a = 1.0
for i in range(K):
tc, tn = float(t_s[i].item()), float(t_s[i + 1].item())
alpha = tn / tc
if init_order >= 2 and 1 <= i < K - 1:
tp = float(t_s[i - 1].item())
if native == "flow":
sp, sc, sn = tp / (1.0 + tp), tc / (1.0 + tc), tn / (1.0 + tn)
gam = min(0.5 * (sc - sn) / max(1e-6, sp - sc), 0.65)
else:
gam = min(0.5 * math.log(tc / tn) / max(1e-6, math.log(tp / tc)), 0.65)
else:
gam = 0.0
b0 = (1.0 - alpha) * (1.0 + gam)
b1 = -(1.0 - alpha) * gam
cur_a = alpha * prev_a
a[i] = cur_a
if i > 0:
W[i, :i] = alpha * W[i - 1, :i]
W[i, i - 1] += b1
W[i, i] = b0
prev_a = cur_a
return a, WHistory weights that adapt per sample
The fitted history weights are shared by all samples, but trajectories differ in how curved they are. We modulate them per sample at no extra evaluation cost, from the network's own activations at the evaluation just made. A pooled, layer-normalised feature vector is projected to a rank-8 code , and
after which the weight on is recomputed so that the sum stays one.
def _affine_step(
x0_init: torch.Tensor,
d_hist: list[torch.Tensor],
a_i: torch.Tensor,
u_hist: torch.Tensor | None,
z_cur: torch.Tensor | None = None,
u_ms_ad: torch.Tensor | None = None,
w_weno: torch.Tensor | None = None,
) -> torch.Tensor:
i = len(d_hist) - 1
a_v = a_i.reshape(1, -1, 1, 1)
if i == 0 or u_hist is None:
return a_v * x0_init + (1.0 - a_v) * d_hist[0]
if z_cur is None or u_ms_ad is None:
u_sum = u_hist.sum(dim=0)
w_last = (1.0 - a_i - u_sum).reshape(1, -1, 1, 1)
acc = a_v * x0_init + w_last * d_hist[-1]
for j in range(i):
acc = acc + u_hist[j].reshape(1, -1, 1, 1) * d_hist[j]
else:
rms_diff = (d_hist[-1] - d_hist[-2]).pow(2).mean(dim=(1, 2, 3)).add(1e-8).sqrt()
rms_cur = d_hist[-1].pow(2).mean(dim=(1, 2, 3)).add(1e-8).sqrt()
q_ms = torch.cat([z_cur, torch.tanh(rms_diff[:, None]), torch.tanh(rms_cur[:, None] - 0.5)], dim=1)
u_dyn = u_hist[None, :, :] + 0.20 * torch.tanh(torch.einsum("bm,jmc->bjc", q_ms, u_ms_ad))
w_last = (1.0 - a_i[None, :] - u_dyn.sum(dim=1))[:, :, None, None]
acc = a_v * x0_init + w_last * d_hist[-1]
for j in range(i):
acc = acc + u_dyn[:, j, :, None, None] * d_hist[j]
weno_term = _weno_spatial_delta(d_hist, w_weno)
if weno_term is not None:
acc = acc + (1.0 - a_v) * weno_term
return accA smoothness-gated increment
Linear multistep extrapolation sharpens coherent structure and amplifies noise with the same coefficient. Borrowing the idea of nonlinear, smoothness-weighted reconstruction from shock-capturing schemes, we add a per-pixel gate on the latest increment , computed from three dimensionless indicators: local coherence (the channel RMS of a average of relative to the RMS of ), the cosine between consecutive increments, and the increment's magnitude relative to its image mean. With per-channel weights ,
so its contribution is bounded and its weights are a few numbers per step. The gate weights start at zero, so the solver starts exactly at the initialisation above.
def _weno_spatial_delta(d_hist: list[torch.Tensor], w_weno: torch.Tensor | None) -> torch.Tensor | None:
"""Nonlinear WENO / flux-limited spatial modulation `g_weno(b, c, y, x) * (D_i - D_{i-1})` with exact 0 constant-sum."""
if w_weno is None or len(d_hist) < 2:
return None
delta1 = d_hist[-1] - d_hist[-2]
norm1 = delta1.pow(2).mean(dim=1, keepdim=True).add(1e-8).sqrt()
if delta1.ndim == 4 and delta1.shape[2] >= 3 and delta1.shape[3] >= 3:
mean1 = F.avg_pool2d(F.pad(delta1, (1, 1, 1, 1), mode="replicate"), kernel_size=3, stride=1)
coh = mean1.pow(2).mean(dim=1, keepdim=True).add(1e-8).sqrt() / (norm1 + 1e-5)
else:
coh = torch.ones_like(norm1)
if len(d_hist) >= 3:
delta0 = d_hist[-2] - d_hist[-3]
norm0 = delta0.pow(2).mean(dim=1, keepdim=True).add(1e-8).sqrt()
align = (delta1 * delta0).mean(dim=1, keepdim=True) / (norm1 * norm0 + 1e-5)
else:
align = torch.zeros_like(norm1)
rms1 = norm1.mean(dim=tuple(range(1, norm1.ndim)), keepdim=True)
mag = torch.tanh(norm1 / (rms1 + 1e-5) - 1.0)
feats = torch.cat([coh - 0.70, align.clamp(-1.0, 1.0), mag], dim=1) # [B, 3, H, W]
gate = 0.22 * torch.tanh(torch.einsum("bmhw,mc->bchw", feats, w_weno))
return gate * delta1Where and how the network is queried
Each step queries the network at a learned noise level rather than at the state's own level,
with the per-sample part again read from the previous evaluation's features. For a model wrapped into the task's convention from a variance-preserving one, the state is first rescaled to the query level, , and the prediction is mapped back as , so a query off the nominal level does not feed the network an input of the wrong scale. The network's time conditioning receives a learned offset per step, , as in MTEO [11], plus a rank-8 per-sample term for each conditioning block . For a guided model, the unconditional embedding receives a learned offset per step as well, full-rank when the parameter cap allows it and replaced by a per-step low-rank factorisation when it does not; the time-embedding offsets are compressed by an SVD across steps in the same way.
Two guards limit this capacity where our development runs showed it overfitting. The per-sample time-embedding term is disabled when the model is conditioned on text, or on discrete labels with fewer than eight training samples per label. The unconditional-embedding offsets are frozen during the second training stage when they have more than 40000 entries, and get a smaller step size above 250000.
Calibrating step sizes without per-model tables
The scale of a useful time-embedding offset differs widely between networks. Before training, we measure it: at each step of an Euler rollout on a few samples, we compare the prediction at the current level with the prediction at a slightly lower level, and take
an estimate of how far must travel to emulate a change of noise level. The learning rate for step is then , with clamped to a range around its median over steps, a travel constant (245, 225 or 110 depending on the model's parameterisation, whether it is latent, and its conditioning), and further factors for the noise level, the last step and label-conditioned models. The same probe calibrates the unconditional-embedding offsets.
phi = torch.nn.Parameter(torch.zeros(total_w, device=dev)) if total_w > 0 else None
unc = torch.nn.Parameter(torch.zeros(*ushape, device=dev)) if ushape is not None else None
temb_d = {nm: phi[offs[j]:offs[j + 1]] for j, nm in enumerate(names)} if phi is not None else None
D0 = den(x, tc_i, rows=idx, temb=temb_d, uncond=unc, fp32=True).float()
diff = D0 - D_ref
loss = 0.5 * diff.pow(2).sum()
loss.backward()
num = float(diff.pow(2).sum().item())
if phi is not None and phi.grad is not None:
g_l1 = float(phi.grad.abs().sum().item())
s_phi_raw.append(num / max(g_l1, 1e-12))
else:
s_phi_raw.append(0.1)
if unc is not None and unc.grad is not None:
u_l1 = float(unc.grad.abs().sum().item())
s_unc_raw.append(num / max(u_l1, 1e-12))
with torch.no_grad():
d = (x - D0.detach()) / tc_i
x = x + (t_s[i + 1] - tc_i) * dTwo-stage fitting
The teacher integrates the same ODE on a fine grid whose every stride-th level is a student level, with iPNDM up to fourth order [1, 2] for most models and a bounded second-order data-prediction rule for text-conditioned and flow-parameterised ones; the student schedules themselves are fixed families with a hand-set exponent per model type.
Stage A fits the steps one at a time. Step 's parameters minimise , where is the student's own state after the steps already fitted, not the teacher's, so each step learns to correct the errors its predecessors actually make. We use AdamW with weight decay and a cosine schedule with a floor, and, on all but the last step and after a minimum number of epochs, stop early once the relative loss improvement has stayed below for eight consecutive epochs.
Stage B unrolls all steps and fits every parameter jointly to
with mean squared errors in the trajectory and paired terms, where is the Inception feature of the decoded image, and are the teacher features' mean and their variances along the top principal directions, and , are the mean and projected covariance of a feature bank over the whole training pool, initialised with the teacher features, with the entries of the samples decoded in the current micro-batch live and the rest holding student features from earlier passes (or the teacher's, for samples not yet decoded). The bracket is the Fréchet distance restricted to that subspace, a representation-space Fréchet loss of the kind studied in [12]; the matrix square root is taken by six coupled Newton–Schulz iterations. Both weights scale with the variance of the teacher's final states (the paired term is also divided by the variance of the teacher's features), so the feature terms stay small next to the trajectory anchor.
loss_tot = F.mse_loss(xb, teach[bb, K]) + (0.06 / max(1, K - 1)) * inter_loss
if use_percep:
ns = min(dec_sub, len(bb))
sub_bb = bb[:ns]
img_s = decode(xb[:ns].float())
f_s = inception(((img_s.float() + 1.0) * 127.5).clamp(0.0, 255.0)).float()
l_pair = F.mse_loss(f_s, F_t[sub_bb])
F_all = F_bank.detach().clone()
F_all[sub_bb] = f_s
mu_s = F_all.mean(dim=0)
l_mu = (mu_s - mu_t).pow(2).sum()
P_s = (F_all - mu_s) @ V_r
cov_s = (P_s.t() @ P_s) / max(1, n_train - 1)
M_spd = (sqrt_lam_r[:, None] * cov_s * sqrt_lam_r[None, :]) + 1e-4 * torch.eye(pca_r, device=dev)
l_cov = (torch.trace(cov_s) + lam_r.sum() - 2.0 * _newton_schulz_sqrt_trace(M_spd)).clamp(min=0.0)
loss_tot = loss_tot + w_inc * l_pair + w_fid * (l_mu + l_cov)The total number of fitted floats is checked against the task's cap before training; if the per-sample adapters do not fit, they are dropped.
Results
| Method | ① | ② | ③ | ④ |
|---|---|---|---|---|
| FID ↓ | FID ↓ | FID ↓ | FID ↓ | |
| Gemini 4 Carbon | 4.414 | 5.189 | 14.53 | 14.30 |
| iPNDM | 45.97 | 55.39 | 17.50 | 16.17 |
| PFDiff | 38.73 | 45.38 | 19.49 | 15.14 |
| LD3 | 38.03 | 42.22 | 16.29 | 14.36 |
| DyWeight | 17.90 | 16.96 | 15.51 | 15.04 |
| AMED | 26.37 | 29.61 | 16.48 | 14.76 |
| SpanLift | 13.18 | 14.25 | 14.77 | 15.03 |
| MTEO | 5.650 | 5.040 | 14.29 | 14.61 |
| DPM-Solver++ | 19.41 | 16.78 | ||
| UniPC-3 | 19.38 | 16.77 | ||
| DEIS-tAB3 | 42.37 | 21.65 | 14.65 |
- ① FFHQ 64×64 · 3 network evaluations
- ② ImageNet 64×64 (class-conditional) · 3 network evaluations
- ③ Text-to-image, Stable Diffusion v1.5 · 512 px · COCO captions · 5 guided evaluations
- ④ Text-to-image, Stable Diffusion v1.5 · 512 px · COCO captions · 8 guided evaluations
On FFHQ64/3NFE HOLO is clear of every published baseline: 4.414 FID against 5.650 for the strongest baseline there, MTEO [11]. On SD1.5/8NFE it is also ahead of every baseline, though by a narrow margin: 14.30 against 14.36 for LD3 [6].
On IN64/3NFE and SD1.5/5NFE HOLO is second, behind MTEO, the method whose per-step time-embedding offsets it builds on: 5.189 against 5.040 on IN64/3NFE, and 14.53 against 14.29 on SD1.5/5NFE. On IN64/3NFE it is far ahead of every other baseline, the next being SpanLift at 14.25; on SD1.5/5NFE it is ahead of the next baseline, SpanLift at 14.77, by a smaller margin.
Relative to MTEO, then, HOLO is better on two settings and worse on two. Its clearest gain is on FFHQ64/3NFE; on SD1.5/5NFE and SD1.5/8NFE the leading methods are close together, and the differences between HOLO and the best baseline there are small in either direction.
How we got here
HOLO was reached through a sequence of versions, each motivated by a diagnostic on the previous one. All figures in this section are the agent's own development measurements, mostly on a single small development model, some of them on reduced sample sets; they are not the published results.
- We started from a diagnosis of MTEO. On our development model, MTEO's final-step error on its own training trajectories was 0.000782, against 0.009154 on unseen noise, an 11.7-fold gap, and its samples lost high-frequency power (radial power ratios of 0.871 and 0.755 to the teacher in the top two of eight frequency bands). We read this as overfitting a large per-step parameter set to a small trajectory pool, and as a schedule that left the last evaluation at a high noise level. That set the first goals: a larger training pool, weight decay, and a schedule reaching lower noise.
- Free post-network corrections produced artefacts. Our first version combined evaluations in a Fourier basis per frequency band, added a small convolutional residual on decoder features, and back-propagated an Inception-based Fréchet alignment into all of it. It lowered unseen trajectory error (0.01141 against MTEO's 0.01329) but its development FID was 7.845 against MTEO's 3.7724. The diagnosis was adversarial high-frequency content: the coefficient on raw noise at the final step grew from 0.002 to 0.013 and the highest frequency band rose to 1.1872 times the teacher's power. These experiments are why the final update is restricted to the affine span of network outputs.
- A schedule mistake and a teacher-grid mistake. A later version reached a development FID of 33.46 at one budget, which the agent attributed to three causes together: its polynomial schedule placed every evaluation level at or above a noise level of 5.51; its teacher grid, assembled piecewise between student levels, had step-size jumps that produced a spike in the teacher's own high-frequency power; and it still carried post-network pixel corrections and spectral losses. We switched the schedule family, which moved the last query to a much lower noise level, replaced the teacher grid with one smooth fine grid sharing the student's levels, and removed the post-network corrections.
- The affine-consistent combination was the first version to beat MTEO, at 2.6457 against 2.8357 at one budget, but it was worse at a smaller budget (3.9001 against 3.7724) despite a lower trajectory error. Two ablations of it kept components in the design: removing the per-sample adapters worsened development FID (5.8603 to 5.9922 and 4.6570 to 4.8368 at two budgets), and zeroing the multistep history at the last step worsened it from 5.8603 to 10.3090.
- End-to-end unrolling helped. In a controlled comparison, adding Stage B improved the smaller-budget result from 4.4209 to 4.1846; the full version reached 2.6157 at the other budget.
- The Fréchet term helped once the update could not leave the span. With the same schedule, the version with the paired Inception and Fréchet terms reached 3.1845, against 3.8354 without them. The same terms had caused the artefacts above when the solver had free pixel-space capacity.
- Querying wrapped models at an off-nominal level needed rescaling, which the agent found by measuring very large changes in the prediction when the state was passed unscaled. The same version introduced the sensitivity probe for learning rates in place of per-model values, and reached 3.1754 and 2.4650 at two budgets. Feature-driven history weights and query levels then gave 3.1562 and 2.4548.
- The smoothness gate came with a small gain at the smaller budget only: the version that added it, together with two fixes to the optimiser's learning-rate schedule, gave 3.1330 against 3.1562 at the smaller budget, but 2.4591 against 2.4548, slightly worse, at the larger one.
- Several guards came from failures on single models. On a model conditioned on many discrete labels, a training pool of about one sample per label let the per-sample time-embedding adapter memorise individual noise draws, which led to the eight-samples-per-label rule. On a guided model, an SVD of MTEO's learned unconditional-embedding offsets showed them to be high-rank (rank 16 captured only 56.4% and 62.5% of their energy on two steps), which led to full-rank offsets with a low-rank fallback; full-rank offsets in a large embedding then grew excess energy in rows the prompts do not use, which led to freezing large embeddings in Stage B and capping their step size. A detector for quantised decoders, used in one version to switch the perceptual terms off for them, was followed by worse results on that model, which the agent attributed to it, and was dropped.
- The submitted file is the agent's last deployed version. On our development model it gave 3.1520 and 2.4664, slightly behind the gated version's 3.1330 and 2.4591 there; the agent's stated aim for the later version was to unify the rules found on individual models into the general ones above. A further revision was started after deployment and is not what was scored.
Limitations
- HOLO does not beat MTEO everywhere. It is behind MTEO on IN64/3NFE and SD1.5/5NFE, and its lead on SD1.5/8NFE is small. Since HOLO contains MTEO's per-step offsets as one component, the added machinery does not always pay for itself.
- It is many components, not one. The affine update, per-sample history weights, the smoothness gate, learned query levels, two kinds of conditioning offsets, the sensitivity probe, two training stages and a Fréchet objective were developed together. The evidence for each comes from the agent's development ablations, mostly on one development model, some at reduced sample counts, and the gains attributed to the later components there are small.
- Many constants were tuned by hand. The schedule exponents, travel constants (245, 225, 110), the bounds on the adaptive terms (0.20, 0.22, 0.25, 0.15), the coherence offset 0.70, and the epoch and pool sizes are set per model type, keyed on interface fields such as the parameterisation, conditioning and resolution, and were chosen on the models the agent could run. They are not per-setting constants, but they are close to a per-family configuration.
- Part of the code is inactive. The prompt-adaptive unconditional-embedding branch is declared but its parameters are never created, and the ablation switches are hard-coded so that every other component is on; the scored solver is the subset that remains.
- The fitting phase is heavier than MTEO's. Two training stages, an unrolled end-to-end stage with decoded Inception features and a covariance square root make fitting slower than the baseline's on the agent's main development model (though not on every model it ran), and the method depends on that phase to work at all.
References
- Luping Liu, Yi Ren, Zhijie Lin et al. (2022). Pseudo Numerical Methods for Diffusion Models on Manifolds. ICLR.
- Qinsheng Zhang, Yongxin Chen (2023). Fast Sampling of Diffusion Models with Exponential Integrator. ICLR.
- Cheng Lu, Yuhao Zhou, Fan Bao et al. (2025). DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models. Machine Intelligence Research.
- Wenliang Zhao, Lujia Bai, Yongming Rao et al. (2023). UniPC: A Unified Predictor-Corrector Framework for Fast Sampling of Diffusion Models. NeurIPS.
- Guangyi Wang, Yuren Cai, Lijiang Li et al. (2025). PFDiff: Training-Free Acceleration of Diffusion Models Combining Past and Future Scores. ICLR.
- Vinh Tong, Trung-Dung Hoang, Anji Liu et al. (2025). Learning to Discretize Denoising Diffusion ODEs. ICLR.
- Zhenyu Zhou, Defang Chen, Can Wang et al. (2024). Fast ODE-based Sampling for Diffusion Models in Around 5 Steps. CVPR.
- Tong Zhao, Mingkun Lei, Liangyu Yuan et al. (2026). DyWeight: Dynamic Gradient Weighting for Few-Step Diffusion Sampling.
- Sihyeon Kim, Seunghun Lee, Vikas Singh et al. (2026). Learning to Solve Generative ODEs Beyond the Linear Span.
- Kaiwen Zheng, Cheng Lu, Jianfei Chen et al. (2023). DPM-Solver-v3: Improved Diffusion ODE Solver with Empirical Model Statistics. NeurIPS.
- Yuren Cai, Guangyi Wang, Zongqing Li et al. (2026). Three Creates All: You Only Sample 3 Steps.
- Jiawei Yang, Zhengyang Geng, Xuan Ju et al. (2026). Representation Fréchet Loss for Visual Generation.