Beyond Generation: Unlocking Discriminative Representations from Diffusion Models
Haowen Cui ⋅ Shuo Chen ⋅ Ge Wu ⋅ Yikai Ge ⋅ Ge Gao ⋅ Xiang Li ⋅ Jun Li ⋅ Jian Yang
Abstract
Recent advancements in generative models have increasingly leveraged self-supervised visual representations to guide the synthesis process, significantly improving generation quality and semantic consistency. However, the reverse paradigm of harnessing the generative process to enhance visual representations remains largely underexplored. In this paper, we investigate the semantic properties of class tokens synthesized by generative models equipped with representation entanglement. We observe that the generative model can generate class tokens that exhibit stronger discriminative capabilities than those extracted from the original pretrained visual models. Motivated by this observation, we propose a new Generation-to-Perception Knowledge Distillation (GPKD) framework, where generated class tokens are used as teacher signals to instill global semantics into a student model. To prevent the degradation of local details, we further incorporate a masked patch-level distillation objective. This dual distillation strategy enhances global representations while mitigating the forgetting of local details, thereby producing more robust representations. Extensive experiments demonstrate that GPKD obtains consistent improvements across various downstream tasks, achieving a gain of more than 2\% in $k$-NN accuracy on ImageNet-1K. Code is available at https://github.com/huanmx/GPKD.
Successful Page Load