A field guide · Vision-language models

Models That See and Draw

Unifying image understanding and image generation in one model. What changes when a vision-language model must also write images, and whether reading and drawing should share one network.

Unified multimodal modelsImage generationVisual tokenizers

Reading an image versus writing one

Show a vision-language model a photo of a small red house on a green hill. Ask it what it sees. It answers in one short sentence. Now ask the same model to draw that photo. Almost nothing in its design helps.

Every earlier post in this series built a model that reads images. A vision encoder turns pixels into a few hundred visual tokens. A connector maps them into the language model. The language model writes text, one token at a time. (Posts 02 and 03 cover those parts.)

The output of that model is always text. Text is short. It is discrete. Every position is a choice among a fixed vocabulary of words. A softmax over that vocabulary, trained with cross-entropy, is a good fit for it.

An image is none of those things. It is large. Its values are continuous. Neighbouring values are strongly correlated, so they cannot be chosen one by one without care. The encoder that reads an image throws most of the pixel detail away on purpose, because understanding does not need it. Drawing needs all of it back.

This post asks two questions. First, what has to change if one model must also write images? Second, should understanding and generation share one model at all, or is that a convenience that costs quality? We build the answer from the bottom up. We start with why images are hard to output. Then we look at how images are turned into things a transformer can emit. Then we compare the three main ways people have built models that both see and draw. Finally we look at the evidence on whether the two skills help each other.

Figure 1The same model, two directions. Reading (top) compresses a 512 × 512 image into a few hundred semantic tokens and writes a sentence of about twenty word tokens. Writing (bottom) must produce the whole image. Each output step either picks one entry from an image codebook or predicts a continuous vector, and a decoder must turn the result back into about 786,000 pixel values. The step at which the two paths diverge is the output head.

The figure shows the asymmetry. The reading path ends in a word. The writing path ends in a grid of pixel values that must agree with each other. The rest of this post is about the machinery on the writing path, and about whether it can share a trunk with the reading path.

Why an image is hard to output

Count the bits

Start with size. A text vocabulary of 150,000 entries carries at most about 17 bits per token, since log2 150,000 ≈ 17.2. A thirty-token answer therefore carries at most about 520 bits.

A 512 × 512 RGB image has 786,432 values. At 8 bits each, that is about 6.3 million bits. The real information content is far lower, because images are redundant. But the output still has to be specified at that size. Some component has to put a value on every pixel.

Size alone is not the problem. A model could emit a long sequence. The deeper problem is that the values depend on each other.

Why you cannot simply regress the pixels

The simplest idea is regression. Give the model a caption c. Train it to output an image f(c) and penalise the squared error to the real image x. This fails, and the reason is worth deriving because it shapes every design below.

The training loss is the expected squared error over all images that match the caption:

L(f) = Ex ~ p(x | c) ‖ x − f(c) ‖² ∂L / ∂f = −2 E[ x − f(c) ] = 0  ⇒  f*(c) = E[ x | c ] The minimiser of squared error is the conditional mean. For a caption with many valid images, the mean of those images is not one of them.

Take the caption "a cat sitting on a sofa". In half the training images the cat sits on the left. In the other half it sits on the right. The squared-error optimum puts a half-transparent cat on both sides. With thousands of possible poses, colours and backgrounds, the average is a blur.

Text does not have this problem. A softmax over words can put 50% on "left" and 50% on "right". Sampling then picks one. The model never has to emit the average of two words.

So an image generator needs a way to represent a distribution with many separate modes, and a way to commit to one of them. There are two standard ways to do that. They are the subject of the next section.

Two ways to generate an image

One piece at a time: autoregression

The first way is the one language models already use. Cut the image into a sequence of pieces x1, …, xn. Write the joint distribution with the chain rule:

p(x | c) = ∏i=1…n p(xi | x<i, c) The chain rule is exact. Each factor is a distribution over one piece, conditioned on everything already generated.

If each piece is a discrete token from a codebook, each factor is a softmax. The model can be trained with ordinary cross-entropy. At sampling time, the first tokens commit to one mode, for example "the cat is on the left". Later tokens are conditioned on that choice, so they stay consistent with it. This is how DALL·E, Parti, Chameleon and Emu3 draw.

The cost is the number of steps. With a key-value cache, each token costs one forward pass. A 512 × 512 image cut into 1,024 tokens needs 1,024 sequential passes. The order is also arbitrary. A raster scan goes row by row, so the top-left corner is decided before the model has any idea of the bottom-right.

All at once, many times: diffusion and flow matching

The second way works on the whole image in parallel. Corrupt a clean image x0 with Gaussian noise ε. Train a network to undo a small amount of that corruption. At sampling time, start from pure noise and apply the network many times.

Rectified flow, the form most recent unified models use, makes this very simple. Interpolate in a straight line between data and noise. Train the network to predict the direction of that line:

xt = (1 − t) x0 + t ε,    t ∈ [0, 1] Lflow = E ‖ vθ(xt, t, c) − (ε − x0) ‖² sample: xt−Δ = xt − Δ · vθ(xt, t, c),   from t = 1 to 0 The loss is a squared error again. It works here because it is evaluated at a noisy point, and the sampler takes only a small step before asking again.

This deserves a moment, because the previous section said squared error produces blur. The network does learn a conditional mean. But it is the mean direction at one noisy point, not the mean image. At high noise, that direction points toward a blurry average. The sampler moves a small distance and then re-evaluates. Each step commits a little more to whichever mode the current noisy image is closest to. After enough steps, the trajectory ends at one sharp image. Denoising diffusion (DDPM) and flow matching differ in the noise schedule and the prediction target. They share this logic.

