Automated Learning of Semantic Embedding Representations for Diffusion Models
Limai Jiang, Yunpeng Cai
TL;DR
This work investigates whether diffusion models can learn semantically meaningful embeddings beyond generation. It introduces DiER, which adds a timestep-aware encoder to a Diffusion Transformer to produce embeddings $v_t^s$ across diffusion timesteps, turning the diffusion process into $T$-level DAEs and enabling self-supervised representation learning. Empirical results across six datasets show DiER often achieves state-of-the-art linear probe accuracy at optimal timesteps, with mid-timestep representations providing the strongest semantic signals and dataset-dependent variability in the best timing. The findings support using DDPMs as general-purpose feature extractors while highlighting practical challenges like timestep selection and computational cost for downstream tasks.
Abstract
Generative models capture the true distribution of data, yielding semantically rich representations. Denoising diffusion models (DDMs) exhibit superior generative capabilities, though efficient representation learning for them are lacking. In this work, we employ a multi-level denoising autoencoder framework to expand the representation capacity of DDMs, which introduces sequentially consistent Diffusion Transformers and an additional timestep-dependent encoder to acquire embedding representations on the denoising Markov chain through self-conditional diffusion learning. Intuitively, the encoder, conditioned on the entire diffusion process, compresses high-dimensional data into directional vectors in latent under different noise levels, facilitating the learning of image embeddings across all timesteps. To verify the semantic adequacy of embeddings generated through this approach, extensive experiments are conducted on various datasets, demonstrating that optimally learned embeddings by DDMs surpass state-of-the-art self-supervised representation learning methods in most cases, achieving remarkable discriminative semantic representation quality. Our work justifies that DDMs are not only suitable for generative tasks, but also potentially advantageous for general-purpose deep learning applications.
