Kandinsky 3.0 Technical Report

Vladimir Arkhipkin, Andrei Filatov, Viacheslav Vasilev, Anastasia Maltseva, Said Azizov, Igor Pavlov, Julia Agafonova, Andrey Kuznetsov, Denis DimitrovarXiv 2023 · DOI

Overview

Kandinsky 3.0 is a large-scale text-to-image model featuring 11.9 billion parameters. It simplifies the generation pipeline into a single-stage latent diffusion process, moving away from the two-stage "prior" mapping used in previous iterations. By leveraging a massive 8.6B parameter text encoder and a refined U-Net architecture, Kandinsky 3.0 achieves superior text comprehension and visual quality, outperforming predecessors and contemporary models like SDXL in human evaluations.

Architectural Innovations

Single-Stage Latent Diffusion

The core of Kandinsky 3.0 is a transition to a more streamlined architecture. Previous versions of the Kandinsky family relied on a two-stage pipeline where a "Diffusion Mapping" prior bridged the gap between text and image latent spaces. Kandinsky 3.0 eliminates this bottleneck, opting for a direct single-stage approach that enhances efficiency and alignment.

High-level Kandinsky 3.0 pipeline showing the FLAN-UL2 encoder, Latent Diffusion U-Net, and Sber-MoVQGAN decoder.

The Flan-UL2 Text Encoder

A primary driver of the model's performance is the integration of the 8.6B parameter Flan-UL2 text encoder. This massive increase in linguistic processing power allows the model to follow intricate prompts with high fidelity. The researchers found that scaling the text encoder is as critical as scaling the image generator for achieving complex semantic alignment.

Refined U-Net and Sber-MoVQGAN

The denoising backbone is a modified U-Net utilizing BigGAN-deep blocks with bottlenecks. This design allowed for a 1.5x increase in network depth compared to Kandinsky 2.X while maintaining a manageable parameter count. The architecture incorporates Group Normalization and SiLU activations to stabilize training.

Detailed U-Net architecture featuring BigGAN-deep blocks, cross-attention mechanisms, and conditional embeddings.

To handle image reconstruction, the team developed Sber-MoVQGAN, a custom autoencoder using spatial conditional normalization. It achieved a state-of-the-art FID of 0.686 on ImageNet, proving particularly effective at reconstructing challenging features like human faces and text.

Training and Cultural Context

Kandinsky 3.0 was trained on a massive dataset of 150 million text-image pairs sourced from LAION-5B, COYO-700M, and filtered web data. To address the cultural biases often found in western-centric datasets, the authors curated a specialized subset of 200,000 pairs focused on Russian and Soviet cultural context, including famous landmarks, people, and cartoons. This targeted fine-tuning successfully "patched" knowledge gaps that billions of generic samples could not fill.

Key Results and Distillation

  • Human Preference: In side-by-side evaluations, Kandinsky 3.0 was preferred over SDXL and DALL-E 3 for both visual quality and prompt following.
  • Inference Speed (Kandinsky 3.1): Through Adversarial Diffusion Distillation, the model was compressed into a 4-step version. This distilled variant, Kandinsky 3.1, achieves a 20x speedup over the base model with minimal loss in quality. A unique memory-saving technique involved recycling the frozen downsample part of the original U-Net as a discriminator during distillation.
  • Prompt Beautification: The system includes a Mistral-7B-based LLM that automatically expands simple user prompts into descriptive, high-quality inputs.

Limitations and Future Work

While Kandinsky 3.0 marks a significant advancement, challenges remain in rendering perfect physical interactions, complex lighting, and highly photorealistic human faces in all scenarios. Future research will focus on maximizing the potential of the text encoder and improving the model's understanding of physical scene control, such as precise object positioning and exposure.

Summary updated

BibTeX
@misc{arkhipkin2023kandinsky,
  author = {Vladimir Arkhipkin and Andrei Filatov and Viacheslav Vasilev and Anastasia Maltseva and Said Azizov and Igor Pavlov and Julia Agafonova and Andrey Kuznetsov and Denis Dimitrov},
  title = {{Kandinsky 3.0 Technical Report}},
  year = {2023},
  eprint = {2312.03511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.03511},
}
Figure