The cost is again the number of passes, but now each pass covers the whole image. Transfusion samples with 250 diffusion steps. Flow models often use far fewer.

Points between the two

Several methods sit between pure raster autoregression and pure diffusion. They matter because unified models borrow them.

Figure 2Four orders for producing the same 16 × 16 token image. Raster autoregression fills one token per forward pass. Masked parallel decoding fills a growing random subset per pass. Next-scale prediction refines the whole image from 1 × 1 to 16 × 16. Diffusion updates every value at every step, from noise to a clean image. Choose an order and drag the progress slider. The counter shows how many forward passes each order has spent. The picture and the pass counts are illustrative.

Image tokenizers: what the model actually emits

A transformer cannot emit 786,432 pixel values directly at a useful cost. Almost every system first compresses the image with a learned autoencoder. The model generates in the compressed space. A decoder turns the result back into pixels. This compression step is called the image tokenizer, even when its output is continuous.

Vector quantization

The VQ-VAE is the starting point. An encoder E maps the image to a grid of vectors. Each vector ze is replaced by its nearest entry in a learned codebook {e1, …, eK}. The index of that entry is the token. A decoder D reconstructs the image from the chosen entries.

k* = argmink ‖ ze − ek ‖,    zq = ek* L = ‖ x − D(zq) ‖² + ‖ sg[ze] − zq ‖² + β ‖ ze − sg[zq] ‖² sg is stop-gradient. The second term moves codebook entries toward encoder outputs. The third term, the commitment loss, keeps encoder outputs near their chosen entries. The argmin has no gradient, so the decoder's gradient is copied straight through to the encoder.

VQGAN added a perceptual loss and an adversarial loss to this recipe. Those losses let the decoder produce sharp textures from a coarse grid. That is what made a 16-fold downsampling practical. Most discrete unified models still use a VQGAN-style tokenizer.

How many tokens an image costs

With a downsampling factor f, an H × W image becomes (H/f) × (W/f) tokens. Each token carries at most log2 K bits.

The decoder fills in the rest. It is trained to make the missing detail plausible, not exact. That is why tokenizer quality caps generation quality. Chameleon's authors name this directly. Their tokenizer struggles to reconstruct images with a lot of text, which upper-bounds the model on heavy OCR tasks.

Figure 3How a VQ tokenizer turns an image into integers. Patches are encoded to vectors, each vector snaps to its nearest codebook entry, and only the index survives. The decoder rebuilds the image from the indices. Use the sliders to change the downsampling factor and codebook size. The readout gives the token count for a 512 × 512 image, the bits per token and the compression against raw pixels. The two-dimensional codebook plot is a schematic; real codebooks have 8 to 256 dimensions.

Keeping the codebook alive

Vector quantization has a well-known failure. Many codebook entries are never chosen, so they never receive gradient and stay dead. A large nominal codebook can behave like a small one. Several fixes followed, and each one shows up in today's unified models.

Other shapes for the token sequence

Image tokenizers compared along the aspects introduced above
TokenizerOutputSequence shapeTrained to keepCodebook behaviourPairs naturally withMain weaknessUsed in unified models by
VQ-VAEDiscrete index2D gridPixels (L2)Prone to dead codesAutoregressive priorBlurry at high compressionHistorical baseline
VQGAN and variantsDiscrete index2D grid, f = 8 or 16Pixels, perceptual and adversarialFixes needed: low-dim, normalised codesRaster autoregressionSmall text and faces; weak semanticsChameleon, Emu3, Janus (generation side), LlamaGen
FSQDiscrete (implicit codebook)2D gridPixelsNear-full usage by designMasked or autoregressiveFew dimensions per codeDrop-in alternative to VQ
LFQ (MAGVIT-v2)Discrete (sign bits)2D grid or video volumePixelsVery large vocabularies trainableMasked decodingSemantics not targetedShow-o
Residual / multi-scale VQStack of indicesDepth or scale pyramidPixelsShared codebook across levelsNext-scale predictionOrder no longer matches textVAR line; HART adds a continuous residual
1D tokenizers (TiTok, SEED)Discrete indexShort 1D sequenceTiTok: pixels. SEED: semantics and reconstructionSmall sequenceLanguage-model orderFine detail limited by token countSEED-LLaMA
Continuous VAEReal-valued vector2D grid, often patched 2 × 2PixelsNo codebookDiffusion or flowCannot be sampled with a softmaxTransfusion, JanusFlow, BAGEL, Show-o2
Semantic encoder features (CLIP, SigLIP)Real-valued vectorGrid or fixed 64 tokensImage–text agreementNo codebookDiffusion decoder that maps features to pixelsCannot reconstruct exact pixels aloneEmu2, MetaMorph, BLIP3-o, UniWorld
Unified tokenizers (VILA-U, QLIP, UniTok, TokenFlow, TA-Tok)Discrete index2D gridBoth: contrastive or distillation plus reconstructionMulti-codebook or dual-codebook to add capacityAutoregression for both tasksBalancing two lossesVILA-U, Tar, UniTok-based MLLM

How to read this table: the "Trained to keep" column is the one that matters most for unified models. Every row above the last two is trained only to reconstruct pixels. The next section shows why that is a problem for the reading half of the model.

What a tokenizer should keep: meaning or pixels

A reading model and a drawing model want different things from the same image.

Understanding wants meaning. The encoder should map two photos of the same house, taken in different light, to nearly the same features. CLIP and SigLIP are trained for exactly that. They match images to captions, so they keep what captions describe and discard what captions ignore.

Generation wants detail. The tokenizer must keep the exact shade of red, the slope of the roof and the texture of the grass, because the decoder has to put them back. A VQGAN is trained for that. It keeps what reconstruction needs, whether or not a caption would mention it.

