Manuscript Offprint
arXiv:2610.22885Learning to Be Guided: Shaping Latent Geometry for Classifier-Free Guidance
ABSTRACT
Classifier-free guidance (CFG) is a standard component of conditional diffusion models, and guided generation performance has become the de facto measure of state-of-the-art models. Recent work on latent diffusion models seeks to learn latent spaces that are easier to model with diffusion. However, under CFG, generation additionally depends on how conditions are arranged in the latent space. We study this arrangement under discrete class conditions, termed class geometry, and investigate what class geometry allows a latent space to work well with CFG. Under a Gaussian class model, we show that shifting variance from intra- to inter-class at fixed total variance makes classes more distinguishable under noise, and derive a noisy posterior objective whose per-sample descent direction is proportional to the oracle CFG correction. Based on the analysis, we propose Prototype Regularization (PR), a lightweight surrogate for the intractable noisy posterior objective, which applies a cosine prototype classifier to spatially pooled latents. With a controlled training budget (20 epochs for VAE, 80 epochs for DiT), adding PR to an LDM baseline reduces guided gFID on ImageNet from 3.31 to 2.28, surpassing a DINOv3-aligned VA-VAE (2.44) with negligible overhead. We further demonstrate that PR generalizes to pseudo-labels derived from clustering, continuous text-embedding conditions, and video latents. Together, our findings highlight class geometry as a critical factor in guided generation and take a first step toward CFG-compatible representation learning. Our project page is available at: https://maps-research.github.io/cfg-geometry/.
1 INTRODUCTION
Diffusion models (Ho et al., 2020; Song et al., 2021; Lipman et al., 2023) have become a predominant paradigm in generative modeling, with recent advances largely driven by conditional generation on auxiliary signals such as class labels and text (Rombach et al., 2022; Esser et al., 2024). Classifier-free guidance (CFG) (Ho & Salimans, 2021) is a standard technique for strengthening the conditioning: during sampling, a single model makes conditional and unconditional predictions, and their displacement (i.e., the CFG correction) is amplified by a guidance scale . CFG improves generation quality and has become a crucial component of state-of-the-art models: headline results are generally reported under CFG, usually with a large margin over unguided sampling. Consequently, guided performance has become the de facto measure of a conditional diffusion model.
In parallel, latent diffusion models (LDMs) (Rombach et al., 2022) have become the prevailing approach for generating high-dimensional data: an autoencoder first compresses data into a compact latent space, and a diffusion model is then trained in this latent space. A growing line of research designs latent spaces that are easier to model, either by aligning latents with pretrained representations (Yao et al., 2025; Leng et al., 2025) or by adopting pretrained representations directly as the latent space (Zheng et al., 2026; Shi et al., 2026), while another line of analysis studies which properties of a latent space make it easier for diffusion models to learn (Skorokhodov et al., 2025; Zhong et al., 2026; Liu et al., 2026). These efforts primarily approach latent design through the lens of diffusability, i.e., how easily a diffusion model learns the latent distribution. Under CFG,
*Equal contribution. Correspondence to: {haoming.liu, hongyi.wen}@nyu.edu.
however, the guided score for a condition takes the form , where the second term introduces a condition-dependent correction into the sampling dynamics. Hence, diffusability alone does not fully capture how a latent space interacts with guidance.
Intuitively, the correction term pushes toward regions where is more probable, and this push is shaped by how latents of different conditions are arranged relative to one another. More precisely, since is evaluated on noisy latents, what matters is how distinguishable this arrangement remains under noise corruption. To characterize this arrangement more explicitly, we ground our analysis in discrete class conditions, where it reduces to the layout of classes, termed class geometry. We thus ask: what class geometry allows a latent space to work well with CFG?
We address this question by analyzing the CFG correction term through the lens of class geometry (Sec. 2). Specifically, under a Gaussian class model, we derive the oracle CFG correction in closed form: it contrasts the target class mean against competing class means, weighted by their noisy posteriors. We then show that, at fixed total variance, reallocating variance from intra-class to inter-class makes classes more distinguishable under noise, so the target class posterior concentrates earlier in denoising. Finally, we express this geometric preference as a cross-entropy objective on the noisy class posterior, whose per-sample descent direction is proportional to the oracle correction.
Guided by our analysis, we propose Prototype Regularization (PR), a tractable surrogate for the posterior objective on clean latents (Sec. 3). In practice, PR applies a cosine prototype classifier to spatially pooled latents, and we show that its gradient forms a target-versus-competitor contrast analogous to that in the oracle CFG correction. On ImageNet class-conditional generation, adding PR to an LDM baseline reduces guided gFID from 3.31 to 2.28, outperforming DINOv3-aligned (Siméoni et al., 2025) VA-VAE (2.44) (Yao et al., 2025) with negligible overhead (Sec. 4.2).
To isolate the source of this gain, we transplant PR class centers into LDM latents and recover most of PR's guided improvement, indicating that the gain stems largely from class geometry (Sec. 4.3). We further demonstrate the versatility of PR through extensions to pseudo-labels, video latents, and continuous text conditions (Sec. 4.4, 4.5, 4.6). Since PR relies only on discrete partitions to promote a cluster geometry, these results suggest that it applies beyond ground-truth labels whenever this geometry stays informative under noise. Together, our work highlights class geometry as a critical factor in guided generation and takes a first step toward CFG-compatible representation learning.
Our contributions are threefold:
• We analyze CFG through the lens of class geometry. Under a Gaussian class model, we derive the closed-form oracle correction, show that shifting variance from intra- to inter-class at fixed total variance improves class distinguishability under noise, and formulate a noisy posterior objective whose per-sample descent direction is proportional to this correction.
• We propose Prototype Regularization (PR), a lightweight surrogate for the noisy posterior objective that shapes class geometry. By classifying clean latents against prototypes, PR yields gradients analogous to the target-versus-competitor contrast in the oracle correction.
• We show that PR generalizes across label sources, modalities, and condition types, suggesting its effectiveness as a CFG-compatible geometry regularizer over discrete partitions.
2.1 PRELIMINARIES
Latent Diffusion Models. A latent diffusion model (LDM) (Rombach et al., 2022) operates in a compressed latent space learned by an autoencoder. An encoder maps the raw data to a compact latent code with , and a decoder reconstructs . For images, the autoencoder is trained with . The diffusion model is then trained in the resulting latent space, where the latents are typically standardized via scalar factors or per-channel statistics.
Rectified Flow. Rectified flow (Liu et al., 2023; Lipman et al., 2023) is a widely adopted training objective for diffusion models. For a clean latent , we construct the linear interpolant , with independent noise , , and train a neural network to predict the velocity target by minimizing .
(a) Oracle Correction Strength

