Livevae speeds up video encoding and decoding with local attention
LiveVAE: Causal Window Attention Makes Efficient Streaming Video VAE
Computer Vision and Pattern Recognition
Summary
Video VAEs are used to compress and reconstruct videos but are often slow because they look at entire frames and use heavy computations. The authors found that only nearby pixels and frames really matter when encoding or decoding parts of a video. They created LiveVAE, which uses a special attention method focused on these local neighborhoods, making the process much faster. This new approach works as a plug-in replacement and keeps video quality high while speeding up encoding and decoding by several times.
What this means in practice
- •For video streaming engineers: Reduce latency in streaming video pipelines by replacing traditional VAEs with LiveVAE for faster encoding and decoding.
- •For real-time video editing teams: Enable interactive video editing workflows by speeding up video encoding and decoding without quality loss using LiveVAE.
- •For mobile app developers: Build faster video generation or editing apps on mobile devices by integrating the efficient LiveVAE model.$Commercial implications: Faster, efficient video processing enables commercial video apps with interactive features suitable for mobile devices.
Authors
Jiachen An, Sijie Zhao, Le Li, Hongyu Liu, Zhiyuan Li, Tianyu Yang, Xiaoyu Kong, Xunliang Cai, Yong Zhang, Chi-Man Pun, Xiaoming Wei, Xiaodong Cun
Abstract
While video diffusion models have grown faster and increasingly streamable, the video VAE remains a primary latency bottleneck across interactive generation and editing pipelines. Existing VAEs and their acceleration methods rely mainly on heavy convolutions or full frame attention, and most focus only on decoding, leaving encoding costly for streaming conditional generation and editing. This raises a natural question: Do video VAE encoding and decoding actually require such global spatiotemporal modeling? By analyzing the effective receptive fields of pretrained video VAEs, we find that both encoding and decoding a patch rely almost entirely on its spatial and temporal neighbors. To exploit this strong locality, we introduce LiveVAE, a streaming encoder and decoder built on causal window attention, which cuts per frame compute while keeping the temporal KV cache bounded for streaming. Decoupled encoder/decoder distillation followed by joint finetuning preserves the pretrained latent space, making LiveVAE a drop-in replacement for the original VAE. On MiniMax-H3, LiveVAE achieves 5.2-6.2x faster encoding and 3.0-3.3x faster decoding than the official VAE with higher PSNR. Paired with our dedicated inference infrastructure, LiveVAE pushes the speedup to 13.4x with almost no quality loss. Code and models will be released.