These goals pull a shared tokenizer in opposite directions. The cleanest evidence comes from an ablation in the Janus paper.

The Janus ablation

The Janus team trained the same 1.3B model six ways. They changed only the visual encoder and the training task. Figure 4 plots their reported numbers.

Figure 4The Janus ablation (Table 5 of the Janus paper). Bars show one understanding benchmark at a time; choose it with the buttons. A: one VQ tokenizer for both tasks. B: one semantic tokenizer, distilled from SigLIP, for both tasks. C: the same semantic tokenizer trained on understanding only. D: decoupled encoders, SigLIP to read and VQ to draw, the Janus design. E: SigLIP, understanding only. F: VQ, generation only. COCO FID is shown for the runs that generate; lower is better.

Read the bars in pairs.

One detail cuts the other way. Run B, the semantic tokenizer, generated better than run D (FID 7.11 against 8.53). The authors offer two reasons. Semantic tokens are easier prediction targets. And the semantic tokenizer was larger. Semantics may help drawing, not only reading.

The same tension inside generation itself

The conflict is not only between reading and drawing. It also appears between reconstruction and generation, inside a pure generator.

Four ways out

Work since 2024 has tried four ways to resolve the tension.

  1. Decouple the encoders. Janus, Janus-Pro and JanusFlow read with SigLIP and draw with a separate tokenizer or VAE. One transformer processes both. BAGEL and Mogao also use two visual encoders. This is the simplest fix and the evidence above favours it.
  2. Build a tokenizer that serves both. VILA-U trains one vision tower with a contrastive loss and a reconstruction loss. QLIP balances the two losses dynamically and reports that they need not conflict. UniTok argues that the conflict comes from the limited capacity of a discrete token space, not from the two objectives. It adds a multi-codebook quantizer and reports 0.38 rFID with 78.6% zero-shot ImageNet accuracy. TokenFlow uses two codebooks, one semantic and one pixel-level, linked by shared indices. Tar projects its codebook from the language model's own vocabulary.
  3. Generate semantic features and decode them separately. Emu2, MetaMorph, BLIP3-o and UniWorld have the language model produce CLIP- or SigLIP-like features. A diffusion model, trained separately, turns those features into pixels. The language model never handles pixel detail.
  4. Make one encoder do both from a generative start. Harmon shares a masked autoregressive encoder and reports that its features are strong enough for understanding. Show-o2 builds two paths on top of one VAE latent. One path is distilled toward SigLIP for semantics. The other keeps low-level features.

Figure 5The semantic-versus-pixel map. The horizontal axis is how well a representation reconstructs pixels; the vertical axis is how well it supports understanding. Pixel tokenizers sit at the bottom right and semantic encoders at the top left. The four strategies are four routes to the empty top-right corner. Positions are qualitative and drawn for explanation, not measured.

Three ways to build a model that sees and draws

We now have the parts. A model that both sees and draws must decide three things. What representation does it emit for an image? What process turns that representation into pixels? And how much of the network do the two tasks share?

The answers cluster into three families. The architecture gallery draws Janus, JanusFlow and VILA-U on its standard plate; here we focus on the logic that separates the families.

Figure 6The three families drawn on one plate. Each column shows what enters the transformer, what leaves it for an image, and what turns that into pixels. The animation follows one text-to-image request through each design and marks where information must pass through a narrow interface. Bridge models pass a few dozen conditioning vectors. Autoregressive models pass every image token through a softmax. Hybrid models keep the image in the transformer's own hidden states until the last step.

The families differ most in where the bottleneck sits. In a bridge model, everything the language model knows about the image to be drawn must fit through a small set of vectors, often 64. In an autoregressive model, every image token must pass through a categorical choice, which loses whatever the tokenizer could not encode. In a hybrid model, there is no narrow interface inside the network, but the trunk must learn two very different tasks. The next three sections take each family in turn.

Bridge models: a language model that hands off to a diffusion decoder

The bridge idea is to reuse two strong pretrained parts. A multimodal language model already understands prompts and images. A diffusion model already draws well. Train a small interface between them.

Regressing image embeddings

GILL was an early example. It kept a text-only language model frozen and learned a mapping from its hidden states into the text-embedding space of an off-the-shelf text-to-image model. It could also decide whether to retrieve an image or generate one.

Emu took the next step. It encodes images with EVA-CLIP and compresses them into a fixed number of causal visual embeddings. The language model is trained on interleaved sequences to classify the next text token or regress the next visual embedding. A Stable Diffusion decoder is fine-tuned to turn those embeddings into images. Emu2 scaled this to 37B parameters, with 64 visual embeddings per image and an SDXL-initialised decoder. It reported strong in-context learning, for example subject-driven generation from a few examples.

DreamLLM avoided regressing CLIP features. It feeds a set of learnable "dream queries" into the language model. Their outputs condition Stable Diffusion, and the image loss comes from the diffusion model itself, through score distillation. A special token predicts where in a document an image should go, so DreamLLM can write interleaved documents.

SEED kept discrete tokens but made them semantic. Its tokenizer uses BLIP-2 features and a causal Q-Former, so the codes form a one-dimensional sequence with left-to-right dependency. A frozen unCLIP Stable Diffusion decodes them. SEED-LLaMA trained a language model on these tokens with plain next-token prediction. Kosmos-G aligned a multimodal model's output space with CLIP and used it for subject-driven generation from interleaved inputs. NExT-GPT extended the bridge to video and audio decoders.

Learning from understanding first

MetaMorph (Visual-Predictive Instruction Tuning) asked how much generation data a language model needs once it already understands images. It fine-tunes LLaMA-3 8B to predict SigLIP image features with a cosine loss, alongside ordinary visual instruction data. A diffusion "visualizer" turns the predicted features into pixels.

