TL;DR
We usually borrow features from visual encoders like DINOv2 to help diffusion models generate better images—but what happens if we reverse the flow of knowledge? The authors discover that diffusion models can actually synthesize global summary features ("class tokens") that are more discriminative than the original encoders that trained them. By distilling these generated tokens back into a vision backbone alongside local spatial cues, we can significantly upgrade our foundational perception models.
What Problem Does This Paper Address?
In computer vision, there has long been a quiet divide between generators (diffusion models that paint pixels) and perceivers (self-supervised encoders like DINOv2 that understand semantics). Recently, researchers realized that feeding DINOv2 features into diffusion models helps them converge faster and paint more coherent scenes. A recent model called REG (Representation Entanglement for Generation) took this further by jointly denoising both an image and its DINOv2 "class token" (a single vector summarizing the whole image's meaning).
However, this relationship has mostly been a one-way street. Few have asked the reverse question: Can the generative denoising process actually improve the visual encoders themselves? And specifically, what happens to the semantic quality of a class token when a diffusion model generates it from scratch?
Methods
First, the authors run a clever probe using a pretrained REG model. Instead of generating an image from pure static, they feed the model a slightly noisy version of a real image alongside its class label, while initializing the class token as pure Gaussian noise. As the model denoises the pair, it synthesizes a clean class token. Surprisingly, this generated token beats the original DINOv2 token at both image classification and clustering.
To bottle this magic into a standard, fast visual encoder, the authors introduce Generation-to-Perception Knowledge Distillation (GPKD), a dual-teacher training framework:
- The Novel Global Teacher: The frozen generative model (REG) synthesizes refined class tokens, which teach the student model (initialized from DINOv2) high-level, holistic semantics.
- The Standard Local Teacher: If you only train a model on global summaries, it forgets fine-grained spatial details. To prevent this "spatial amnesia," the authors mask out random patches of the student's input image and force the student to match the patch-level representations of a frozen, original DINOv2 teacher.
Both global and patch-level predictions are aligned with their respective teachers using standard DINO prototype-matching losses.
Datasets
- Training & Classification: Distillation is performed on ImageNet-1K (using ground-truth class labels to condition the generative teacher). Out-of-distribution generalization is tested on ImageNet-ReaL and ImageNet-V2.
- Downstream Evaluation: Tested across 11 fine-grained transfer benchmarks (Food, CIFAR-10/100, SUN, Cars, Aircraft, DTD, Pets, Caltech-101, Flowers, CUB), semantic segmentation datasets (ADE20K, Pascal VOC), and instance-level image retrieval benchmarks (Revisited Oxford and Revisited Paris). No new datasets are introduced.
Key Insights and Ideas
- Generation refines perception: Why is a generated token better than the DINOv2 token that trained the generator? Because during conditional denoising, the diffusion model fuses three distinct signals into one continuous vector: the structured feature space learned from DINOv2, the instance-specific visual details of the noisy image, and the explicit category constraint of the class label.
- One step is better than 250: In a fascinating twist, generating the class token in a single denoising step yields better representations for recognition (85.4% accuracy) than taking 250 steps (85.0%). Early in denoising, updates are driven by broad, global image structures. Taking more steps exposes the class token to ultra-fine, pixel-level reconstruction details, slightly pulling the global summary away from the ideal semantic sweet spot.
- Beating standard supervision: Because the generative teacher uses ImageNet labels, the authors fairly compare GPKD against standard supervised fine-tuning (SFT). Standard SFT ruins dense spatial features (tanking segmentation scores), whereas GPKD's dual-distillation boosts both global classification and pixel-level understanding.
Key Results
Using a frozen ViT-B/14 backbone, GPKD consistently outperforms the original DINOv2 baseline and supervised fine-tuning variants:
- ImageNet-1K: Boosts $k$-NN accuracy by +2.2% (82.1% $\rightarrow$ 84.3%) and linear probing by +0.9% (84.5% $\rightarrow$ 85.4%). Gains widen on out-of-distribution sets: +1.3% on ReaL and +1.7% on V2.
- Dense & Fine-Grained Tasks: Achieves an average of 90.7% across the 11 transfer benchmarks (+0.5% over DINOv2). On Pascal VOC multi-scale semantic segmentation, it reaches 85.9% mIoU (+1.0% over DINOv2, while SFT drops to 81.1%).
- Qualitative: PCA visualizations of the learned feature maps show noticeably cleaner background suppression and crisper adherence to object boundaries than vanilla DINOv2.
Limitations and Future Work
- Patch generation is unexplored: Currently, GPKD only generates the global class token, relying on the older pretrained DINOv2 model to supervise the local patch tokens. The authors plan to explore synthesizing dense patch tokens directly via diffusion models to provide even stronger spatial guidance.
- Label dependency: Because the underlying REG generator is class-conditioned, constructing the teacher tokens currently requires ground-truth class labels during distillation.
Summary updated