Skip to content
MeiGen-AIPublic

About

LiveVAE: a streaming video VAE built on causal window attention. Distilled from pretrained video VAEs (MiniMax-H3, Wan2.2), it keeps their latent space and replaces both encoder and decoder directly, running up to 13.4× faster end to end.

Resources

Stars

28 stars

Watchers

3 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

LiveVAE: Causal Window Attention Makes Efficient Streaming Video VAE

Jiachen An1,2,4,* · Sijie Zhao2,* · Le Li2,* · Hongyu Liu2,3 · Zhiyuan Li1,2,4 · Tianyu Yang2
Xiaoyu Kong2 · Xunliang Cai2 · Yong Zhang2,‡ · Chi-Man Pun4,† · Xiaoming Wei2,† · Xiaodong Cun1,†

1GVC Lab, Great Bay University   2Meituan   3The Hong Kong University of Science and Technology   4University of Macau
*Equal contribution   †Corresponding authors   ‡Project lead

Project page · Paper (coming soon) · Models (coming soon)

Speed and PSNR at 720p, reconstruction close-ups, and reference to video generation, in the MiniMax-H3 latent space

LiveVAE is a streaming video VAE: an encoder and a decoder built on causal window attention. It is distilled from a pretrained video VAE and keeps that VAE's latent space, so it replaces the original encoder and decoder directly, with no change to the diffusion model.

In the MiniMax-H3 latent space, on one NVIDIA H100:

  • 5.2–6.2× faster encoding than the official VAE.
  • 3.0–3.3× faster decoding, with higher PSNR.
  • Up to 13.4× faster end to end with our inference optimizations, at almost no quality loss.

Note

This repository is being prepared for release. The inference code and model weights will be added in a later update. Until then, the project page has the full set of video comparisons.

Why a window is enough

Existing video VAEs and their fast variants rely on heavy convolutions or full frame attention. We measured the effective receptive fields of the pretrained MiniMax-H3 and Wan2.2 VAEs and found that both encoding and decoding depend almost entirely on spatial and temporal neighbors:

  • A 7 × 7 spatial window holds 95–100% of the influence on a latent.
  • The current and previous latent frames (T = 2) hold 71–99% of it.

Effective receptive field maps of the MiniMax-H3 and Wan2.2 encoders and decoders, and the share of influence inside spatial and temporal windows

Method

Streaming encoder and decoder, causal window attention, the three training stages, and streaming inference

  • Streaming encoder and decoder (a). Both are transformers made of causal window attention (CWA) blocks between a patchify and an unpatchify layer. The encoder output is normalized with the latent statistics of the pretrained VAE.
  • Causal window attention (b). A query in frame t attends to the 7 × 7 window around it in frame t and to the same window in frame t − 1. Later frames are masked. This cuts the compute per frame and fixes how far back the model looks.
  • Training (c). Three stages keep the pretrained latent space:
    1. Encoder distillation. The streaming encoder learns to match the latents of the pretrained encoder (L2 + KL), with a reconstruction loss (L1 + LPIPS) through the frozen pretrained decoder.
    2. Decoder distillation. The streaming decoder learns to reconstruct video from the latents of the frozen pretrained encoder (L1 + LPIPS).
    3. Joint finetuning. Both are trained together with the same losses plus a GAN loss.
  • Streaming inference (d). Each frame computes its keys and values once and stores them in a one frame KV cache. The next frame reads them from the cache, so memory stays constant however long the video is. The encoder and the decoder each keep their own cache.

On top of this, LiveVAE-Opt adds three inference optimizations: fused attention kernels, region-wise compilation and an FP8 feedforward path trained with quantization-aware training.

Speed

End to end time at 720p on one NVIDIA H100 with batch size 1, as the median latency after warm up. Clips have 22 frames (21 for Wan2.2). Decoder only methods keep the official encoder, so their speedup includes the official encoder time.

MiniMax-H3 latent space

Method Replaces Encoder (ms) Decoder (ms) Speedup PSNR (dB)
MiniMax-H3 (official) — 1453.5 1010.6 1.0× 34.31
TAEH3 Encoder + decoder 15.4 20.3 69.0× 28.72
LightVAE-Lite Encoder + decoder 789.5 341.3 2.2× 31.05
LynnReal-Omni Decoder only — 659.5 1.2× 34.43
Solar-X Decoder only — 619.7 1.2× 32.93
StreamRender-H3 Decoder only — 647.0 1.2× 33.13
LiveVAE Encoder + decoder 234.3 303.4 4.6× 34.74
LiveVAE-Opt Encoder + decoder 92.5 126.7 11.2× 34.74

Wan2.2 latent space

Method Replaces Encoder (ms) Decoder (ms) Speedup PSNR (dB)
Wan2.2 (official) — 382.8 1264.2 1.0× 37.66
TAEW2.2 Encoder + decoder 17.9 22.8 40.5× 31.49
TAEW2.2-Super Encoder + decoder 18.0 46.8 25.4× 32.89
LightTAE Encoder + decoder 18.4 23.2 39.6× 28.88
LightVAE-Lite Decoder only — 438.5 2.0× 34.28
LightVAE-Pro Decoder only — 786.2 1.4× 36.91
Turbo-VAED Decoder only — 708.7 1.5× 34.37
LiveVAE Encoder + decoder 261.5 254.9 3.2× 36.24

The 480p, 1080p and 2160p numbers are on the project page. The 13.4× speedup of LiveVAE-Opt is measured at 1080p.

Results

These are short previews. The project page plays every comparison at full quality.

Reconstruction (MiniMax-H3 latent space). Top: ground truth and LiveVAE, with the zoomed region marked. Bottom, left to right: ground truth, MiniMax-H3, TAEH3, LightVAE-Lite, LynnReal-Omni, Solar-X, StreamRender-H3, LiveVAE.

Reconstruction of small text: ground truth and LiveVAE in full, and a zoomed region for eight methods

Reference to video. Left to right: reference image, code video, generation decoded by the MiniMax-H3 VAE, the same latents decoded by LiveVAE.

Reference to video: reference image, code video, MiniMax-H3 decode, LiveVAE decode

Text to video. The same latents decoded by the MiniMax-H3 VAE (left) and by LiveVAE (right).

Text to video: MiniMax-H3 decode and LiveVAE decode of the same latents

Citation

@article{an2026livevae,
  title   = {LiveVAE: Causal Window Attention Makes Efficient Streaming Video VAE},
  author  = {An, Jiachen and Zhao, Sijie and Li, Le and Liu, Hongyu and Li, Zhiyuan and
             Yang, Tianyu and Kong, Xiaoyu and Cai, Xunliang and Zhang, Yong and
             Pun, Chi-Man and Wei, Xiaoming and Cun, Xiaodong},
  journal = {arXiv preprint},
  year    = {2026},
  url     = {https://livevae.github.io/}
}

Questions are welcome through the issue tracker.

About

LiveVAE: a streaming video VAE built on causal window attention. Distilled from pretrained video VAEs (MiniMax-H3, Wan2.2), it keeps their latent space and replaces both encoder and decoder directly, running up to 13.4× faster end to end.

Resources

Stars

28 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors