Latent diffusion needs no decoder😵
@HanshengCh1.3K followers
27,716 views
31 Comments
Comments from the original post on X (Twitter)

@HanshengCh
Why does a latent DiT need a decoder at all?🧐 Maybe it doesn’t. Its last-layer tokens already encode pixels! A linear probe on these tokens beats a probe on denoised latents: • 12–51% lower pixel reconstruction error • Finer image detail • Less video ghosting
14 likes

@HanshengCh
So we add a second head: • Denoising head: kept for sampling, anchored to the frozen model • DWD linear head: outputs pixels at the final step, trained with VAE-like losses Only the last few blocks are finetuned, far cheaper than turning it into a pixel model like AsymFlow.
9 likes

@HanshengCh
On Wan2.1 14B, the VAE decoder distorts fine detail like mesh, text, and dense lights, and the distortion flickers from frame to frame. With direct pixel prediction, DWD keeps these details stable: 23% lower warping error than the Wan VAE, and 29% under 8-bit inference.
9 likes

@HanshengCh
On FLUX.2 klein 9B, DWD’s samples stay near-identical to the base model’s, text included. AsymFlow and L2P also remove the decoder, but turn the latent denoiser into a pixel denoiser. That changes the samples and hurts text rendering.
7 likes

@HanshengCh
DWD powers pi-H3⚡, the fastest MiniMax H3 yet. At 2 steps, dropping the video VAE decoder makes generation 1.6× faster. So, pi-H3 generates 10 s of 768p video in 9.2 s on a single B200. Quality is still early; a much better checkpoint is coming soon.
9 likes

@HanshengCh
DWD even improves pixel models, which have no decoder. Pixel denoising head is typically trained with L2, which smooths texture. A separate DWD head with VAE-like losses fixes it: • ImageNet FID 1.55 ➡️ 1.43 (AnisoFlow), new pixel flow SOTA • Photorealistic texture in T2I
6 likes

@HanshengCh
Why a separate head? Some pixel models add perceptual losses to the denoising head directly. We tried this, and it hurts FID: • AnisoFlow: 1.55 ➡️ 1.71 (shared head) vs. 1.43 (DWD) • JiT: 1.90 ➡️ 1.91 (shared head) vs. 1.85 (DWD) The denoising head should stay a denoiser.
4 likes

@HanshengCh
Joint work with @prime_cai, @jan_on_x, @rzirvi13, @GordonWetzstein, @skywalkeryxc, and Leonidas Guibas. 📄 Paper: 🌐 Project page: Code and new models coming soon 👀 @StanfordAILab @LumaLabsAI @Caltech
21 likes

@GordonWetzstein
The pixel-model ablation is super interesting: the same perceptual losses hurt FID with a shared head but improve it with separate heads. Denoising and final image formation benefit from different objectives, even when both operate in pixel space.
8 likes

@HanshengCh
Yea this is basically the key insight: Two heads, two roles, two decoupled objectives. This decoupling benefits all models.
5 likes

@toilaluan_
such a lovely work. i have tried similar mechanism when trying to remove big and bad decoder in RAE admire you to make it works properly
3 likes

@HanshengCh
Thanks for sharing this! Working with DINO latent space is indeed challenging, it's so far from pixel space.
2 likes

@boyang_deng
This is gonna be so useful, as in I'm using it right now :-) Congrats, Hansheng!
3 likes

@HanshengCh
Thanks Boyang! I didn't expect that you've already been using it secretly lol. Hope it works well
1 like

@JeffEpsteinJew
Excited for pi-h3
1 like

@LucaAmb
Very cool!
1 like

@mmastrac
I didn't see this in the paper, but is there a cheap way to allow the direct readout without breaking model LoRAs? Or would it just require a DWD-specific LoRA?
1 like

@HanshengCh
Most LoRAs should be supported. DWD only changes last few blocks. LoRAs in previous blocks should be unaffected. We will test this before the model release.

@mmastrac
Excellent. I'm working on something with flux.2 right now and I'll be happy to try it as soon as weights pop up on huggingface.

@CongyueD
@skywalkeryxc wow that’s cool!
1 like





