---
title: "Kandinsky 3 — paper by Arkhipkin et al. (2024)"
description: "Kandinsky 3 uses latent diffusion to generate and edit images, and human comparisons show how faster generation changes visual quality…"
canonical: "https://research.elamur.ai/free/en/papers/arkhipkin-2024-kandinsky-3-text-image-synthesis/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/arkhipkin-2024-kandinsky-3-text-image-synthesis/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Kandinsky 3: Text-to-Image Synthesis for Multifunctional Generative Framework

# Kandinsky 3: Text-to-Image Synthesis for Multifunctional Generative Framework

Paper · 2024 · Vladimir Arkhipkin, Viacheslav Vasilev, Andrei Filatov et al.

**Authors:** Vladimir Arkhipkin, Viacheslav Vasilev, Andrei Filatov, Igor Pavlov, Julia Agafonova, Nikolai Gerasimenko, Anna Averchenkova, Evelina Mironova, Anton Bukashkin, Konstantin Kulikov, [Andrey Kuznetsov](https://md.research.elamur.ai/free/en/authors/andrey-kuznetsov/) and [Denis Dimitrov](https://md.research.elamur.ai/free/en/authors/denis-dimitrov/) · **Year:** 2024 · **Venue:** Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: System Demonstrations · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: System Demonstrations · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.emnlp-demo.48/)
- [PDF](https://aclanthology.org/2024.emnlp-demo.48.pdf)
- [DOI 10.18653/v1/2024.emnlp-demo.48](https://doi.org/10.18653/v1/2024.emnlp-demo.48)

## Summary

A text-to-image system has to turn a verbal description into a picture that looks good and depicts what the user asked for. An interactive editor puts extra demands on the same technology. It needs to fill a gap in an existing picture, take visual direction from another image, or turn a still scene into a moving one. Each operation changes what the system receives and what it must preserve. Kandinsky 3 is the authors’ attempt to build these operations around a common image generator while keeping generation fast enough for an online application.

The generator uses latent diffusion. It builds a compressed representation of an image by repeatedly removing noise, with information from the user’s text guiding the process. A separate decoder turns that representation into a picture. The authors keep the text encoder and image decoder fixed while training the denoising network, and give that network a mixture of convolution and attention. The same generator then serves as a starting point for masked editing, variations and combinations of images, and video generation. The extensions differ in how they supply additional information, such as the location of an edit or the outlines of objects that should retain their shape.

Speed and fidelity turn out to be different questions. The authors train a distilled generator that needs only 4 passes through the denoising network and report that it generates images 3 times faster than the base system. In side-by-side judgments, its pictures were more visually appealing, while their correspondence to the prompt declined. The authors also use the faster generator as a refiner. In that configuration, the base system makes the initial picture, and the distilled system revises it after a small amount of noise is added. The authors report an improvement in visual quality with prompt alignment comparable to that of the base generator.

The human study uses prompts from DrawBench and asks raters to judge appearance and prompt alignment separately. Expanding the user’s prompt before generation improved visual judgments. With expansion and refinement enabled, Kandinsky 3 gave competitive results in comparisons with Midjourney 5.2, SDXL, and DALL-E 3. That comparison concerns a particular configuration and set of prompts. The paper also describes a public deployment through the FusionBrain editor and a Telegram bot. The authors released source code and trained weights, so the work includes both an image generator that can be adapted and a demonstration of the tasks built around it.

## Deep dive: Kandinsky 3: Text-to-Image Synthesis for Multifunctional Generative Framework

Kandinsky 3 uses latent diffusion to generate and edit images, and human comparisons show how faster generation changes visual quality and prompt alignment. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What an image editor asks of a generator

The simplest text-to-image interaction starts with a description and ends with a new picture. Even there, success has several parts. A picture can make a strong visual impression while omitting something that the user asked for. It can also include the requested content while looking less polished than another picture. Kandinsky 3 addresses these aspects separately in its evaluation. The distinction comes up again when the system is adapted for editing, where a satisfactory result may depend on preserving parts of an image as well as generating new ones.

Consider the difference between making a scene from a sentence and filling a selected region of an existing picture. The second task gives the generator contextual information in the surrounding image. That context specifies more than a caption could conveniently convey, including what already occupies the rest of the frame. A selection then narrows the area where new content is needed. Extending a canvas changes the geometry of the problem, since the empty region sits beyond the original picture. The generator still has to produce plausible image content, now with the surrounding content or the edge of the original picture as a reference.

Using an image for inspiration raises a different question. A user asking for a variation gives a picture as a visual prompt. A user requesting style transfer may want the subject’s outlines to remain recognizable through a change in appearance. These requests can start from the same image and still require different kinds of guidance. The paper’s image editing extensions treat visual resemblance and shape preservation as distinct jobs. Image fusion introduces another possibility, in which the visual input comes from several pictures and each can contribute to the result.

The authors approach these tasks with a shared starting point. A text-to-image generator has already learned relationships between descriptions and visual content. An extension can reuse that capability and add a way to tell the generator which area to fill, which reference to consider, or which geometry to respect. This is the practical meaning of using the generator as a backbone. It supplies learned image synthesis to a larger procedure whose additional inputs and operations depend on the task.

#### Earlier systems and the cost of waiting

In the paper’s account of prior work, diffusion had become the usual approach to text-to-image generation. Stable Diffusion helped make such generators available to researchers, and public-facing services gave users access through web interfaces or application programming interfaces. The authors place their work in that setting, where a generator’s ability to produce attractive images matters alongside the way people can interact with it. They cite established work on carrying out image synthesis through [latent diffusion](https://md.research.elamur.ai/free/en/papers/rombach-2021-high-resolution-image-synthesis-latent/).

The paper also describes a range of editing techniques that had already grown out of diffusion research. Those techniques addressed tasks such as changing an image, completing a selected region, transferring appearance, or making variants of an example. The earlier Kandinsky architecture used an image prior as part of its native support for combining images. An image prior in this account is an intermediate part of the generation architecture associated with visual conditioning. The question for Kandinsky 3 was whether a simpler text-to-image architecture could serve as an effective starting point for adapting existing editing methods.

From the paper’s perspective, this reuse also extends beyond still pictures. It cites work that uses text-to-image systems in image-to-video, text-to-video, and text-to-3D pipelines. A generator trained on associated pictures and descriptions brings a way to connect visual and textual concepts to those tasks. A video pipeline can then supply operations for motion or for constructing intermediate frames. The relationship between these systems is particularly relevant to Kandinsky 3 because the paper demonstrates two routes to video, each assigning a different role to the image generator.

Repeated denoising creates a practical obstacle for online generation. The reverse diffusion process takes an initially noisy representation and improves it through successive predictions. Each step requires computation from the denoising network. Earlier work on accelerating inference and on distillation gave the authors a way to reduce the number of such predictions. Here, inference means running the trained system to make an output, and distillation means training a faster generator using an existing generator as the starting point for the method. The authors took adversarial diffusion distillation as their reference and changed the training design for Kandinsky 3.

There is also a cost to making directions explicit. The paper describes a familiar experience with text-to-image generation in which obtaining a desirable result requires a much more elaborate description than a user would normally write. For a web editor, the authors wanted the person to be able to enter a short prompt while giving the generator a fuller description when that helped. Prompt expansion addresses that problem at the input. Distillation addresses a separate problem inside generation. The study is therefore about the choices that surround the image generator as well as the network that produces the image.

### The method, step by step

#### From a prompt to a picture

Kandinsky 3 has components for interpreting the prompt, constructing the image representation, and turning that representation into pixels. The first component is a text encoder. It converts the words into a numerical representation that the denoising network can use. The image is constructed in a latent space, a compressed representation in which the system performs the repeated generation steps. A decoder makes the last passage from that representation to the visible image. The authors train the denoiser while holding the text encoder and decoder fixed.

How the base Kandinsky 3 generator makes an image The steps in order.

The caption and the latent travel through different parts of this process. The caption specifies desired content and supplies information to the denoiser. The latent is the representation being changed as generation proceeds. At each reverse step, the denoiser predicts noise in the current representation with guidance from the text. That prediction is used to update the latent. The decoder sees the result of those successive updates and reconstructs an image. Visual quality and how well the picture depicts the description both depend on the outcome of this conditional denoising process.

The paper identifies the encoder as the encoder portion of Flan-UL2 20B. It contains 8.6B parameters in the architecture table. The table assigns 3.0B parameters to the denoising U-Net and 0.27B to the Sber-MoVQGAN image decoder. The reported total is 11.9B parameters. These figures describe the parts present in the generator. The trainable part in the base training procedure is the U-Net. The encoder’s role comes from the existing work on [UL2](https://md.research.elamur.ai/free/en/papers/tay-2022-ul2-unifying-language-learning-paradigms/).

Freezing means that training leaves a component’s weights fixed. It allows the authors to describe the denoising network as the component fitted in the base procedure while relying on an existing representation of text and an existing means of decoding images. Those fixed components still matter at inference. The representation produced by the text encoder is what the denoiser has available to guide synthesis. The decoder determines how the final latent is expressed in pixel space. From an engineering perspective, the architecture gives each component a defined place in the path from prompt to image.

#### How the denoiser mixes local and global information

The denoiser follows a U-shaped architecture. The downsampling side processes features at progressively reduced spatial resolutions, and the upsampling side returns towards higher resolutions. Skip connections offer a path for information through the network. The authors use this layout to put different kinds of computation at different spatial scales. The shape of the network follows [U-Net](https://md.research.elamur.ai/free/en/papers/ronneberger-2015-u-net-convolutional-networks-biomedical/).

The higher-resolution parts of these paths rely on convolutional residual blocks. A convolution repeatedly applies a learned operation across spatial locations, which makes it suitable for processing nearby image features. A residual block gives its input a path around the sequence of transformations inside the block. The transformed features and the shortcut both contribute to the output. The authors chose blocks with bottlenecks, which route some of the processing through a narrower internal representation. The design draws on residual learning in [ResNet](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/) and on blocks used in [BigGAN-deep](https://md.research.elamur.ai/free/en/papers/andrew-2018-large-scale-gan-training-high/).

The bottleneck is how the authors add depth to the convolutional part at approximately the same parameter count as the corresponding design without bottlenecks. According to their report, this choice allowed them to use twice as many convolutional layers in that comparison. They also report that the resulting Kandinsky 3 architecture is 1.5 times as deep as Kandinsky 2. Those are distinct comparisons. The first concerns a choice within the block design. The second describes the depth of the resulting architecture relative to its predecessor.

At reduced spatial resolutions, the U-Net adds attention alongside convolution. Self-attention allows different positions in the image representation to influence one another. This gives features a route to interact across the scene even when they are spatially separated. Cross-attention gives the image features a way to draw on the encoded text. The authors describe this arrangement as a way of introducing global interaction later in the network after using convolution by itself in the early layers. The relevant operation is [attention in a Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/).

The implementation also changes the inside of the BigGAN-deep blocks. It uses Group Normalization, which normalizes grouped features, and the SiLU activation, which changes how a feature value is passed forward. The original block design used Batch Normalization and ReLU in those roles. For the shortcut in the upsampling example, the authors preserve a route for the channels by upsampling and then applying a convolution with a 1 × 1 kernel. Such a kernel can transform the channels at a spatial position. The appendix describes this shortcut as following the standard BigGAN residual block.

These placements give the shared denoiser several places to receive guidance. Additional inputs for masked editing can enter at the first convolution. Visual prompt embeddings can guide attention through an adapter. A style transfer branch can supply outlines derived from the source image. The extensions exploit different points in the architecture because each supplies information in a different form.

#### Filtering the training pairs and changing resolution

The data for text-to-image training combine public collections with data held by the authors, which the paper describes as roughly 150 million text-image pairs. The public collections named for the early training category are COYO-700M and LAION-5B. The paper also describes using material collected from the internet. Each training example associates an image with text, giving the training procedure a visual example and a description that can condition the denoiser. [LAION-5B](https://md.research.elamur.ai/free/en/papers/schuhmann-2022-laion-5b-open-large-scale/)

The authors screen the pairs along several dimensions. An aesthetics predictor helps filter for image appearance. A detector looks for watermarks. CLIP provides a measure of image–text similarity, screening pairs according to how well the picture and its description correspond in the learned representation. Perceptual hashing is used to detect duplicate images. A perceptual hash is a compact signature based on visual content, which makes it useful for finding repeated examples. The authors made a data processing framework for applying these filters. Their similarity filter draws on [CLIP](https://md.research.elamur.ai/free/en/papers/radford-2021-learning-transferable-visual-models-natural/).

The filtering procedure creates categories for different training stages. The initial, lower-resolution stage can draw from the broader category. The category used for mixed and high-resolution fine-tuning draws from the same sources with tighter filters, especially on the appearance of the images. Fine-tuning here is continued training that adapts the existing denoiser to the subsequent settings. The data decision and the resolution decision work together. The early stages get access to a wide supply of examples, while the later stages train the system on larger images using a more selective collection. [Fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/)

The training schedule begins at 256 × 256. For that stage, the appendix lists 1.1 billions of text-image pairs, a batch size of 20, and 600k training steps. It lists 104 NVIDIA Tesla A100 GPUs. A batch is the collection of examples grouped together for a training update in the reported configuration. For the 384 × 384 stage, the appendix reports 768 millions of pairs, a batch size of 10, and 500k steps, again using 104 NVIDIA Tesla A100 GPUs.

At 512 × 512, the reported schedule is 450 millions of pairs, a batch size of 10, and 400k steps with 104 NVIDIA Tesla A100 GPUs. At 768 × 768, it is 224 millions of pairs, a batch size of 4, and 250k steps with 416 NVIDIA Tesla A100 GPUs. The final mixed-resolution stage uses 280 millions of pairs as listed in the schedule, with a batch size of 1, 350k steps, and 416 NVIDIA Tesla A100 GPUs. The pair counts in the schedule describe the entries for the respective training stages. The approximate count in the data description refers to the authors’ internal data.

For the mixed-resolution stage the paper specifies a range for image area.

```
768² ≤ W × H ≤ 1024²
```

`W` is image width and `H` is image height. The multiplication sign combines the two dimensions into an area in pixels. The superscript `²` squares the dimension next to it, so the two bounds represent the areas of square images with sides of 768 and 1024 respectively. The signs `≤` allow the area to equal either bound or fall between them. Writing the condition on `W × H` expresses a limit on area while allowing the dimensions to vary.

The schedule therefore describes training progressively at multiple fixed square resolutions before the mixed-resolution stage. The batch sizes and GPU allocations are part of that reported procedure. The generator is still learning the same task of conditional denoising after each change in resolution. What changes is the size of the image representations it trains on and, through the stricter filtering for later stages, the selection of training examples.

#### Giving the same generator a fuller prompt

Prompt beautification, as the paper calls it, is an optional step before the text encoder. A separate language system receives the user’s original prompt and an instruction to develop it into a detailed description in English. Kandinsky 3 then receives the expanded version. The authors used Neural-Chat-7b-v3-1, which is based on [Mistral 7B](https://md.research.elamur.ai/free/en/papers/jiang-2023-mistral-7b/).

The distinction between expansion and encoding matters. Encoding converts the prompt into a representation useful to the denoiser. Expansion can change the words and add content before that conversion takes place. The generator can thus receive more specific guidance through its ordinary text input. This places a substantial decision upstream of image generation. The phrasing and details chosen by the prompt expander become part of the description the denoiser is asked to follow.

The appendix illustrates expansion with a hut standing on chicken legs and a Lego figure at a waterfall. In each example, the paper presents images for the prompt with and without expansion. The short descriptions already set a scene or identify a subject. The purpose of the expansion step is to supply additional detail that the short request leaves open. In an image editor, the appeal of that design is that a user can supply the essential content without having to write the fuller description from scratch.

The authors also describe the editor as accepting Russian, English, other languages, and emoji, with a maximum prompt length of 1000 characters. This is a property of the public interface as described in the paper. The prompt expansion instruction specifies English as the language for its output. Input accepted by the editor and the language used for the expanded description are therefore separate aspects of the system.

#### Training for fewer denoising passes

The faster version targets inference, where repeated work inside the U-Net affects generation time. The authors manually select 100k image–text pairs for their high aesthetic quality from the pretraining data and use them for distillation. The resulting generator makes an image in 4 passes through the U-Net. Reaching that setting requires a training procedure for the accelerated generator, since each pass now belongs to a much shorter sequence.

The distillation method uses a generator and a discriminator. The generator produces samples, and the discriminator supplies a learned signal about those samples during training. Kandinsky 3 uses the downsampling part of the base U-Net as the discriminator’s frozen feature extractor. The authors attach trainable heads at successive downsampling levels. A head is a smaller component that reads the features at a given level. In this way, the discriminator can use representations from several spatial scales while the inherited portion keeps its trained weights.

The authors also give the discriminator heads access to information from the prompt. They add cross-attention over the Flan-UL2 text embeddings. An embedding is the numerical representation produced by the encoder. The reference distillation method put CLIP text embeddings in this role. The authors report that providing Flan-UL2 states through cross-attention improved the distilled generator’s alignment with the prompt. This choice concerns the training signal to the generator. The discriminator itself serves the distillation procedure.

The discriminator and generator have changing abilities during adversarial training, and the paper describes difficulties at both ends of that progression. Early on, a sufficiently strong discriminator can leave the generator with a zero gradient under the hinge loss discussed by the authors. A gradient supplies the direction in which a parameter update can change the training objective. The authors use a Wasserstein loss because it continues to supply a signal in the early regime they describe. Later, they observed that the generator could become stronger quickly enough to destabilize learning.

To address that later imbalance, the authors set the discriminator learning rate to `1e − 3` and the generator learning rate to `1e − 5`. A learning rate controls the scale of the updates made during training. They also apply a gradient penalty to guard against divergence. Their final procedure omits a regularization term from the distillation loss after their experiments found no quality effect from keeping it. These are changes to how the faster generator is trained, alongside the change to what information the discriminator sees.

#### Using the faster generator for a finishing pass

The authors use the distilled system in two roles. In direct generation, it is responsible for denoising all the way to an image in 4 U-Net passes. It must establish the image content and produce the final appearance within that short sequence. In refinement, the base text-to-image system first generates an image, giving the faster generator an already developed composition to work from.

For refinement, the authors add noise to the initial result until it reaches the second step of the schedule used to train the distilled generator. The distilled generator then performs two denoising steps. Adding noise makes room for the second generator to change the picture. Starting partway through the schedule also gives it a more developed starting point than it would have in direct generation. The aim is to gain the visual appeal the authors saw in distilled outputs while inheriting the base generator’s reading of the prompt.

This describes two different inference procedures with different costs. The standalone speed claim concerns generating an image with the distilled system. Refinement includes the initial generation using the base system and the finishing steps using the distilled one. The added passes in the latter procedure specify the cost in denoising steps of the refinement stage itself. They are only part of the complete route to an output with refinement enabled.

#### Adapting the generator to fill a selected area

Inpainting fills an area within an existing image. Outpainting supplies new content outside the original bounds. Both operations can be expressed as generation with a mask, a map of where an edit is needed. The system receives the current image as a reference, and the user can optionally describe what should appear in the new area. The paper describes an eraser for selecting an area and a sliding window for widening the image’s bounds.

At the network level, the authors initialize the editing U-Net with the trained Kandinsky 3 weights. They replace its first convolution with one that accepts 9 channels. Of these, 4 are for the original latent and 4 are for the latent of the image supplied to guide the edit. The remaining channel carries the mask. A channel is a layer of values across the spatial extent of the input. In this arrangement, the first layer can use the mask and image representation alongside the representation it is denoising. The initialization follows the approach of [GLIDE](https://md.research.elamur.ai/free/en/papers/nichol-2021-glide-photorealistic-image-generation-editing/).

The additional weights are initialized to zero. At the start of training, the added inputs therefore contribute nothing through their new connections, and the network begins from the behavior of the base generator. Training then gives the new connections a way to incorporate the image and mask. The authors generate rectangular, circular, stroke-shaped, and irregular regions, using up to 3 distinct masks for an image sample. The training pairs come from the same data used for the base system.

The authors continue training on object detection datasets and use automatically generated captions from LLaVA. The object data bring examples connected to distinct image regions, while the captions provide textual descriptions for the editing setup. With a mask, an existing image and optional text, a user can request a local change on an uploaded image or on one that the system produced earlier. The source of the synthetic captions comes from [Visual Instruction Tuning](https://md.research.elamur.ai/free/en/papers/liu-2023-visual-instruction-tuning/).

#### Combining references and preserving outlines

The visual prompt extension uses an adaptation of IP-Adapter. An adapter supplies an additional kind of conditioning to an existing generator. The visual encoder is a ViT-L-14 trained in the CLIP setup. It turns the reference image into an embedding that the generator can use as a guide to what it should produce. The authors train their IP-Adapter on COYO 700m. The type of image encoder used here is a [Vision Transformer](https://md.research.elamur.ai/free/en/papers/dosovitskiy-2020-image-worth-16x16-words-transformers/).

The paper describes several ways to use the adapter. To make an image variation, it feeds the embedding of the visual prompt to the adapter. The picture serves as the prompt for a new generation. To fuse multiple images, it combines their embeddings in a weighted sum, which makes the specified weights determine each reference’s contribution to the input. For image–text fusion, it obtains CLIP embeddings for the image and text, then adds the cross-attention outputs associated with them. The combination happens at the attention outputs in this last case, whereas the image-only fusion combines embeddings.

A visual prompt can provide characteristics of a reference picture without holding its objects to the same outlines. The authors noticed that the IP-Adapter route was weak for preserving shape, which mattered for their style transfer feature. For that task, they trained a ControlNet alongside the base generator. The additional network gives the generator spatial guidance derived from the source image. A HED edge detector extracts the outlines, and the edges are then supplied to ControlNet. The paper reports training this extension on COYO 700m as well.

These two paths express different requests. A visual embedding gives the generator a description in numerical form of what is in an image. An edge map tells it where outlines fall in the frame. The first can be used to make variants or combine visual inputs. The second addresses a user who wants the source arrangement to remain recognizable through a change in appearance. The observation that prompted the extra branch concerns shape preservation specifically.

The system also includes a feature for using a face from an uploaded photograph. It first uses OmniFusion to produce a description associated with the face and uses Kandinsky 3 to generate an image. It then detects the face and transfers the face from the upload to the generated picture using GHOST. GFPGAN enhances the resulting facial region. The authors present this as a sequence that can handle a person absent from the generator’s training set without further training for that person. Face transfer is a separate operation performed on the generated result.

#### Turning a picture into a moving scene

The image-to-video feature uses a still image and a desired camera movement. Its procedure, based on Deforum, starts by estimating depth from the image with AdaBins. Depth assigns a distance to image content so it can be treated as a scene with some spatial structure. The paper calls this a 2.5D representation. It gives the picture depth while depending on what can be estimated from the original viewpoint.

The depth extent used for the scene is described by its near and far values.

```
[(z_near, z_far)]
```

`z_near` labels the near depth, and `z_far` labels the far depth. In both names `z` refers to the depth axis. The comma separates the bounds. The brackets and parentheses reproduce the paper’s grouping of the depth interval. AdaBins supplies the depth estimate used with this scene representation.

The paper sets the camera position and viewing direction as functions of time.

```
x = x(t)
```

`x` is the camera’s position coordinate on the x-axis, `t` is time, and `x(t)` gives the coordinate along the camera path at that time. The equals sign assigns the time-dependent value.

```
y = y(t)
```

`y` is the position coordinate on the y-axis. `y(t)` supplies its value at time `t`.

```
z = z(t)
```

`z` is the camera’s position coordinate on the depth axis. `z(t)` gives the camera coordinate at time `t`, while the near and far bounds describe the depth extent used for the scene.

```
α = α(t)
```

`α` is one of the angles specifying viewing direction. `α(t)` gives that angle at time `t`.

```
β = β(t)
```

`β` is another viewing angle. The function `β(t)` specifies how it varies with time.

```
γ = γ(t)
```

`γ` is the remaining angle in the viewing direction. `γ(t)` supplies its value along the trajectory at time `t`.

The camera starts at the origin, with the scene placed at the near depth. The procedure applies spatial transformations to the scene, including rotations about axes through its center and translation relative to that center. It then projects the changed scene back into an image. The projection is how the method obtains a frame after changing the viewpoint. Estimated depth allows some parts of the scene to appear to move relative to others as the camera moves.

A single picture gives only partial information about the scene. Changing the viewpoint can consequently expose gaps or distortions in the projected image. The pipeline uses small changes in scene position and applies image-to-image generation after each transformation. That stage takes the transformed result as a starting image, repairs artifacts and can update the content under guidance from the prompt. The authors illustrate the procedure with a rightward shift followed by this image-to-image step.

In the web editor, users can use the animation feature to describe as many as four scenes, each running for four seconds with the transition to the next scene included. Each scene can have its own camera movement direction. That interface uses the still-image generator to produce scenes from descriptions. The depth estimation, camera transformation and image-to-image stages then give the scenes motion.

#### Generating video from text

The text-to-video feature follows a separate pipeline called Kandinsky Video. It uses a keyframe generator to produce selected frames and an interpolation system to fill in between them. Both use pretrained Kandinsky 3 as a backbone. A keyframe gives the sequence an image at a selected point. Interpolation supplies intermediate frames so the video can progress between those points. The paper directs readers to the dedicated video work for the architecture and results of this pipeline.

The editor exposes text-to-video generation at 512 × 512 and 32 frames per second. These settings describe the video offered in the demonstration. For still-image generation, the editor reports a maximum resolution of 1024 × 1024, a choice of aspect ratio and the option to enter a negative prompt specifying content to avoid. The Telegram bot exposes most of the same generation modes, with masked editing available through the web editor. It also exposes choices among the image generators, including Kandinsky 2.2, Kandinsky 3, and the distilled version. Together, the interfaces demonstrate how the authors deploy the base generator and the variants produced by training or composing additional components.

### Experiments and results

#### How the human comparison worked

The main comparative evaluation uses prompts from DrawBench. The authors generate pictures from those prompts and present pairs of images to human raters. In the external comparison, the Kandinsky 3 configuration includes both prompt beautification and refinement. The competing systems are Midjourney 5.2, SDXL, and DALL-E 3. The paper also compares Kandinsky 3 configurations internally, using the base generator as a reference for changes in prompt processing and denoising. DrawBench comes from the work on [Imagen](https://md.research.elamur.ai/free/en/papers/saharia-2022-photorealistic-text-image-diffusion-models/).

The panel consisted of 12 people. The authors describe a range of occupational and educational backgrounds, and an age range from 19 to 45. Each pair went to 5 of the 12 raters. Raters made separate judgments about how well the image depicted the prompt and about the visual quality of the image. Separating the criteria makes it possible to see when an intervention changes how an image looks and when it changes whether the image answers the request. A combined preference would conceal the distinction when the criteria favor different images.

The authors explain that raters frequently selected both images on prompt alignment. That matters when reading percentages for the comparison. An image may have a low share of exclusive preferences even when many raters judge that it depicts the prompt as well as its competitor. A pair that receives a joint selection contributes information about parity in the judgment. The paper cites these frequent joint selections to explain the low alignment percentages.

The authors chose human judgments after finding that FID did not track the visual improvements they observed once image quality was already high. FID is a numerical measure used to compare generated images with a reference collection. The previous Kandinsky paper had used it. Here, the authors ask people directly which picture looks better and which depicts the prompt better. The comparison therefore gives preference evidence on the chosen prompts and criteria. It concerns the outputs people actually saw in the side-by-side test.

#### What changed in the images

The authors report that prompt beautification improved visual quality in the human comparison. The prompt expander changes the words presented to the generator, so its result is informative about the whole text-to-image interaction. A user can enter a short description and obtain a different image because the generator receives a more elaborate prompt. The appendix’s examples help illustrate the kind of change being examined. The study’s visual preference judges the result of the expanded input together with the generator.

Distillation led to gains in judged visual quality and a decline in judged text alignment. This is the practical tradeoff behind the reported speedup. With 4 U-Net passes, standalone distilled generation ran 3 times faster than base generation, according to the paper. The visual quality judgment supports the authors’ claim that the faster version can preserve image appeal. The alignment judgment qualifies what it means to preserve quality when the purpose is to depict a specific description.

Using the distilled generator to refine the base result had a different pattern. The authors report higher visual quality with prompt alignment comparable to that of the base system. That is the empirical basis for the division of labor in the refinement procedure. The base generator first depicts the prompt, and the distilled generator acts on a version of that image to improve appearance. The authors’ comparison gives evidence about the assembled pipeline. It leaves the exact contribution of the added noise and of the individual refinement steps unresolved.

Against the external systems, the authors describe refined Kandinsky 3 with prompt expansion as competitive. The claim is about the side-by-side DrawBench comparison and the two criteria used there. Since the configuration turns on both interventions, its standing reflects the output of the assembled system. The report highlights this result in the context of releases with code and weights available for adaptation. The comparison includes the publicly available latent diffusion system [SDXL](https://md.research.elamur.ai/free/en/papers/podell-2023-sdxl-improving-latent-diffusion-models/).

The paper describes the preference results in terms of their direction and gives the operational numbers for the accelerated system and the rater protocol. The quantitative chart below compares resource allocations from the reported training schedule. Each row refers to the hardware assigned to a Kandinsky 3 training setting. Fewer GPUs means a smaller allocation at that stage. The measure gives a count of devices and does not encode elapsed training time or image quality.

NVIDIA Tesla A100 counts by resolution in the Kandinsky 3 training schedule The higher-resolution settings use a larger GPU allocation than the earlier stages.

**The numbers**

| System or setting | NVIDIA Tesla A100 GPUs |
| --- | --- |
| Kandinsky 3 at 256 × 256 | 104 |
| Kandinsky 3 at 384 × 384 | 104 |
| Kandinsky 3 at 512 × 512 | 104 |
| Kandinsky 3 at 768 × 768 | 416 |
| Kandinsky 3 mixed resolution (this paper) | 416 |

The jump in allocation in the schedule occurs alongside changes in resolution, batch size and training steps. The mixed-resolution row is the final base training setting. It is relevant to understanding the range of image sizes that the system was trained to generate. The hardware figures describe training the base denoiser, whereas the claim about faster generation describes running the distilled system after training. Each figure thus answers a different engineering question about the work.

#### What the demonstrations establish

The paper demonstrates additional modes through interfaces and visual examples. The animation illustration shows a change in camera position and a subsequent generative repair of the transformed frame. Examples from the distilled system include a still life with tomatoes and a photograph-style picture of a wet kitten in a basin. The face-transfer examples show a supplied face incorporated into generated settings, including a scene with a laptop. These examples help a reader see what kind of output the individual modes produce.

The measurements in the human comparison apply to text-to-image generation. The demonstrations establish that the authors assembled and exposed the other operations. Masked editing, image fusion, shape-preserving style transfer, face transfer, and video each have further aspects that a dedicated benchmark would need to measure. For example, the image-to-video interface specifies duration and camera direction, while the frame procedure must also repair the projected scene. The paper provides that procedure and its example, and defers the comparative evidence for its separate text-to-video pipeline to the dedicated work.

### What the ablations show

#### Prompt expansion and refinement change different parts of the pipeline

The comparisons among Kandinsky 3 variants are informative because they intervene at different points. Beautification changes the text before encoding. Distillation changes the generator responsible for traversing the denoising schedule. Refinement gives the distilled generator an intermediate input derived from a base image. Keeping these points of intervention in view helps explain what each comparison can establish.

The comparison with prompt expansion shows that the appearance of results depends on the description that reaches the image generator. The authors report a visual preference for generations using the expanded prompts. That result supports the use of their expansion procedure in the system. The study does not break this into separate effects for added details, changes in wording, or the English formulation of the rewritten prompt. Each expanded prompt can incorporate several changes, and the rater sees their combined effect in the output.

The base-versus-distilled comparison tests a complete alternative route to image generation. The shorter sequence gave higher visual preferences and worse alignment. The authors chose the distillation data for aesthetic quality, changed the discriminator and its conditioning, and trained for a short schedule. Those choices belong to the same intervention from the rater’s perspective. The observed difference therefore applies to the distilled configuration. The visual preference does not identify how much of the change is due to the examples selected for training, the training objective, or the number of passes.

The refinement comparison supplies evidence for a more specific use of the distilled generator. In direct generation, that generator has responsibility for the image from the start. For refinement, it receives a partially noised version of a coherent result from the base generator. Raters found prompt alignment comparable to that of the base while preferring the appearance of refined images. This is consistent with refinement preserving much of the earlier composition while making visual changes. The authors do not report a sweep over the amount of noise before refinement or over how many steps to take after it. Their evidence concerns the chosen entry point and schedule.

There is a limit to what these comparisons say about the headline configuration used against external systems. The base, expanded, distilled and refined variants give evidence on particular changes within Kandinsky 3. Running prompt expansion and refinement together for the external comparison gives a result for that combination. The paper does not present a full set of crossed settings that would show whether the benefit of expansion is the same with and without refinement. The internal evidence supports each choice in the reported tests, and the external evidence describes the resulting system.

#### What the architecture experiments contributed

The authors say that they ran more than 500 experiments while deciding how to design the denoiser. They report that increasing network depth while reducing the total parameter count led to better training results in the settings they tried. That observation led them toward residual bottlenecks, which support more convolutional layers without a comparable increase in parameter count. The comparison is reported as a design observation, with the resulting network specified in the architecture description.

The arrangement of convolution and attention also reflects that design process. The chosen network uses convolution alone in the early processing of the latent and adds attention at lower spatial resolutions. This gives the denoiser a path for global interaction among image features while retaining convolution near the higher-resolution ends of the network. The section on architecture describes this placement and its motivation. It gives no individual quality scores for alternative placements, so the account supports understanding the design more directly than ranking every component by its contribution.

The distillation appendix identifies several more focused comparisons. The authors report better prompt alignment after giving the discriminator heads cross-attention to Flan-UL2 text information. That result concerns a change to the way the training signal is conditioned. They also report that removing a regularization term had no observed quality effect in their experiments. It gives them a reason to leave the term out of the final training procedure. Both findings are specific to the distillation setup described in the paper.

The changes to loss and learning rates answer observations about training behavior. The authors describe a risk of zero gradients early under hinge loss and use Wasserstein loss to preserve a training signal in that situation. They report that the generator subsequently became too strong for the discriminator, which motivated a larger learning rate for the discriminator. A gradient penalty was added to guard against divergence. These are reports about why the authors chose particular parts of the final training design. The paper gives the resulting settings and the training difficulties they address, with the final image preferences evaluated for the assembled distilled system.

#### What the editing comparison contributed

The image editing section gives a qualitative comparison of guidance mechanisms. The authors found that image prompts delivered through IP-Adapter could change the shapes of objects in ways that were undesirable for their style transfer feature. They responded by supplying edges to ControlNet. The edge input carries information about where boundaries are in the source image, which is closely related to the preservation problem the authors observed.

This observation helps explain why the paper offers distinct modes for image variation and style transfer. The adapter supports the use of a picture as a visual prompt, including combining references. The edge-conditioned method supplies an explicit spatial constraint for an edit that calls for more structural continuity. The paper does not report a shape preservation metric or a controlled preference study for the two mechanisms on the same source images. Its evidence here is a reported design observation and the description of an adaptation tailored to that observation.

### Limitations

#### Limits the authors identify

The authors explicitly report that the standalone distilled generator lost some ability to follow the prompt. The tradeoff is easy to overlook if speed and visual appeal are the only outcomes considered. Their human judgments show the relevance of the distinction. A faster generator can produce an appealing image and still be a weaker choice when the user cares about whether all the requested content appears. Refinement addresses this in the tested configuration by beginning from a base generation, with the time cost of making that initial image.

The authors identify another constraint in the animation method. The depth map comes from a single image, so changing the apparent camera orientation can distort the scene. Small motion increments and image-to-image generation after the transformations are their means of reducing the resulting defects. The repair depends on synthesis where the estimated projection leaves a problem to solve. This places a limit on how directly one can interpret the result as a reconstruction of the original scene from a new viewpoint.

The paper also gives a limit on its content safeguards. The authors removed examples marked as harmful, offensive, or abusive and added detection of abusive prompts. They describe CLIP-based filtering at both text and image levels for sexually explicit or otherwise unsuitable content. Their tests with obvious abusive requests rarely produced abusive content, according to the authors, and they state that carefully engineered prompts can still lead to undesirable generations. They suggest that a deployment may need further filtering appropriate to the application. The risk they describe concerns [bias, fairness and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/).

#### Limits of the evidence

The main preference study draws on one prompt collection and the judgments of 12 people. Each pair is rated by 5 people, and a selection may favor both pictures. This setup supports conclusions about comparative judgments within that protocol. The breadth of applications in the system would require other tests to establish comparable claims for edits, different sources of visual guidance or different kinds of video. The age and background details describe the participants and give context for whose judgments the study records.

The paper reports competitive results for the refined configuration with prompt expansion. A comparison of the base generator alone against every external system would answer a different question about the effect of the shared denoising architecture. The same distinction applies to effort at inference. The study’s headline speedup is for direct use of the distilled generator. The paper does not report end-to-end latency for the external comparison configuration, which requires prompt expansion, base generation and a finishing pass. The count of denoising steps in refinement makes part of that work explicit.

The visual judgment and the alignment judgment also have different implications for prompt expansion. Visual preference can favor details introduced by the rewriting stage. Determining whether those details serve the user’s unstated intent would require a test designed for that question, perhaps yielding different answers for a user with an exact composition in mind and a user happy to delegate choices. The paper’s language about accepted prompts in the editor identifies which inputs the interface can receive. Its comparison does not give results divided by language or emoji use, so the evaluation does not establish similar performance across those inputs.

The training schedule describes data filtering, pair counts, batch sizes and hardware for each stage. It gives enough information to understand the progression of training, while leaving important attribution questions open. The paper provides no controlled results isolating how much the aesthetic threshold, duplicate detection, watermark detection, or image–text similarity screening contributes to the final preferences. The effects of changing data selection and changing resolution are likewise entangled in the schedule. Access to checkpoints and code supports inspection and reuse of the generator. Independent recreation of the training corpus would also depend on access to the authors’ internal material.

The extensions have a narrower evidential basis than the base image generator. The masked editing procedure describes initialization, inputs and training examples. Its demonstration establishes how a user can select an area and ask for a fill. The article’s human evaluation gives no measure of how closely filled areas match a prompt, how well the surrounding context is maintained, or which mask shapes are harder. The corresponding evidence for image fusion and style transfer is the description of the guidance methods and the authors’ observation about outlines. Video functionality has specified output settings and, for the camera-driven method, a description of transformations and repair. The paper defers a detailed evaluation of the dedicated text-to-video system.

Face transfer has a similar boundary. The authors show examples of putting the face from a photo into a generated scene. These examples illustrate the stages operating together, but the paper gives no systematic measure of identity preservation or investigation of how the feature would be used with people’s photos. The ethical discussion addresses harmful training samples, abusive prompt detection, and visual filtering. Its account of those safeguards leaves the particular questions raised by transferring a real face beyond the scope of the reported tests.

Taken together, the results support a practical claim about adaptation and a comparative claim about still-image synthesis. Several methods can be attached to a shared generator and deployed in user interfaces. For still images, the particular combination of detailed prompts and a distilled refiner performs competitively in the reported judgments. Each additional capability introduces its own criteria for quality, and the paper’s evidence is strongest where it explicitly asks raters to compare outcomes.

### What came after

The paper documents adaptations of Kandinsky 3 within the authors’ own framework, including the use of the pretrained generator for keyframes and interpolation in Kandinsky Video. It also reports the release of source code and trained weights under a permissive license. Those are the extensions and means of reuse documented here. No subsequent citing study is identified, so there is no documented later result to attribute to a follow-on use of Kandinsky 3.

## Cite

Cite as Vladimir Arkhipkin, Viacheslav Vasilev, Andrei Filatov, Igor Pavlov, Julia Agafonova, Nikolai Gerasimenko, Anna Averchenkova, Evelina Mironova, Anton Bukashkin, Konstantin Kulikov, Andrey Kuznetsov and Denis Dimitrov. 2024. Kandinsky 3: Text-to-Image Synthesis for Multifunctional Generative Framework. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: System Demonstrations.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2024.emnlp-demo.48](https://doi.org/10.18653/v1/2024.emnlp-demo.48)

```bibtex
@inproceedings{arkhipkin2024kandinsky,
  title = {{Kandinsky 3: Text-to-Image Synthesis for Multifunctional Generative Framework}},
  author = {Vladimir Arkhipkin, Viacheslav Vasilev, Andrei Filatov, Igor Pavlov, Julia Agafonova, Nikolai Gerasimenko, Anna Averchenkova, Evelina Mironova, Anton Bukashkin, Konstantin Kulikov, Andrey Kuznetsov and Denis Dimitrov},
  booktitle = {Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing: System Demonstrations},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-demo.48},
  url = {https://doi.org/10.18653/v1/2024.emnlp-demo.48}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
