Single-Transformer Latent Diffusion

Three networks.
One transformer.

UNIFIED encodes, generates, and decodes images with one diffusion transformer. Every backbone weight is shared, and the model trains in a single stage, without DINO or GAN supervision.

Hao-Yu Hsu, Shenlong Wang, Alexander G. Schwing

University of Illinois Urbana-Champaign

Ten images generated by UNIFIED on ImageNet: a red panda, a shipwreck, a macaw, a toadstool, an arctic fox, a space shuttle, a bald eagle, a cheeseburger, an owl, and a river valley.

gFID 2.08 with 215M total parameters.ImageNet-1K 256×256. No DINO, no GAN.

BibTeX

Key highlights.

Encoder, generator, decoder.
Now one set of weights.

UNIFIED (Enc./Gen./Dec.) UNIFIED · 1 network

Half the parameters.
Nearly the same gFID.

gFID on ImageNet-1K 256×256, lower is better.

Text-to-image at 512×512.
GenEval 0.87 with 218M models.

Generated image: a panda bear with aviator glasses on its head. Generated image: a red-haired queen in a green and black dress and veil. Generated image: a gecko wearing a train conductor's hat, in Chinese ink style. Generated image: blueberry ice cream in a glass with splashing milk cream.

Samples from UNIFIED-B (218M) at 512×512.

Design path

From UNITE to UNIFIED,
one change at a time.

UNITE already shares the encoder and the generator. Folding the decoder in takes three more choices: the sequence layout, the encoding timestep, and the decoding timestep.

Base models, about 215M parameters, ImageNet-1K 256×256, with classifier-free guidance.

ImageNet-1K 256×256

Better at every
matched size.

Same parameter budget, same training recipe, 200 epochs. UNIFIED improves gFID over UNITE at all three sizes, and the gain is largest where capacity is scarce.

Separate networks, UNITE, and UNIFIED at matched sizes
SizeMethodParamsgFID ↓IS ↑rFID ↓
TinyUNITE61M3.00272.41.27
UNIFIED62M2.78280.11.75
SmallSeparate113M5.17244.81.64
UNITE117M2.76283.91.13
UNIFIED116M2.43295.91.04
BaseSeparate222M3.96267.71.38
UNITE217M2.23282.11.41
UNIFIED215M2.08314.40.95

Across training and sampling budgets.

Sharing every weight costs compute: at Base, one forward pass is 1.63× UNITE’s, so the charts can be read per epoch or per FLOP. At matched budgets, UNIFIED reaches better final quality; UNITE leads only early, at lower quality.

gFID against training budget

Base, about 215M parameters

gFID against sampling budget

Base, Euler solver, log scale

ComparisonUNIFIEDUNITE

10% lesstraining compute for the same gFID

2.22546 EFLOPs, epoch 120

2.23608 EFLOPs, epoch 200

2.5× fewersampling FLOPs for a lower gFID

2.2364 steps, 5.2 TFLOPs

2.27256 steps, 12.8 TFLOPs

Against published models under 250M parameters.

UNIFIED-S outperforms every pixel-space model of similar size, and UNIFIED-B has the lowest gFID of any model under 250M parameters. Every model in the paper’s comparison with a lower gFID than 2.08 uses at least 545M parameters.

Class-conditional ImageNet-1K 256×256.
SizeMethodNetworksNo aux. info.Diffuses inEpochsParamsgFID ↓IS ↑
≤100MUNITE-T*Gen. + Dec.✓Dynamic latent20061M3.00272.4
UNIFIED-TGen.✓Dynamic latent20062M2.78280.1
100–150MJiT-B/16Gen.✓Pixels600131M3.66275.1
PixelREPA-B/16Gen. + VFMnoPixels600131M3.17284.6
JiT-B/16 + RGGen.✓Pixels600131M2.96251.1
UNITE-S*Gen. + Dec.✓Dynamic latent200117M2.76283.9
UNIFIED-SGen.✓Dynamic latent200116M2.43295.9
150–250MPixelU-B/16Gen. + VFMnoPixels600164M3.40276.0
DSDGen. + VFMnoDynamic latent50205M3.35255.0
REPA-B, two-stageGen. + AE + VFMnoFrozen latentn/a214M2.15268.3
UNITE-B*Gen. + Dec.✓Dynamic latent200217M2.23282.1
UNIFIED-BGen.✓Dynamic latent200215M2.08314.4

