What PixArt-α is
PixArt-α (Chen et al.) turns DiT, a class-conditional ImageNet model, into a text-to-image model, and does it cheaply. The paper reports training in 10.8 % of Stable Diffusion 1.5's time, 675 against 6,250 A100 GPU days. Three changes get it there: the work is split into stages (learn pixel structure, then text alignment, then aesthetics), the transformer reads text through cross-attention and shares its timestep conditioning across blocks, and the training images get dense captions written by a vision–language model instead of their often thin web alt text.
This tab records PixArt-α XL/2 at 512 px drawing A small cactus with a happy face in the Sahara desert. with 20 DPM-Solver++ steps, guidance 4.5 and seed 0. The transformer has 611 M parameters in 28 blocks of width 1152 with 16 heads of 72, like DiT-XL/2. Block 1 is drawn in full at , 549 and 150.
Text from T5-XXL
The Text encoder card shows the prompt read by the encoder half of T5 v1.1 XXL: 24 layers, 4096 wide, 4.76 B parameters, more than seven times the transformer it conditions. Unlike CLIP's text encoder in Stable Diffusion, T5 was pre-trained only on text, and every token reads every other with no causal mask. Saharia et al. found with Imagen that a larger frozen language model improved fidelity and text alignment more than a larger diffusion model did, and PixArt-α follows them.
The prompt is lower-cased and cut into 21 SentencePiece tokens, the last being the end-of-sequence token, then padded to 120 slots. A small MLP, the caption projection (4096 → 1152), turns each token into , the keys and values of every block's cross-attention. The encoder runs once per image; its output is reused at every step.
One block
Each of the 28 blocks is a DiT block with a cross-attention inserted between self-attention and the MLP:
The 512 px image is a 4 × 64 × 64 latent, and 2 × 2 patches make 32 × 32 = 1,024 tokens. The page follows six of them: Patches x shows their inputs, Self-Attention their weights over all 1,024 patches (the map beside them shows the whole row), Cross-Attention each patch's weights over the prompt's tokens, and + MLP · adaLN₂ · α₂ the block's output.
Cross-attention has no norm and no gate: the patch's query comes straight from , and keys and values from . The padding slots get a bias of −10000 before the softmax, so their weight is exactly zero and only the 21 prompt tokens share it.
adaLN-single
DiT gives each block its own Linear from the conditioning vector to the six modulation vectors. With the class gone, PixArt-α conditions the blocks on the timestep alone, and shares that Linear. The adaLN-single card computes it once per step and adds a small learned table per block:
where is the 256-value sinusoid and is block 's 6 × 1152 table. The page notes that this saves about 27 % of DiT-XL's parameters. Because the rest of the block keeps DiT's shapes, PixArt-α could start from DiT's ImageNet weights, one of the ways it saved training time. The card's heat map shows the size of the six vectors in each of the 28 blocks.
Sampling and the autoencoder
Each step runs the transformer with the prompt and with the empty prompt (the end-of-sequence token alone) and mixes the predictions: . Like DiT, the model outputs 8 channels, 4 of noise and 4 of a learned variance, and the sampler uses only the noise.
The Sampling loop card takes 20 steps of DPM-Solver++ (Lu et al.), a solver for the probability-flow ODE written in the log signal-to-noise ratio . Each step forms and, from the second step on, corrects it with the previous step's , which makes it second order:
The Autoencoder card is Stable Diffusion's KL VAE (84 M parameters), which decodes the final 4 × 64 × 64 latent into the 512 × 512 image.
Where PixArt-α came from
PixArt-α (2023) sits between DiT (the DiT tab), which showed that transformers scale as diffusion backbones, and the text-to-image transformers that followed. The authors' PixArt-Σ (2024) trained up to 4K resolution with compressed keys and values, and Sana (the Sana tab), partly by the same authors, replaced the VAE, the attention and T5 itself to make the model much cheaper still. SD 3.5 and FLUX take another route: no cross-attention, but text and image tokens in one joint attention.
Papers
- PixArt-α: Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesis The model this tab records: cross-attention to T5, adaLN-single, staged training and dense captions.
- Scalable Diffusion Models with Transformers DiT, the class-conditional transformer whose blocks and weights PixArt-α starts from.
- Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer T5, whose XXL encoder reads the prompt.
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding Imagen: a frozen T5-XXL encoder for text-to-image diffusion, and the finding that a larger language model helps more than a larger denoiser.
- DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models The second-order multistep solver of the sampling loop.
- PixArt-Σ: Weak-to-Strong Training of Diffusion Transformer for 4K Text-to-Image Generation The follow-up: 4K images from the same design with compressed keys and values.