The findings are among the most useful in the field. Trained on generation data alone, the model struggled even with over 3 million image-text pairs. Trained jointly with understanding data, it could generate with as few as 5,000 generation samples and gave good outputs with 200,000. Section Synergy or interference returns to what this implies.

Freezing the language model

MetaQuery pushed the bridge to its simplest form. It keeps the multimodal language model completely frozen. A set of learnable queries is appended to the input. Their final hidden states pass through a trainable connector into a diffusion model, which is trained with its usual denoising loss on image-caption pairs. Because the language model never changes, understanding cannot degrade. The authors report that this matches fully fine-tuning the language model for generation while being much cheaper.

BLIP3-o studied the design choices inside this family. It compared VAE latents and CLIP features as the target, and MSE against flow matching as the loss. CLIP features with flow matching won on both training efficiency and image quality. It also compared joint training against sequential training: first understanding, then generation with the backbone frozen. Sequential training kept understanding intact and still produced strong generation. The 8B model uses a frozen Qwen2.5-VL-7B backbone, about 25 million open and 30 million proprietary images, and a 60,000-sample instruction set generated with GPT-4o. It reports 0.84 on GenEval.

UniWorld conditions generation on features from a multimodal model and a contrastive semantic encoder, with 2.7 million training samples. Qwen-Image, a generation model, uses Qwen2.5-VL as its condition encoder for an MMDiT. For editing, it feeds the input image both to Qwen2.5-VL for meaning and to a VAE for exact appearance. OmniGen2 and Step1X-Edit follow the same split between a multimodal reader and a diffusion writer.

Everything as tokens: fully autoregressive models

The opposite design removes every special part. Turn images into discrete tokens. Add those tokens to the vocabulary. Train one transformer to predict the next token, whatever its modality.

From text-to-image to early fusion

DALL·E (2021) modelled text and image tokens as one stream with a single transformer. Parti framed text-to-image as translation into ViT-VQGAN tokens and scaled an encoder-decoder transformer to 20B parameters. CM3leon added retrieval augmentation and instruction tuning to a decoder-only model that could go in both directions, text to image and image to text.

Chameleon made this a full multimodal foundation model. It is "early fusion": images are tokens from the very first layer, with no separate vision encoder. A 512 × 512 image becomes 1,024 tokens from a codebook of 8,192. The 7B and 34B models were trained on about 2.9 trillion text-only tokens, 1.5 trillion text-image tokens and 400 billion interleaved tokens, for 9.2 trillion tokens seen in total.

Chameleon's most transferable lesson is about stability. The standard LLaMA architecture diverged late in training. The authors traced it to the softmax, which is invariant to adding a constant to its inputs, when the modalities have very different entropy. Sharing all weights across modalities lets one modality's logits slowly grow. They needed query-key normalisation (QK-Norm), z-loss on the output logits, and for the 34B model a re-ordering of the normalisation layers. BAGEL later added QK-Norm for the same reason. (Post Why Transformers Do Not Explode covers these tools in the text-only setting.)

Anole fine-tuned the released Chameleon weights for interleaved image-text generation. Lumina-mGPT built a family of autoregressive models with a flexible representation for varying aspect ratios.

Emu3: next-token prediction only

Emu3 trained an 8B transformer from scratch on text, images and video with only next-token prediction. Its tokenizer, based on SBER-MoVQGAN, maps a 512 × 512 image or a four-frame clip to 4,096 tokens from a codebook of 32,768. Images keep their aspect ratio. Special tokens mark line breaks and frame breaks, and the resolution is given as plain text.

Two details matter for anyone training such a model. First, image tokens greatly outnumber text tokens, so Emu3 weights the loss on vision tokens by 0.5 to stop them dominating. Second, generation quality came largely from post-training. Emu3 ran quality fine-tuning on images filtered by preference scores, raised the resolution from 512 to 720 pixels, and then applied DPO on human-ranked samples. The post-trained model outperformed SDXL on the benchmarks the authors report.

Janus and Janus-Pro: decoupling inside an autoregressive model

Janus kept one autoregressive transformer but gave it two visual inputs. SigLIP-Large at 384 × 384 feeds understanding. A VQ tokenizer with a 16,384-entry codebook and 16-fold downsampling feeds generation. Each has its own two-layer MLP adaptor. A new head predicts image tokens. The base language model was DeepSeek-LLM 1.3B, and training took seven days on 128 A100 GPUs.

Janus-Pro changed the recipe, the data and the scale, and the changes are instructive.

Janus-Pro-7B reports 0.80 on GenEval, against 0.61 for Janus and 0.74 for Stable Diffusion 3 Medium. It reports 79.2 on MMBench. The authors also name the limit. Input and output resolution is 384 × 384, which hurts OCR and leaves small faces under-detailed.

Scaling and post-training discrete models

Liquid trained language models from 0.5B to 32B parameters on text plus image generation. It reports that the performance drop from unified training shrinks as the model grows, and that starting from a pretrained language model saves about 100 times the training cost of starting from scratch. VILA-U used a unified vision tower so the same discrete tokens serve both directions.

X-Omni addressed the main complaint about discrete generation: artifacts and weak instruction following. It combines a semantic image tokenizer, a 7B autoregressive model and an offline diffusion decoder, and uses reinforcement learning to improve generation. Emu3.5, a 34.1B model pretrained on more than 10 trillion interleaved tokens drawn mostly from video frames and transcripts, also uses large-scale RL. Its tokenizer has 131,072 vision codes. To fix speed, it converts token-by-token image decoding into parallel prediction with a "discrete diffusion adaptation", reporting about 20 times faster per-image inference. The authors report image generation and editing comparable to Gemini 2.5 Flash Image.

