Quan Dao1, Tuan Pham2, Anh Nguyen3, Duc Vu1, Quyen Tran1, Stephan Mandt2, Dimitris Metaxas1
1Rutgers University  ·  2UC Irvine  ·  3Johns Hopkins University

Diffusion models trained in semantic latent spaces converge much faster than pixel-space models, but they inherit a decoder that caps fine detail. Semantic Detour Flow closes most of that gap without any decoder: it is a pixel-space flow that follows frozen DINOv2 features at high noise and hands over to pixels at low noise. One network, one velocity loss, and sampling that runs entirely in pixel space.

92.8 → 38.8
FID-10k, 20 epochs, same network
1.43
FID-50k, ImageNet 256
1.59
FID-50k, ImageNet 512
0.90 / 87.8
GenEval / DPG-Bench, 512
Samples from Semantic Detour Flow

Why pixel diffusion is slow

The gap is in the denoising target at high noise. When almost everything is noise, the best a model can do is predict the posterior mean of the target given the noisy state. For pixels, that posterior mean is a blur — an average over everything the image could have been. For self-supervised features it is a semantic prototype: a representation that still says what the thing is.

So a pixel model spends its early training budget learning to produce blur, while a latent model spends the same budget learning content. That is the asymmetry, and it is the one thing worth fixing.

The detour

Let \(c(x)\) be the frozen DINOv2-B features of \(x\) on the 16×16 patch grid, centred and scaled to standard deviation 0.5 — the scale of the image itself, so neither term dominates. We call it the code. Let \(\Phi\) be the pixel shuffle that maps each 768-dimensional token into the 3×16×16 pixels of its patch, so \(\Phi c(x)\) is image-shaped and aligned with \(x\).

The noisy state mixes the image and the code, then adds noise:

\[z_t = t\,m_t + (1-t)\,\varepsilon, \qquad m_t = \alpha_t\,x + \beta_t\,\Phi c(x).\]

The weights hand the signal over from the code at \(t=0\) to the image at \(t=1\). We use a trigonometric hand-over with a mid-path norm bump:

\[(\alpha_t, \beta_t) = g_t\,(\sin\theta_t,\, \cos\theta_t), \qquad \theta_t = \tfrac{\pi t}{2}, \qquad g_t = 1 + \kappa \sin 2\theta_t,\]

with \(\kappa = 0.25\). Plain pixel flow is the special case \(\alpha \equiv 1\), \(\beta \equiv 0\). Differentiating gives the target velocity, and a single network is trained against it with one unified loss — predicting pixels and code together.

DINOv2-B’s 768 channels are exactly one 16×16×3 patch, so \(\Phi\) is an isometry onto the image. That coincidence is convenient, not essential; other encoders and code widths work too.

Watch the hand-over

The video runs the equation above continuously in \(t\), on a real image with its real code (shown by its first three principal components). On the left is the signal \(m_t\) the path points at; on the right the state \(z_t\) the network actually sees. Near noise the signal is a semantic prototype; near data it is the photograph.

The detour path and the network
Left: the signal \(m_t\) and the state \(z_t\) on a real image, with the code shown by its PCA colours. Right: the network predicts image and code.

Sampling needs none of this machinery. It integrates a pixel-space ODE from noise to data — no encoder, no decoder, nothing to reconstruct through.

Does the detour actually speed things up?

Each row adds one piece to plain pixel flow, using the same network (JiT-B, 296M, unguided FID, Heun 50 steps). Putting DINOv2 features into the path is by far the largest single gain.

Model FID-10k, 20 ep. Δ FID-50k, 80 ep.
Pixel flow (JiT, same network) 92.8 — 48.3
+ detour path 66.6 −26.2 —
+ trigonometric mix 52.7 −13.9 —
+ norm bump 49.1 −3.6 —
+ fitted logit-normal \(t\) 47.9 −1.2 23.4
+ interval sampling 45.5 −2.4 20.4
+ multi-layer code 38.8 −6.7 15.8

Semantic latent diffusion still converges faster, but the detour recovers much of the advantage while generating directly in pixels.

ImageNet

At 256×256, Detour-XL/16 reaches FID-50k 1.43 in 200 epochs; at 512×512, Detour-XL/32 reaches 1.59 in 160 epochs. Without guidance the same models reach 3.69 and 4.19.

Guidance matters, and the two kinds compose. Classifier-free guidance alone plateaus; autoguidance alone is already better at a much lower Inception score; together they are better than either.

