The decoder is the bottleneck: Why image and video AI wants to ditch the VAE

Now that image and video models get by with two to four steps, an inconspicuous component has become the bottleneck: the VAE decoder that turns the result into pixels at the end. Within just a few weeks, four ways to bypass it have emerged. We explain how they work, what they deliver and what you give up in return.

Analysis Nov 23, 2026 10 min read Original analysis by our editors
Illustrative image, AI-generated

What this is about

Almost every image or video AI you run locally today works in two stages. The actual model, usually a Diffusion Transformer (DiT), doesn't compute with pixels. It works in a heavily compressed intermediate format, the latent space. At the end, a second network, the VAE decoder (variational autoencoder), translates that format into a real image or video. Think of it as an architect who only draws sketches and a construction crew that builds the house from them.

For a long time, the construction crew was an afterthought. A diffusion model needed 30 to 50 steps, and decoding ran once at the end. But models are now being distilled: a slow “teacher” model trains a “student” to deliver nearly the same result in 1 to 4 steps. That drastically cuts the architect's time, while the crew's time stays the same. The decoder becomes the bottleneck. Our take: the many projects of recent weeks aren't one-offs. They're four answers to exactly this one problem.

How big the problem really is

The clearest numbers come from the paper on Flash-VAED. In the original pipeline for the video model Wan 1.3B, decoding accounts for just 2.3 percent of compute time. With the Self Forcing distillation method, that rises to 29.6 percent (Table 9 of the paper says 31.6), and with FastVideo to as much as 40.9 percent. The authors describe a roughly 15-fold larger share after acceleration. More than 60 percent of the decoder's time goes to the CausalConv3D layers. These are three-dimensional convolutions that compute across width, height and time, looking only at previous frames, never at later ones.

Other projects confirm the pattern:

Measurement Decoder share / cost Source
Wan 1.3B, original pipeline 2.3% Flash-VAED
Wan 1.3B, Self Forcing 29.6% Flash-VAED
Causal Forcing++ (480p, B200) 147 of 271.8 ms (approx. 54%) FastFrames paper
MiniMax H3, 2 steps, 768p, 5 s (H100) 3.97 of 9.87 s (approx. 40%) pi-H3 blog
MiniMax H3, 2 steps, 480p, 5 s (H100) 1.72 of 3.61 s (approx. 48%) pi-H3 blog

According to Apple, a single decoding step in Causal Forcing++ costs as much as 3.5 passes of the actual model.

Then there's VRAM (video memory). According to Flash-VAED, the Wan 2.1 decoder needs up to 7.11 GB of VRAM. By our math, that's more than twice what the Wan model's 1.3 billion parameters take up in BF16 (about 2.6 GB). For the Wan 2.2 decoder, the TAEHV project cites 12.8 GB. For Qwen-Image 2.1, a pull request in the Mac project mflux shows that decoding a 1536×1536 image in one go takes 35.6 GB, versus just 8.8 GB when split into strips. According to Nvidia's PiD paper, the FLUX.1 VAE runs out of memory at 4096 pixels even on an 80 GB card. So on cards with 8 to 16 GB, it's often the decoder, not the model, that triggers the “out of memory” error. The usual workaround is tiling, decoding tile by tile. That can leave visible seams and makes poor use of the GPU. In a Hugging Face discussion, one user complains about the hard-coded, very conservative chunking in the H3 VAE.

Way out 1: Mini decoders

The obvious solution is a smaller decoder that reads the same latent data. The classic is TAEHV by madebyollin. This “Tiny AutoEncoder” is available for Wan, Hunyuan, LTX, Qwen Image and MiniMax H3. For Wan 2.2, the project cites 1.8 ms instead of 50.5 ms per frame and 0.8 instead of 12.8 GB of memory. The trade-off: according to the README, TAEHV “doesn't yet” match the quality of the big VAEs. For Wan 2.2, it lists an rFVD (a distance metric relative to the original videos, lower is better) of 113.2 versus 24.4. The “_super” variants close part of the gap. Kijai has released a quickly trained preview decoder for H3 and himself calls it “not the best result”.

Flash-VAED is more thorough. It prunes redundant channels, replaces expensive building blocks and distills in three phases. According to the paper, the Wan decoder shrinks from 73.3 million to 5.86 million parameters, and memory use drops from 7.11 to 2.00 GB. On an RTX 5090D, decoding speed climbs from 19.27 to 118.77 frames per second (6.2x). PSNR (image fidelity in decibels, higher is better) falls from 40.40 to 37.61 dB, while rival LightVAE comes in at 32.61 dB. Overall generation gets up to 36 percent faster.

The big advantage of this approach: the diffusion model stays untouched. LoRAs (small add-on files that teach a model a style or a character) and workflows keep working. You just swap the decoder file.

Way out 2: Pixel heads directly on the transformer

The second approach is more radical. It skips the latent format entirely and attaches a small “head” to the transformer that translates its internal intermediate outputs straight into pixels. Apple's FastFrames does this with a pixel decoder made of three causal ConvNeXt blocks and a final linear layer that turns each token into a 16×16 pixel patch across four frames. Notably, at 63.87 million parameters it's barely smaller than the Wan decoder with 73.3 million. It's fast because it operates on the transformer's coarse token grid (21×30×52) and uses its rich 1,536-channel features. According to the paper, decoding drops from 147 to about 1 ms at 480p and from 327 to 2 ms at 720p. Apple doesn't report its own PSNR values for the decoder, though, just a visual comparison featuring hair and raindrops.