Discrete diffusion instead of left to right

Some discrete models drop the left-to-right order. Show-o keeps causal attention for text but predicts image tokens with MaskGIT-style mask prediction under full attention. It calls the combined mask "omni-attention". It is built on Phi-1.5 (1.3B) with an LFQ tokenizer of 8,192 codes, so a 256 × 256 image is 256 tokens. UniDisc, MMaDA and Lumina-DiMOO go further and use masked discrete diffusion for text as well. MMaDA adds a reinforcement learning stage designed for diffusion models.

One transformer, two losses: hybrid models

Hybrid models keep the best generation process for each modality. Text is predicted token by token. Images are generated by diffusion or flow over continuous latents. Both run inside the same transformer.

Transfusion

Transfusion is the reference design. A VAE encodes each image into a latent grid. The grid is cut into patches. Each patch becomes one continuous vector in the sequence, between a begin-of-image and an end-of-image marker. Text tokens and image patches share every transformer layer.

Two changes make this work.

LTransfusion = LLM + λ · Ldiffusion,    λ = 5 LLM is cross-entropy per text token. Ldiffusion is the noise-prediction error per image. The weight was set from preliminary experiments.

At inference, when the model samples a begin-of-image token, decoding switches modes. Pure-noise patches are appended and denoised over 250 steps. Then text decoding resumes.

The comparison with the token approach was controlled. At matched compute, Transfusion beat a Chameleon-style model for text-to-image at less than a third of the compute. It matched image captioning at 21.8% of the compute. Surprisingly, it also reached the same text perplexity at 50% to 60% of the compute. Adding small U-Net down and up blocks around the transformer let each image be compressed to as few as 16 patches. The largest model, 7B parameters trained on 2 trillion tokens, generated images on a par with similar-scale diffusion models and text on a par with Llama 1.

Figure 7One mixed sequence in a hybrid model. Text tokens are discrete and use causal attention. Image patches are continuous, noised for training, and attend to each other in both directions. The attention mask is built cell by cell. Text positions receive cross-entropy; image positions receive a denoising loss weighted by λ. The final steps show the BAGEL refinement: later tokens see a clean copy of the image, never its noised version.

Sharing less of the trunk

The next question is how many weights the two tasks should share. Several models answer "attention only".

What is known about closed native models

The products that made unified models widely visible are closed. Their technical details are mostly unpublished, so it is worth separating what the developers stated from what others inferred.

OpenAI, GPT-4o image generation. OpenAI's system card addendum of 25 March 2025 states that image generation is embedded natively in the omnimodal GPT-4o model, rather than handled by a separate tool. It says the model can take images as inputs and transform them, and can reliably render text in images. It describes the approach as significantly more capable than the earlier DALL·E 3 models. It does not give the architecture.

Google, Gemini native image output. Gemini 2.0 Flash introduced image output from the Gemini model itself, and Gemini 2.5 Flash Image followed. Google has not published the architecture. Open papers use both as comparison points: Step1X-Edit benchmarks against GPT-4o and Gemini 2.0 Flash for editing, MME-Unify evaluates Gemini 2.0 Flash as a unified model, and Emu3.5 compares itself with Gemini 2.5 Flash Image.

Outside inference. GPT-ImgEval trained classifiers on generated images and concluded that GPT-4o's images look more like the output of an autoregressive model with a diffusion-based decoding head than of a next-scale model. UniWorld argued from editing behaviour that GPT-4o likely uses semantic encoders rather than VAEs to read input images. Both are informed guesses, not disclosures.

The practical point is narrower than the speculation. These systems showed that a single assistant can edit an uploaded image by instruction, keep the subject's identity, and render legible text. That raised the bar for every open model in this post, and most of the 2025 work was a response to it.

Does seeing help drawing, and does drawing help seeing

The strongest argument for one model is synergy. If the two skills help each other, a unified model should beat two separate ones of the same total size. The strongest argument against is interference. If they compete for capacity, each will be worse. The evidence supports a more specific answer than either.

Evidence that understanding helps generation

Evidence of interference

Does the model use both skills together at test time

Training-time synergy is not the same as a model using one skill to perform the other. RealUnify tested this directly with 1,000 human-annotated tasks. Half need understanding to guide generation, for example drawing the result of a reasoning step. Half need generation to aid understanding, for example mentally reconstructing a shuffled image.

The best open-source model averaged 37.5% on the understanding-guides-generation tasks. When the same tasks were split into an explicit "understand, then generate" pipeline, BAGEL improved from 32.7% to 47.7%. The knowledge was present but not used end to end. Splitting the other category into "generate, then understand" made results worse: models fell back on understanding shortcuts. A pipeline of two specialist models, Gemini 2.5 Pro for understanding and GPT-Image-1 for generation, reached 72.7%.

