← Models

KVAE-3.0: Extending Tokenizers Capabilities with Latent Alignment

We introduce KVAE-3.0, a family of variational autoencoders (VAEs) for image, video and stereo audio generation. The models compress media into continuous representations for latent diffusion. We use alignment with pretrained features to make these representations more useful for generation. The release includes a smaller image tokenizer, higher spatial compression for video and joint 48 kHz stereo encoding. Inference code and model weights are released under the MIT license.

Architecture and Latent Alignment

Image tokenization. KVAE-2D-3.0 uses 8× spatial downsampling and 32 latent channels. An eight-block transformer probe predicts frozen DINOv2 features from noisy latents. The alignment loss trains both the probe and the encoder; the probe is discarded after training. We reduce the deepest residual stage from 1,024 to 512 channels and add bottleneck self-attention. The inference model has 85.6M parameters.

Video tokenization. KVAE-3D-3.0 downsamples by 32× along each spatial axis and 4× in time, with 128 latent channels. We add alignment to V-JEPA features and retain a fully convolutional architecture. This extends the f16t4 design of KVAE-3D-2.0.

Joint training of KVAE-2D-3.0
Figure 1. Joint training of KVAE-2D-3.0. The alignment probe is discarded after training.

Stereo audio tokenization. KVAE-Audio-Stereo is a 167M-parameter waveform VAE that jointly encodes the left and right channels at 48 kHz. A 960-sample hop produces 50 latent frames per second, each with 128 channels. We align latents to a subspace of features from an audio perceptual-quality predictor and add spectral losses in left/right and mid/side representations, a phase objective and a joint-stereo discriminator.

Training

We train the image tokenizer and alignment probe jointly for 600K steps on 256 × 256 crops from our internal image dataset. We then freeze the encoder and refine the decoder on 512 × 512 crops. Video decoder refinement uses both images and videos, with better results at higher resolution. For audio, the teacher processes each channel separately at 16 kHz while the VAE learns to preserve the stereo waveform at 48 kHz.

Image Results

We evaluate reconstruction on all 5,000 COCO val2017 images. For generation, we train separate 2B Kandinsky 5 diffusion transformers (DiTs) with the same setup for each tokenizer. The table reports FD-CLIP after 200K training steps, evaluated on 3,000 prompts at 256 × 256 resolution.

TokenizerParametersPSNR (dB) ↑SSIM ↑LPIPS ↓FD-CLIP ↓
FLUX.2 VAE84.0M31.370.89240.016713.05
KVAE-2D-2.1218.4M32.150.90570.026413.30
KVAE-2D-3.085.6M32.180.90700.025812.72

PSNR, SSIM and AlexNet LPIPS measure reconstruction; FD-CLIP measures generation. Arrows indicate the preferred direction. Highlighting marks the best metric value.

Generation FD-CLIP at the four DiT training steps evaluated for all three tokenizers
Figure 2. Generation FD-CLIP at the four DiT training steps evaluated for all three tokenizers. Lower values indicate closer agreement with the reference distribution. Evaluation used 3,000 English prompts, 256 × 256 images, 50 sampling steps, guidance scale 5, and sampling shift 5.

KVAE-2D-3.0 uses about 61% fewer parameters than KVAE-2D-2.1, with similar reconstruction quality. Against FLUX.2, it improves PSNR and SSIM, while FLUX.2 retains the lower LPIPS. At 200K DiT steps, human preference is near parity for visual and semantic quality (50.8% and 50.5% for KVAE), with 52.5% for prompt following.

Tie-adjusted preference shares by criterion
Figure 3. Tie-adjusted preference shares by criterion. We split credit equally for both good ratings and exclude both poor ratings when calculating the shares.

Video Results

On MCL-JCV 720p, KVAE-3D-3.0 reaches 31.72 dB PSNR, 0.866 SSIM and 0.175 VGG LPIPS. MiniMax-H3 scores 32.44 dB, 0.877 and 0.176 respectively. KVAE has slightly better LPIPS, while MiniMax-H3 scores higher on PSNR and SSIM. In generation tests, preferences favor KVAE for visual and semantic quality, and MiniMax-H3 for prompt following.

Generation criterionKVAE-3D-3.0MiniMax-H3 VAE
Prompt following54.0%46.0%
Visual quality56.6%43.4%
Semantic quality52.5%47.5%

Preference shares split credit for both-good ratings and exclude both-poor ratings. The generation setups use 1 × 1 latent patches for KVAE and 2 × 2 for MiniMax-H3, giving 128- and 96-dimensional input vectors respectively.

Human preferences for video models
Figure 4. Human preferences for video models.

Stereo Audio Results

We train a 0.6B DiT from scratch for each VAE, using the same internal general-audio data and training protocol for 60K steps. Blind, randomized listening tests cover 148 prompts spanning sounds, speech and music. The table shows the KVAE-based generator’s preference share for audio quality, with half credit for both-good ratings and both-bad ratings excluded.

Compared withSoundsSpeechMusic
SAME-L from Stable Audio 371%98%93%
LTX-2.5 audio VAE82%78%94%

Audio quality preference shares for generators trained with KVAE-Audio-Stereo versus each baseline VAE.

Pairwise audio preference win rates by category against SAME-L and LTX-2.5
Figure 5. Pairwise audio preference win rates by category against SAME-L and LTX-2.5.

Our generator exceeds 70% preference against both baselines in every category and also leads in prompt following. The tokenizers expose different temporal latent rates: 50 Hz for KVAE, 25 Hz for LTX-2.5 and approximately 10.8 Hz for SAME-L.

On AudioCaps, KVAE reaches 4.27 FAD (VGG), compared with 6.02 for SAME-L and 5.13 for LTX-2.5. On Seed-TTS Eval, word error rate is 25.93%, versus 58.97% and 29.62%. On SongDescriber, the comparison VAEs retain better CLAP and FAD scores.

Reconstruction is evaluated on about 13 hours of held-out stereo audio, with sample rates matched to each comparison. KVAE improves cross-channel phase coherence over both baselines across sounds, speech and music, measuring how well reconstruction preserves the phase relationship between the two channels.

Open Release

We release inference code and model weights under the MIT license for researchers and developers building image, video and audio diffusion models.