(b) Target-Class Posterior
(c) Posterior Losses
—Clean (t = 1) —Noisy (t ~ U(0, 1))
Figure 1: Simulations under the Gaussian class model with classes and latent dimensions (Eq. 4). (a) Oracle CFG correction strength along time ( is clean), for varying inter-class variance fraction . The correction vanishes once the target-class posterior concentrates. (b) Monte Carlo average of the analytic target-class posterior under forward corruption. Larger yields earlier posterior concentration. (c) Posterior losses (normalized by ) versus , on clean-only and uniform-time corrupted latents. Both posterior losses are non-increasing in .
Classifier-Free Guidance. Classifier-free guidance (CFG) (Ho & Salimans, 2021) amplifies the effect of conditioning during sampling to obtain higher-fidelity generations. A single network is trained with condition dropout to produce both a conditional prediction and an unconditional prediction . The guided velocity is , where is the guidance scale.
2.2 A GEOMETRIC VIEW OF CLASSIFIER-FREE GUIDANCE
How Class Geometry Enters CFG. Under rectified flow (Liu et al., 2023), let and be the Bayes-optimal conditional and unconditional predictors. Substituting , the oracle CFG correction reduces to:
Overall, the correction captures how conditioning on the target class changes the posterior estimate of the clean latent. To gain concrete intuition on how class geometry shapes , we derive a closed form of Eq. 1 under a simplified setting. Suppose the condition indexes discrete classes, each with a Gaussian class-conditional prior with shared within-class variance , which we refer to as the Gaussian class model. Let denote the posterior class probability. We obtain:
Therefore, the oracle CFG correction can be expressed as a posterior-weighted sum of displacements from the competing class means toward the target mean, with shaping both the prefactor and the posterior weights. The center displacements define the class contrasts, while the posterior weights determine which contrasts are emphasized at each noisy state . When the target class dominates the posterior (i.e., ), the weights of all competing classes vanish, eliminating the target-versus-competitor contrast. This behavior is illustrated in Fig. 1(a) and Fig. 1(b).
Class Distinguishability under Noise. To understand how class geometry governs this posterior concentration, we examine class distinguishability under noise corruption. Under the same Gaussian model, the class-conditional distribution of is , so the squared standardized distance between classes and is given by:
To isolate the effect of class geometry from changes in latent scale, we consider a controlled family of latent distributions. With class priors held fixed, we choose the reference class means satisfying and , where is the latent dimension, and set:
Under this controlled family, the total variance remains , with inter-class and intra-class contributions of and , respectively. Increasing thus reallocates variance from intra-class to inter-class, scaling all by a common factor at every , so the noisy classification problem only becomes easier. Classes therefore remain distinguishable under stronger corruption, and the target-class posterior concentrates earlier along the denoising process, as illustrated in Fig. 1(b).
2.3 A CFG-MOTIVATED REPRESENTATION OBJECTIVE
Motivated by how CFG contrasts classes through the noisy posterior probabilities in Eq. 2, we seek representations that make the target class more distinguishable from its competitors under corruption. We express this geometric preference through an ideal posterior cross-entropy objective:
where is the true noisy class posterior, and denotes the conditional entropy of the class label given the corrupted latent. This objective is directly related to the oracle correction via its input gradient. With the posterior function held fixed, the per-sample descent direction satisfies:
Therefore, the ideal posterior objective provides a per-sample latent descent direction proportional to the oracle CFG correction. Note that Eq. 5 is defined at a single noise level, whereas diffusion training and sampling span all noise levels. We therefore average it over a chosen time distribution , obtaining a family of posterior objectives . Fig. 1(c) plots the losses for two choices of against : the posterior loss on clean latents ( ) and its average over . Both losses are divided by (i.e., the entropy of a uniform distribution over the classes), so a value of one corresponds to complete class uncertainty in this equal-prior setting.
Within the family of class geometries in Eq. 4, every is non-increasing in (Appendix E.8): lower loss corresponds to larger inter-class separation and smaller intra-class spread, which keep classes distinguishable under stronger noise. Both losses in Fig. 1(c) decrease accordingly, with the clean loss saturating at a smaller , while the noise-averaged loss favors further separation more persistently. In line with this, we empirically find that uniform-time supervision can over-regularize the representation (e.g., over-smoothing its spatial variation), whereas clean-only supervision is sufficient to yield notable gains in guided generation (Appendix D.1).
In summary, we obtain a family of posterior objectives whose per-sample descent directions follow the oracle CFG correction (Eq. 6). Our fixed-variance analysis further motivates minimizing these objectives to promote class separation and compactness. To translate these objectives into practical regularizers, one needs to choose and a tractable approximation of .
3 PROTOTYPE REGULARIZATION
Sec. 2.3 motivates as ideal objectives for CFG-compatible representations, but they cannot be optimized directly: the true posterior is defined by the very latent distribution being learned. Since the diffusion model is trained in the latent space fixed by the autoencoder, we instead optimize a practical surrogate during autoencoder training, termed Prototype Regularization (PR). PR addresses both requirements identified above: it adopts clean-only supervision ( ), and it approximates with a lightweight prototype classifier that mirrors the posterior of a Gaussian class model.
Prototype classifier on pooled latents. Given a latent , we obtain a global feature and associate each class with a learnable prototype , a proxy for its class mean. With and , the prototype posterior and the PR loss are:
where c is the class label and is a fixed temperature. Average pooling restricts PR to the spatial mean of z, leaving the residual unconstrained; this avoids pulling the full latent toward a class template, which may constrain layout and reduce diversity. Normalization makes the objective depend only on angular alignment, which excludes the trivial minimizer of inflating feature norms.
Connection to CFG correction. The posterior objective in Eq. 5 is well-defined on clean latents , where it equals , whereas the gradient identity in Eq. 6 applies for . Under the Gaussian class model with equal priors and equal-norm means, the clean posterior satisfies . Its gradient is the limit of the posterior gradient in Eq. 6, providing a clean-latent counterpart to the CFG-related descent direction. PR adopts a similar softmax form on normalized features, yielding the negative gradient:
This gradient shares the class-contrast form of Eq. 2, with normalized prototypes replacing class means and classifier probabilities replacing posterior probabilities , giving greater weight to more probable competitors. This correspondence holds at the normalized feature ; gradients to the original latent additionally pass through normalization and pooling. Appendix D presents ablations on PR variants, such as the prototype shape, the classifier type, and supervision on noisy latents.
Training objective. We train the autoencoder with:
where the reconstructive terms in retain instance-specific information alongside the class structure from PR. Following Esser et al. (2021) and Rombach et al. (2022), is set adaptively by balancing encoder last-layer gradient norms against the reconstruction term.
Beyond class labels. PR only requires a partition of the data, so ground-truth labels can be replaced by pseudo-labels from clustering pretrained features, with one prototype per cluster. Moreover, the regularization labels need not match the generation condition: once the autoencoder is trained with PR, the diffusion model can be trained on other downstream conditions, discrete or continuous. We show that PR remains effective in these settings (Sec. 4.4, 4.6).
4 EXPERIMENTS
4.1 EXPERIMENTAL SETUP
Our primary testbed is class-conditional image generation on ImageNet (Deng et al., 2009) at resolution. We build on the VA-VAE codebase (Yao et al., 2025) and use a convolution-based encoder/decoder with a latent shape of , paired with LightningDiT-XL/1 as the stage-2 backbone. We use the same number of training epochs for all methods (20 epochs for stage-1 and 80 epochs for stage-2) for fair comparison. All ImageNet experiments in the main text are trained on NVIDIA H100 GPUs; a subset of appendix experiments uses 2 GPUs (with 10 epochs for stage-1 and 30 epochs for stage-2). Full hyper-parameter details are provided in Appendix C.
We use generation FID (gFID) (Heusel et al., 2017) as our primary metric, which measures how closely generated images match the training distribution. For all results with classifier-free guidance, we report gFID at the best guidance scale , selected via a guidance scale sweep using gFID computed on 5K samples. When comparing against baselines, we follow the standard practice and additionally report sFID, Inception Score (IS), Precision, and Recall using the ADM evaluation toolkit (Dhariwal & Nichol, 2021). All metrics are computed over 50K samples unless otherwise stated. Setups for Sec. 4.5 and Sec. 4.6 are described in their respective subsections.
4.2 CLASS-CONDITIONAL IMAGE GENERATION WITH GROUND-TRUTH LABELS
We compare PR against LDM (Rombach et al., 2022) and VA-VAE (Yao et al., 2025). We trained two VA-VAE variants, aligned with DINOv3-B and DINOv3-L (Siméoni et al., 2025), respectively. Our method integrates PR into LDM training. On reconstruction fidelity, we report PSNR, LPIPS, and rFID. Overall, all methods perform comparably, with VA-VAE holding a marginal edge. PR therefore does not sacrifice reconstruction quality for class geometry. Meanwhile, PR raises Purity@10 (i.e., the fraction of each latent's 10 nearest neighbors that share its class) from 0.020 (LDM) to 0.279, about 4× that of the strongest VA-VAE variant (0.071), indicating substantially more class-consistent local neighborhoods. PR achieves this at negligible cost, whereas VA-VAE slows stage-1 training throughput by about 25% due to the additional representation alignment.
Table 1: Results of class-conditional generation on ImageNet. All quality metrics are evaluated with 50K samples. Purity measures the fraction of each latent's nearest neighbors that share its class, averaged over 50K normalized validation latents. Best results are highlighted in bold.
| Method | Stage 1 | Stage 2 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Reconstruction | Geometry Purity ↑ | Speed Steps/s ↑ | w/o CFG gFID ↓ | w/ CFG | |||||||
| rFID ↓ | PSNR ↑ | LPIPS ↓ | gFID ↓ | gFID ↓ | sFID ↓ | IS ↑ | Precision ↑ | Recall ↑ | |||
| LDM | 0.308 | 27.07 | 0.101 | 0.020 | 2.16 | 13.09 | 3.31 | 4.68 | 237.73 | 0.859 | 0.504 |
| VA-VAE (DINov3-B) | 0.280 | 27.09 | 0.099 | 0.053 | 1.65 | 9.76 | 2.64 | 4.94 | 236.02 | 0.828 | 0.557 |
| VA-VAE (DINov3-L) | 0.275 | 27.06 | 0.099 | 0.071 | 1.61 | 9.01 | 2.44 | 4.83 | 242.17 | 0.816 | 0.564 |
| LDM + PR (Ours) | 0.277 | 26.95 | 0.101 | 0.279 | 2.13 | 11.59 | 2.28 | 4.87 | 269.85 | 0.808 | 0.585 |
(a) Energy Allocation

(b) Target-Class Distinguishability

(c) CFG Sweep

Figure 2: (a) Energy decomposition of per-channel normalized latents into global mean , inter-class variance , and intra-class variance . (b) Average target-class posterior on noised validation latents (solid) and CFG sampling trajectories (dotted), where is computed analytically from the empirical distribution of ImageNet training latents under Gaussian forward corruption. (c) gFID (10K samples) versus guidance scale ; diamonds mark the minima of the displayed curves (). PR allocates more energy to inter-class variance, makes the target class identifiable earlier and more confidently, and reaches a lower best gFID at a larger .
On the generation side, the gains of PR concentrate on guided settings. Without CFG, PR improves over LDM (13.09 → 11.59) but trails both VA-VAE variants. With CFG, PR takes the lead, achieving the best gFID (2.28), IS (269.85), and Recall (0.585) among all methods. Moreover, the gFID ranking with CFG is consistent with the Purity ranking, while the ranking without CFG differs. This suggests that class geometry is particularly relevant to guided generation quality, which we investigate further in Section 4.3. Both VA-VAE and PR exhibit lower Precision and higher Recall than LDM under CFG, suggesting broader coverage of the data distribution at a cost in sample fidelity.
Figure 2 examines the latent spaces from three complementary angles: (a) We decompose the energy of per-channel normalized latents into a global mean, inter-class variation, and intra-class variation. In LDM, over of the energy belongs to the intra-class portion. VA-VAE mildly increases inter-class energy, but shifts a large portion to the global mean, a spatial template shared by all latents. PR reallocates intra-class energy to inter-class variance, yielding the largest inter-class share among all methods. (b) We measure the average posterior of the target class on both forward-noised validation latents and intermediate states along CFG sampling trajectories, with computed from the empirical training-latent distribution under Gaussian forward corruption. PR yields substantially higher target-class posteriors across a broad range of noise levels, demonstrating improved class distinguishability under noise. (c) Sweeping the guidance scale, PR reaches its optimum at a larger and degrades more slowly beyond it, resulting in a wider near-optimal range. This suggests that class geometry shaped via PR allows the model to benefit from stronger guidance.
4.3 UNDERSTANDING THE GAINS THROUGH CENTER TRANSPLANTATION
Figure 2(a) shows that PR primarily reallocates latent energy to inter-class variance (i.e., more separated class centers). This raises a natural question: can an unregularized latent space benefit from the class geometry of PR in a plug-and-play manner? To answer this, we transplant reference class centers into the LDM latent space. For a latent of class , we replace its native center with a reference center, , which preserves intra-class deviations, and train a stage-2
Table 2: Center transplantation on LDM latents (). Rescaled LDM centers match the inter-class energy of full PR centers. Random centers match the pooled PR energy. Spatially constant centers are broadcast over the spatial grid. denotes the best CFG scale.
| Base Latent | Center Construction | Center Shape | gFID@50K | ||
|---|---|---|---|---|---|
| w/o CFG | w/ CFG | ||||
| LDM + PR | Native | - | 11.59 | 2.28 | 2.5 |
| LDM | Native | - | 13.09 | 3.31 | 2.0 |
| LDM | LDM (Rescaled) | 12.58 | 2.89 | 2.0 | |
| LDM | PR | 12.79 | 2.63 | 3.5 | |
| LDM | PR | 12.65 | 2.52 | 4.0 | |
| LDM | Random Directions + PR Norms | 13.74 | 3.16 | 4.5 | |
model on . To ensure the decoder receives latents in its native space, we apply the inverse mapping before decoding. We use two PR references: the full center and its spatially pooled version. As controls, we use LDM's own centers rescaled to match the inter-class energy of the full PR centers, and random directions with PR's per-class norms. As presented in Tab. 2, transplanting PR centers improves guided generation (gFID with pooled centers), while the unguided setting changes only marginally (). Increasing the inter-class energy of LDM alone yields a partial gain (2.89), and PR centers improve further beyond this energy-matched control. In contrast, random directions provide little benefit with CFG and even hurt unguided generation. These results indicate that PR centers have a better arrangement, and the gain does not stem from increased inter-class energy alone. Besides, pooled centers outperform spatially resolved ones (2.52 vs. 2.63), so the useful class signal is mainly a global channel-wise offset.
Interestingly, transplanting PR or random centers shifts upward (3.5 to 4.5), whereas rescaling LDM's own centers does not (2.0). However, a larger does not by itself imply better geometry: random centers admit the strongest guidance yet bring little gain in guided quality, while rescaled LDM centers improve quality without changing . Hence, the optimal guidance scale and the quality attained at it should be considered separately. Finally, center transplantation recovers most of PR's guided gain but only a small portion of its unguided gain, and thus does not fully reproduce the benefits of PR. This is likely because transplantation only alters inter-class separation and leaves intra-class spread untouched, whereas PR reshapes both during stage-1 training.
4.4 GENERALIZATION UNDER PSEUDO-LABELS AND NON-IDENTICAL LABEL SETS
Building on PR's performance gains on ground-truth class labels, we further investigate whether PR remains effective on other types of labels, and whether the two stages must share the same label set. To this end, we construct unsupervised labels by clustering the [CLS] tokens of DINOv3-L (Siméoni et al., 2025) with spherical -means, setting to match the number of ImageNet classes. We then evaluate all combinations of stage-1 PR labels and stage-2 conditioning labels (Tab. 3). When conditioning on DINO clusters, we sample cluster labels in proportion to cluster sizes during evaluation.
Table 3: PR with different label set pairings for stage-1 regularization and stage-2 conditioning. We report guided gFID / unguided gFID below. The best result per-column is in bold.
| PR Labels | Stage 2 Condition | |
|---|---|---|
| Ground-truth | DINO Clusters | |
| None | 3.31 / 13.09 | 3.58 / 13.31 |
| Ground-truth | 2.28 / 11.59 | 2.42 / 11.82 |
| DINO Clusters | 2.34 / 11.44 | 2.55 / 11.47 |
Using ground-truth labels in both stages yields the best guided generation (2.28). Replacing the stage-1 labels with DINO clusters recovers most of this gain (2.34, about of the improvement over the no-PR baseline) and even improves unguided generation (11.44 vs. 11.59). When stage-2 conditions on DINO clusters, PR also substantially improves over the no-PR baseline and 2.55 with CFG). Notably, under DINO conditioning, PR regularized with ground-truth labels performs best with CFG (2.42), even though its stage-1 labels differ from the stage-2 condition. These results show that PR neither relies on ground-truth labels nor requires the two stages to share the same label set, making it applicable to settings without human annotations.
Table 4: Generalization to video latents on UCF-101 (Soomro et al., 2012) using LeanVAE-16 (Cheng & Yuan, 2025) and Latte-XL/2 (Ma et al., 2025). Official denotes the VAE and Latte-XL/2 checkpoints provided by LeanVAE, used without further training. We report FVD and action classification accuracy with and without CFG. The best results are in bold.
| Stage 1 (LeanVAE) | Stage 2 (Latte-XL/2) | w/ CFG | w/o CFG | ||
|---|---|---|---|---|---|
| FVD ↓ | Accuracy (%) ↑ | FVD ↓ | Accuracy (%) ↑ | ||
| Official | Official | 167.0 | 92.9 | 340.2 | 87.2 |
| Official | Fine-Tuned | 161.4 | 98.5 | 302.0 | 92.7 |
| Fine-Tuned (Recon Only) | Fine-Tuned | 152.7 | 99.0 | 287.3 | 93.0 |
| Fine-Tuned (PR, Ours) | Fine-Tuned | 140.1 | 98.9 | 275.7 | 93.0 |
Table 5: ImageNet text-to-image generation using different Stage-1 latent representations. All metrics use 50K images generated from held-out validation captions. All alignment to CLIP-L adopts its text embeddings. CLIP denotes mean cosine similarity of CLIP embeddings calculated from text captions and generated images. All cluster labels use . The best results are in bold.
| Method | w/ CFG | w/o CFG | ||||
|---|---|---|---|---|---|---|
| gFID Train ↓ | gFID Val ↓ | CLIP ↑ | gFID Train ↓ | gFID Val ↓ | CLIP ↑ | |
| LDM | 3.15 | 2.90 | 0.2775 | 10.38 | 7.52 | 0.2577 |
| VA-VAE (DINOv3-L) | 2.53 | 2.67 | 0.2814 | 8.02 | 5.65 | 0.2620 |
| Cosine Alignment (CLIP-L) | 2.93 | 3.04 | 0.2799 | 9.52 | 6.84 | 0.2590 |
| Cosine Alignment (DINOv3-L) | 2.86 | 2.78 | 0.2784 | 9.35 | 6.74 | 0.2585 |
| LDM + PR (GT Labels) | 2.51 | 2.35 | 0.2811 | 9.63 | 6.87 | 0.2570 |
| LDM + PR (CLIP-L Clusters) | 2.52 | 2.42 | 0.2813 | 10.15 | 7.36 | 0.2578 |
| LDM + PR (DINOv3-L Clusters) | 2.53 | 2.46 | 0.2818 | 9.41 | 6.72 | 0.2575 |
4.5 GENERALIZATION TO VIDEO LATENTS
We further examine whether PR generalizes to video latents. We conduct experiments on UCF-101 (Soomro et al., 2012), a human action video dataset spanning 101 action classes, and adopt LeanVAE-16 (Cheng & Yuan, 2025) as the base autoencoder. This VAE is trained with reconstruction objectives and compresses each 17-frame clip into a latent of shape (). Starting from the official VAE checkpoint, we fine-tune for 3 epochs using either reconstruction alone or reconstruction with PR; for video latents, PR's average pooling spans both the spatial and temporal dimensions. We then fine-tune a Latte-XL/2 model (Ma et al., 2025) on each of three latent spaces: the official VAE, the VAE fine-tuned with reconstruction alone, and the VAE fine-tuned with PR. All three Stage 2 runs are initialized from the EMA weights of the same Latte-XL/2 checkpoint provided by LeanVAE and fine-tuned for 50K steps with a global batch size of 10. We also evaluate the VAE and Latte-XL/2 checkpoints provided by LeanVAE without further training as a reference. We report FVD (over 2048 clips), which measures the distance between the generated and real video distributions, and action classification accuracy from a pre-trained UCF-101 classifier, which measures the class consistency of conditional generation. As shown in Tab. 4, PR improves FVD in both settings with on-par accuracy, reducing FVD from 152.7 to 140.1 with CFG and from 287.3 to 275.7 without CFG. These results suggest that the benefit of PR is not specific to images and extends to latent spaces of other modalities.
4.6 GENERALIZATION TO CONTINUOUS CONDITIONING
Finally, we examine whether PR benefits generation under continuous conditioning signals. We consider text-to-image generation on ImageNet: we caption each image with Florence-2-large (Xiao et al., 2024) and encode the caption into a CLIP ViT-L/14 text embedding (Radford et al., 2021), which replaces the class embedding in LightningDiT (Yao et al., 2025) through a small MLP adapter. Besides LDM and VA-VAE (DINOv3-L), we compare against two continuous alignment baselines, which align latents via cosine similarity to pre-trained features projected to the channel dimension by PCA. We apply 1000-class PR with ground-truth classes, clusters of CLIP-L text embeddings, and DINOv3-L [CLS] tokens. All metrics are computed on 50K images generated from held-out validation captions. As shown in Tab. 5, PR variants lead on all three metrics under guidance, with cluster labels consistently outperforming cosine alignment to the same representation. Meanwhile, clusters of CLIP-L text or DINOv3-L image embeddings yield performance comparable to ground-truth classes. Without CFG, VA-VAE performs best, consistent with its leading gFID in Tab. 1. Since captions typically group around shared objects or scenes, the latent geometry induced by PR may help organize representations along semantic groupings reflected in the captions, making it informative for text-conditioned generation. Together, these results demonstrate that PR improves guided text-to-image generation without requiring ground-truth class labels.
5 RELATED WORK
Latent Representation for Diffusion Models. Latent diffusion models (LDMs) adopt a two-stage paradigm (Rombach et al., 2022): an autoencoder maps high-dimensional data to a compact latent space, and a diffusion model learns to generate within it. Subsequent work expands the design space by widening the latent channels (Esser et al., 2024; Labs et al., 2025) and raising the compression ratio (Chen et al., 2025e). Recent work focuses on improving latent representations. One line of work uses pretrained representations as supervision: VA-VAE (Yao et al., 2025) aligns latents with pretrained features during autoencoder training; REPA-E (Leng et al., 2025) enables end-to-end tuning through REPA alignment (Yu et al., 2024); MAETok (Chen et al., 2025b) uses masked modeling with auxiliary decoders. Another line builds on pretrained encoders: AlignTok (Chen et al., 2025a) adapts a pretrained encoder through multi-stage training; RAE (Zheng et al., 2026; Singh et al., 2026) uses frozen pretrained representations as diffusion latents; and SVG (Shi et al., 2026) augments frozen DINO features with learned residual features. VTP (Yao et al., 2026) further explores joint training objectives, combining image-text contrastive, self-supervised, and reconstruction losses.
Diffusability of Latent Representations. Recent work studies latent diffusability (i.e., how easily diffusion models learn a latent distribution). Some approaches focus on spectral structure and spatial equivariance: Skorokhodov et al. (2025) use scale-equivariance regularization to suppress excessive high-frequency content; EQ-VAE (Kouzelis et al., 2025) promotes equivariance by matching reconstructions of transformed latents to transformed images; SSVAE (Liu et al., 2026) studies latent spectral properties in video. Others regularize the latent distribution directly: UL (Heek et al., 2026) uses a learned diffusion prior; DMVAE (Ye et al., 2025) aligns the aggregate latent distribution with a reference via score-based distribution matching. Complementary studies examine multiple properties jointly: PAE (Yue et al., 2026) highlights spatial structure, local manifold continuity, and global semantics; Zhong et al. (2026) identify velocity irreducible variance, semantic separability, and spatial structure as consistent predictors of generation quality in a large-scale study.
Classifier-Free Guidance. Classifier-free guidance (CFG) (Ho & Salimans, 2021) strengthens conditioning at inference at the cost of reduced diversity, with subsequent works refining this trade-off in sampling (Karras et al., 2024; Kynkäänniemi et al., 2024). Analyses show that CFG does not sample from the intended tilted distribution (Bradley & Nakkiran, 2024; Chidambaram et al., 2024) and raises classification confidence while reducing diversity (Wu et al., 2024). It can be decomposed into a class-mean shift and contrastive components in linear models (Li et al., 2025), or viewed as pushing trajectories away from decision boundaries (Zhao & Schwing, 2026). Pavasovic et al. (2025) show that in high dimensions CFG acts mainly during class selection, consistent with the vanishing correction in Fig. 1(a). These works primarily analyze CFG under a given data distribution; we instead treat the latent space as a design variable and study which class geometry facilitates CFG.
Class Separation for Guided Generation. Recent work links CFG to class separation: Ventura et al. (2026) show that CFG distorts the conditional target when classes are poorly separated. MCLR (Li et al., 2026) attributes the reliance on CFG to weak separation between learned conditionals and enlarges it by maximizing inter-class likelihood ratios when training the generator; more broadly, guidance-free training internalizes the effect of CFG into the generator (Chen et al., 2025c; Tang et al., 2025; Chen et al., 2025d). ProtoDiffusion (Baykal et al., 2024) instead modifies the conditioning, replacing learned class embeddings with pretrained class prototypes. These methods change how the generator is trained or conditioned while keeping the data representation fixed, whereas PR reshapes the latent space itself to promote class separation in the diffusion target.
6 DISCUSSION
Unguided performance. PR primarily targets guided generation, where its gains concentrate; without guidance, it still improves over LDM but trails VA-VAE (Tab. 1). The remaining gap may stem from average pooling, which constrains only the channel dimension and leaves spatial structure unregularized, while suppressing high-frequency spatial components has been shown to be helpful for diffusability (Skorokhodov et al., 2025; Liu et al., 2026). Since PR leaves the spatial residual unconstrained, it can be combined with regularizers that shape other aspects of the latent space: applying PR on top of VA-VAE improves both guided and unguided generation (Appendix D.5).
Scope of analysis. Under Gaussian forward corruption, Tweedie's formula links the posterior gradient to the Bayes-optimal CFG correction (Eq. 6) without assuming Gaussian latents (Appendix E.7). The Gaussian class model additionally provides a closed-form correction and predicts how variance reallocation affects noisy class separation and posterior uncertainty. The empirical posterior trend is consistent with these predictions (Fig. 2(b)). Appendix F further discusses how class geometry relates to other CFG quantities, complementing the posterior-based analysis.
Design space of PR. PR instantiates the posterior objective through two design choices, the time distribution and the approximation of , both of which leave room for exploration (Appendix D.1). For , clean-latent supervision avoids the over-regularization of noisy supervision, though intermediate distributions may offer better trade-offs. For , the pooled prototype classifier is one of many ways to realize the target-versus-competitor contrast.
7 CONCLUSION
In this work, we study CFG-compatible representation learning through the lens of class geometry. Our analysis links the oracle CFG correction to how distinguishable classes remain under noise, which motivates Prototype Regularization (PR), a lightweight regularizer that shapes class geometry and improves guided generation. PR generalizes across label choices, data modalities, and condition signals, suggesting that aligning latent geometry through categorical priors is a simple yet effective way to design latent spaces for guided generation. Given that CFG is used almost universally at sampling time, we hope this work encourages treating CFG compatibility as an explicit and principled axis of latent design, alongside reconstruction and generation quality.
ACKNOWLEDGMENTS
This work is supported by the NYU Shanghai Center for Data Science. This work is also supported in part through the NYU IT High Performance Computing resources, services, and staff expertise.
REFERENCES
Gulcin Baykal, Halil Faruk Karagoz, Taha Binhuraib, and Gozde Unal. Protodiffusion: Classifier-free diffusion guidance with prototype learning. In Asian Conference on Machine Learning, pp. 106–120. PMLR, 2024.
Arwen Bradley and Preetum Nakkiran. Classifier-free guidance is a predictor-corrector. arXiv preprint arXiv:2408.09000, 2024.
Bowei Chen, Sai Bi, Hao Tan, He Zhang, Tianyuan Zhang, Zhengqi Li, Yuanjun Xiong, Jianming Zhang, and Kai Zhang. Aligntok: Aligning visual foundation encoders to tokenizers for diffusion models. arXiv preprint arXiv:2509.25162, 2025a.
Hao Chen, Yujin Han, Fangyi Chen, Xiang Li, Yidong Wang, Jindong Wang, Ze Wang, Zicheng Liu, Difan Zou, and Bhiksha Raj. Masked autoencoders are effective tokenizers for diffusion models. In Forty-second International Conference on Machine Learning, 2025b.
Huayu Chen, Kai Jiang, Kaiwen Zheng, Jianfei Chen, Hang Su, and Jun Zhu. Visual generation without guidance. In Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu (eds.), Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 8275–8295. PMLR, 13–19 Jul 2025c. URL https://proceedings.mlr.press/v267/chen25ac.html.
Huayu Chen, Hang Su, Peize Sun, and Jun Zhu. Toward guidance-free ar visual generation via condition contrastive alignment. In International Conference on Learning Representations, pp. 65862–65881, 2025d.
Junyu Chen, Han Cai, Junsong Chen, Enze Xie, Shang Yang, Haotian Tang, Muyang Li, and Song Han. Deep compression autoencoder for efficient high-resolution diffusion models. In International Conference on Learning Representations, volume 2025, pp. 96539–96560, 2025e.
Yu Cheng and Fajie Yuan. Leanvae: An ultra-efficient reconstruction vae for video diffusion models. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 15692–15702. IEEE, 2025.
Muthu Chidambaram, Khashayar Gatmiry, Sitan Chen, Holden Lee, and Jianfeng Lu. What does guidance do? a fine-grained analysis in a simple setting. Advances in Neural Information Processing Systems, 37:84968–85005, 2024.
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in neural information processing systems, 34:8780–8794, 2021.
Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 12873–12883, 2021.
Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, et al. Scaling rectified flow transformers for high-resolution image synthesis. In Forty-first international conference on machine learning, 2024.
Jonathan Heek, Emiel Hoogeboom, Thomas Mensink, and Tim Salimans. Unified latents (ul): How to train your latents. arXiv preprint arXiv:2602.17270, 2026.
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. Advances in neural information processing systems, 30, 2017.
Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. In NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications, 2021. URL https://openreview.net/forum?id=qw8AKxfYbI.
Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840–6851, 2020.
Tero Karras, Miika Aittala, Tuomas Kynkäänniemi, Jaakko Lehtinen, Timo Aila, and Samuli Laine. Guiding a diffusion model with a bad version of itself. Advances in Neural Information Processing Systems, 37:52996–53021, 2024.
Theodoros Kouzelis, Ioannis Kakogeorgiou, Spyros Gidaris, and Nikos Komodakis. EQ-VAE: Equivariance regularized latent space for improved generative image modeling. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=UWhW5YYLo6.
Tuomas Kynkäänniemi, Miika Aittala, Tero Karras, Samuli Laine, Timo Aila, and Jaakko Lehtinen. Applying guidance in a limited interval improves sample and distribution quality in diffusion models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=nAIhvNy15T.
Black Forest Labs, Stephen Batifol, Andreas Blattmann, Frederic Boesel, Saksham Consul, Cyril Diagne, Tim Dockhorn, Jack English, Zion English, Patrick Esser, et al. Flux. 1 kontext: Flow matching for in-context image generation and editing in latent space. arXiv preprint arXiv:2506.15742, 2025.
Xingjian Leng, Jaskirat Singh, Yunzhong Hou, Zhenchang Xing, Saining Xie, and Liang Zheng. Repa-e: Unlocking vae for end-to-end tuning with latent diffusion transformers. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 18262–18272. IEEE, 2025.
Xiang Li, Rongrong Wang, and Qing Qu. Towards understanding the mechanisms of classifier-free guidance. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 62835–62889. Curran Associates, Inc., 2025. doi: 10.52202/085713-2106. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/5ac55a8d65fb5ecd9ccaa852e21325db-Paper-Conference.pdf.
Xiang Li, Yixuan Jia, Xiao Li, Jeffrey A Fessler, Rongrong Wang, and Qing Qu. Mclr: Improving conditional modeling via inter-class likelihood-ratio maximization and unifying classifier-free guidance with alignment objectives. arXiv preprint arXiv:2603.22364, 2026.
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=PqvMRDCJT9t.
Shizhan Liu, Xinran Deng, Zhuoyi Yang, Jiayan Teng, Xiaotao Gu, and Jie Tang. Delving into latent spectral biasing of video vaes for superior diffusability, 2026. URL https://arxiv.org/abs/2512.05394.
Xingchao Liu, Chengyue Gong, and qiang liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=XVjTT1nw5z.
Xin Ma, Yaohui Wang, Xinyuan Chen, Gengyun Jia, Ziwei Liu, Yuan-Fang Li, Cunjian Chen, and Yu Qiao. Latte: Latent diffusion transformer for video generation. Transactions on Machine Learning Research, 2025.
Krunoslav Lehman Pavasovic, Jakob Verbeek, Giulio Biroli, and Marc Mezard. Classifier-free guidance: From high-dimensional analysis to generalized guidance forms. arXiv preprint arXiv:2502.07849, 2025.
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pp. 8748–8763. PmLR, 2021.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In 2022 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pp. 10674–10685. ieee, 2022.
Minglei Shi, Haolin Wang, Wenzhao Zheng, Ziyang Yuan, Xiaoshi Wu, Xintao Wang, Pengfei Wan, Jie Zhou, and Jiwen Lu. Latent diffusion model without variational autoencoder. In International Conference on Learning Representations, volume 2026, pp. 154506–154537, 2026.
Oriane Siméoni, Huy V Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seungeun Yi, Michaël Ramamonjisoa, et al. Dinov3. arXiv preprint arXiv:2508.10104, 2025.
Jaskirat Singh, Boyang Zheng, Zongze Wu, Richard Zhang, Eli Shechtman, and Saining Xie. Improved baselines with representation autoencoders. arXiv preprint arXiv:2605.18324, 2026.
Ivan Skorokhodov, Sharath Girish, Benran Hu, Willi Menapace, Yanyu Li, Rameen Abdal, Sergey Tulyakov, and Aliaksandr Siarohin. Improving the diffusability of autoencoders. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=2hEDcA7xy4.
Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=PxTIG12RRHS.
Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012.
Zhicong Tang, Jianmin Bao, Dong Chen, and Baining Guo. Diffusion models without classifier-free guidance. arXiv preprint arXiv:2502.12154, 2025.
Enrico Ventura, Beatrice Achilli, Luca Ambrogioni, and Carlo Lucibello. Emergence of distortions in high-dimensional guided diffusion models. arXiv preprint arXiv:2602.00716, 2026.
Yuchen Wu, Minshuo Chen, Zihao Li, Mengdi Wang, and Yuting Wei. Theoretical insights for diffusion guidance: A case study for Gaussian mixture models. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 53291–53327. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/wu24b.html.
Bin Xiao, Haiping Wu, Weijian Xu, Xiyang Dai, Houdong Hu, Yumao Lu, Michael Zeng, Ce Liu, and Lu Yuan. Florence-2: Advancing a unified representation for a variety of vision tasks. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4818–4829. IEEE, 2024.
Jingfeng Yao, Bin Yang, and Xinggang Wang. Reconstruction vs. generation: Taming optimization dilemma in latent diffusion models. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 15703–15712. IEEE, 2025.
Jingfeng Yao, Yuda Song, Yucong Zhou, and Xinggang Wang. Towards scalable pre-training of visual tokenizers for generation. In European Conference on Computer Vision, pp. 661–678. Springer, 2026.
Sen Ye, Jianning Pei, Mengde Xu, Shuyang Gu, Chunyu Wang, Liwei Wang, and Han Hu. Distribution matching variational autoencoder. arXiv preprint arXiv:2512.07778, 2025.
Sihyun Yu, Sangkyung Kwak, Huiwon Jang, Jongheon Jeong, Jonathan Huang, Jinwoo Shin, and Saining Xie. Representation alignment for generation: Training diffusion transformers is easier than you think. arXiv preprint arXiv:2410.06940, 2024.
Zhengrong Yue, Taihang Hu, Mengting Chen, Haiyu Zhang, Zihao Pan, Tao Liu, Zikang Wang, Jinsong Lan, Xiaoyong Zhu, Bo Zheng, et al. What matters for diffusion-friendly latent manifold? prior-aligned autoencoders for latent diffusion. arXiv preprint arXiv:2605.07915, 2026.
Xiaoming Zhao and Alex Schwing. Studying classifier (-free) guidance from a classifier-centric perspective. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pp. 13271–13279, 2026.
Boyang Zheng, Nanye Ma, Shengbang Tong, and Saining Xie. Diffusion transformers with representation autoencoders. In International Conference on Learning Representations, volume 2026, pp. 35791–35820, 2026.
Tianxiong Zhong, Xingye Tian, Xuebo Wang, Xin Tao, and Pengfei Wan. Diffusing in the right space: A systematic study of latent diffusability. arXiv preprint arXiv:2606.03578, 2026.
APPENDIX
The appendix is organized as follows:
• Appendix A presents UMAP visualizations of the learned VAE latents.
• Appendix B provides additional visualizations of noisy posterior and oracle velocity field.
• Appendix C provides full details of the experimental configurations.
• Appendix D reports additional experimental results.
• Appendix E derives the equations and claims stated in the main text.
• Appendix F derives complementary perspectives on classifier-free guidance (CFG).
A LATENT VISUALIZATIONS
LDM (Full Latent)

