Skip to content
中文

RAE-T2I: scale a shared feature space

An interactive field guide

A shared image representation can support separate understanding and generation paths. It need not imply one universal output head.

Before this article: RAE · Semantic representations · Diffusion and flow matching

The original RAE studies diffusion in pretrained feature spaces, including class-conditioned image generation. Text-to-image generation adds rich language conditions, larger data distributions, and demands such as rendering readable text. These can expose weaknesses that ImageNet reconstruction does not measure.

Freeze a SigLIP-2 So400M patch-14 encoder. At 224² input it gives 256 features of width 1152. Train a ViT image decoder. For generation, an LLM with learned queries and an MLP connector conditions a flow DiT. For understanding, another projector sends features from the same frozen encoder to the LLM. The representation is shared; the task heads differ.

Read from left to right. Select a module to connect its role, tensor shape, and calculation. Snippets are teaching pseudocode. Sources provide the paper method or audited implementation.

Shared frozen features

The understanding path uses a separate projector into an LLM.

z = frozen_siglip2(image)
understanding_tokens = understanding_projector(z)

Language-conditioned flow

The flow DiT generates a complete feature grid.

condition = connector(llm(text,learned_queries))
z_generated = flow_sampler(dit,condition)

Feature-to-pixel decoder

Train on data that covers the reconstruction details required by the task.

image = rae_decoder(z_generated)

Inspect the pinned source

α=256C/4096,t′=αt1+(α−1)t\alpha=\sqrt{256C/4096},\qquad t^\prime=\frac{\alpha t}{1+(\alpha-1)t}

The schedule demo uses m=256C and reference dimension n=4096. Set C=1152 and t=0.5: α=√72≈8.485 and shifted time is about 0.895. Under the data-at-zero convention, the shift places more probability on noisier training states. These arithmetic values illustrate the schedule, not a measured quality gain.

The decoder trains on about 73M examples, including web, synthetic, and text-rendering data. The paper finds that general web training alone is insufficient for reliable glyph recovery. A good natural-image rFID is therefore not a substitute for a dedicated text-reconstruction evaluation.

Change a parameter, inspect the computed values, then compare this small example with the model described above.

Analytical teaching model · controls change the example, not a trained research model.

x = 2, t = 0ε = −1, t = 1

The straight path has known velocity. A learned model must estimate velocity; this demo does not measure its error.

Computed values for the current example
QuantityValue
α = √(256C / 4096)6.928
base t0.500
t0.874
x_t = (1 − t) × 2 + t × (−1)-0.622
v = ε − x-3

The decoder objective combines L1, LPIPS, Gram, and GAN terms. The generation study compares DiTs from 0.5B to 9.8B. Dimension-aware scheduling remains important, while some small-model improvements, such as a wide DDT head or decoder noise, become less useful at the larger text-to-image scale.

Reported evidence, not a local reproduction

Section titled “Reported evidence, not a local reproduction”
SettingMetricValueInterpretation
SigLIP-2 RAE: ImageNet / YFCC / TextrFID ↓0.435 / 0.702 / 1.621Reconstruction table, datasets reported separately
FLUX VAE: same table columnsrFID ↓0.288 / 0.410 / 0.638RAE is not uniformly better at reconstruction

The main comparison fixes 256 visual tokens, but RAE outputs 224² while VAE outputs 256²; feature width and pretraining cost also differ. This is a system comparison at fixed sequence length, not a completely matched rate/capacity study. Similar understanding results reflect the shared frozen understanding encoder, not proof that generation training caused a large understanding gain.

Open the derivation

The time shift rescales the ratio t/(1−t) by α. Solving this ratio equation yields the displayed fractional transform. It preserves 0 and 1 and moves intermediate times upward when α is larger than one.

t′1−t′=αt1−t⟹t′=αt1+(α−1)t\frac{t^\prime}{1-t^\prime}=\alpha\frac{t}{1-t}\quad\Longrightarrow\quad t^\prime=\frac{\alpha t}{1+(\alpha-1)t}
Does sharing the representation make this a continuous image-token causal AR model?

No. The image generator is still a diffusion/flow DiT. Representation sharing and generative factorization are separate design choices.

Return to the learning map

Diagrams and snippets are teaching reconstructions. Paper reports, implementation observations, and analytical examples are distinguished. No research model runs in this page.