AutoencoderKLMagvit
EasyAnimate's 3D causal video VAE with latent caching and spatial-temporal slicing, feeding a video DiT.
Diffusion and generative · 1,760 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 244.4M
- Operations
- 1,760
- Framework
- PyTorch
- Recurrent
- No
- Published
- ACM International Conference on Multimedia (ACM MM) (arXiv 2024)
- Cited by
- 3 (as of 20 October 2026)
- Authors
- Jiaqi Xu, Kunzhe Huang, Xinyi Zou and others
- Source
- diffusers 0.38.0
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m152
- Graph hash
- 1c53297fb861578a6d4e44c277ef3fa74f6b0848b27b9ae5a44e2af2cf574323
- Skeleton hash
- 664baacfed59c239f35ba1d5e3346ff793f7fad56e5f7d7a65485cc700bdec96
- Architecture hash
- 932c367be8a2e93b68a3e4027b4209fbf066206ffc3034c0e3a6091564c7c431
- Diagram SHA-256
- 0d45ae16addc07db4843cfbc18784aab6359e77513129fbf0e447f4155a16acf
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
diffusers.models.autoencoders.autoencoder_kl_magvit.AutoencoderKLMagvit(in_channels=3, latent_channels=16, out_channels=3, block_out_channels=[128, 256, 512, 512], down_block_types=['SpatialDownBlock3D', 'SpatialTemporalDownBlock3D', 'SpatialTemporalDownBlock3D', 'SpatialTemporalDownBlock3D'], up_block_types=['SpatialUpBlock3D', 'SpatialTemporalUpBlock3D', 'SpatialTemporalUpBlock3D', 'SpatialTemporalUpBlock3D'], layers_per_block=2, act_fn='silu', norm_num_groups=32, scaling_factor=0.7125, spatial_group_norm=True)
What it is
The captured member is the video VAE of EasyAnimate, an efficient and high quality video generation framework that leverages diffusion transformers. EasyAnimate comprises a text encoder, a diffusion transformer and a video VAE. The pipeline comprises four stages: data preprocessing, VAE Training, DiT Training and Post Training. The paper's own headline contributions are Hybrid Windows Attention and post-training with Reward Backpropagation in the video diffusion transformers.
To mitigate the computational complexity stemming from the 3D nature of video data, the framework uses a 3D causal VAE to compress the videos across both spatial and temporal dimensions. Despite its efficiency gains, the VAE itself demands significant computational resources. The causal property of the 3D VAE allows the previous latent state to be cached and connected with the next frame for processing. Spatial and temporal slicing is applied to the VAE, greatly reducing memory use during long, high-resolution video decoding. During VAE training, frames are sampled at varying intervals to improve robustness in cross-frame encoding and decoding. Following MovieGen, a loss term penalizes latent encodings, reducing speckle artifacts during pixel-space video decoding. In the reward post-training, the 3D Causal VAE can refer to the first frame to decode the remaining video frames.
The paper situates this design among diffusion transformer models employing 3D causal VAE and rectified flow sampling, which it says now outperform 2D VAE and U-Net based video diffusion models. In the released training pipeline, Video VAE training is optional because a pre-trained Video VAE is already provided. The project lists google-research's magvit among its references.
Key idea. EasyAnimate's 3D causal VAE compresses video across both spatial and temporal dimensions and, through its causal property, caches the previous latent state and connects it with the next frame. Spatial and temporal slicing greatly reduces memory use during long, high-resolution video decoding.
- EasyAnimate
- EasyAnimateV5.1
- AutoencoderKLMagvit
- MagViT VAE
- magvit
- 3D causal VAE
- video VAE
- diffusion transformer
- EasyAnimate: High-Performance Video Generation Framework with Hybrid Windows Attention and Reward Backpropagation
- diffusers
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{xu2026easyanimatehighperformancevideogeneration,
title={EasyAnimate: High-Performance Video Generation Framework with Hybrid Windows Attention and Reward Backpropagation},
author={Jiaqi Xu and Kunzhe Huang and Xinyi Zou and Yunkuo Chen and Bo Liu and MengLi Cheng and Jun Huang and Xing Shi},
year={2026},
eprint={2405.18991},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2405.18991},
}