VA-VAE (DINov3-B) (Full Latent)
LDM (Spatially Pooled Latent)

VA-VAE (DINov3-B) (Spatially Pooled Latent)

VA-VAE (DINov3-L) (Full Latent)

VA-VAE (DINov3-L) (Spatially Pooled Latent)

LDM + PR (Ours) (Full Latent)

LDM + PR (Ours) (Spatially Pooled Latent)


Figure 3: UMAP visualization of full and spatially pooled latents from LDM, VA-VAE, and PR (ours). We encode 50K validation images and plot latents from 50 selected classes, colored by class label. Latents are normalized per dimension before UMAP. PR produces noticeably tighter and better separated class clusters. Zoom in for the best view. Better view with colors.
B CLASSIFIER-FREE GUIDANCE VISUALIZATIONS
Clean reference
Noise
Data


Figure 4: Noisy marginals of at several for toy Gaussian mixtures with fixed total variance but different allocations between inter-class and intra-class variance. Background colors mark the Maximum A Posteriori (MAP) decision regions , with opacity proportional to the confidence . With larger inter-class variance, classes become separable at smaller , i.e., at noisier levels, and the confident MAP regions align more closely with the true class supports.
Conditional
Unconditional
Difference
Data
95% Density Region → Conditional Velocity
95% Density Region → Unconditional Velocity
95% Density Region → Correction Velocity