* UNITE trained under our protocol. AE: pretrained autoencoder. VFM: pretrained vision foundation model (DINO). No aux. info.: ✓ if training uses no auxiliary pretrained representation, such as DINO features. Dynamic latent: a latent learned jointly with the generator.

Text-to-image

The same recipe,
conditioned on text.

Swap the class embedding for a text encoder and train from scratch. No pretrained VAE: the latent space is learned on the same data as the generator.

A bare oak tree silhouetted against an orange winter sunset.
A bare oak tree silhouetted against a winter sunset.
A phoenix made of fire, drawn in an anime style.
A phoenix of fire in anime
A Birman cat with blue eyes.
A Birman cat with blue eyes.
A path leading up into bright clouds.
the path to Heaven
A house by a lake, surrounded by orange autumn trees.
A beautiful landscape front yard with a lake autumn
A tall cumulus cloud in a blue sky.
A cumulus cloud formation in an otherwise clear blue sky.
A lit candle set in a coconut shell.
A coconut candle on driftwood.
A spiral galaxy.
Galaxy

UNIFIED-L, 554M parameters, after 100k pretraining steps. 256×256, 50 Euler steps, guidance scale 6.0.

GenEval, DPG-Bench, and GenAI-Bench at 256×256. Higher is better.
MethodParamsPretraining, 100k stepsFine-tuned, 2k steps
GenEvalDPGGenAIGenEvalDPGGenAI
UNITE-B219M0.4300.7800.6570.8260.8200.709
DiTDH-XL, FLUX-VAE875M + 84M0.4970.7890.6370.8410.8350.688
JiT615M0.5160.7820.674n/an/an/a
NanoGen, SD-VAE611M + 84M0.5780.8040.691n/an/an/a
UNIFIED-B218M0.4710.7920.6720.8490.8330.729
UNIFIED-L554M0.5270.7940.6850.8780.8480.748

All models are pretrained on the same data (JourneyDB, BLIP3o) with the same text encoder (Qwen3-0.6B). Note that UNIFIED does not rely on a pretrained VAE (SD-VAE, FLUX-VAE), which may have been trained on large-scale external data.

GenEval and DPG-Bench at 512×512. Higher is better.
MethodParamsNo aux. info.GenEvalDPG
PixelFlow-XL/4882M✓0.600.779
PixNerd-XXL/161.2Bno0.730.809
PixelGen-XXL/161.1Bno0.79n/a
DeCo-XXL/161.1Bno0.860.814
UNIFIED-B218M✓0.870.827

No aux. info.: ✓ if training uses no auxiliary pretrained representation, such as DINO features. UNIFIED-B is first trained at 256×256 for 200K steps, then fine-tuned at 512×512 for 12K steps, same as other methods.

More qualitative samples

Encoded, generated, decoded.
By the same weights.

A five by five grid of images generated by UNIFIED, including a hot-air balloon, a golden retriever, a geyser, an otter, a pizza, a red panda, a macaw, a space shuttle, a panda, a lion, a goldfish, and a ladybug.

Selected class-conditional samples, ImageNet-1K 256×256, guidance scale 4.0.

Text-to-image, across diverse prompts.

Generated image for the prompt: Baby Yoda (Grogu) drinking soup.
Baby Yoda (Grogu) drinking soup.
Generated image for the prompt: Keanu Reeves as John Wick.
Keanu Reeves as John Wick.
Generated image for the prompt: Darth Vader holding a red lightsaber.
Darth Vader holding a red lightsaber.
Generated image for the prompt: a panda bear with aviator glasses on its head
a panda bear with aviator glasses on its head
Generated image for the prompt: Portrait of a gecko wearing a train conductor's hat and holding a flag. Chinese ink.
Portrait of a gecko wearing a train conductor's hat and holding a flag. Chinese ink.
Generated image for the prompt: a cute wooden owl statue holding a large globe of the Earth above its head
a cute wooden owl statue holding a large globe of the Earth above its head
Generated image for the prompt: a racoon detective using a microscope while riding in a train
a racoon detective using a microscope while riding in a train
Generated image for the prompt: Snow mountain and tree reflection in the lake
Snow mountain and tree reflection in the lake
Generated image for the prompt: A red-haired queen wearing a green and black dress and veil depicted in an intricate and elegant digital painting.
A red-haired queen wearing a green and black dress and veil depicted in an intricate and elegant digital painting.
Generated image for the prompt: Blueberry ice cream in a stylish modern glass, ice cubes, nuts, mint leaves, splashing milk cream.
Blueberry ice cream in a stylish modern glass, ice cubes, nuts, mint leaves, splashing milk cream.
Generated image for the prompt: A lighthouse on a cliff during a thunderstorm, waves crashing, lightning in the sky.
A lighthouse on a cliff during a thunderstorm, waves crashing, lightning in the sky.
Generated image for the prompt: A jellyfish floating through a starry night sky.
A jellyfish floating through a starry night sky.

