The hidden part of image generators: how was Kandinsky Lab's open KVAE 3.0 trained?
Kandinsky Lab released three MIT-licensed VAEs for video, images and audio. How aligning latents with DINOv2 and V-JEPA works and what the results show.
When an AI model generates an image or a video, most of the work does not happen on pixels. The picture is first compressed into a small, dense latent space, the generator works there, and a decoder turns the result back into pixels. The part that does the compressing and decompressing is the VAE, or variational autoencoder. On 26 November Kandinsky Lab released three new ones on Hugging Face under the MIT license: KVAE-3D-3.0 for video, KVAE-2D-3.0 for images and KVAE-Audio-Stereo for sound.
What stands out is the focus. Besides reconstructing well, these tokenizers are tuned to produce latents a generator can learn from easily, by aligning them with features from large pretrained vision and audio models. The image model is 61% smaller than its predecessor at the same quality, and the video model compresses each frame 32 times in each direction.
Why the tokenizer matters
A diffusion model lives in the latent space, so the shape of that space affects everything. Weak compression means huge tensors and expensive training. Strong but disorderly compression means the image comes back fine while the generator struggles to find patterns. That is why VAEs have become a quiet front in the image race, with FLUX, Wan, Hunyuan and MiniMax all building their own. KVAE 3.0 offers an open option.
Three models
KVAE-3D-3.0 (video): 4x compression in time and 32x32 in space into 128 channels; about 1 billion parameters, causal and fully convolutional. The previous version used 16x spatial compression. KVAE-2D-3.0 (image): 8x8 compression into 32 channels, 85.6 million parameters, 61% fewer than the 218.4-million-parameter 2.1. KVAE-Audio-Stereo: 167 million parameters, turning 48 kHz stereo into a 128-channel code at 50 frames per second.
How they were trained
Image. The deepest stage drops from 1,024 to 512 channels and self-attention is added at the encoder and decoder bottlenecks. The key idea is latent alignment: during training, a temporary eight-block probe based on SiT-XL/2 tries to predict frozen DINOv2 ViT-B/14 features from noisy VAE latents. That forces the latent to keep meaning even under noise, exactly the situation a diffusion model faces, and the probe is thrown away afterwards. Stage one trains the tokenizer and probe together for 600,000 steps on 256x256 crops from an internal dataset. Stage two freezes the encoder and refines the decoder on random 512x512 crops with pixel, perceptual and adversarial losses.
Video. An extra downsampling stage in the encoder, an extra upsampling stage in the decoder and more residual blocks take compression from 16x to 32x. The latents are aligned with V-JEPA features, and the decoder is further fine-tuned on images and clips; the team notes higher-resolution refinement works better.
Audio. The latent is aligned to a subspace of an audio quality predictor's features, with spectral losses on left-right and mid-side channels, a phase objective and a joint-stereo discriminator.
What the results say
On 5,000 COCO validation images, KVAE-2D-3.0 leads on PSNR (32.18 dB) and SSIM (0.9070), against 31.37 dB and 0.8924 for the FLUX.2 VAE, while FLUX.2 is best on LPIPS (0.0167). The team openly shows that 3.0 barely beats 2.1 on reconstruction (32.18 vs 32.15); the gain is a 61% smaller model and a more generation-friendly latent. With 2-billion-parameter Kandinsky 5 generators, the KVAE-2D-3.0 latent reached FD-CLIP 12.72 at 200,000 steps against 13.05 for FLUX.2, though FLUX.2 was marginally ahead at 100,000 steps. Human ratings are near parity.
For video, the project page reports human preference against MiniMax-H3's VAE of 56.6% on visual quality and 54% on prompt following. Audio shows the widest gap: 98% preference on speech and 93% on music against Stable Audio's SAME-L, though the page notes the baselines score better on SongDescriber CLAP and FAD. All numbers are the team's own; the 3.0 technical report is listed as coming soon.
How to try them
The GitHub repo installs on Python 3.11, PyTorch 2.8 and CUDA 12.8 (pip install -r requirements.txt, then pip install --editable .). Load the image model with KVAEImage.from_pretrained("kandinskylab/KVAE-2D-3.0"), encode with model.encode(image).latent_dist.mode() and decode with model.decode(latent). For video, use KVAEVideo.from_pretrained("kandinskylab/KVAE-3D-3.0") with height and width divisible by 32, 4n+1 frames and one instance per stream. Code and weights are MIT, so any team training its own image or video generator can build on them directly.
Sources: KVAE-3D-3.0 model card, KVAE-2D-3.0 model card, Kandinsky Lab: KVAE 3.0, GitHub repository