Figure 5: Oracle velocity fields on toy Gaussian mixtures with fixed total variance. From top to bottom, the fraction of variance allocated to class means increases. For each space, we show the conditional velocity (conditioned on the red class), the unconditional velocity , and the correction at . Gray contours mark the 95% density region of , and dots mark the class means of . With clearer class geometry, the conditional and correction velocities point more consistently toward the target class mean, and the correction vanishes where the posterior concentrates on the target class. Zoom in for the best view. Better view with colors.
C EXPERIMENT CONFIGURATIONS
Table 6: Training and evaluation configurations for ImageNet experiments. Full-budget experiments use 8 GPUs; reduced-budget ablations use 2 GPUs. Both budgets use the same architectures and evaluation protocol, with experiment-specific CFG search ranges listed below.
| Configuration | Full Budget | Reduced Budget |
|---|---|---|
| Data and Architecture | ||
| Dataset | ImageNet, 256 × 256 | |
| GPUs per Run | 8 | 2 |
| Stage 1 Architecture | KL-VAE, downsampling factor 16 | |
| VAE Base Channels / Multipliers | 128 / (1, 1, 2, 2, 4) | |
| VAE Residual Blocks / Attention Resolution | 2 per level / 16 × 16 | |
| Latent Shape () | 32 × 16 × 16 | |
| Stage 2 Architecture | LightningDiT-XL/1 | |
| DiT Depth / Hidden Dimension / Heads | 28 / 1152 / 16 | |
| DiT Patch Size | 1 × 1 | |
| DiT Components | QK-Norm, SwiGLU, RoPE, RMSNorm | |
| Stage 1 Training | ||
| Image Preprocessing | Shortest-side resize to 256, random crop, no flip | |
| Base Objective | L1 + LPIPS + KL + adaptive adversarial loss | |
| KL Weight / Adversarial Weight Factor | ||
| Discriminator Start | 2,500 steps | |
| Optimizer (Generator and Discriminator) | Adam, (, ) = (0.5, 0.9) | |
| Learning Rate / Schedule | ||
| Batch Size per GPU | 32 | 32 |
| Global Batch Size | 256 | 64 |
| Training Epochs | 20 | 10 |
| Recorded Training Steps | 100,080 | 200,180 |
| Stage 2 Training | ||
| Latent Extraction | Frozen EMA encoder, posterior mode, center crop | |
| Latent Normalization | Per-channel mean and standard deviation | |
| Objective / Prediction | Linear-path flow matching / velocity | |
| Training Time Sampler | Logit-normal | |
| Optimizer | AdamW | |
| Optimizer (, ) | (0.9, 0.95) | (0.9, 0.995) |
| Learning Rate / Schedule | ||
| Weight Decay / Max Gradient Norm | 0 / 1.0 | |
| Batch Size per GPU | 128 | 128 |
| Global Batch Size | 1,024 | 256 |
| Training Duration | 80 epochs | ~30 epochs |
| Recorded Training Steps | 100,080 | 150,000 |
| Condition Dropout | 0.1 | |
| Shared Training Settings | ||
| Precision | BF16 mixed precision | |
| EMA Decay | 0.9999 | |
| Training Seed | 42 | |
| Sampling and Evaluation | ||
| Evaluation Weights | EMA | |
| Stage 1 Evaluation | 50K validation images; rFID, PSNR, LPIPS, L1 | |
| ODE Solver / Steps | Euler / 50 | |
| Sampling Time Grid | Uniform, no timestep shift | |
| CFG Interval | Enabled for ( denotes noise) | |
| CFG Selection | Minimum torch-FID over 5K generated samples | |
| Default CFG Grid | {1.25, 1.50, ..., 3.50} (extended by step of 0.5 if still improving) | |
| Final Generation Evaluation | 50K samples with selected CFG; 50K without CFG | |
| Generation Metrics / Evaluator | FID, sFID, IS, Precision, Recall / OpenAI ADM | |
| Default FID Reference | ImageNet training reference batch | |
| Additional T2I Evaluation | Validation-reference FID and image-prompt CLIP cosine | |
D ADDITIONAL EXPERIMENT RESULTS
D.1 ABLATION ON CLASSIFIER TYPE IN PR
Table 7: Ablation on the classifier type in PR (reduced compute budget). We vary the classifier head (cosine vs. linear) and the latent on which PR is applied (clean latents only vs. noisy latents at uniformly sampled timesteps). The cosine head on clean-only latents achieves the best rFID and gFID, both with and without CFG. Applying PR on uniform-time noisy latents over-regularizes the latent space: the top PCA component degenerates into a near-constant channel that fails to capture spatial variations (i.e., over-smoothed latents). The linear head, optimized with additional weight decay, collapses to a trivial solution that arbitrarily inflates the latent norm to enlarge the logits.
| Method | Stage 1 | Stage 2 | |||
|---|---|---|---|---|---|
| rFID ↓ | PSNR ↑ | LPIPS ↓ | gFID ↓w/ CFG | gFID ↓w/o CFG | |
| LDM | 0.285 | 27.13 | 0.100 | 4.56 | 18.79 |
| LDM + PR (Cosine Head, Clean-only Latent) | 0.279 | 26.75 | 0.103 | 3.24 | 17.11 |
| LDM + PR (Cosine Head, Uniform-time Noisy Latent) | 0.457 | 26.83 | 0.110 | 14.02 | 41.63 |
| LDM + PR (Linear Head, Clean-only Latent) | 0.319 | 26.64 | 0.108 | 21.55 | 64.18 |
D.2 ABLATION ON PROTOTYPE RESOLUTION
Table 8: Ablation on prototype shape (reduced compute budget). All variants use the default PR setting (cosine prototype classifier on clean-only latents) and differ only in the output shape of spatial average pooling applied before the classifier, where corresponds to no pooling. Overall, prototypes with lower resolutions perform best: prototypes (i.e., global average pooling) achieve the best rFID and gFID without CFG, and prototypes achieve the best gFID with CFG, while further increasing prototype resolution consistently degrades generation quality. This suggests that reducing the spatial resolution of prototypes benefits generation, likely because it avoids imposing class-level layout constraints on the latent space.
| Method | Stage 1 | Stage 2 | |||
|---|---|---|---|---|---|
| rFID ↓ | PSNR ↑ | LPIPS ↓ | gFID ↓w/ CFG | gFID ↓w/o CFG | |
| LDM | 0.285 | 27.13 | 0.100 | 4.56 | 18.79 |
| LDM + PR (1 × 1 Prototypes) | 0.279 | 26.75 | 0.103 | 3.24 | 17.11 |
| LDM + PR (2 × 2 Prototypes) | 0.312 | 26.41 | 0.109 | 3.19 | 20.66 |
| LDM + PR (4 × 4 Prototypes) | 0.307 | 26.40 | 0.109 | 4.04 | 22.53 |
| LDM + PR (16 × 16 Prototypes) | 0.305 | 26.34 | 0.109 | 15.01 | 38.74 |
D.3 ABLATION ON PROTOTYPE TEMPERATURE
Table 9: Ablation on the temperature of PR (reduced compute budget). scales the cosine-similarity logits of the prototype classifier, where a smaller yields a sharper softmax. The default was fixed prior to this ablation and is used throughout the main text. All PR variants improve over LDM both with and without CFG, and the differences among values are small compared with the gain from adding PR, indicating that is a reasonable default. Adjusting (e.g., here) may bring further improvements, though the best value is likely setting-dependent.
| Method | Stage 1 | Stage 2 | |||
|---|---|---|---|---|---|
| rFID | PSNR | LPIPS | gFID w/ CFG | gFID w/o CFG | |
| LDM | |||||
D.4 ABLATION ON PSEUDO-LABEL GRANULARITY
Table 10: Ablation on DINO pseudo-label granularity (reduced compute budget). This group of experiments uses a separate hyper-parameter setup, so the results are comparable within this table but not with other tables. Reconstruction is largely insensitive to the choice of targets. Unguided gFID degrades as increases, while guided gFID remains comparable across except for overly fine clusters. The nested variant (i.e., partitioning each of the 64 clusters into 16 sub-clusters) achieves the best generation among unsupervised targets (best unguided gFID and guided gFID close to GT labels), showing the feasibility of hierarchical PR.
| Labels / Clusters for PR | Stage 1 | Stage 2 | |||
|---|---|---|---|---|---|
| rFID | PSNR | LPIPS | gFID w/ CFG | gFID w/o CFG | |
| DINOv3-B | |||||
| DINOv3-B | |||||
| DINOv3-B | |||||
| DINOv3-B | |||||
| DINOv3-B (Nested) | |||||
| GT Labels () | |||||
D.5 COMPOSABILITY OF PR AND VA-VAE
Table 11: Composability of PR and VA-VAE. This group of experiments uses the same separate hyper-parameter setup as Tab. 10, so the results are comparable with that table but not with the others. We apply PR on top of VA-VAE, which aligns to DINOv3-L features. Combining the two yields better generation both with and without CFG, at the cost of mildly degraded reconstruction, indicating that PR is complementary to external feature alignment for generation.
| Method | Stage 1 | Stage 2 | |||
|---|---|---|---|---|---|
| rFID | PSNR | LPIPS | gFID w/ CFG | gFID w/o CFG | |
| LDM | 0.248 | 28.21 | 0.095 | 4.25 | 18.85 |
| LDM + PR | 0.263 | 27.82 | 0.098 | 2.87 | 14.60 |
| VAVAE (DINOv3-L) | 0.229 | 28.27 | 0.092 | 3.04 | 12.71 |
| VAVAE (DINOv3-L) + PR | 0.282 | 27.55 | 0.101 | 2.57 | 10.89 |
E DERIVATION OF EQUATIONS AND CLAIMS IN MAIN TEXT
E.1 NOTATION AND SETUP
Setup. Let denote the class label and the clean latent, with . Let be independent of . For a fixed , define and . We use , , and for realizations, write , and abbreviate it as when the arguments are clear. The Bayes-optimal conditional and unconditional velocity predictors are denoted by and , respectively, and . All expectations and entropies involving are evaluated at the stated fixed time unless time is explicitly averaged over. Under the Gaussian class model, with , and we write . Class priors are fixed and positive, but need not be equal unless stated otherwise. For PR, the latent is viewed as a tensor , with , pooled feature , and normalized features and . These normalized vectors are assumed to have nonzero denominators. We reserve for the true posterior and for the prototype classifier. All logarithms are natural.
E.2 POSTERIOR-MEAN EXPRESSION FOR CFG (EQ. 1)
Derivation. The interpolant gives , so the velocity target can be written as
Under squared-error prediction, the Bayes-optimal predictors are conditional expectations. Since and t are fixed within these expectations,
Subtracting cancels the common observed latent and yields
This identity does not require the Gaussian class model.
E.3 GAUSSIAN CLASS GEOMETRY OF CFG (EQ. 2)
Derivation. Under the Gaussian class model, the independent within-class variation and corruption noise give
Bayes' rule therefore gives
Within class j, the clean posterior mean combines the Gaussian prior and corruption likelihood:
Completing the square gives
Averaging over the posterior class probabilities gives
Substituting both posterior means into Eq. 10 yields
where the last equality uses .
E.4 CLASS SEPARATION UNDER CORRUPTION (EQ. 3)
Derivation. By Eq. 11, the corrupted class means are and , with shared covariance . Their squared standardized distance is therefore
E.5 FIXED-VARIANCE CONSTRUCTION (EQ. 4)
Verification. Let and , where and . Then , and the inter-class and intra-class variance contributions are, respectively,
The law of total variance therefore gives
This reallocates a fixed total variance between class means and within-class variation.
E.6 POSTERIOR CROSS-ENTROPY AND CONDITIONAL ENTROPY (EQ. 5)
Derivation. At fixed , sampling induces the joint distribution of . Conditioning first on and using the true class posterior gives
The equality relies on using the true posterior, rather than an arbitrary classifier.
E.7 POSTERIOR GRADIENT AND CFG (EQ. 6)
Derivation. We apply Tweedie's formula under Gaussian forward corruption without assuming a Gaussian class model for the clean latent distribution.
The corruption likelihood is . Differentiating its marginal with respect to gives
The same calculation without conditioning on the class yields
By Bayes’ rule, the class prior contributes no derivative with respect to . Subtracting the two scores and using Eq. 10, we obtain
Finally, hold , , and fixed and differentiate through :
This is the per-sample negative cross-entropy gradient with a fixed posterior function; it does not include changes in that function induced by changing the underlying latent distribution. The identity does not require the Gaussian class model.
E.8 MONOTONIC POSTERIOR LOSS UNDER VARIANCE ALLOCATION (EQS. 4 AND 5)
Derivation. Under the Gaussian family in Appendix E.5, keep the class priors and reference means fixed, and write
where and the corruption noise are independent standard Gaussian vectors, both independent of . For any fixed , the corrupted latent is
Since throughout this domain, combining the two Gaussian noise terms and rescaling the observation gives the equivalent channel
where is independent of . For each , the rescaling is invertible, so . Moreover,
To compare , write , so that , and construct
where and are independent standard Gaussian vectors, both independent of . Conditional on , is Gaussian with mean and covariance . Thus has the same distribution as . Moreover, is a Markov chain. The data-processing inequality thus gives
Since the class priors and hence are fixed,
Using the entropy identity in Appendix E.6, we conclude that is non-increasing in at every fixed .
In particular, at t = 1 we have and
The rescaling remains invertible for , so the same argument directly establishes that the clean posterior loss is non-increasing in .
E.9 PROTOTYPE POSTERIOR AND CLASS-CONTRAST GRADIENT (EQS. 7 AND 8)
Gaussian posterior form. For a clean latent under the Gaussian class model, Bayes' rule and expansion of the squared distance give
With equal priors and equal-norm class means, the bias terms are common across classes and cancel:
PR adopts this softmax inner-product form on normalized pooled features, with learnable normalized prototypes and temperature . Its posterior and cross-entropy are defined as
This surrogate matches the Gaussian discriminant form without assuming that normalized pooled features themselves follow the original Gaussian class model.
Gradient derivation. Expand the cross-entropy as
Holding the prototypes fixed and differentiating with respect to the normalized feature gives
Using , we obtain
This has the same posterior-weighted class-contrast structure as the expression in Appendix E.3, with normalized prototypes and classifier probabilities replacing class means and true posterior probabilities. For completeness, we derive the gradient with respect to the clean latent. With and , backpropagation through normalization and pooling gives
Thus, the class contrast is projected onto the tangent space at , rescaled, and distributed equally across spatial locations. The resulting supervision promotes class discrimination in the pooled representation while leaving spatial residuals unconstrained.
F COMPLEMENTARY PERSPECTIVES ON CLASSIFIER-FREE GUIDANCE
We examine CFG from three complementary perspectives: the irreducible uncertainty of velocity prediction, the error in a learned guidance correction, and the estimation accuracy attainable under a controlled model. The first isolates the role of latent geometry, the second separates conditional error contrasts from branch consistency, and the third connects these quantities through an explicit estimator. Throughout, , , and is fixed, with independent of . Expectations are taken over the forward process generated by . We use , , , and .
F.1 CLASS GEOMETRY AND IRREDUCIBLE VELOCITY UNCERTAINTY
Takeaway and setup. Under the Gaussian class model, reallocating a fixed total variance toward class means strictly reduces the conditional velocity Bayes risk and does not increase the unconditional risk. Assume and write . For the geometric comparison, fix the class priors and reference means satisfying and , and set and , with .
Velocity Bayes risks. The conditional and unconditional irreducible errors satisfy
(12)
To obtain the first identity, Gaussian conditioning gives
Since , its conditional covariance is , whose trace gives . For the second identity, write . The cross term vanishes because .
Effect of variance allocation. For any , we have
(13)
The conditional statement follows directly from
For the unconditional statement, couple the two models as follows. Let follow the family at , let be independent, and take independent standard Gaussians independent of . Set
Then , and is independent of . Write and for . Remove a common linear predictor by defining
The fixed total variance implies
and hence for both models. Moreover,
where and . These two auxiliary variables are jointly Gaussian with zero cross-covariance, so is independent of , and both are independent of . Therefore,
Finally, subtracting a known function of the observation does not change the Bayes risk. Orthogonality of conditional expectation gives
Connection to diffusability. Velocity irreducible variance has been studied as a statistical indicator of latent diffusability (Zhong et al., 2026). The conditional risk in Eq. 12 is the isotropic Gaussian instance of that quantity. Equation 13 connects this perspective to class geometry: at a fixed latent scale, increasing the inter-class variance fraction reduces velocity-target uncertainty in the conditional branch and preserves or reduces it in the unconditional branch.
F.2 CONDITIONAL ERROR CONTRASTS AND BRANCH CONSISTENCY
Takeaway and setup. The error in a learned CFG correction separates exactly into differences between conditional prediction errors and a consistency term relating the two branches. This decomposition holds without Gaussian assumptions. Let and , and define . Treat the learned predictors as fixed when averaging over the forward distribution.
Exact correction-error decomposition. The expected correction error is
(14)
To see this, the tower property gives . Define and . Then
Conditional on , we have , so the cross term vanishes. The remaining conditional variance satisfies
which proves Eq. 14. The first term measures error differences across jointly plausible classes; any component shared by all cancels. The second measures agreement between the learned unconditional prediction and the posterior-weighted conditional predictions.
Posterior weighting and prediction uncertainty. Define the expected posterior ambiguity as
If uniformly, then . Thus, for a common error-difference bound, lower posterior ambiguity tightens the bound on the conditional contrast term. These learned errors are distinct from the irreducible uncertainty in Appendix F.1; for example, conditional prediction obeys
Here the first term is determined by the data distribution, while the second measures approximation of its oracle predictor.
F.3 GEOMETRY-DEPENDENT ESTIMATION ERROR UNDER CONSISTENT BRANCHES
Takeaway and setup. Under a controlled Gaussian estimator, within-class compactness and low posterior ambiguity jointly reduce correction and guided-field estimation errors. Use the same fixed-variance family as in Appendix F.1. Assume that the common linear term of the conditional predictors is known, estimate each class offset from n independent residual samples, and construct the unconditional estimate using the true posterior weights. Estimation samples are independent across classes and independent of the test sample. Expectations below also average over these estimation samples, with n and the guidance scale held fixed across the family.
Estimating the class offsets. The Gaussian conditional predictor has the form
For class , a velocity residual has mean and covariance : subtracting gives , whose conditional mean is zero and whose conditional covariance was computed in Appendix F.1. Estimate
Consequently, is independent of the test sample and satisfies
Correction and guided-field errors. The construction makes in Eq. 14. Since for , its first term gives the correction error below. For guidance, define and . Then
Independence and zero-mean estimation errors remove cross terms. Averaging the squared coefficients over gives
Thus, the two estimation errors are
(15)
Monotonicity under variance allocation. It remains to show that is non-increasing in . Rescaling the noisy latent gives an equivalent observation , where is independent of and
This signal-to-noise ratio increases with . For , the Gaussian channel coupling in Appendix E.8 constructs observations with the corresponding marginals and . Writing for their posterior probability vectors, the tower property and Jensen's inequality give
and hence . Together with the decrease of in Eq. 13, Eq. 15 shows that both and are non-increasing in . Within this estimator, allocating more variance to class means lowers the cost of estimating each conditional predictor and reduces the posterior ambiguity that weights class contrasts.