Skip navigation
Latent diffusion needs no decoder😵
0:00 / 1:16

Latent diffusion needs no decoder😵

Hansheng Chen

@HanshengCh1.3K followers

Visit on X
472 likesDownloadOriginal post

27,716 views

Latent diffusion needs no decoder😵 New paper: DWD, a linear head on DiT predicts pixels directly • Same or better quality on every tested latent model, less flicker in Wan video • Even pixel models improve: ImageNet FID 1.55 ➡️ 1.43 (pixel SOTA), photorealistic texture in T2I

31 Comments

Comments from the original post on X (Twitter)

  • Hansheng Chen's profile picture

    @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

  • Hansheng Chen's profile picture

    @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

  • Hansheng Chen's profile picture

    @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

  • Hansheng Chen's profile picture

    @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

  • Hansheng Chen's profile picture

    @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

  • Hansheng Chen's profile picture

    @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

  • Hansheng Chen's profile picture

    @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

  • Hansheng Chen's profile picture

    @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

  • Gordon Wetzstein's profile picture

    @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

  • Hansheng Chen's profile picture

    @HanshengCh

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

    5 likes

  • kenji's profile picture

    @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

  • Hansheng Chen's profile picture

    @HanshengCh

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

    2 likes

  • Boyang Deng's profile picture

    @boyang_deng

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

    3 likes

  • Hansheng Chen's profile picture

    @HanshengCh

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

    1 like

  • Holocaust Survivor's profile picture

    @JeffEpsteinJew

    Excited for pi-h3

    1 like

  • Luca Ambrogioni's profile picture

    @LucaAmb

    Very cool!

    1 like

  • Matt Mastracci's profile picture

    @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

  • Hansheng Chen's profile picture

    @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.

  • Matt Mastracci's profile picture

    @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.

  • Congyue Deng's profile picture

    @CongyueD

    @skywalkeryxc wow that’s cool!

    1 like