KVAE-3.0: Extending Tokenizers Capabilities with Latent Alignment
State-of-the-art results in multimodal generation are achieved by Latent Diffusion Models (LDM), which rely on continuous representations of source media. Such representations should carry features of original data distribution, be compact enough for later computations and overall denoising predisposition (e.g. in flow matching approach). We excited to release KVAE-3.0, set of tokenizers for audio/image/video domains, trained by advanced latent alignment, with latent spaces possessing such properties. Specifically, KVAE-Audio-Stereo is a 48 kHz VAE for general stereo audio at a 50 Hz latent rate, exceeding 70% win-rate on generations quality comparison against leading opensource VAEs: Stable Audio 3 and LTX-2.5. An image model KVAE-2D-3.0 matches latent size of FLUX.2-VAE, obtains higher PSNR and SSIM on reconstruction, but also provide faster FID-convergence and even outperform the latter in side-by-side evaluation. KVAE-3D-3.0 compress frames spatially by factor of 32, temporally by 4 and outperforms MiniMax-H3 VAE over human preference test on generations by all criteria. Inference code and model weights are publically available at github and huggingface.
KVAE-2D
Overview (architecture + training)
KVAE-2D-3.0 is an 8x8 variational autoencoder with 32 latent channels. It retains the spatial compression and latent channel count of its predecessor, KVAE-2D-2.1. We reduce the width of the deepest residual stage from 1,024 to 512 channels. Therefore, the four stages have widths of 128, 256, 512, and 512 channels. While KVAE-2D-2.1 was purely convolutional, KVAE-2D-3.0 uses self-attention in both the encoder and decoder bottlenecks. The tokenizer used at inference comprises a 34.8M-parameter encoder and a 50.8M-parameter decoder, for a total of 85.6M parameters compared with 218.4M in KVAE-2D-2.1.
Designed alignment probe follows the architecture of the first eight blocks of the SiT-XL/2 diffusion transformer used to train KVAE-2D-2.1 with REPA-E. We train the probe from scratch for feature alignment and omit the diffusion model's velocity-prediction loss. Given a noise-corrupted latent sample and its noise level, the probe predicts patch features extracted from the clean image by a frozen DINOv2 ViT-B/14 encoder. The alignment loss updates both the probe and the VAE encoder (Figure 1).
Figure 1. Alignment scheme 2d.
Following REPA, we placed an alignment head after block 8 of the transformer to predict a DINOv2 feature for each patch. During VAE updates, the transformer weights were fixed and the alignment loss, weighted by 1.5, supplied a gradient to the encoder through those eight blocks. During transformer updates, we detached the latents and optimized velocity prediction along the linear path from latent to noise, together with the alignment loss weighted by 0.5. This separation lets us retain just the eight blocks needed for alignment in KVAE-2D-3.0. We train the VAE and probe from scratch and discard the probe after training.
Last steps of training were dedicated to decoder finetuning: with L1, LPIPS and adversarial objectives on 512x512 crops of high-quality images.
Reconstruction results
We evaluate (see Table 1) on all 5,000 COCO val2017 images at native scale using the KVAE-2D-2.1 protocol. We center-crop each dimension to a multiple of 32 and decode the posterior mean in bfloat16. We average peak signal-to-noise ratio (PSNR), structural similarity (SSIM), and AlexNet LPIPS over images. Important to notel, that the two versions of KVAE-2D (2.1 and 3.0) differ by less than 0.04 dB, while differ significantly in size.
Table 1. Image reconstruction on COCO val2017. Arrows indicate the preferred direction.
| Tokenizer | Latent channels | Total parameters | PSNR (dB) ↑ | SSIM ↑ | LPIPS ↓ |
|---|---|---|---|---|---|
| FLUX.1-dev | 16 | 83.8 M | 29.89 | 0.8662 | 0.0234 |
| FLUX.2-dev | 32 | 84.0 M | 31.37 | 0.8924 | 0.0167 |
| KVAE-2D-2.1 | 32 | 218.4 M | 32.15 | 0.9057 | 0.0264 |
| KVAE-2D-3.0 | 32 | 85.6 M | 32.18 | 0.9070 | 0.0258 |
Generation results
We trained separate Kandinsky 5 text-to-image DiTs with 2B parameters on latents from KVAE-2D-3.0, KVAE-2D-2.1, and FLUX.2. Generation quality was evaluated by the Fréchet distance between generated and reference images in CLIP ViT-L/14 feature space (FD-CLIP). At 200K steps, KVAE-2D-3.0 had the lowest FD-CLIP of the three (12.72), followed by FLUX.2 (13.05) and KVAE-2D-2.1 (13.30).
Figure 2. Decay slope.
For human preference tests we compared the KVAE-2D-3.0 and FLUX.2 generators at 200K DiT steps. We used the same prompt and random seed for both images in each pair. The KVAE-based generator's tie-adjusted preference share was highest for prompt following (52.5%) and close to 50% for visual and semantic quality (Figure 3).
Figure 3. Preference 2d.
KVAE-3D
Overview
Video tokenizer KVAE-3D-3.0 is an 4x32x32 variational autoencoder with 128 latent channels, so its compression ratio totally is 2 times more than predecessor, KVAE-3D-2.0 with 4x16x16 compression and 64 channels. With increase in spatial compression ratio of video tokenizer, new blocks were added to encoder and decoder: one downsample, one upsample and few residual blocks. Whole model stays convolutional, so no spatial tiling is necessary on inference even for FullHD resolution. And yet to retain diffusability under such compression we've modified training strategy: new model adds alignment on V-JEPA features, which impoves semantic capacity of latents. As well, as KVAE-2D-3.0, video model's decoder also got finetuned: on images and videos simultaneously. With slightly different loss, main finding is the same -- best results obtained with higher resolution.
Reconstruction results
Video models were evaluated on original videos from MCL-JCV of 720p and cropped in accordance with spatial, temporal factors. Since every computed metric is frame-wise we average, but in two steps: first for across all frames in video, second across obtained numbers. Different from image tokenizers comparison, here we use LPIPS over VGG.
Table 2. Video reconstruction on MCL-JCV 720p
| Tokenizer | Compression factor | Channels | PSNR (dB) ↑ | SSIM ↑ | LPIPS ↓ |
|---|---|---|---|---|---|
| FLUX.3-Action | 4x32x32 | 96 | 32.79 | 0.878 | 0.181 |
| MiniMax-H3 | 4x16x16 | 24 | 32.44 | 0.877 | 0.176 |
| KVAE-3D-3.0 | 4x32x32 | 128 | 32.26 | 0.878 | 0.161 |
Generation results
Video generation models follow image training as its first stage, which is possible due to causality of VAEs, with video training on later steps. So've were compared KVAE-3D-3.0 and MiniMax-H3 VAE in same setting as KVAE-2D did: same data, same batch size, same generative model. The only difference in hyperparameters was a patch size. MiniMax-H3 use patch of 2x2, while KVAE-3D, having higher spatial compression, utilizes only size 1x1. That being said, dimensionality of input patch vector of KVAE-3D is higher: 128 channels against 96 of MiniMax-H3.
Figure 4. Preference 3d.
KVAE-Audio-Stereo
Overview
KVAE-Audio-Stereo is a waveform VAE based on the Descript Audio Codec architecture, designed for stereo signals. The encoder takes two waveform channels at 48 kHz and downsamples with five residual blocks of strides (2, 3, 4, 5, 8), a total hop of 960 samples. Left and right are encoded jointly: the latent is not a concatenation of two mono streams, and each frame carries inter-channel information in its feature dimensions. While developing, we found that simply changing input domain from mono to stereo, leaving baseline architecture with 64 latent channels, raises MEL from 0.76/0.74/0.55 to 0.93/0.89/1.66 for sounds, music, and speech, and lowers SI-SDR by 3.6 and 5.3 dB on sounds and music (see Table 3). But extending channel dimension to 128 resulted in degradation of generations, although stabilized reconstruction.
Table 3. Reconstruction on the stereo test set for the three configurations of the problem statement. The models differ only in the latent width and in mono versus stereo input and output.
| Metric | Model | Sounds | Music | Speech |
|---|---|---|---|---|
| MEL↓ | Mono-64 | 0.7591 | 0.7413 | 0.5481 |
| MEL↓ | Stereo-64 | 0.9291 | 0.8862 | 1.6555 |
| MEL↓ | Stereo-128 | 0.8277 | 0.7936 | 0.441 |
| STFT↓ | Mono-64 | 2.7083 | 2.9303 | 1.6684 |
| STFT↓ | Stereo-64 | 2.8247 | 2.9894 | 4.0507 |
| STFT↓ | Stereo-128 | 2.8103 | 2.9818 | 1.400 |
| SI-SDR↑ | Mono-64 | 1.168 | 11.250 | 9.077 |
| SI-SDR↑ | Stereo-64 | -2.411 | 5.974 | 9.339 |
| SI-SDR↑ | Stereo-128 | -5.996 | 8.606 | 10.679 |
Due to the aforementioned challenges, we've modified alignment with foundational model and add stereo-specific losses. Explicitly, alignment done to a subspace of teacher features instead of learning a projection and use the audio encoder of a perceptual-quality predictor rather than a speech-oriented self-supervised encoder. Teacher audio is resampled to 16 kHz and processed independently for the left and right channels. As for spectral reconstruction, it is evaluated in two channel bases separately: left/right (M = (L + R)/2) and mid/side (S = (L − R)/2). We also add the phase objective of SAME, L_IFGD, and an additional joint-stereo adversarial objective with discriminator perceiving both channels.
Reconstruction results
We evaluate reconstruction on a test set of music, speech, and sound effects assembled from open datasets, filtered by stereo status and true sample rate, and disjoint from the training data (about 13 hours in total). Reconstruction metrics include multi-scale mel (MEL) and STFT distances, MFCC distance, waveform L¹ distance, SI-SDR, SNR, and, for speech, PESQ. We additionally report cross-channel phase coherence (CCPC), defined as the energy-weighted phasor coherence between the inter-channel phase differences of the reference and reconstruction, averaged over four STFT resolutions. This metric directly measures the preservation of the stereo image, which is not captured by per-channel metrics.
Table 4 reports results at 44.1 kHz, and Table 5 reports results at 48 kHz. Results are grouped by the sample rate at which the metrics are computed. Within each group, the reference and all reconstructions are resampled to that rate as needed. LTX 2.5 analyzes a 16 kHz mel representation and is evaluated on its 48 kHz vocoder output, so its metrics characterize the complete analysis–VAE–vocoder pipeline rather than direct full-band transmission through the latent.
Table 4. Stereo reconstruction results at 44.1 kHz.
| Dataset | Model | MEL↓ | STFT↓ | MFCC↓ | Wave.↓ | SI-SDR↑ | SNR↑ | PESQ↑ | CCPC↑ |
|---|---|---|---|---|---|---|---|---|---|
| Sounds | SAME-L | 0.96 | 2.36 | 0.22 | 0.0449 | 2.66 | 4.80 | -- | 0.8436 |
| Sounds | Ours | 0.68 | 2.31 | 0.16 | 0.0475 | 2.73 | 4.75 | -- | 0.8575 |
| Music | SAME-L | 0.88 | 2.64 | 0.24 | 0.0380 | 9.72 | 10.19 | -- | 0.9563 |
| Music | Ours | 0.71 | 2.80 | 0.25 | 0.0313 | 11.57 | 11.81 | -- | 0.9765 |
| Speech | SAME-L | 0.81 | 1.85 | 0.17 | 0.0076 | 9.49 | 9.97 | 2.43 | 0.9981 |
| Speech | Ours | 0.34 | 1.23 | 0.06 | 0.0054 | 11.78 | 12.07 | 4.47 | 0.9987 |
Table 5. Stereo reconstruction results at 48 kHz.
| Dataset | Model | MEL↓ | STFT↓ | MFCC↓ | Wave.↓ | SI-SDR↑ | SNR↑ | PESQ↑ | CCPC↑ |
|---|---|---|---|---|---|---|---|---|---|
| Sounds | LTX 2.5 | 1.40 | 4.37 | 0.39 | 0.0888 | -48.30 | -2.42 | -- | 0.7311 |
| Sounds | Ours | 0.68 | 2.33 | 0.16 | 0.0475 | 2.74 | 4.75 | -- | 0.8576 |
| Music | LTX 2.5 | 1.32 | 4.05 | 0.36 | 0.1700 | -46.24 | -2.85 | -- | 0.7771 |
| Music | Ours | 0.69 | 2.67 | 0.23 | 0.0311 | 11.65 | 11.86 | -- | 0.9765 |
| Speech | LTX 2.5 | 1.18 | 3.39 | 0.30 | 0.0318 | -36.51 | -2.94 | 3.00 | 0.9881 |
| Speech | Ours | 0.36 | 1.42 | 0.07 | 0.0054 | 11.78 | 12.07 | 4.47 | 0.9987 |
To complement our curated stereo benchmark and facilitate direct comparison with prior work, we also evaluate reconstruction on three publicly available datasets covering music (Song Describer), speech (LibriSpeech), and general audio (AudioCaps). Unlike our curated stereo test set, Song Describer and LibriSpeech contain lower-quality, predominantly mono recordings. Table 6 presents results on these public datasets at both evaluation sample rates, with εar-VAE included as an additional baseline at 44.1 kHz.
Table 6. Reconstruction results on public datasets at 44.1 and 48 kHz. Bold indicates the best result within each dataset and sample rate.
| Dataset | Sample rate | Model | MEL↓ | STFT↓ | MFCC↓ | Wave.↓ | SI-SDR↑ | SNR↑ | PESQ↑ | CCPC↑ |
|---|---|---|---|---|---|---|---|---|---|---|
| Song Describer | 44.1 kHz | SAME-L | 1.37 | 4.84 | 0.41 | 0.1133 | -16.74 | 4.78 | -- | 0.8486 |
| Song Describer | 44.1 kHz | εar-VAE | 1.02 | 3.40 | 0.33 | 0.0401 | 11.38 | 11.71 | -- | 0.9701 |
| Song Describer | 44.1 kHz | Ours | 0.80 | 3.36 | 0.32 | 0.0346 | 13.10 | 13.26 | -- | 0.9805 |
| Song Describer | 48 kHz | LTX 2.5 | 1.28 | 4.03 | 0.34 | 0.1999 | -42.79 | -2.77 | -- | 0.7741 |
| Song Describer | 48 kHz | Ours | 0.78 | 3.21 | 0.30 | 0.0346 | 13.10 | 13.27 | -- | 0.9806 |
| LibriSpeech | 44.1 kHz | SAME-L | 1.25 | 5.28 | 0.45 | 0.0067 | 13.76 | 13.89 | 2.91 | -- |
| LibriSpeech | 44.1 kHz | εar-VAE | 0.84 | 3.88 | 0.30 | 0.0065 | 13.51 | 13.75 | 3.36 | -- |
| LibriSpeech | 44.1 kHz | Ours | 0.32 | 3.13 | 0.18 | 0.0044 | 16.40 | 16.49 | 4.46 | -- |
| LibriSpeech | 48 kHz | LTX 2.5 | 2.03 | 6.27 | 0.58 | 0.0477 | -31.98 | -3.12 | 3.71 | -- |
| LibriSpeech | 48 kHz | Ours | 0.32 | 3.49 | 0.18 | 0.0044 | 16.40 | 16.49 | 4.46 | -- |
| AudioCaps | 44.1 kHz | SAME-L | 1.05 | 2.82 | 0.29 | 0.0275 | 7.29 | 8.29 | -- | 0.9685 |
| AudioCaps | 44.1 kHz | εar-VAE | 0.76 | 1.87 | 0.15 | 0.0269 | 6.97 | 8.13 | -- | 0.9697 |
| AudioCaps | 44.1 kHz | Ours | 0.53 | 1.82 | 0.11 | 0.0238 | 10.12 | 9.78 | -- | 0.9771 |
| AudioCaps | 48 kHz | LTX 2.5 | 1.20 | 3.32 | 0.28 | 0.0932 | -45.39 | -2.84 | -- | 0.9356 |
| AudioCaps | 48 kHz | Ours | 0.53 | 1.94 | 0.11 | 0.0238 | 10.12 | 9.78 | -- | 0.9772 |
Our VAE achieves the best results across all reported metrics on all three public datasets at both evaluation sample rates. Together with the results on our curated stereo benchmark, these findings demonstrate strong reconstruction performance across diverse audio domains, sample rates, and source recording characteristics.
Generation results
For generation experiments we use an open-source 0.6B diffusion transformer adapted for audio. For every VAE we train the generator from scratch on an internal general-audio dataset under the same protocol for 60,000 steps on the latents of that VAE, and nothing else changes between comparisons.
Alongside listening tests, six objective generation metrics are reported: LAION CLAP for text–audio similarity, FAD (VGG) and FD (OPEN-L3) for distribution distances, the Content Enjoyment (CE) and Production Quality (PQ) scores of Audiobox Aesthetics, and, for speech prompts, WER and UTMOS. Figure 5 and Table 7 report the listening tests and the objective generation metrics. Comparison with the open VAEs broken down by category, since this is where the domain coverage of the models differs most. Our model is preferred over both VAEs in every category on both criteria. Against SAME-L it wins 55/68/64% of the prompt-following and 71/98/93% of the audio-quality comparisons for sounds, speech, and music. The objective metrics agree on AudioCaps and Seed-TTS Eval, where our model is best on nearly every metric, while on SongDescriber SAME-L and LTX 2.5 score higher on CLAP and FAD (VGG).
Figure 5. Preferences audio.
AudioCaps test
| Metric | Ours | SAME-L | LTX 2.5 |
|---|---|---|---|
| AudioCaps test | |||
| LAION CLAP ↑ | 0.29 | 0.25 | 0.27 |
| CE ↑ | 4.33 | 3.60 | 4.04 |
| PQ ↑ | 6.52 | 5.84 | 6.36 |
| FD (OPEN-L3) ↓ | 218.34 | 232.87 | 227.02 |
| FAD (VGG) ↓ | 4.27 | 6.02 | 5.13 |
| Song Describer | |||
| LAION CLAP ↑ | 0.26 | 0.30 | 0.29 |
| CE ↑ | 7.57 | 7.41 | 7.56 |
| PQ ↑ | 8.14 | 7.77 | 8.10 |
| FD (OPEN-L3) ↓ | 114.36 | 127.87 | 117.61 |
| FAD (VGG) ↓ | 2.20 | 2.11 | 2.04 |
| Seed-TTS Eval | |||
| LAION CLAP ↑ | 0.17 | 0.17 | 0.15 |
| CE ↑ | 5.93 | 4.20 | 5.42 |
| PQ ↑ | 7.25 | 4.80 | 6.32 |
| FD (OPEN-L3) ↓ | 123.29 | 145.90 | 119.39 |
| FAD (VGG) ↓ | 4.51 | 7.19 | 5.80 |
| WER (%) ↓ | 25.93 | 58.97 | 29.62 |
Table 7. Objective generation metrics of the generators trained on the three latents. Bold: best, underline: second best.
Try it out!
Code is publically available at https://github.com/kandinskylab/kvae