Figure 8Where synergy shows up. Left: during training, understanding data improves both skills more than generation data does (a schematic of the trend in MetaMorph's grid of runs; cell shades are not measured values). Centre: the understanding skills that track generation quality, with the correlation bands MetaMorph reports. Right: at test time, on RealUnify's understanding-guides-generation tasks, BAGEL end to end, BAGEL with the task split into two explicit steps, and an oracle pipeline of two specialist models (reported scores).

The training recipe

Across families, open unified models follow a similar sequence of stages. The details that differ are the ones that decide quality.

Stages

  1. Alignment. Train only the new parts: adaptors, image heads, connectors. Keep the backbone frozen. Janus trains its two adaptors and image head this way. BAGEL first aligns SigLIP2 to Qwen2.5 by training only the MLP connector on captioning. Janus-Pro found a frozen language model can even learn basic pixel dependencies here.
  2. Unified pretraining. Unfreeze the trunk. Mix text-only data, image-text pairs in both directions, and interleaved documents. BAGEL and Emu3.5 lean heavily on video-derived interleaved data, where consecutive frames give natural "edit" pairs with consistent identity.
  3. Supervised fine-tuning. Instruction data for understanding, high-quality prompts and images for generation, and editing triplets of source image, instruction and target.
  4. Preference optimisation and RL. Emu3 applied DPO to human-ranked generations. X-Omni, T2I-R1, MMaDA and Emu3.5 use reinforcement learning with image rewards. The mechanics carry over from preference optimisation for text and from RL for vision-language models; the rewards here are detectors, preference models and VLM judges.

Data

Post Mixing Data Without Losing Capabilities covers the general theory of mixtures; the unified-model specifics are below.

Balancing the two losses

The published loss weights look contradictory. Emu3 multiplies the image-token loss by 0.5. Transfusion multiplies the image loss by 5. BAGEL samples four generation examples for every understanding example. These are not disagreements. They correct for different ways of counting.

In Emu3 every image token gets its own cross-entropy term, the same as a text token. A 512 × 512 image contributes 4,096 terms; its caption contributes a few dozen. Without a correction, image tokens would supply almost all of the gradient. The weight of 0.5 reduces that share. In Transfusion the diffusion loss is computed once per image and averaged over its patches. A whole image then counts about as much as one text token, so it is weighted up. The general rule is to check how each loss is normalised before copying a weight from a paper.

Classifier-free guidance

Almost every model in this post samples images with classifier-free guidance. It is worth deriving because it changes what the model outputs.

During training, the condition is dropped some of the time. Janus replaces the prompt with a pad token 10% of the time. The same network then models both p(x | c) and p(x). At sampling time, the two predictions are combined:

ℓg = ℓu + s · (ℓc − ℓu) log pg(x) = log p(x) + s · log p(c | x) + const ℓc and ℓu are the conditional and unconditional logits for the next image token (for diffusion, the two noise predictions). The second line follows from Bayes' rule: the difference of the two log-probabilities is an implicit classifier log p(c | x), and guidance raises it to the power s.

With s = 1 the model samples its true conditional distribution. With s > 1 it favours images that make the prompt more likely, at the cost of diversity. Janus uses s = 5 by default. Emu3 used a guidance scale of 5.0 for its compositional benchmark. Guidance doubles the forward passes, because both predictions are needed at each step.

Unified models extend guidance to several conditions. BAGEL drops text tokens with probability 0.1, SigLIP tokens with probability 0.5, and clean VAE tokens with probability 0.1, so it can guide on each separately. Mogao uses a multimodal form of guidance for interleaved inputs. UniTok reports that its tokenizer makes guidance much less necessary: without guidance, its gFID on ImageNet fell from 14.6 to 2.5.

Figure 9Classifier-free guidance on one image-token step. Grey bars are the unconditional distribution over twelve candidate codebook entries. Blue bars are the conditional distribution for the prompt. Orange bars are the guided distribution. Drag the guidance scale. At s = 1 the guided distribution equals the conditional one. As s grows, probability concentrates on tokens the prompt favours, and the entropy readout falls. The twelve logit values are illustrative.

Tasks that need both skills at once

Text-to-image generation alone does not need a unified model. A diffusion model with a good text encoder does it well. The case for unification rests on tasks where reading and drawing must happen in one context.

Instruction-based editing

"Make the bicycle blue and remove the bag." The model must find the bicycle and the bag, understand the instruction, change exactly those regions, and keep everything else, including identity and lighting. InstructPix2Pix trained a diffusion model on synthetic edit pairs. Emu Edit added recognition tasks to its multi-task editing training. Step1X-Edit uses a multimodal language model to read the image and instruction and a diffusion decoder to draw.

Editing is where the two kinds of image features meet most clearly. Preservation needs the exact appearance, which a VAE keeps. Following a semantic instruction needs meaning, which a semantic encoder keeps. Qwen-Image feeds the input image to both. BAGEL found that both together beat the VAE alone, especially on edits that require reasoning about the request.

Interleaved generation

A how-to guide with a picture after each step, or a story with illustrations, needs text and images in one sequence, each conditioned on everything before it. Chameleon's human evaluation found its mixed-modal answers competitive with Gemini Pro and GPT-4V on prompts that expect interleaved output. DreamLLM, MM-Interleaved, Mogao and Emu3.5 target this setting.

Subject-driven and in-context generation

"Draw this dog, from the photo, on a beach." Kosmos-G and Emu2 handled this from interleaved image and text input without per-subject fine-tuning. OmniGen and OmniGen2 treat many such tasks as one instruction-following problem; OmniGen2 introduced the OmniContext benchmark for subject consistency.

Reasoning before drawing

If understanding does not flow into generation spontaneously, one fix is to make the model write its plan first.

Drawing to reason

The reverse direction uses generated images as intermediate thoughts. Multimodal Visualization-of-Thought has the model draw its spatial reasoning steps as images, with a loss that keeps the visualisations coherent. Visual Planning plans entirely in images, trained with GRPO, on navigation tasks such as mazes. Post Thinking With Images covers reasoning that uses images, and post From VLMs to VLAs covers models that predict the visual consequence of actions. BAGEL reports future-frame prediction and navigation, and Emu3.5 describes world exploration and manipulation, as capabilities that emerged from video-heavy interleaved data.

How unified models are evaluated

A unified model needs three kinds of evaluation: understanding, generation, and the combination. Understanding uses the standard VLM benchmarks covered in Measuring What a VLM Can Do. This section covers the other two.

Distribution metrics

Fréchet Inception Distance (FID) fits a Gaussian to Inception-network features of real images and another to generated images, and measures the distance between them:

FID = ‖ μr − μg ‖² + Tr( Σr + Σg − 2 (Σr Σg)1/2 ) μ and Σ are the mean and covariance of the features. Lower is better. FID measures realism and diversity of a set, not whether any one image matches its prompt.

Papers report it on ImageNet for class-conditional generators, and zero-shot on COCO-30K or MJHQ-30K for text-to-image. CLIPScore measures image-caption agreement with CLIP embeddings. It is cheap but rewards what CLIP notices and misses counting and spatial relations.

Prompt-following benchmarks

GenEval checks object-level facts with a detector: single objects, pairs of objects, counts, colours, positions and attribute binding. DPG-Bench has about 1,000 dense prompts with many objects and relations. T2I-CompBench++ has 8,000 compositional prompts in four groups: attribute binding, relationships, numeracy and complex compositions. WISE has 1,000 prompts across 25 subdomains that require world knowledge, such as cultural common sense or natural science, scored with its WiScore metric. Learned preference models, such as HPSv2 trained on about 798,000 human choices and ImageReward trained on 137,000 expert comparisons, estimate human judgement.

Editing and unified benchmarks

MagicBrush and the Emu Edit benchmark evaluate instruction editing. GEdit-Bench is built from real user requests; BAGEL scores it with GPT-4.1 as judge. ImgEdit-Bench scores instruction adherence, editing quality and detail preservation. For the combination, MME-Unify adds tasks such as commonsense question answering with image generation, and RealUnify tests whether one skill helps the other. BAGEL's IntelligentBench uses 350 examples scored by GPT-4o.

Generation and unified benchmarks compared
BenchmarkMeasuresScoringSizeStrengthPitfall
FID (COCO-30K, MJHQ-30K, ImageNet)Realism and diversity of a setInception feature statistics30,000 or 50,000 imagesStandard, comparable across yearsIgnores prompt adherence; sensitive to resolution and preprocessing
CLIPScoreImage–text agreementCLIP cosine similarityAnyCheap, reference-freeWeak on counts, relations and text rendering
GenEvalObjects, counts, colours, positions, bindingObject detector and colour classifierSeveral hundred promptsInterpretable per categoryPrompt rewriting and synthetic captions inflate scores
DPG-BenchDense prompt followingVQA-based checksAbout 1,000 promptsLong, detailed promptsDepends on the judging model
T2I-CompBench++CompositionalityDetectors, VQA models, MLLM judges8,000 promptsBroad coverage of failure typesMixed metrics across categories
WISEWorld-knowledge use in generationWiScore with a judge model1,000 prompts, 25 subdomainsSeparates knowledge from renderingJudge bias
HPSv2, ImageRewardHuman preferenceLearned reward modelsTrained on 798,090 and 137,000 judgementsTracks aestheticsCan be optimised against directly
MagicBrush, Emu Edit, GEdit-Bench, ImgEdit-BenchInstruction editingReference images, metrics, or GPT-4-class judgesFrom hundreds to thousands of editsTests preservation as well as changeJudges disagree on subtle preservation errors
MME-Unify, RealUnify, IntelligentBenchJoint use of both skillsAccuracy, judges, stepwise decompositionRealUnify 1,000; IntelligentBench 350Tests synergy, not coexistenceYoung benchmarks; small

How to read this table: the first two rows grade images as a set, the middle rows grade whether each image follows its prompt, and the last row grades whether the model combines its skills. A unified model needs a score from each group, because a high FID-based ranking says nothing about editing or synergy.

Comparing the designs

The first table compares the design families along the aspects this post introduced. The second applies the series' model-survey checklist to representative models.

Unified design families compared
FamilyImage representation emittedGeneration processReading pathWeights shared between tasksNarrowest interfaceUnderstanding at risk?Training costStrengthsWeaknessesExamples
Bridge to external diffusionA few dozen conditioning vectors or semantic featuresSeparate diffusion or flow modelUsual VLM encoderNone, or only an interfaceThe conditioning vectorsNo, if the reader is frozenLowKeeps understanding intact; reuses strong generatorsBottleneck limits detail and long-context useGILL, Emu, Emu2, DreamLLM, SEED-LLaMA, MetaMorph, MetaQuery, BLIP3-o, UniWorld
Fully autoregressive, shared tokenizerDiscrete pixel tokensNext-token predictionSame discrete tokensAllCodebook softmaxYes, weak semanticsHigh if from scratchOne loss, one loop, LLM toolchainSlow decoding; tokenizer caps quality; OCR suffersChameleon, Emu3, Lumina-mGPT, Liquid, Emu3.5
Autoregressive, decoupled encodersDiscrete pixel tokensNext-token predictionSeparate semantic encoderTrunk shared, encoders separateCodebook softmaxLittleMediumFixes the reading penalty simplySame decoding and tokenizer limitsJanus, Janus-Pro
Autoregressive with unified tokenizerDiscrete tokens trained for bothNext-token predictionSame tokensAllCodebook softmaxDepends on tokenizer capacityMediumOne representation for both directionsTwo-loss tokenizer trainingVILA-U, QLIP, UniTok, TokenFlow, Tar
Masked or discrete diffusionDiscrete tokensParallel unmaskingSame tokens, or CLIP featuresAllCodebook softmaxYes, as aboveMediumFar fewer steps; inpainting is naturalText quality in fully diffusion variants still maturingShow-o, UniDisc, MMaDA, Lumina-DiMOO
Hybrid, dense trunkContinuous VAE latentsDiffusion or flow inside the transformerVAE latents, sometimes plus semantic encoderAllNone inside the networkYes, needs care with noiseHighStrong image quality per computeTwo optimisation regimes in one set of weightsTransfusion, MonoFormer, JanusFlow, Show-o2, UniFluid
Hybrid, modality expertsContinuous VAE latentsFlow inside the transformerSemantic encoder plus VAEAttention onlyNone inside the networkLittle; text weights can be frozenHighBest evidence for scaling; no bottleneckTwice the parameters for the same computeLMFusion, BAGEL, Mogao

How to read this table: move down the rows and the narrow interface between reading and drawing disappears, while the risk to understanding and the training cost move the other way. The modality-expert row is the current compromise: shared attention removes the bottleneck, separate weights limit interference.

Representative unified models along the survey checklist (not reported = not stated in the primary source we checked)
ModelSize and initialisationReading pathDrawing representation and processShared weightsData and stagesLoss balanceReported results (selected)Main lesson
Chameleon (Meta, 2024)7B and 34B, from scratchVQ tokens, 1,024 per 512² imageSame tokens, autoregressiveAll2.9T text, 1.5T image-text, 400B interleaved; 9.2T tokens seenSingle next-token lossCompetitive mixed-modal answers in human evaluationQK-Norm and z-loss needed for stability; tokenizer limits OCR
Emu3 (BAAI, 2024)8B, from scratchVQ tokens, 4,096 per 512² imageSame tokens, autoregressive; video tooAllTwo-stage pretraining (context 5,120 then 131,072); quality fine-tuning; DPOVision-token loss × 0.5Outperforms SDXL and LLaVA-1.6 on reported benchmarksPost-training drives generation quality
Transfusion (Meta, 2024)Up to 7B, from scratchVAE patchesContinuous patches, diffusion in-trunkAll2T tokens at 7B: 1T text, about 1T image patchesλ = 5 on diffusion lossBeats Chameleon-style baseline at under a third of the compute for text-to-imageIntra-image bidirectional attention matters
Show-o (2024)1.3B, Phi-1.5LFQ tokens (CLIP variant tested)Discrete tokens, mask predictionAllAbout 35M and 2.0B image-text pairs; about 2M fine-tuningNTP plus mask-token lossCOCO FID 9.24About 20× fewer sampling steps than autoregression
JanusFlow (DeepSeek, 2024)1.3B LLMSigLIPSDXL-VAE latents, rectified flow in-trunkTrunkThree-stage, as JanusFlow loss plus representation alignmentnot reported hereREPA-style alignment inside a unified model
Janus-Pro (DeepSeek, 2025)1B and 7B, DeepSeek-LLMSigLIP-L at 384²VQ tokens (16,384 codes, f = 16), autoregressiveTrunkThree stages; 72M synthetic aesthetic images, 1:1 with real; SFT ratio 5:1:4No task weights; CFG s = 5GenEval 0.80; MMBench 79.2Decoupling plus better data and staging
MetaMorph (Meta, 2024)LLaMA-3.1 8BSigLIPSigLIP features with cosine loss; diffusion visualizerInterface only for pixelsInstruction-format mix; ablations with 1M–7M VQA and 200K–4M generation samplesCross-entropy plus cosineCompetitive on both skillsUnderstanding data drives generation
MetaQuery (Meta, 2025)Frozen MLLM (ablations: LLaVA-OneVision-0.5B with Sana-0.6B)Unchanged MLLMLearnable queries to a diffusion decoderNoneImage-caption pairs, then instruction tuning for editingDiffusion loss onlyMatches full MLLM tuning for generationA frozen reader can drive a strong writer
BLIP3-o (Salesforce, 2025)8B: frozen Qwen2.5-VL-7B plus DiTQwen2.5-VLCLIP features via flow matching, then pixel decoderNone in the readerAbout 25M open plus 30M proprietary images; BLIP3o-60k instruction setFlow matching on CLIP featuresGenEval 0.84CLIP targets beat VAE targets; sequential beats joint
Liquid (2024)0.5B to 32B, from pretrained LLMsVQ tokensSame tokens, autoregressiveAllText plus image-textnot reported hereMJHQ-30K FID 5.47Interference shrinks with model size
BAGEL (ByteDance, 2025)7B active, 14B total, Qwen2.5SigLIP2 (NaViT, up to 980²)FLUX VAE latents, rectified flow in-trunkAttention only (two experts)Alignment, pretraining, continued training, SFT; trillions of interleaved tokens incl. videoGeneration sampled 4:1; separate loss weightsStrong on GenEval, WISE, GEdit-BenchAbilities emerge in order: basics, editing, reasoning edits
Emu3.5 (BAAI, 2025)34.1BDiscrete tokens (131,072 vision codes)Autoregressive; parallel decoding after DiDAAllOver 10T interleaved tokens, mostly video; large-scale RLnot reported hereComparable to Gemini 2.5 Flash Image on generation and editingAbout 20× faster image decoding

How to read this table: compare the "Reading path" and "Drawing representation" columns first. Models that read and draw through the same discrete tokens (Chameleon, Emu3, Liquid) carry the semantic penalty. Models with a separate semantic reader (Janus-Pro, BAGEL, the bridge models) avoid it. Benchmarks are quoted only where the paper states them; cross-paper comparisons need the caveats from the evaluation section.

Choosing a design, and what is still open

A short decision guide

Image token counts also drive serving cost in every design. A 4,096-token image in the context is expensive to read back, not only to write. Post The Cost of a Picture covers that arithmetic.

Open problems

The next and final post in the series, How the Open VLM Families Were Built, applies the survey checklist family by family, including the unified models above.

Key insights and nuances

References

Grouped by topic. Every entry links to its primary source.

Fully autoregressive and discrete unified models

Closed native models and outside analyses