61% fewer parameters, slightly better PSNR: KVAE-3.0 ships image, video and stereo audio tokenizers at once
On November 27, Kandinsky Lab open-sourced KVAE-3.0 on the Hugging Face blog: three encoders for diffusion models, one for images, one for video, one for stereo audio.
The image one carries the headline number. KVAE-2D-3.0 totals 85.6M parameters against 218.4M in KVAE-2D-2.1, roughly 61% less, while reconstruction PSNR on COCO creeps up from 32.15 dB to 32.18 dB.
Weights and inference code are MIT licensed. The GitHub repo was still taking commits on November 27.
TL;DR
- This is not an image generator. It is the part underneath one: the VAE, or tokenizer, that squeezes pixels into latents and decodes them back.
- The image model is 61% smaller with flat-to-slightly-better reconstruction. The video model doubles spatial compression from 16x to 32x and posts the lowest LPIPS of the three compared VAEs. The audio model compresses left and right channels together for the first time.
- To actually use it you have to retrain the downstream generator. Drop it into an existing pipeline as a like-for-like swap and you will not see the published numbers.
What it actually is
A diffusion model does not paint in pixel space. It compresses an image into a smaller latent space, denoises there, then decodes back. The pair of networks doing the compression and decompression is the VAE.
A VAE is judged on three things: how hard it compresses, how faithfully it reconstructs, and whether the resulting space is easy to learn. The first two are easy to score. The third gets skipped constantly.
KVAE-3.0 ships all three modalities at once, and the specs diverge a lot:
| Model | Modality | Compression | Latent channels | Parameters |
|---|---|---|---|---|
| KVAE-2D-3.0 | Image | 8 × 8 | 32 | 85.6M |
| KVAE-3D-3.0 | Video | 4 × 32 × 32 | 128 | Not published separately |
| KVAE-Audio-Stereo | Stereo audio | 960 samples/frame | 128 | 167M |
The 85.6M in the image model splits into a 34.8M encoder and a 50.8M decoder. The previous generation's 218.4M was mostly fat in the deepest residual stage, whose width drops from 1,024 to 512 channels.
What that saves is not just VRAM. On all 5,000 COCO val2017 images, the reconstruction comparison looks like this:
| Tokenizer | Latent ch. | Params | PSNR↑ | SSIM↑ | LPIPS↓ |
|---|---|---|---|---|---|
| FLUX.1-dev | 16 | 83.8M | 29.89 | 0.8662 | 0.0234 |
| FLUX.2-dev | 32 | 84.0M | 31.37 | 0.8924 | 0.0167 |
| KVAE-2D-2.1 | 32 | 218.4M | 32.15 | 0.9057 | 0.0264 |
| KVAE-2D-3.0 | 32 | 85.6M | 32.18 | 0.9070 | 0.0258 |
Read that table carefully. It wins PSNR and SSIM. It loses LPIPS to FLUX.2-dev, 0.0258 against 0.0167, and that is not a small gap.
LPIPS tracks what a human eye reads as structural mush. So "slightly better image quality" holds only on the PSNR/SSIM axis. On the perceptual axis the FLUX.2 encoder is still the safer pick.
Why publish the table at all, then? Because the goal was never winning LPIPS. It was holding the floor while removing parameters.
Why it should train a better generator
Good reconstruction is not the same as being useful. An encoder can round-trip an image perfectly and still hand the downstream transformer a latent space nobody can learn.
KVAE-3.0 pulls a teacher into training for alignment. The image version uses the first eight blocks of a SiT-XL/2 transformer as a probe, predicting features from a frozen DINOv2 ViT-B/14 encoder off the noisy latent. The alignment loss updates both the probe and the encoder.
The probe is discarded after training. Zero inference overhead. The only point was keeping semantic structure in the latents, not just pixels.
The verification is reasonably tough. They trained a separate 2B Kandinsky 5 text-to-image DiT on each tokenizer, same data, same step count, same hyperparameters, 64 GPUs per run.
Generation quality is measured by FD-CLIP, lower is better:
| Tokenizer | FD-CLIP at 100K steps↓ | FD-CLIP at 200K steps↓ |
|---|---|---|
| KVAE-2D-3.0 | 13.66 | 12.72 |
| KVAE-2D-2.1 | — | 13.30 |
| FLUX.2 VAE | 13.63 | 13.05 |
At 100K steps it is actually behind FLUX.2 by a hair, 13.66 against 13.63. By 200K it flips: 12.72 against 13.05.
The curve matters more than the endpoint. The latent space converges faster, reaching a usable state earlier on the same budget. Odd, isn't it? A smaller encoder making the downstream model learn quicker.
In human preference tests at 200K steps, same prompt and same seed for both images, the KVAE generator's tie-adjusted shares were 52.5% on prompt following, 50.8% on visual quality and 50.5% on semantics.
Visual and semantic quality are a coin flip. It does not visibly win at the eyeball level. It wins on parameter efficiency and convergence speed.
The video math is better
KVAE-3D-3.0 pushes spatial compression from the previous generation's 16x to 32x, keeps 4x temporal, and uses 128 latent channels.
On the same 720p clip that is more than half the tokens gone. Attention cost grows with the square of sequence length, so that cut lands directly on the bill.
Reconstruction on MCL-JCV 720p:
| Tokenizer | Compression | Channels | PSNR↑ | SSIM↑ | LPIPS↓ |
|---|---|---|---|---|---|
| FLUX.3-Action | 4×32×32 | 96 | 32.79 | 0.878 | 0.181 |
| MiniMax-H3 | 4×16×16 | 24 | 32.44 | 0.877 | 0.176 |
| KVAE-3D-3.0 | 4×32×32 | 128 | 32.26 | 0.878 | 0.161 |
Lowest PSNR, best LPIPS. Holding perceptual quality while compressing harder is the real story on the video side.
On the generation side they compare against the MiniMax-H3 VAE with the same data and the same generator. The only difference is patch size: 1×1 for KVAE, 2×2 for H3. The blog says human preference went KVAE's way on every criterion.
Mind the fairness boundary. Different patch sizes mean different input dimensions, 128 against 96. Strictly speaking this is not one input configuration. Can you carry the win rate straight onto your own pipeline? Probably not without running it yourself.
Audio: both channels compressed at once
KVAE-Audio-Stereo is a 48 kHz waveform VAE with 167M parameters. Each latent frame covers 960 samples, which works out to a 50 Hz latent rate across 128 channels.
The point is joint encoding. Left and right do not get compressed separately and stapled together. They go through one encoder, and the latent carries the relationship between the channels in its feature dimensions.
That distinction matters if you build spatial sound. Compress each side alone and both may sound fine while the combined stereo field has already fallen apart.
The published comparison is listening-test win rates. Against SAME-L it wins 55/68/64% on prompt following and 71/98/93% on audio quality. Against the LTX 2.5 audio VAE: 74/60/67% and 82/78/94%.
Each triplet maps to sound effects, music and speech. Every number on the quality row is above 70%.
One more data point on generation: they took one 0.6B audio diffusion transformer, trained it from scratch for 60,000 steps on each VAE, and swapping in KVAE improved output quality under a fixed generator.
How to use it
The reference environment is pinned: Python 3.11, PyTorch 2.8.0, CUDA 12.8. Image and video inference both expect CUDA. The audio scripts run in float32.
Loading the image model and doing one round trip looks like this:
import torch
from data import read_image
from kvae import KVAEImage
model = (
KVAEImage.from_pretrained("kandinskylab/KVAE-2D-3.0", strict=True)
.eval()
.to(device=torch.device("cuda:0"), dtype=torch.bfloat16)
)
image = read_image("path/to/image.png").unsqueeze(0).cuda().to(torch.bfloat16)
with torch.no_grad():
latent = model.encode(image).latent_dist.mode()
reconstruction = model.decode(latent).clip(-1, 1)Three moves: clone the repo and install requirements, pull weights with from_pretrained, then encode and decode. Height and width must be divisible by 8. read_image normalises pixels to [-1, 1].
The video model takes two extra knobs. TruncVideo(spatial_compression=32, temporal_compression=4) crops dimensions to multiples of 32 and frame counts to 4n+1. encode(..., seg_len=16) sets the segment length.
Audio goes through KVAEAudio: 48 kHz stereo waveform in, 128-channel latents out. The docs do not publish a universal minimum VRAM figure, so you have to account for clip length, batch size and the downstream generator together.
The models are also in diffusers. AutoencoderKLKVAEAudio has shipped since 0.42.0 if you would rather skip the repo.
Who it's for
- Teams training or fine-tuning diffusion models who want a cheaper tokenizer that converges faster.
- Video generation teams where sequence length is the bottleneck and one more notch of spatial compression pays for itself.
- Game audio, spatial audio and ambience-heavy voice products that need the latent space to preserve inter-channel relationships.
- Researchers working on encoders themselves, reproducing whether semantic alignment actually helps downstream generation.
Not a good fit
- Anyone hunting for a ready-made image tool. There is no UI, no API key, no image out of the box.
- Teams with a working FLUX or Qwen pipeline who only want to swap the VAE to save VRAM. The latent distribution is incompatible and the generator needs retraining.
- Consumer GPU users short on VRAM. The video model targets datacenter cards. Fully convolutional means no spatial tiling, not a small activation footprint at 128 channels.
- Commercial retouching workflows chasing the last bit of LPIPS. The image model still trails FLUX.2-dev there.
Pitfalls
First: mistaking the encoder for a generator. The repo runs encode and decode. What comes out is a reconstruction of your input, not a new image. New images need a generator you bring yourself.
Second: reading PSNR alone. 32.18 against 31.37 looks like a comfortable 0.8 dB win, while LPIPS at 0.0258 against 0.0167 is a real loss. Decide which failure your use case fears more, mush or colour drift, before picking a metric.
Third: video concurrency. The model card carries an explicit warning: do not process independent videos on the same KVAEVideo instance, and do not interleave their chunks. The internal block cache will bleed. One instance per stream.
Fourth: the audio latent rate. 50 Hz does not mean the output is 50 samples per second; output is still 48 kHz. And 128 is feature width, not channel count. Both numbers have been misquoted in secondary coverage.
Cost and how long
Weights and code are MIT. Download is free, commercial use included.
The real cost is compute. Reproducing the generation comparison means training a separate 2B DiT per tokenizer, 64 GPUs and 200K steps per run. Swapping tokenizers means paying that again.
Image training ran 600,000 steps on 256×256 crops, then froze the encoder and refined the decoder separately. The video decoder was fine-tuned on images and video together; higher resolution gave better results.
A reconstruction sanity check is fast. All 5,000 COCO images in bfloat16 fit on one 80GB card. Half a day tells you whether the swap is even worth considering.
Next step
Do not start with generator training. Take 200 to 500 of your own images, run them through KVAE-2D-3.0 and your current tokenizer, and compare LPIPS plus the detail loss you can see with your own eyes.
If reconstruction clears that bar, train a small DiT for 20K to 50K steps and watch the FD-CLIP slope. Flat slope, stop. Do not buy more GPUs.
Video teams get one extra check: pick a clip with obvious lateral motion and confirm the 32x spatial compression did not eat the motion detail. Doubling compression is most likely to break exactly there.
Sources
- Kandinsky Lab official blog (Hugging Face, 2026-11-27): https://huggingface.co/blog/kandinskylab/kvae-3
- KVAE-2D-3.0 model card: https://huggingface.co/kandinskylab/KVAE-2D-3.0
- KVAE-3D-3.0 model card: https://huggingface.co/kandinskylab/KVAE-3D-3.0
- KVAE-Audio-Stereo model card: https://huggingface.co/kandinskylab/KVAE-Audio-Stereo
- Code repository (MIT): https://github.com/kandinskylab/kvae
- Kombitz image and video model roundup, November 28 (independent coverage): https://www.kombitz.com/2026/11/28/ai-image-video-model-news-roundup-november-28-2026/
Facts follow the Kandinsky Lab blog and model cards; media coverage is used for cross-checking only.