# Oral 31896

- Kind: Oral
- Talk page and recording: https://iclr.cc/virtual/2025/oral/31896

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello everyone and thanks for having me. My name is Hee-Hyun Yoo and I'm excited to present our paper Representation Alignment for Generation Training Diffuse and Transforms easier than you think. And this is a joint work with my awesome colleagues at KAIST and wonderful collaborators from NIU, Korea University and Scale Foundations.
Recently, diffusion or flow matching models are showing remarkable success in like image or video generation, to name a few like SORA, stable diffusion 3.5, flux, remotion, and so on. And most of these models are using diffusion transformers, DITs for short, as an architectural backbone, mainly due to their great scalability and architectural simplicity.
However, training DITs remains extremely costly. For instance, even an AMS-NAD at saving state-of-the-art level FID typically requires over a thousand epochs, which requires more than a week using 8 800 GPUs.
Meanwhile, like recent works observe that diffusion models can learn acceptable discriminatory representations, which means the models do learn some meaningful semantics and they can be used in a variety of downstream tasks such as classification and so on. However, unfortunately, their representation quality still lags behind that of state-of-the-art self -supervised representations.
And in this work, we focused on the opposite, a little bit underexplored direction, representation for better generation. So specifically, we asked, can good powerful representation improve training efficiency and generate some quality of diffusion transformers? To explore this question, we began by analyzing the representations learned by a pre-trained SIT XL's model on MSNet, and we made several key observations.
First, consistent with prior works, we find that this model does learn acceptable discriminative features indicated by reasonably high linear probing results on mSnat. However, this is way worse than recent powerful visual representations such as Dynaversion 2.
Second, we also evaluate the CKNN-based metric, which measures the alignment between two representations computed from different encoders. Surprisingly, we observe that these representations are already partially aligned with Dino version 2, most likely the alignment among state-of-the-art SSL models such as alignment between Moco version 3 and Dino version 2.
Finally, we analyze how this alignment evolves with increasing model size and training budget, and we find that alignment with Dyna version two representations does improve with larger model and longer training, but the gains are really, really inefficient and slow.
And based on these observations, we hypothesize that maybe inefficiency in training diffusion transformers lies in learning good representation inside the model. So specifically, we hypothesize that diffusion models should first focus on learning good representations before reconstructing the or like rendering pixel wise details and maybe like denoising objective alone might be insufficient to achieve this.
And we argue that if we can explicitly guide the representation learning of DITs using external powerful representations, then the training process could be significantly more efficient. So based on this hypothesis and aforementioned observations, we introduced a very simple yet effective regularization called REPA, which can guide representation learning of diffusion transformers using external powerful representations.
Simply put, it is the dysrelation loads from a pre-trained SSL representation into diffusion representations. So specifically, it maximizes similarities between play names representations computed from pre-trained visual encoders and noises noises representations from diffusion models. And empirically, we mainly use like cosine similarity as a similarity function.
And we found that the model trained with REPPA shows very different behavior from the vanilla latent diffusion transformer model. First, we observed that the model trained with REPPA using Bioniverse 2 shows a much reduced semantic gap as shown by improved linear probing accuracy on MSNet. Moreover, as we explicitly make alignment with Bioniverse 2, we also found the alignment with Bioniverse 2 becomes much stronger than the vanilla model.
Lastly and a bit more interestingly, we found that this leads to much more improved generation performance as shown by much better FID at the same training iteration.
Also collectively, we also show that RAPA enables much better visual scaling, which means the model produces dramatically better generation at the same training iteration. So for instance, you can see that the model training RAPA captures the overall shape and the details of the shark much faster than the vanilla diffusion transform model.
And one other important and interesting aspect of Rappi is scalability. First of all, we found that Rappi is scalable to quality of target representations. Specifically, if we first align with more powerful visual representations from MEE to Dyno version 2, we found that the train model learns not only better discriminative power but also shows much better generation performance as indicated by better FI discovery.
ready score. Next, we also find that ReplPi is scalable with respect to the model size. So if we compare the relative convergence among different model configurations, we found that larger model ReplPi rates is the same FID of the same size model much faster.
Lastly, we found larger models show like deeper performance gain with bare-fell where the access is given as like validation accuracy on MSNet and the Y access is given as like generation performance on FID, which indicates the larger models both improve discrete power and better than risk performance.
So based on this analysis, we also conduct a system-level analysis and comparison on AWS NET to compare the performance with state -of-the-art generative models. And we find that without classifier -free guidance, we find that REPTA can accelerate diffusion model training by over 17.5 times. And even with classifier-free guidance, REPTA still achieves over 7 times.
seven times speed up. Furthermore, with longer training and the guidance into our technique in classifier-free guidance, we find the wrap-up tips the state -of-the-art level FID score of 1.42.
And to show our scalability with respect to the resolution, we also conduct experiments on a higher resolution dataset by using image net with a resolution of 512 by 512. Similar to previous results, we also find that RAPHub dramatically accelerates diffusion training more than 7.5 times.
And finally, we evaluate Repa on tasks to image generation setup using the MS Coco data set and MMDIT architecture, which is a simple variant of diffusion transformer for tasks to image generation.
And as shown in the table in the figure, we find that Repa greatly improves the text to image generation quality compared with the vanilla DIT model. And one another interesting result is that Repa not only improves the image quality, but also those improves image text alignment.
For instance, like as shown in the zebra generation results in the figure on the right, so the caption says the zebra is placed on the edge of the pond and the model train re-wrap not only generates more realistic zebra but also correctly places zebra at the edge of the pond while the vanilla model fails to obtain this.
So in summary, we present a very simple but very effective regularizations called Repa, which can dramatically improve diffusion transformer training. And like this regularization is based on our hypothesis and observations that learning good representations might be a key for diffusion transformer training. And we demonstrated that Repa has great scalability in terms of target representation.
model size and so on and we find the wrapper can dramatically accelerate training speed and the final generation quality in various setups from like image net high resolution image net or taxi image setup and yeah if you're interested in more details please check our paper product pays and official implementation so i thank you for listening and i'll be happy to take any questions thank you
Yeah, we have plenty of time for questions.
Hi, thanks for the presentation. I have a question regarding the place to insert the wrap-up objective. After how many blocks are they inserted? In practice, there are images that are just harder to generate, maybe more complex images. Do you observe that for complex images, maybe you need to insert alignment objective after more blocks than maybe an easier image, let's say just a blank image?
or Uh something. -huh. This is a good point. So in our experiments, we fixed the number of blocks used for alignment. So we do not consider multiple positions for alignment. And inherently, we can interpret diffusion transformer as a denoising autoencoder architecture, where the encoder part of the model tries to learn a good representation, and the decoder part of the model...
try to reconstruct the target based on the learned good representation and like empirically we find that like using only a few layers let's say like six or eight is sufficient to learn good representation using powerful external representations and I think this is because we already have a good representation learned with like priority ourselves to avoid of that with massive number of data.
So yeah, so yeah, we usually use six or eight layers where the total layers are usually given as 28 and like then after like after that like about 20 layers are used for decoding or generating the target. Yeah. And for a complex images we haven't after we haven't analyzed it so far but I think that should be an interesting direction in the future. All right. Thank you.
Okay, thanks for the great talk. So a very simple question. So I noticed that you mentioned you use some pre -trained visual encoder to generate the actual target Y for given any input actually to do the representation alignment part. So have you ever tried different kind of pre-trained visual encoders so that maybe the performance would vary so much from each other?
Or actually the performance remain quite to be the same level. Thanks. Uh, okay. Uh, this is also a good point and, uh, we find like, uh, it is, uh,
uh like usually uh grace usually like highly correlated to its discriminator power of the representation so like like yeah as like as like mentioned in our previous slide like it if we align with like more discriminate more good representation that has a higher linear probing accuracy and it leads to uh better usually leads to better generation performance and like for training progression i
I think it is usually similar and yeah, we did not find any like differences among different representations. Okay, that's cool. Thank you. Great talk. Thank you. Sorry, just a quick question. So, oh, you hear me? Great. Just a quick question. So when you're doing the alignment, you can
You can perform the alignment in like different layers and I assume that self-supervised model they're going to have like different types of representations learned in different layers maybe like more kind of low level versus like high level kind of semantic information. Mm Do hmm. you think that having like or you know doing the alignment in different layers would be like different or what are your thoughts on that? Yeah, I think it can provide further improvement, but in this paper, we only consider the alignment between the final.
output of the visual pre-trained visual encoder and the single hidden state of the diffusion representation because yeah because like it takes like it enlarges design like toy design choices so yeah we don't have enough time and resources Thank you.
