arXiv:2611.02921cs.CVNov 2026

Manuscript Offprint

arXiv:2611.02921

Unlocking the Potential of Contrastive Regularization for Diffusion Transformer Training

Yi Tan, Beier Zhu, Sirui Chen, Yunzhe Lin, Yuan Zhou, Cheng Chen, Xingyu Zhu, Tianrun Chen, Yanbin Hao, Hanwang Zhang

ABSTRACT

Representation regularization has emerged as an effective way to improve diffusion transformer training. Yet one of the most canonical regularizers—InfoNCE-style contrastive learning—remains largely underexplored in this setting. We naturally ask a question: can standard contrastive learning serve as an effective regularizer for diffusion transformers? Surprisingly, we find that naive InfoNCE regularization brings only marginal gains. Our analysis reveals that the objective is easily dominated by a shortcut: near-orthogonal noise components in diffusion inputs provide a bypass for enlarging negative-pair distances while weakening positive-pair alignment, especially at high noise levels. To unlock the benefit of contrastive regularization, we propose Clean Representation-ANCHored Contrastive (CRAN) regularization. Specifically, CRAN anchors contrastive dispersion with clean-sample representation distances, transferring clean relational semantic structure to noisy diffusion representations to suppress the noise shortcut. Extensive experiments on ImageNet show that CRAN consistently improves diffusion transformer training across model scales and training budgets, outperforming internal feature-alignment and dispersive regularization baselines while matching external DINO-guided REPA. These results re-establish InfoNCE-based contrastive learning as an effective regularizer for diffusion training, once its noise-driven over-dispersion is properly constrained.

1 INTRODUCTION

Transformer-based diffusion and flow (Ho et al., 2020; Song et al., 2020; Albergo & Vanden-Eijnden, 2023; Liu et al., 2023; Lipman et al., 2023) models now dominate generation tasks, from image synthesis (Podell et al., 2023; Saharia et al., 2022; Esser et al., 2024) to video generation (Polyak et al., 2024; Brooks et al., 2024). Recent studies have substantially improved diffusion transformer training through representation-level regularization, including MAE-style auxiliary objectives, external feature alignment, internal self-representation alignment, and feature-dispersion regularization (Zheng et al., 2023; Zhu et al., 2024; Krause et al., 2025; Yu et al., 2024; Jiang et al., 2026; Haghighi et al., 2025; Wang & He, 2025). However, existing methods rely on specialized alignment or dispersion objectives, while the canonical contrastive learning objective, i.e., InfoNCE (He et al., 2020; Chen et al., 2020), remains largely underexplored in diffusion transformer training. This is surprising because InfoNCE has been one of the most successful objectives for representation learning in discriminative vision tasks. We therefore ask a natural question:

Can standard InfoNCE contrastive learning serve as an effective representation regularizer for diffusion transformers?

MethodRegularizationFID (↓)
BaselineNone33.0
SRAPositive only28.7
InfoNCEPositive + Negative28.5
CRAN (ours)Anchored InfoNCE26.3

✉Corresponding author.

Table 1: FID-50K of SiT-B/2 trained on ImageNet 256×256 for 400K iterations. Standard InfoNCE regularization brings only marginal gains over the positive-only representation regularizer SRA (Jiang et al., 2026).

Figure

Figure 1: Diagnostic studies of the noise shortcut. (a) Standard InfoNCE rapidly over-disperses negative pairs and weakens positive-pair alignment, while CRAN alleviates both effects. (b) The over-dispersion and weakened alignment of InfoNCE become more severe at higher noise levels, whereas CRAN remains stable. (c) For a fixed clean image, the contrastive projection head amplifies noise-induced distances, revealing a noise shortcut; CRAN suppresses such amplification.

Evidence from prior work and our empirical study suggests a negative answer. Dispersive Loss (Wang & He, 2025) (see their Table 2) shows that standard contrastive losses can degrade diffusion training with independently noised positive views, and require restricted noise gaps to obtain only limited gains. Consistent with prior evidence, we further test whether InfoNCE can become effective under a stronger self-representation alignment setup. We adopt the SRA framework (Jiang et al., 2026), where a middle SiT representation is aligned to a deeper and less noisy self-representation, and extend this positive-only regularizer into a full InfoNCE objective by adding negative-pair discrimination. However, as in Table 1, InfoNCE brings almost no gain over SRA, reducing FID only from 28.7 to 28.5.

To understand this issue, we argue that vanilla InfoNCE suffers from a noise shortcut. Diffusion inputs contain high-dimensional Gaussian noise, whose random components are known to be nearly orthogonal with high probability (Cai et al., 2013). Therefore, instead of learning semantic differences between images, the contrastive objective may simply exploit the naturally near-orthogonal noise components to enlarge negative-pair distances. This provides an easy way to satisfy the repulsive regularization, but can lead to over-dispersion and weaken positive-pair alignment 1^{1}.

To verify this argument, we conduct three diagnostic studies under standard InfoNCE regularization. (1) We track the average cosine distance (1−cos⁡(a,b))(1 - \cos(a, b)) of positive-pairs and negative-pairs during training. As shown in Figure 1 (a), negative-pairs are rapidly pushed toward orthogonality, which we refer to as over-dispersion. However, positive-pair distances are not properly minimized; instead, they first increase and remain larger than their initial value, indicating that positive-pair alignment is weakened rather than strengthened. (2) Figure 1 (b) shows that both positive- and negative-pair distances grow with noise strength, especially the negative-pair ones, suggesting that stronger noise amplifies shortcut-driven over-dispersion and weakened alignment. (3) We further consider a special case of positive-pairs: fixing the clean image while varying only the sampled noise, and measuring feature distances before and after the contrastive projection head. Figure 1 (c) shows that for the same image under different noise realizations, the contrastive projection head amplifies noise-induced feature distances, revealing that it exploits noise variation as a shortcut even for positive pairs.

