Probing Diffusion Denoising Dynamics for Contrastive Representation Learning

Yasong Dai, Zeeshan Hayder, David Ahmedt-Aristizabal, Hongdong LiarXiv 2026

TL;DR

$D^3CL$ (Denoising Diffusion Dynamics Contrastive Learning) is a parameter-efficient framework that successfully unifies high-quality image generation and robust representation learning within a single pretrained diffusion model. By treating noisy latents at different timesteps as distinct "views" of an image, it introduces a noise-level contrastive loss that boosts linear probing accuracy on ImageNet-1K to 80.1% while maintaining excellent generative performance.

What Problem Does This Paper Address?

In self-supervised learning, researchers typically choose between two paths: contrastive learning (which excels at discriminative tasks like classification) and generative learning (which excels at image synthesis). Unifying these two paradigms into a single model usually results in a harsh trade-off: either representation robustness suffers, or generation quality degrades.

Furthermore, existing unified models are computationally massive—often requiring training large Vision Transformers (ViTs) with hundreds of millions of parameters from scratch for thousands of epochs. The authors of this paper ask a compelling question: Can we leverage the rich, existing intermediate representations of a pretrained text-to-image diffusion model to learn discriminative features without destroying its generative capabilities and without training from scratch?

Methods

The authors introduce $D^3CL$, a framework that adapts a pretrained, frozen Stable Diffusion v1.4 backbone using parameter-efficient fine-tuning.

Figure 2: Overview of the D3CL training pipeline. An input image is encoded by a VAE encoder to produce a latent representation z, which is then perturbed with noise to form a noisy latent of level t. This noisy latent is processed by a denoising UNet with the conditional latent applied on cross-attention layers for n steps. To enhance efficiency, LoRA is applied in the QKV (query, key, value) attention layers. This setup allows D3CL to balance generative and discriminative tasks effectively while reducing training resource requirements. The output of UNet is then decoded by a VAE decoder, reconstructing the image from the latent representation.

Key technical components include:

  • Noise-Level Contrastive Learning: The core insight is that adding different amounts of noise to an image latent creates unique, stochastic "views" of the same underlying data. $D^3CL$ applies an InfoNCE contrastive loss across these varying noise levels to maximize mutual information between different timesteps of the same image.
  • Parameter-Efficient Adaptation (LoRA): To avoid the massive cost of full fine-tuning, the original parameters of the Stable Diffusion UNet are frozen. Low-Rank Adaptation (LoRA) matrices are injected specifically into the cross-attention layers to handle the updates.
  • Multi-Timestep Feature Fusion: Features are extracted from the bottleneck layer of the UNet at multiple denoising timesteps ($t_1, t_2, t_3$) and fused using a dedicated cross-attention head to build a semantically consistent representation.
  • Inverse-Cosine Noise Schedule: Instead of standard schedules, they adopt an inverse-cosine noise schedule to better distribute training samples, acknowledging that low-level noise benefits classification while high-level noise benefits generation.

Datasets

The framework was trained and evaluated on several standard benchmarks:

  • ImageNet-1K: The primary dataset used for training, linear probing classification, and evaluating both unconditional and class-conditional image generation.
  • CIFAR-100: Used to test the model's transfer learning capabilities via few-shot and zero-shot $k$-NN classification.
  • SPair-71k: Used to evaluate visual correspondence (semantic keypoint matching).
  • MSCOCO: Used to evaluate free-form text-to-image generation performance.

Key Insights and Ideas

  • Noise as a Natural Augmentation: Instead of relying on traditional data augmentations like aggressive cropping or color jittering, the diffusion process itself provides a continuous spectrum of semantic-preserving, noise-level views.
  • Complementary Objectives: Generative reconstruction loss and contrastive loss are not mutually exclusive. In fact, the reconstruction loss acts as an effective regularizer for the classification task, preventing the contrastive features from collapsing.
  • Location and Timing Matter: Ablation studies show that the utility of diffusion features depends heavily on extracting them from the UNet's bottleneck layer (where spatial resolution is minimized and semantics are dense) and properly fusing them across multiple timesteps.

Key Results

$D^3CL$ achieves an exceptional balance between discriminative accuracy, generative quality, and parameter efficiency.

Figure 1: D3CL balances accuracy and efficiency. We report linear probing and unconditional im- age generation performance of different methods on ImageNet-1K. The area of a circle corresponds to the number of trainable parameters. Our method outperforms baseline models in both discrimi- native (classification) and generative (unconditional image generation) tasks, even surpassing those trained for only one of these tasks. In the meantime, our method maintains a small number of train- able parameters to reduce training resource overhead.
  • Linear Probing Accuracy: On ImageNet-1K, $D^3CL$ achieves 80.1% top-1 accuracy, outperforming other diffusion-based methods like DifFeed (76.8%) and contrastive/generative hybrids like MAGE (78.9%).
  • Image Generation: For $256 \times 256$ unconditional generation, it achieves a Fréchet Inception Distance (FID) of 5.56 and an Inception Score (IS) of 142.3. For class-conditional generation, the FID improves to 5.16.
  • Efficiency and Convergence: $D^3CL$ requires only 68M trainable parameters (compared to MAGE's 304M) and converges significantly faster than training-from-scratch alternatives like REPA.
Figure 3: Training efficiency. D3CL converges faster than REPA [36] on Im- ageNet.

Limitations and Future Work

While $D^3CL$ demonstrates excellent efficiency, the optimal balancing hyperparameter ($\lambda = 0.1$) between the reconstruction and contrastive losses still requires a manual grid search. Additionally, the authors note that a promising direction for future research is extending this noise-level contrastive framework to support more diverse downstream tasks and multi-modal inputs beyond images and text.

Summary updated

BibTeX
@misc{dai2026probing,
  author = {Yasong Dai and Zeeshan Hayder and David Ahmedt-Aristizabal and Hongdong Li},
  title = {{Probing Diffusion Denoising Dynamics for Contrastive Representation Learning}},
  year = {2026},
  eprint = {2607.09067},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.09067},
}
Figure