Sampling (Detour-XL/16, epoch 200) FID-50k IS
Unguided 3.69 182
CFG 2.25 on [0.05, 0.9] 2.27 283
AutoGuidance 2.0 1.81 210
CFG 1.75 + AutoGuidance 2.0 1.43 267

256×256

Detour-XL/16, CFG 1.75 + AutoGuidance 2.0 — the setting that gives FID-50k 1.43. One sample per class, shown at the model’s native 256×256. Click to view at full size.

ostrich
ostrich
robin
robin
loggerhead
loggerhead
macaw
macaw
black swan
black swan
sea anemone
sea anemone
flamingo
flamingo
golden retriever
golden retriever
siberian husky
siberian husky
arctic fox
arctic fox
lion
lion
wood rabbit
wood rabbit
otter
otter
african elephant
african elephant
lesser panda
lesser panda
giant panda
giant panda
balloon
balloon
castle
castle
container ship
container ship
space shuttle
space shuttle
streetcar
streetcar
ice cream
ice cream
granny smith
granny smith
strawberry
strawberry
pizza
pizza
alp
alp
lakeside
lakeside
volcano
volcano

512×512

Detour-XL/32, CFG 2.5 + AutoGuidance 2.0, at the native 512×512.

goldfish
goldfish
bald eagle
bald eagle
king penguin
king penguin
tiger
tiger
monarch
monarch
sulphur crested cockatoo
sulphur crested cockatoo
ice bear
ice bear
zebra
zebra
jellyfish
jellyfish
coral reef
coral reef
barn
barn
beacon
beacon
cheeseburger
cheeseburger
daisy
daisy
agaric
agaric

Text to image

The path needs no class labels, so it transfers to text-to-image directly. With matched networks it reaches comparable text alignment in 1.5× fewer training iterations than plain pixel flow.

A 3.3B model scores GenEval 0.90 / DPG-Bench 87.8 at 512×512 and 0.88 / 87.4 at 1024×1024 — ahead of the pixel-space models we compare against at both resolutions, while keeping the fine textures and rendered text that a semantic-latent decoder can lose.

Text-to-image convergence against plain pixel flow
Rendered text

Samples from the 3.3B model at about 1024×1024 and several aspect ratios. Click any image to open it at full resolution.

Sample 1 Sample 2 Sample 3 Sample 4 Sample 5 Sample 6 Sample 7 Sample 8 Sample 9 Sample 10 Sample 11 Sample 12 Sample 13 Sample 14 Sample 15 Sample 16 Sample 17 Sample 18 Sample 19 Sample 20 Sample 21 Sample 22 Sample 23 Sample 24 Sample 25 Sample 26 Sample 27 Sample 28 Sample 29 Sample 30 Sample 31 Sample 32 Sample 33 Sample 34 Sample 35 Sample 36 Sample 37

More samples

Fifty-two further samples from the same model, the set used in the appendix. These sheets were saved at a lower resolution than the gallery above, so the full-size view tops out near the model’s own 1024 px rather than above it.

Appendix sample 1 Appendix sample 2 Appendix sample 3 Appendix sample 4 Appendix sample 5 Appendix sample 6 Appendix sample 7 Appendix sample 8 Appendix sample 9 Appendix sample 10 Appendix sample 11 Appendix sample 12 Appendix sample 13 Appendix sample 14 Appendix sample 15 Appendix sample 16 Appendix sample 17 Appendix sample 18 Appendix sample 19 Appendix sample 20 Appendix sample 21 Appendix sample 22 Appendix sample 23 Appendix sample 24 Appendix sample 25 Appendix sample 26 Appendix sample 27 Appendix sample 28 Appendix sample 29 Appendix sample 30 Appendix sample 31 Appendix sample 32 Appendix sample 33 Appendix sample 34 Appendix sample 35 Appendix sample 36 Appendix sample 37 Appendix sample 38 Appendix sample 39 Appendix sample 40 Appendix sample 41 Appendix sample 42 Appendix sample 43 Appendix sample 44 Appendix sample 45 Appendix sample 46 Appendix sample 47 Appendix sample 48 Appendix sample 49 Appendix sample 50 Appendix sample 51 Appendix sample 52

Architecture, briefly

A 32-pixel encoder lays out the image and passes its tokens to a 16-pixel decoder that predicts image and code together. The loss is a single velocity objective against targets \(x\) and \(c(x)\), with DINOv2 frozen throughout — it is used to define the path, never trained.

Text-to-image architectures