REPresentation Alignment (REPA) - align projections of input latents with clean image representations from pretrained visual encoders
-use DINO features to supervise DiT hidden features
-project DiT hidden layer outputs and minimize alignment loss to DINO features
Clean image x
ā
āāāāāāāāāāāāāāāāā DINOv2 āāāāāāāāāā DINO features y
ā ā
ā ā alignment loss
ā ā
VAE Encoder ā
ā ā
latent z ā
ā + noise ā
noisy latent z_t ā
ā ā
DiT layer 1 ā ... ā DiT layer 8 āā h_8 ā projection P
ā
remaining DiT layers
ā
diffusion prediction
Goal: DiT hidden states should predict noise-invariant, clean visual representations from noisy inputs that contain useful semantic information
-learn a projection head MLP P such that: 1.starting from VAE latent ztā 2.given intermediate DiT hidden representation ztāDiTāhtā 3.given DINO features xDINOāyDINOā 4.we have P(htā)āyDINOā -use patch-wise similarity for loss ā supervise latent DiT tokens to be similar to specific DINO feature patches
-weighted training objective: L:=Lvelocityā+Ī»LREPAā Results:
1.REPA makes diffusion training faster
2.Plain SiT/DiT representations are much worse than DINO (on ImageNet), while SiT + REPA closes much of that gap
3.Better representation = better generation
4.Agnostic to teacher representation (not DINO-specific)
5.Aligning relatively early layers is sufficient (i.e. DiT layer 8)
6.REPA scales with the size of the diffusion model