Motivated by the analyses above, we propose Clean Representation-ANchored contrastive (CRAN) regularization. The key idea is to prevent InfoNCE from over-dispersing noisy representations beyond the discriminative structure present in clean representations. Specifically, CRAN anchors negative-pair dispersion in the contrastive objective using pairwise distances between clean-sample representations. In this way, clean representation geometry guides noisy diffusion representations, clipping unnecessary negative repulsion once the clean anchor is reached and thereby shifting optimization toward positive-pair alignment. As shown in Figure 1, CRAN mitigates the key failure modes of vanilla InfoNCE: it alleviates negative-pair over-dispersion and improves positive-pair alignment, reduces the sensitivity of representation distances to noise strength, and suppresses projection-head amplification of noise-induced distances. Consistently, Table 1 shows that CRAN reduces FID from 28.5 to 26.3 over vanilla InfoNCE, demonstrating that CRAN effectively blocks the noise shortcut and unlocks the potential of InfoNCE for diffusion transformer training.

1^{1}Simply lowering the InfoNCE temperature does not remove this shortcut: Table 7 shows that temperature tuning still fails to recover the expected benefit of InfoNCE.

Table 2: Unified view of representation regularization methods for diffusion training. PP: positive; NN: negative; x0i/xti/xt−Δti\mathbf{x}_0^i / \mathbf{x}_t^i / \mathbf{x}_{t-\Delta t}^i: clean/noisy/less-noisy query image; zti=gψ(fθk(xti))\mathbf{z}_t^i = g_{\psi}(f_{\theta}^k(\mathbf{x}_t^i)): k-th block feature of noisy query projected by head gψg_{\psi}. sg: stop-gradient; d(⋅,⋅)d(\cdot,\cdot): distance function; fθ~f_{\tilde{\theta}}: EMA model; fk′f^{k'} with k′>kk' > k: deeper-layer block; hh: auxiliary reconstruction head. To ease the notation, we omit the temperature τ\tau in Dispersive Loss (Wang & He, 2025), InfoNCE, and CRAN. †\dagger indicates the use of external knowledge.

TypeMethodTarget / Pair ConstructionRegularization Objective
P-onlyREPA†^{\dagger} (Yu et al., 2024)External pretrained representation yi=Ei[d(zti,sg(yi))]\mathbf{y}^i = \mathbb{E}_i [d(\mathbf{z}_t^i, \mathrm{sg}(\mathbf{y}^i))]
LayerSync (Haghighi et al., 2025)Detached deeper-layer representation yi=Ei[d(zti,sg(yi))]\mathbf{y}^i = \mathbb{E}_i [d(\mathbf{z}_t^i, \mathrm{sg}(\mathbf{y}^i))]
SRA (Jiang et al., 2026)Deeper and less noisy EMA representation yi=fθk′(xti)\mathbf{y}^i = f_{\theta}^{k'}(\mathbf{x}_t^i)Ei[∥zti−sg(yi)∥22]\mathbb{E}_i \left[ \|\mathbf{z}_t^i - \mathrm{sg}(\mathbf{y}^i)\|_2^2 \right]
SRA2 (Wang et al., 2026)Reconstructing VAE latent of clean image yi=x0i\mathbf{y}^i = \mathbf{x}_0^iEi[∥h(zti)−sg(yi)∥22]\mathbb{E}_i \left[ \|\mathbf{h}(\mathbf{z}_t^i) - \mathrm{sg}(\mathbf{y}^i)\|_2^2 \right]
N.-onlyDisp. Loss (Wang & He, 2025)In-batch negatives {yj=ztj}j≠i\{\mathbf{y}^j = \mathbf{z}_t^j\}_{j\neq i}log⁡Ei,j[exp⁡(−∥zti−yj∥22)]\log \mathbb{E}_{i,j} [\exp(-\|\mathbf{z}_t^i - \mathbf{y}^j\|_2^2)]
P + N.InfoNCEPositive yi\mathbf{y}^i and in-batch negatives {yj}j≠i\{\mathbf{y}^j\}_{j\neq i}−Ei[log⁡exp⁡(−d(zti,yi))∑jexp⁡(−d(zti,yj))]-\mathbb{E}_i \left[ \log \frac{\exp(-d(\mathbf{z}_t^i, \mathbf{y}^i))}{\sum_j \exp(-d(\mathbf{z}_t^i, \mathbf{y}^j))} \right]
CRAN (ours)InfoNCE + clean-representation anchor m=Ei,j[d(z0i,z0j)]m = \mathbb{E}_{i,j} [d(\mathbf{z}_0^i, \mathbf{z}_0^j)]log⁡exp⁡(−d(zti,yi))∑jexp⁡(−min⁡(d(zti,yj),m))\log \frac{\exp(-d(\mathbf{z}_t^i, \mathbf{y}^i))}{\sum_j \exp(-\min(d(\mathbf{z}_t^i, \mathbf{y}^j), m))}

Extensive experiments in Section 4 verify the effectiveness of CRAN, which achieves significant improvements over feature-alignment methods using internal features. Notably, using only internal feature contrastive learning, CRAN matches REPA Yu et al. (2024), which relies on an external strong DINOv2 encoder Oquab et al. (2024), under the same training budget.

References (80)