UNIFIED-B, 218M parameters, after 10k fine-tuning steps. 512×512, 50 Euler steps, guidance scale 6.0.

Generated image for the prompt: A bowl of soup that looks like a monster knitted out of wool
A bowl of soup that looks like a monster knitted out of wool
Generated image for the prompt: an armchair in the shape of an avocado
an armchair in the shape of an avocado
Generated image for the prompt: a stained glass window of a panda eating bamboo
a stained glass window of a panda eating bamboo
Generated image for the prompt: Downtown Shanghai at sunrise. detailed ink wash.
Downtown Shanghai at sunrise. detailed ink wash.
Generated image for the prompt: A photograph of the inside of a subway train. There are frogs sitting on the seats. One of them is reading a newspaper. The window shows the river in the background.
A photograph of the inside of a subway train. There are frogs sitting on the seats. One of them is reading a newspaper. The window shows the river in the background.
Generated image for the prompt: A fluffy baby sloth with a knitted hat trying to figure out a laptop, close up, highly detailed, studio lighting, screen reflecting in its eyes.
A fluffy baby sloth with a knitted hat trying to figure out a laptop, close up, highly detailed, studio lighting, screen reflecting in its eyes.
Generated image for the prompt: A 1920s travel poster of a lighthouse on a rocky coast.
A 1920s travel poster of a lighthouse on a rocky coast.
Generated image for the prompt: A bustling night market in Taipei with lanterns and food stalls.
A bustling night market in Taipei with lanterns and food stalls.

UNIFIED-L, 554M parameters, after 100k pretraining steps. 256×256, 50 Euler steps, guidance scale 6.0.

Questions & Answers

What is the key takeaway from UNIFIED?
  • The decoder need not be a separate network. One diffusion transformer can encode, generate, and decode with every backbone weight shared, and it improves generation over UNITE at about 60M, 115M, and 215M parameters.
  • Decoder parameters are better spent in the shared backbone. At a fixed Tiny budget, moving UNITE’s parameters from the decoder to the generative encoder improves gFID from 5.01 to 3.00, and removing the standalone decoder improves it further, to 2.78.
  • How the three modes are specified matters as much as sharing the weights. Position alignment restores reconstruction, encoding at t = 1 matches what the encoder reads, and a learned decoding timestep removes the conflict between decoding and generation at the clean endpoint.
Is this state of the art on ImageNet?

No, and that is not the claim. Our largest ImageNet model has 215M parameters, and published models between 500M and 1B reach lower gFID. The claim is about matched budgets: with the same parameters and recipe, one shared backbone generates better than a shared encoder and generator with a standalone decoder (2.78 against 3.00, 2.43 against 2.76, and 2.08 against 2.23).

Why doesn’t the generation loss collapse the latent?

As in UNITE, the encoder output is detached in the generation loss. The same detached latent is the clean target and, once noised, the generator’s input, so no gradient from the generation loss can push the latent toward a trivial solution. Both losses still update the same shared weights.

Why is the decoding timestep −1?

It is a label, not a noise level. Decoding reads a clean latent, so t = 1 is the natural choice. But at t = 1, encoding and generation output a latent while decoding outputs pixels, and at the end of sampling the generation input is nearly the decoding input. Giving decoding its own learned embedding, outside the flow interval [0, 1], leaves t = 1 to the two modes whose target is the clean latent. At Base this lowers gFID from 2.15 to 2.08.

Where does it fall short?
  • Alignment ties the latent length to the number of patches. In contrast, readout tokens can choose flexible latent lengths.
  • The latent space cannot be frozen. Every update to the backbone also changes encoding and decoding, so the reconstruction loss stays active for all of training.
  • It favors data with a shared token grid. Our evidence comes from images at 256×256. On QM9 molecules, which have no such grid, UNIFIED generates as well as UNITE but reconstructs slightly worse.

Citation.

BibTeX
@article{hsu2026unified,
  title   = {Single-Transformer Latent Diffusion},
  author  = {Hsu, Hao-Yu and Wang, Shenlong and Schwing, Alexander G},
  journal = {Under review},
  year    = {2026}
}