The idea quickly found imitators. The community PixelHead for Qwen-Image 2.1 explicitly cites FastFrames. The Reddit headline “67x faster” is accurate, but only for the decoder on its own: 5.55 ms versus 372.30 ms at 768×768 on an Nvidia L4. The file is 48.8 MiB and released under the MIT license. According to the ComfyUI node, the head takes up less than 0.2 GB of extra memory, compared with 2 to 7.5 GB for the original VAE. Fidelity relative to the VAE is 33.91 dB PSNR. Note: this is measured against the VAE output, not against a real photo.

pi-H3 by Hansheng Chen (Stanford, Luma AI) also belongs in this category. His method is called DWD, “Decoding Without a Decoder”. The blog reveals an instructive detail: a purely linear head produced blurry images with H3. Each token there has to generate 12,288 pixel values, more than the transformer has internal channels (5,376). Version 1.0 therefore uses a “refiner” built from 8 of the 24 blocks of the Sol-H3 VAE decoder. So the decoder doesn't vanish entirely; part of it moves into the model. The authors themselves call DWD on H3 “still experimental”.

Ways out 3 and 4: Diffusion as the decoder and true pixel models

Nvidia's PiD flips the logic: the decoder is itself a small diffusion model that works in pixel space and upscales at the same time. According to the paper, it turns a 512 latent into a 2048×2048 image in under a second, on an RTX 5090 with 13 GB of peak memory. This isn't a savings program for small cards but a shortcut to high resolutions: FLUX.2 at 512 pixels plus PiD takes 7.1 seconds, native 2K rendering 102.2 seconds. The catch: a diffusion decoder invents details. The paper concedes that PiD generates “additional content” when stopped early. Video isn't supported.

The most thoroughgoing approach is true pixel-space models. PixVid from Roblox rebuilds Wan2.1-14B: pixels go in through a simple linear layer, and a causal convolutional head called the “Detailer” outputs them again. Because each token covers a 32×32 pixel patch, 1664×960 takes as many tokens as 832×480 did before. A latent model would need four times the tokens and 16 times the attention compute for 960p. Code and weights reportedly aren't available yet. A study on pixel image models (arXiv 2608.16887) measures the decoder share at 1024×1024 on an H800: the FLUX VAE takes 91.88 ms, a convolutional head 6.02 ms, a linear head 0.07 ms. The linear head, however, shows visible grid artifacts at the tile boundaries. Overall, the study finds the pixel versions of Z-Image and FLUX2-klein 3.18 to 4.75 times faster, though that's also thanks to distillation and larger patches.

What gets lost along the way

Approach Example Speedup (decoder) Catch
Mini decoder TAEHV, Flash-VAED approx. 6–28x measurable quality loss, otherwise fully compatible
Pixel head FastFrames, PixelHead, pi-H3 approx. 67–147x retrain for each model, rework workflows
Diffusion decoder PiD goal is resolution, not savings invents details, 13 GB+
Pixel-space model PixVid decoder gone entirely new training, often no weights

Fine textures: The PixelHead author concedes that 2-pixel halftone dots and fine woodcuts lose fidelity. pi-H3 0.9 had a convolutional refiner that, according to the blog, needed “a lot of VRAM” and produced aliasing (stair-step and flicker effects on fine structures). But the original VAE isn't flawless either. ComfyUI documents a checkerboard pattern for Qwen-Image 2.1 that “comes from the decoder”. The Texture Fix VAE is the counterexample: it improves rFID from 3.37 to 2.08 without changing the latent space.

Compatibility: Pixel heads need the transformer's live data. PixelHead can't decode saved .latent files, and in ComfyUI a dedicated node replaces the VAEDecode node. It's said to work with 8-step turbo LoRAs and fine-tuned variants. The model card says nothing about arbitrary style LoRAs. Apple writes that the pixel decoder has to be trained separately for each model, whereas the Wan VAE can be shared across all model sizes. You often still need the VAE encoder, for example for start and end frames in pi-H3 or for reference images when editing.

Licenses: They're a patchwork. PixelHead and TAEHV are under MIT, Kijai's H3-TAE under Apache 2.0. The pi-H3 adapters fall under the MiniMax H3 Community License. FastFrames carries Apple's “apple-amlr” license, reportedly research-only. The status for PiD and PixVid is unclear.

Our verdict

Our take: the VAE isn't being abolished, it's being taken apart. A Japanese analysis of pi-H3 on note.com shows how much you can realistically expect. There, the biggest speedup comes from fewer steps. At 4 steps, pi-H3 is only about 5 percent faster than Sol-H3 with a fast VAE. Dropping the decoder really pays off only at 1 to 2 steps or in real-time applications like FastFrames.

For local users with 8 to 16 GB, memory matters almost more than the milliseconds: 0.2 GB instead of 7 GB decides whether a workflow runs at all. If you want stable results and full LoRA compatibility today, mini decoders like TAEHV or Flash-VAED are the safe bet. Pixel heads are faster but tied to a specific model. Almost all of their quality figures come from the authors themselves and were mostly measured against the VAE, not against real images. Independent comparisons are still missing.

#vae#video generation#comfyui#diffusion#efficiency#explainer

Ask the AI assistant

Questions about this article, installation or background? Our assistant knows this page and runs on our own machine, not in someone else's cloud.

Connecting …

The Assistant is an AI (Gemma 4) and can make mistakes – please check important details against the source. Questions are used only to generate an answer and are deleted after one hour. Please don't enter any personal data.

Comments

What do you think? Already tried it? Write it here, no sign-up needed.

  1. Loading comments …

Comments are public. Links aren't allowed, and we delete abusive posts. You can delete your own comment at any time in this browser. Learn more in the Privacy Policy.