WorksComputer Science
Learning -Powered Conditional Distributions with Importance-Weighted Flow Matching
Abstract
Classifier-Free Guidance (CFG) with guidance scale is commonly motivated by the -powered conditional distribution obtained by setting , but CFG does not, in general, sample from this distribution exactly. We study whether the powered target can instead be learned explicitly. We introduce Importance-Weighted Conditional Flow Matching (IW-CFM), which reweights conditional flow-matching examples using density ratios obtained from frozen conditional and unconditional flow models. With exact normalized weights, the resulting objective has the same gradient as flow matching on the powered target; in practice, we use self-normalized estimation and a regularized empirical approximation for high-dimensional data. On synthetic distributions, IW-CFM recovers analytical powered targets for which numerically matched CFG, , exhibits a visible mismatch. On ImageNet, an amortized lightweight corrector achieves better alignment than fixed- and matched-guidance CFG with the corresponding weighted and filtered reference distributions. We additionally present an exploratory CLIP analysis of powered-density rankings on real ImageNet data. Aggregate shifts across selected prompt-specific contrasts coexist with heterogeneous classwise responses, including nonmonotonic trajectories. These results provide a practical route for studying and approximating model-defined powered conditional distributions.
Introduction
Diffusion models ([36, 17, 37]), flow matching (FM) ([24, 25]), and stochastic interpolants ([1]) are widely used for continuous data such as images and audio. These methods learn a process between a simple prior, such as a Gaussian, and the data distribution. We work in the Gaussian flow-matching setting. Conditional models commonly use Classifier-Free Guidance (CFG) ([16, 42, 6]), which steers generation toward a condition by combining conditional and unconditional vector-field estimates.
Both CFG and its predecessor, classifier-based guidance ([8]), are motivated by a powered distribution,
where is the powering parameter. Separately, we denote the CFG guidance scale by : CFG combines the conditional and unconditional vector fields as . Its standard motivating interpretation identifies the two numerical values, , and treats as if it generated . This identification is not generally exact [2, 4]: the CFG-guided backward vector field lacks a corresponding path-consistent forward process, and its endpoint distribution need not equal , even when . The resulting mismatch can push probability mass away from the learned data manifold, manifesting as artifacts and unnatural saturation at high guidance scales. A related discrepancy has been identified in discrete diffusion models [22].

Figure 1. (a,b) On a synthetic dataset, IW-CFM samples match the 99.7% probability-mass contour of the analytical , whereas CFG with numerically matched guidance shows a visible mismatch. (c) On ImageNet, IW-CFM is trained using regularized empirical weights; both the CFG baseline and IW-CFM use inference-time guidance , while IW-CFM additionally varies the target powering parameter .
We address the powered target directly by specializing conditional Energy-Weighted Flow Matching [40]. Density estimates from the conditional and unconditional flow models define the endpoint density ratio, and exact normalized weights yield the same population gradient as flow matching on the powered target. We call the resulting method Importance-Weighted Conditional Flow Matching (IW-CFM); it conditions on and learns the flow for without direct samples from that distribution. Any CFG subsequently applied to the learned IW-CFM vector field is an optional inference-time heuristic controlled separately by .
Beyond target recovery, we examine how powered-density rankings of real images change with . Using CLIP [31], which prior work has applied to image quality assessment [14, 39, 41], we characterize selected prompt-specific contrasts and their classwise trajectories.
Our main contributions are:
Building on Energy-Weighted Flow Matching [40], we instantiate endpoint weighting for model-defined -powered conditional targets using density ratios from frozen conditional and unconditional flow models.
We develop a hierarchical self-normalized estimator for heterogeneous pairs and distinguish this finite-sample procedure from the exact population objective.
We develop a lightweight corrector amortized over and a high-dimensional ImageNet construction based on regularized precomputed weights, proposal sampling, and interpolation across powering parameters.
We validate recovery of analytical powered targets on synthetic distributions and measure alignment with regularized empirical references on ImageNet, where IW-CFM yields lower distances than the evaluated CFG baselines.
We provide an exploratory characterization of powered-density rankings on real images through selected CLIP contrasts, including heterogeneous and nonmonotonic classwise responses.
Modeling the -Powered Distribution
We adopt the Flow Matching (FM) framework [24], which defines a probability path for interpolating between a prior and data . The flow is governed by a time-dependent vector field via the ODE .
Background on Conditional Flow Matching
In Conditional Flow Matching, for each data point , we define a conditional probability path that interpolates between a prior sample and the data point . The path is constructed by defining the interpolated sample and its corresponding target velocity vector as:
where and are differentiable functions of time defining the schedule. The goal of a standard conditional flow matching model is to learn a vector field that predicts this target velocity marginalized over [24].
CFG Guidance and the Powered Target
We reserve for the CFG guidance scale and for the powering parameter. Given conditional and unconditional vector fields, CFG uses
The usual powered-distribution motivation associates CFG at with at the matched numerical value . We write this motivating correspondence as
IW-CFM addresses the right-hand side directly by learning a vector field conditioned on . When we later apply CFG to this learned field at inference time, its scale remains a distinct parameter .
Density Evaluation and Pre-computation
To enable importance weighting, we require the log-densities of the unconditional and conditional distributions. Given a vector field , we use the instantaneous change of variables formula [3]:
where is obtained by integrating the ODE backward from to . In high dimensions, we approximate the divergence using the Hutchinson trace estimator [18]. We validate the numerical stability and ranking consistency of these lower-step estimators in Section C.4. The conditional log-density, , is computed similarly using the conditional vector field .
Practical Implementation. Because the base vector fields and remain frozen, we precompute these log-densities for the training set. Corrector training therefore does not backpropagate through the density models.

Figure 1 (PDF p. 4).
Importance-Weighted Conditional Flow Matching (IW-CFM)
Our goal is to learn a vector field that targets the normalized powered distribution . We define the unnormalized weight for a sample as
The exact normalized density ratio is
Using this exact ratio gives the population - objective
The normalizer is generally unavailable. For a batch of samples drawn from , we therefore use finite-batch self-normalized importance sampling (SNIS) weights
As shown in Section A.1, the exact objective has the same gradient as the ideal flow-matching objective on . Replacing with gives the practical estimator in Algorithm 1; its gradient is biased for finite and becomes unbiased asymptotically as . While standard Flow Matching minimizes an unweighted MSE (see e.g., [24]), our approach uses these importance weights to re-target the powered distribution.
Amortized -Powering via Lightweight Correctors
To avoid training a separate model for each powering parameter, we treat as a conditioning variable for a single corrector network. We implement this corrector, , using lightweight, parameter-efficient designs. For synthetic experiments, is an MLP that predicts an affine correction to the baseline conditional vector field. For real-world image data (ImageNet), we build upon the Scalable Interpolant Transformer (SiT) backbone [26], introducing a parameter-efficient adapter into its Transformer blocks, similar to Jensen & Sadat [19]. This way, we learn a single model to target the entire family of powered distributions, adding only about 5% of the parameters compared to the baseline SiT.
A key challenge in this amortized setting is normalizing the importance weights. Normalizing globally across a batch with different conditions and powering parameters changes the effective distribution over : each pair is weighted in proportion to its partition function rather than according to the intended outer distribution (see Section A.2). We instead use hierarchical batches and nested normalization. At each training step, we sample condition–parameter pairs and a subbatch of data points for each pair. We normalize weights only within samples that share , preserving the intended outer distribution. Algorithm 1 gives the procedure.
Scaling to High-Dimensional Data
Algorithm 1 provides an asymptotically unbiased estimator for streaming data, which we apply directly in our synthetic experiments. However, this approach is computationally prohibitive for high-dimensional data. We therefore adopt two practical techniques that enable an efficient application of IW-CFM to ImageNet.
Amortized Training with Precomputed Weights. Sampling from the weighted empirical distribution at an arbitrary continuous would require computing the weight of every ImageNet training instance for every sampled . We instead precompute normalized weights over the full dataset at integer powering parameters. Given a continuous , we sample training instances with replacement using the weights at the nearest integer . For those instances only, we linearly interpolate the self-normalized weights at and multiply the flow-matching loss by . This proposal is more efficient than uniform sampling followed by SNIS: at large , most stored weights are zero, so most uniformly sampled instances would provide no weighted training signal. Section C.5.1 specifies the zero-weight fallback and numerical threshold.
Operational ImageNet Weights. The population formulation assumes access to exact conditional and unconditional densities. On ImageNet, we instead use densities induced by frozen pretrained SiT vector fields, which are learned approximations to the data distributions, and evaluate them numerically through augmented ODE integration. Powering amplifies errors in these density estimates. In particular, if the estimated log-density ratio
differs from its ideal value by an additive error , then the corresponding unnormalized weight is distorted by the multiplicative factor . At large , even moderate errors can therefore cause a few training instances to dominate the normalized empirical distribution.
Given any fixed set of endpoint weights, importance-weighted flow matching trains toward the distribution encoded by those weights. It does not, however, correct errors in the weights themselves. If exact and reliable densities were available, we could use the unregularized density ratios directly. With the available ImageNet estimates, their extreme concentration produces a brittle empirical target: most normalized weights become numerically zero, while a small number of potentially misestimated instances receive nearly all of the mass. We therefore regularize the weights before training.
Following the standard temperature-scaling transformation [13], we first contract all log-density-ratio differences by a temperature . We then cap the largest per-class log-weights at each precomputed integer powering parameter . For the training instances in class , define
Temperature scaling reduces concentration globally. Increasing sufficiently to suppress the most extreme weights would also flatten potentially meaningful variation throughout the remainder of the class. We therefore additionally apply , which caps only the largest log-weights without discarding their corresponding instances. Clipping limits the influence of extreme density-ratio estimates while retaining variation across the bulk of the data. It constitutes a deliberate bias–stability trade-off rather than an exact approximation that preserves the theoretical . Figure 19 illustrates the finite-precision consequence of the unregularized concentration and the effect of and on the number of numerically active instances. Section C.5.1 defines the clipping operator and reports the selected parameters.
Figure 19. Effect of weight regularization. Average number of numerically nonzero per-class weights after finite-precision normalization as a function of , for different temperatures and clipping fractions . The highlighted curve is the configuration used in our experiments (, ). Error bars show the standard deviation across the 1,000 ImageNet categories. Horizontal-flip augmentation doubles the number of available instances in practice.
For a non-integer , let be its adjacent precomputed integers and . We define
When is an integer grid point, we use directly. This interpolation defines a continuous operational family between the precomputed references; it is not claimed to reproduce the exact unregularized powered distribution at non-integer .
The resulting therefore defines the operational weighted ImageNet reference, rather than an exact estimator of the theoretical . During corrector training, these weights are evaluated only for instances drawn from the nearest-integer proposal. Moreover, zero-weight re-injection and the loss-correction fallback make the actual training objective a regularized mixture rather than exact sampling from . Consequently, our exact target-recovery claim applies to the population formulation and controlled synthetic experiments; on ImageNet, we evaluate alignment with the explicitly defined regularized empirical references.
Related Work
The closest methodological predecessor is Energy-Weighted Flow Matching [40]. At the population level, the IW-CFM objective is a specialization of their conditional energy-weighted flow-matching formulation. For a fixed condition , setting the base distribution to , the energy to , and gives
Thus, the endpoint importance-weighting principle and the resulting population equivalence to flow matching on the reweighted target follow from Zhang et al. [40].
Our contribution concerns the conditional, amortized, and high-dimensional realization of this principle. While Zhang et al. [40] primarily develop energy-weighted generative models for offline reinforcement learning and additionally show, in a low-dimensional synthetic bandit ablation, that a single energy-weighted diffusion score model can be conditioned on , IW-CFM uses a lightweight flow-matching corrector to approximate model-defined powered conditional distributions across ImageNet classes and a continuous range of . Our parameter-efficient corrector conditioned on is inspired by guidance-distillation architectures [28, 19], but is trained to approximate a family of powered vector fields rather than to reproduce standard CFG. This setting requires normalization across heterogeneous pairs: our hierarchical estimator normalizes within each pair, preserving the intended outer distribution rather than reweighting pairs according to their partition functions. We further develop a regularized ImageNet construction based on precomputed conditional and unconditional densities, per-class weight regularization, nearest-integer proposal sampling, and interpolation between precomputed powering parameters. Our experiments evaluate recovery across a family of analytical synthetic targets and alignment with regularized ImageNet references.
Analyses by Bradley & Nakkiran [2] and Chidambaram et al. [4] provide evidence that CFG does not generally sample from the powered distribution suggested by the numerical identification and can shift probability mass away from the data manifold. These works diagnose the discrepancy; IW-CFM instead learns a vector field conditioned directly on the powering parameter under the idealized formulation and its regularized empirical counterpart on ImageNet.
Feynman–Kac Correctors (FKC) [35] use particle-based Sequential Monte Carlo to target modified distributions at inference time. Rectified Gradient Guidance (REG) [10] formulates powered-distribution sampling as reward optimization over the sampling trajectory, while Kit et al. [22] study a related debiasing problem for discrete diffusion. IW-CFM instead shifts the main computation to density precomputation and corrector training, after which sampling uses a single learned vector field.
CFG++ (Chung et al., 2025) modifies guidance to reduce off-manifold behavior, while Galashov et al. [9] learn a guidance network that better matches the original conditional distribution . Their target differs from ours: IW-CFM studies powered conditional distributions and a regularized empirical implementation on ImageNet.
Finally, Karczewski et al. [20] investigate extreme high-density regions of diffusion models and find that samples with substantially higher likelihood than those produced by standard samplers can be blank, blurry, or cartoon-like. Their results reinforce the distinction between model likelihood and perceptual quality. Our target differs from maximizing either the marginal or conditional likelihood in isolation: increasingly emphasizes features discriminative of the condition. Their observations nevertheless motivate regularizing the concentrated importance weights in our ImageNet implementation.
Experiments
Our primary experiments address two questions. First, when the analytical -powered density is available, does IW-CFM recover that target more faithfully than CFG with the numerically matched guidance scale and the other evaluated alternatives? Second, on ImageNet, how closely do samples from the learned corrector align with weighted and filtered references derived from ? We study the first question on two-dimensional synthetic distributions and the second with a lightweight corrector for a pretrained SiT model. The exploratory analysis of powered-density rankings on real ImageNet data follows in § 5.
Synthetic Target Recovery
We first test IW-CFM against the target density on two-dimensional synthetic datasets: a three-mode Gaussian mixture and a distribution inspired by fractal-like geometries (for details see Section C.1). For these tasks, we compute importance weights during training using the minibatch SNIS estimator in Algorithm 1.
As shown in Figures 1a and 1b, CFG with matched guidance departs from the analytical target contours, whereas IW-CFM closely follows them. This controlled setting tests the motivating identification in Equation (5) before the density-estimation and regularization choices needed for ImageNet are introduced. Sections C.1 and D.3.1 provide hyperparameters and additional density visualizations.
We additionally evaluate REG and FKC on the exact conditional and unconditional vector fields of the three-Gaussian problem. Under the tested configurations, neither method closely matches the analytical powered contours. We therefore do not conduct an image-scale comparison, and our ImageNet results make no claim of superiority over REG or FKC. Section D.3.2 provides implementation details and results.
ImageNet Generation
We scale our method to ImageNet at resolution. The IW-CFM corrector operates in the latent space of the Stable Diffusion VAE used by the pretrained SiT model (Rombach et al., [33]). Log-probability computation, loss reweighting, and sampling all use this latent space; we decode to pixels only for visualization and image-based metrics (CLIP, FID, and DINOv2). The corrector is a parameter-efficient adapter in the frozen Transformer blocks of a pretrained SiT-XL/2 (Ma & Ryoo, 2024), following Jensen & Sdat [19]. We train it with ; the real-data CLIP analysis in Figure 6 evaluates a wider range of values.

Figure 6. Class-dependent changes in the association between powered-density rankings and selected CLIP attributes. Rankings use the unregularized powered log-density score, before temperature scaling or clipping. For each ImageNet class and attribute contrast , compares the top- and bottom-ranked 10%, and reports its change from . The density fields summarize the trajectories of all 1,000 classes; darker regions contain more trajectories, and orange curves show the across-class means.
On ImageNet, IW-CFM samples training data from the precomputed nearest-integer weights and corrects each loss with its interpolated continuous- weight, as described in § 2.6. At inference, we optionally apply CFG with scale to . To support this option, we replace the class token with a null token during 10% of training iterations. This additional guidance is a sampling heuristic and need not preserve target fidelity. We use unguided inference () to assess the learned distributional shift, for FID, FD-DINOv2, and PRDC, and for qualitative visualizations. The ancillary, prompt-specific comparison of IW-CFM and CFG generations in Section D.2 also uses for both methods. This generated-sample comparison is distinct from the real-data CLIP analysis in § 5.2. Throughout the ImageNet results, CFG labels report , whereas IW-CFM labels report the target powering parameter ; each table or figure caption states the applicable IW-CFM inference scale. We use the ImageNet training set from the baseline SiT model with horizontal-flip augmentation and precompute log-probabilities for both original and flipped images. Section C.5.1 gives the parameters used by the scaling methods in § 2.6.
Alignment with Regularized ImageNet References
Having established the ImageNet implementation, we first evaluate sample alignment with references derived from the regularized weights . The separate exploratory analysis in § 5 subsequently examines real-data rankings through selected CLIP contrasts.
We report Fréchet Inception Distance (FID) (Heusel et al., [15]), FD-DINOv2 (Stein et al., [38]), and, using Inception features, Precision and Recall (Kynkäänniemi et al., [23]) together with Density and Coverage (Naeem et al., [29]). The “weighted” reference uses from Equation (12) to compute feature statistics and omits the proposal-only zero-weight re-injection used during training. For the “filtered” reference, define from the stored float32 weights; the threshold is exactly zero in float32. For PRDC, we sample 10 instances uniformly without replacement from each , producing a class-balanced reference of 10,000 instances. Section D.4.3 reports the same metrics against the standard ImageNet targets as ancillary diagnostics.
Under the guided practical configuration, Figure 2 shows that IW-CFM has substantially lower Fréchet distances to these regularized references than either fixed-guidance CFG, , or numerically matched CFG, (in Figure 25), across the evaluated target values . The corresponding qualitative comparison in Figure 26 shows that, for the displayed ImageNet example, matched-guidance CFG loses coherent image structure for , whereas IW-CFM remains visually coherent at the corresponding target values with inference-time guidance fixed at . In addition to integer values of , we evaluate IW-CFM at intermediate non-integer values to test the interpolation of the amortized self-normalized weights described in § 2.6. Its FID and FD-DINOv2 remain consistent with the neighboring integer targets, indicating that the learned conditioning interpolates effectively between them. In Table 1, IW-CFM also achieves the best or near-best PRDC scores with the filtered reference across the evaluated target values. Because these distributional metrics do not rule out memorization, Section D.5 separately tests for training-data retrieval and reports low rates under its specified test.
Figure 2. Guided practical evaluation against regularized ImageNet references indexed by the powering parameter . IW-CFM targets each displayed and uses inference-time guidance . The CFG baselines use fixed guidance . The plots show FID (left) and FD-DINOv2 (right). “Weighted” uses feature moments weighted by , while “Filtered” uses uniform moments over the numerically active weights.
| Model and parameter | Reference | Precision | Recall | Density | Coverage |
| CFG () | 4.0 | 0.55 | 0.50 | 0.95 | 0.90 |
| CFG () | 4.0 | 0.70 | 0.30 | 1.10 | 0.89 |
| IW-CFM () | 4.0 | 0.69 | 0.60 | 1.15 | 0.98 |
| CFG () | 8.0 | 0.56 | 0.51 | 0.93 | 0.90 |
| CFG () | 8.0 | 0.66 | 0.22 | 1.02 | 0.86 |
| IW-CFM () | 8.0 | 0.70 | 0.61 | 1.15 | 0.98 |
| CFG () | 16.0 | 0.57 | 0.53 | 0.92 | 0.90 |
| CFG () | 16.0 | 0.54 | 0.16 | 0.87 | 0.80 |
| IW-CFM () | 16.0 | 0.71 | 0.62 | 1.15 | 0.97 |
| CFG () | 32.0 | 0.58 | 0.57 | 0.88 | 0.87 |
| CFG () | 32.0 | 0.29 | 0.14 | 0.41 | 0.48 |
| IW-CFM () | 32.0 | 0.70 | 0.63 | 1.07 | 0.97 |
| CFG () | 64.0 | 0.60 | 0.57 | 0.91 | 0.86 |
| CFG () | 64.0 | 0.04 | 0.10 | 0.03 | 0.05 |
| IW-CFM () | 64.0 | 0.68 | 0.64 | 1.05 | 0.97 |
| CFG () | 128.0 | 0.61 | 0.57 | 0.94 | 0.86 |
| CFG () | 128.0 | 0.10 | 0.00 | 0.08 | 0.01 |
| IW-CFM () | 128.0 | 0.68 | 0.63 | 1.06 | 0.96 |
Table 1. Guided practical evaluation using PRDC ([29]) against filtered regularized ImageNet references indexed by . Each IW-CFM row targets the listed and uses inference-time guidance ; CFG uses either fixed guidance or matched guidance . The best score in each reference group is bolded. The class-balanced reference contains 10 instances with numerically nonzero stored weights from each of the 1,000 classes.
Figure 25. Distributional alignment across . Extension of Figure 2 across the full range of target powering parameters. IW-CFM targets each and uses inference-time guidance . CFG uses either fixed guidance or matched guidance . The log-scale y-axis shows the increase in FID and FD-DINOv2 for matched-guidance CFG at larger , while IW-CFM remains closer to the regularized empirical reference.
Figure 26. Qualitative matched-guidance comparison on ImageNet. Columns correspond to target powers . The top row shows standard CFG at the numerically matched guidance scale ; the bottom row shows IW-CFM targeting the same while holding inference-time guidance fixed at . In this golden retriever example, CFG remains recognizable through but exhibits severe saturation and loss of coherent image structure for , whereas IW-CFM remains visually coherent across the evaluated target powers. This illustrative comparison complements the distributional alignment metrics in Figure 25.
The unguided distribution-shift evaluation is reported in Section D.4.2.
Ablation of the ImageNet Experiment
We independently ablate two components of the ImageNet implementation: the numerical accuracy of log-density estimation and the regularization applied to the resulting importance weights. In each experiment, all other settings are held fixed.
Number of log-density integration steps. We conduct this ablation on a fixed subset of 100 ImageNet categories, described in Section C.6.1, while keeping the target-regularization parameters at their default values. For each evaluated step count, we recompute the log-densities and importance weights and train a new corrector from scratch. All models are evaluated against the common weighted and filtered references constructed from the 250-step log-density estimates, using 50 generated samples per category. As shown in Figure 3, the results remain relatively close at , begin to separate at , and diverge substantially for . This behavior is consistent with the error-amplification effect discussed in § 2.6: an additive error in the estimated log-density ratio is multiplied by before exponentiation. Consequently, the numerical precision used for density estimation should be selected according to the largest powering parameter of interest; a step count adequate at small need not remain adequate under stronger powering.
Figure 3. Sensitivity to the number of log-density integration steps. For each step count, we recompute the ImageNet log-densities and weights and train a corrector from scratch on the same subset of 100 categories. All models are evaluated against references constructed from the 250-step estimates, using 50 generated samples per category. Solid and dashed lines show distances to the filtered and weighted references, respectively. Both FID and FD-DINOv2 show increasing sensitivity to density-estimation accuracy as grows. Lower is better.
Target regularization parameters. Using the default log-density estimates computed with 250 integration steps, we vary the temperature and the clipped upper fraction , yielding 20 configurations. For each configuration, we train a corrector from scratch and evaluate it using 50 generated samples per ImageNet category against weighted and filtered references constructed with the matching . The two reference constructions exhibit similar qualitative trends in Figure 4.
Figure 4. Sensitivity to target-regularization parameters. Each column corresponds to a clipped upper fraction , and colors denote the temperature . Every corrector is trained using 250-step log-density estimates and evaluated against weighted and filtered references constructed using its matching , with 50 generated samples per ImageNet category. Solid and dashed lines denote the filtered and weighted references, respectively. More aggressive clipping produces an easier but more strongly modified operational target, while the effect of temperature depends on the powering parameter. Lower is better.
Increasing consistently reduces the target-relative distances. This is expected: more aggressive clipping attenuates a larger portion of the density-ratio signal and moves the operational target toward the unweighted class-conditional empirical distribution, making the required correction smaller. Because the reference itself changes with , these lower distances do not imply that more aggressive clipping is preferable. To retain as much of the powered signal as possible, should instead be the smallest value that still prevents pathological weight concentration.
The effect of depends on : stronger tempering generally worsens alignment at small but becomes comparable or beneficial at large . This interaction may reflect both the signal–concentration trade-off and the fixed inference-time guidance used in this evaluation. Strong tempering makes low- targets close to the base distribution, leaving only a weak correction signal, whereas at large it reduces extreme weight concentration while retaining a substantial target shift. The default applies comparatively mild regularization and provides stable performance across the evaluated range.
Exploratory Analysis of Powered-Density Rankings on Real Data
The preceding experiments provide the primary validation of target recovery and alignment with the regularized ImageNet references. Here, we present a complementary, exploratory characterization of how powering reorganizes real ImageNet examples. For this analysis, we evaluate the conditional log-density and unconditional log-density of every ImageNet instance (Deng et al. [7]) using the same pretrained SiT model (Ma et al. [26]) that underlies standard CFG.
Powered-Density Rankings of ImageNet Data
Within each category, we rank ImageNet instances by the powered-density score defined in Equation (1); the class-dependent normalizing constant does not affect the ordering. All rankings in this section are computed from the unregularized, model-defined powered log-density score, prior to the temperature scaling and log-weight clipping introduced in § 2.6. Those transformations are used only to construct the operational ImageNet training and reference weights. Varying changes which images occupy the extremes of the ranking. Figure 5 provides one qualitative example, and Section B.2 presents additional selected categories.

Figure 5. Illustrative powered-density rankings of real images from the ImageNet “hammerhead shark” category at different values of .
Illustrative ranking changes. In the displayed “hammerhead shark” examples in Figure 5, the top-ranked images at lower have relatively simple compositions, whereas those at higher include more complex scenes and category-representative features. Separately, an image that appears to depict a great white shark with digitally added saber teeth is placed among the bottom-ranked examples at but does not appear among the corresponding extremes at lower ; it is therefore more plausibly interpreted as anomalous or mislabeled than as part of the compositional change. The additional categories in Section B.2 exhibit changes of varying form and direction.
CLIP Analysis of Real-Data Rankings
We use paired CLIP scores to characterize four selected attribute contrasts in real images. The complexity and naturalness contrasts are adopted from Wang et al. [39]; the realism and texture contrasts are constructed following the same paired-prompt design (Table 2). For an image from class and attribute contrast , the paired score is the positive-prompt component of a two-way softmax over the temperature-scaled CLIP similarities and therefore lies in ; Section C.2 gives the precise definition. We interpret these scores only as prompt-specific contrasts within the chosen CLIP representation, not as general measures of the corresponding attributes.
| Contrast | Positive Prompt | Negative Prompt |
| complex/simple | Complex photo. | Simple photo. |
| natural/synthetic | Natural photo. | Synthetic photo. |
| realism/CGI | An authentic, real-world photo of a {class_name}, captured by a camera. | A synthetic, computer-generated image of a {class_name}, a digital rendering. |
| texture | A photo of a {class_name} with realistic, detailed surface textures. | A photo of a {class_name} with an unnaturally smooth, waxy, or plastic-like texture. |
Table 2. Prompt pairs for the CLIP evaluation suite. During evaluation, {class_name} is replaced with the ImageNet class name. The complex/simple and natural/synthetic pairs are from Wang et al. [39]; the realism/CGI and texture pairs are inspired by its paired-prompt design.
Real-Data Ranking Analysis. To accommodate class-dependent baselines, we compare the paired CLIP scores of the top- and bottom-ranked 10% of real images separately within each ImageNet category. We summarize their separation by Cohen’s (Cohen [5]), defined as the difference between the group means divided by their pooled standard deviation. A larger value indicates stronger relative alignment of the top-ranked group with the positive prompt.
To characterize changes relative to the unpowered ranking, we define for class and attribute contrast . Figure 6 shows the resulting trajectories across all 1,000 ImageNet classes. A positive value denotes a shift toward the positive-prompt side relative to the class-specific contrast at ; it does not imply that the absolute contrast is positive. The trajectory-density fields retain the distribution of classwise responses, while the orange curves provide the corresponding across-class means.
At the aggregate level, the largest baseline-relative change occurs for the complex/simple contrast, while realism/CGI and texture show smaller positive shifts and natural/synthetic remains close to its level. These averages stabilize at larger , but the classwise trajectories remain widely dispersed: individual categories exhibit increasing, decreasing, and nonmonotonic responses.
The absolute classwise contrasts from which Figure 6 is derived are reported in Figure 20; the main-text trajectories subtract from these values separately for each class and attribute contrast. The absolute values further qualify the baseline-relative view. In particular, the mean complex/simple contrast is strongly negative at and approaches zero as increases. Its positive baseline-relative shift thus primarily reflects attenuation of an initial association with simpler images, not the emergence of a strong absolute preference for complexity. The natural/synthetic contrast remains near zero on average, and the shifts in realism/CGI and texture are comparatively modest.

Figure 20. Absolute classwise CLIP contrasts underlying the baseline-relative trajectories in Figure 6. Positive indicates that the top-ranked images align more strongly with the positive prompt than the bottom-ranked images. The density fields show the classwise trajectories, and the orange curves show their across-class means.
Discussion
IW-CFM has several limitations. First, it depends on the quality and support coverage of the base density models. The ImageNet implementation also depends on regularized precomputed weights, nearest-integer sampling, and interpolation. Computing these weights requires a correction dataset. We use that dataset to correct a pretrained model rather than train one from scratch, but performance may change when the correction data are smaller than or shifted from the original training set.
Second, density precomputation requires solving two augmented ODEs, one conditional and one unconditional, for each training instance. This one-time cost enables sampling with a single learned corrector. The ImageNet weight construction has a separate regularization trade-off: low-weight clipping and temperature scaling limit concentration on a few training modes, but their settings are chosen manually. Automated regularization schedules remain future work.
Our CLIP analysis is descriptive and prompt-dependent; consequently, neither the class-averaged trajectories nor individual examples establish statistically significant or universal attribute effects.
Finally, our current nested estimator and ImageNet implementation are tailored to categorical conditioning because self-normalization groups samples by a shared class label. The population formulation itself does not require categorical conditions. Applying the practical estimator to high-cardinality or continuous conditions, such as text prompts, will require a different normalization strategy.
Conclusions
In this work, we introduced Importance-Weighted Conditional Flow Matching (IW-CFM) to learn model-defined -powered conditional distributions. With exact densities and normalization, its population objective targets the powered vector field. The practical finite-sample estimator uses self-normalized weights, and the ImageNet implementation uses regularized precomputed integer weights with interpolated per-sample corrections.
The synthetic experiments test the analytical target directly and show that IW-CFM recovers it more faithfully than the evaluated alternatives, including CFG at the numerically matched scale . On ImageNet, the learned corrector aligns more closely than CFG with the weighted and filtered regularized references. Unguided evaluation provides evidence of a learned distributional shift, while the guided practical results include an additional inference-time CFG heuristic and therefore do not isolate the distributional shift learned by the corrector.
The complementary real-image analysis shows that powered-density rankings and their selected CLIP contrasts vary with . The across-class averages exhibit several baseline-relative shifts, while the underlying classwise trajectories are heterogeneous and can be decreasing or nonmonotonic.
IW-CFM learns multiple powered targets with one corrector. Although our implementation uses a SiT backbone, the population formulation applies to other continuous domains. Applying it to video or 3D synthesis would require testing the available density estimates, normalization schemes, and operational targets in those settings.
Broader Impact Statement
This work studies generative modeling of images, with the technical goal of producing realistic and diverse samples. That goal is not socially neutral: greater realism makes synthetic images harder to distinguish from photographic evidence, while greater diversity broadens the range of content that can be generated at scale. These capabilities may support valuable scientific and creative applications, but they may also facilitate deception, impersonation, non-consensual imagery, and other forms of abuse. Improvements in generative modeling should therefore be accompanied by careful evaluation of misuse risks and appropriate safeguards in any deployed system.
Acknowledgments
MF, FL, and AK acknowledge financial support from the Swiss National Science Foundation through the LegoMol project (grant no. 207428). The computations were performed at University of Geneva using Baobab HPC service.
Theoretical Analysis and Proofs
Gradient Equivalence Proof
We first establish the population identity for the exact IW-CFM objective . We then relate it to the finite-batch SNIS estimator used in practice.
Theorem A.1. Assume exact conditional and unconditional densities and access to the exact normalizer . Then the gradient , defined using the exact density ratio in Equation (8), equals the gradient of the flow-matching objective targeting .
Proof. The ideal objective targeting the powered distribution is
Using the exact importance-sampling identity gives
By the flow-matching gradient identity [24], the conditional objective that regresses to has the same gradient as the marginal objective that regresses to the target vector field. Thus, training on with exact weights recovers the vector field for .
The practical estimator in Algorithm 1 substitutes the finite-batch weights from Equation (10) for . This SNIS estimator is biased at finite ; under the standard importance-sampling regularity conditions, its gradient converges to the population gradient above as and is therefore only asymptotically unbiased.
Bias-Variance Analysis of Amortized Estimators
Structural Bias in Global Normalization
In Section 2.5, we use nested rather than global normalization because global normalization changes the effective distribution over pairs. Let denote the expected gradient of the ideal flow-matching objective targeting for a fixed . Jointly normalizing importance weights across different conditions and powering parameters yields the population gradient
where
Here, is the Rényi divergence of order . For , , so . When finite, is also non-decreasing in for fixed . Global normalization therefore induces the effective outer distribution
This distribution gives more influence to pairs with larger . Nested normalization operates within each group and preserves the intended outer distribution .
Statistical Bias-Variance Trade-off in Nested Normalization
Nested normalization uses condition–parameter pairs , each with a subbatch of data samples and finite-batch weights . Under standard finite-variance assumptions, the leading variance terms scale as across pairs and for within-pair Monte Carlo noise. With fixed , these terms become and , respectively. Increasing reduces finite- SNIS bias but leaves fewer distinct pairs for estimating the outer expectation. This allocation trade-off is characteristic of nested Monte Carlo estimators [32].
Extended Characterization of -Powering
Univariate Toy Example
In Figure 7, we illustrate the discrepancy between the -powered distribution and CFG using a univariate Gaussian mixture . We define the target class as the component centered at , vary the powering parameter over , and compare each target with CFG at the matched guidance scale .

Figure 7. Comparison of the -powered distribution and matched-guidance CFG on a univariate Gaussian mixture. The -powered distribution (dashed) concentrates around the target-class mode. The CFG distribution (solid), evaluated at the numerically matched guidance scale , shifts probability mass toward low-density regions as the matched values increase.
This example shows two differences:
Powered target. Increasing moves mass away from the overlap region near the decision boundary and toward the mode of the target class.
Matched CFG. Increasing also moves mass away from the decision boundary, but toward a low-density region beyond the target-class mode. Because the Gaussian components have full support, this is a low-density shift rather than movement outside the support.
The discrepancy grows with the matched values: the powered distribution concentrates around the target-class mode, while CFG moves farther into the tail. Thus, directly approximating differs from setting the CFG guidance scale to the same numerical value.
Powered-Density Rankings across ImageNet Categories
Figures 8 to 16 show the top- and bottom-ranked 12 images for nine selected ImageNet categories at different values. These examples illustrate heterogeneous changes in the rankings rather than a universal progression with .
In several displayed categories, higher favors more complex scenes or different category-representative features. The pattern is neither uniform nor necessarily monotonic. For example, in the “recreational vehicle, RV, R.V.” category (Figure 14), low values favor images with a prominent, centrally located vehicle, whereas high values favor landscapes in which the vehicle occupies only a small part of the scene.

Figure 14. recreational vehicle, RV, R.V.
For the “triumphal arch” category in Figure 16, the dataset contains arches from several locations, but the top-ranked images at high are different views of the Arch of Constantine next to the Colosseum in Rome.

Figure 16. triumphal arch

Figure 8. hammerhead shark

Figure 9. loggerhead turtle (lat. Caretta caretta)

Figure 10. ruddy turnstone (lat. Arenaria interpres)

Figure 11. backpack, back pack, knapsack, packsack, rucksack, haversack

Figure 12. balloon

Figure 13. plastic bag

Figure 15. running shoe
Implementation Details and Setup
Synthetic
The synthetic tasks test whether IW-CFM recovers when the ground-truth density and vector field are available analytically. We use a three-mode Gaussian mixture and a distribution with a tree-like branching structure.
Analytical quantities. The synthetic implementations provide
conditional and unconditional log-densities, and ;
conditional and unconditional ground-truth vector fields, and ; and
exact conditional and unconditional sampling procedures.
Distribution Parameters.
Three-Gaussian mixture: three components with means and identity covariance.
Fractal distribution: a reimplementation of the tree-like structure in Karras et al. [21]. Each category is a mixture of 1,016 Gaussian components arranged along the branching structure. We use slightly modified parameters.
Corrector Architecture. We train a lightweight affine correction to the analytical conditional vector field:
where a multilayer perceptron maps to scale and shift.
Training and Hyperparameters. We train the corrector for 8,192 iterations with a total batch size of 8,192, partitioned into pairs and samples per pair for nested normalization. For both tasks, is uniform on .
CLIP Evaluation Suite Details
For each ImageNet class and attribute contrast , let and denote the positive and negative prompts listed in Table 2. For an image from class , we define the paired CLIP score by applying a two-way softmax to the temperature-adjusted cosine similarities:
Here, is the CLIP cosine similarity between image and prompt , and . During evaluation, \{class_name\} is replaced with the name of class .
Base Model Density Computational Cost
For the main results presented in the paper the augmented ODE for log-probability evaluation (Equation (6)) uses a first-order Euler solver with 250 steps. The computational cost of processing the whole ImageNet dataset is approximately 2100 GPUhours on an RTX 4090. The resulting log-densities in float32 precision take approximately 20MB of storage. Since we use the horizontal flip data augmentation, both the computational and storage cost is doubled.
Base Model Density Ablation
We assess the numerical sensitivity of the base-model log-density estimates used for importance weighting.
Numerical Consistency and Ranking Stability. We vary the integration step count on a random subset of ImageNet instances. Figure 18 shows strong linear correlation between lower-step and 250-step log-density estimates. Because the importance weights and ranking analysis depend on instance order, we also measure Spearman rank correlation () against the 250-step estimates.
Figure 18. Numerical convergence of log-densities. Hexbin plots comparing log-density estimates at steps with the 250-step estimates.
Figure 17. Ranking stability of log-density evaluation. Spearman rank correlation () between rankings at each step count and the 250-step estimates. Both conditional and unconditional rankings reach by 125 steps.
Log-density correlation. Figure 18 compares lower-step estimates with the 250-step reference. The diagonal concentration shows that absolute values change with numerical integration error while instance ordering remains similar.
SiT Corrector: Implementation and Training Details
To scale our method to ImageNet, we implement the IW-CFM corrector as a parameter-efficient adapter integrated into a frozen SiT-XL/2 backbone. The architecture and parameter-efficient conditioning follow the design of Jensen & Sadat [19].
Training Strategy and Efficiency. We precompute the normalized importance weights on an integer grid. For each continuous , the ImageNet data loader rounds to the nearest grid point and samples examples with replacement according to the stored sampling weights at that point. For each sampled instance , we interpolate the unmodified weights at the adjacent grid points to obtain . The flow-matching loss is multiplied by when the denominator exceeds , and by one otherwise. The unit fallback gives re-injected training examples an unweighted flow-matching loss; these examples would otherwise receive zero weight. It also avoids division by a numerically zero stored weight. We therefore interpolate weights only for sampled instances. This avoids the nested normalization in Algorithm 1 during corrector training and is more efficient than uniform sampling followed by self-normalized weighting, for which most sampled examples would have zero loss weight.
We train with a global batch size of 256 distributed across 8 GPUs.
Normalizing independently on each GPU’s local subbatch would reduce the normalization-group size, lowering the effective sample size (ESS) and increasing variance.
The precomputed proposal and correction weights are shared across workers.
Optimizer and Schedule. We use Adam with , , and a base learning rate of . We train for 45,000 iterations with a 2,000-iteration linear warmup followed by cosine decay.
Evaluation Setup. We sample with a Heun solver using 250 function evaluations (125 steps). At each , we generate 50,000 instances (50 per ImageNet class).
The computational cost of training the corrector is approximately 96 GPUhours on a RTX A6000. In Table 3 we report the overhead of the corrector during inference on a RTX 4090. For each of the setups we run 10 independent measurements, each preceded by proper warming up. We report the comparison on a single forward run, on the full sampling with a 250-NFE Heun sampler, as well as sampling with decoding to image space. All experiments are run in both batch size 1 and 24 setups, in eager and compiled mode. While the overhead in batch size 1 eager mode is noticeable (more than 20%) the difference is decreasing significantly (to less than 1% in certain setups) with batch size 24 and/or compiled mode.
| Batch | Mode | Forward (%) | Sampling (%) | Sampling + VAE (%) |
| 1 | Eager | +21.41 ± 0.33 | +21.49 ± 0.12 | +18.38 ± 3.03 |
| 1 | Compiled | +1.98 ± 0.03 | +2.91 ± 0.02 | +2.88 ± 0.00 |
| 24 | Eager | +0.58 ± 0.07 | +0.38 ± 0.47 | +0.84 ± 0.40 |
| 24 | Compiled | +0.12 ± 0.11 | +0.36 ± 0.50 | +0.18 ± 0.12 |
Table 3. Corrector runtime overhead relative to base SiT for 250-NFE Heun sampling. Central values are computed from the ratio of mean latencies; uncertainties are delta-method standard errors assuming independent base-model and corrector timing samples. The VAE decoder is always compiled.
ImageNet Weight Hyperparameters
We use , a per-class clipping fraction (1%), a zero-weight re-injection fraction , and a loss-correction threshold of . Re-injection is applied separately within each class that has exact-zero stored weights: nonzero sampling weights are scaled by , and the reserved mass is distributed uniformly only among that class’s zero-weight entries. Classes without exact-zero entries are left unchanged. This modification is used only for training-data proposal sampling; interpolation and loss correction use the unmodified weights from Equations (11) and (12).
We define the clipping operator precisely. For fixed and , write the ordered log-weights as , let , and let be the largest log-weight below the clipped group. Then
Thus, the largest log-weights are capped at rather than removed. For the degenerate case , we set .
In exact arithmetic, the softmax probabilities are strictly positive. Stored float32 weights can nevertheless become exactly zero when exponentiation and normalization underflow. As illustrated in Figure 19, the number of weights that remain nonzero is sensitive to and ; the selected configuration yields approximately 30,000 numerically active instances per across ImageNet. Here and in the filtered-reference evaluation, active means that the stored float32 weight is strictly greater than zero. Clipping itself does not remove instances.
Details of the ablation experiments
Number of steps in log-densities
In Table 4 we report the 100 ImageNet categories used in the number of steps in log-densities ablation experiment, grouped into thematic sections.
| Animals (29 categories) | ||||
| great white shark (2) | bald eagle (22) | axolotl (29) | loggerhead turtle (33) | Komodo dragon (48) |
| triceratops (51) | scorpion (71) | peacock (84) | platypus (103) | jellyfish (107) |
| chambered nautilus (117) | hermit crab (125) | flamingo (130) | king penguin (145) | killer whale (148) |
| Labrador retriever (208) | tabby cat (281) | tiger (292) | bee (309) | dragonfly (319) |
| monarch butterfly (323) | starfish (327) | zebra (340) | hippopotamus (344) | Arabian camel (354) |
| three-toed sloth (364) | chimpanzee (367) | African elephant (386) | pufferfish (397) | |
| Food, plants, and natural scenes (12 categories) | ||||
| ice cream (928) | cheeseburger (933) | broccoli (937) | strawberry (949) | banana (954) |
| pizza (963) | rapeseed (984) | daisy (985) | alp (970) | coral reef (973) |
| seashore (978) | volcano (980) | |||
| Vehicles and transport (12 categories) | ||||
| airliner (404) | ambulance (407) | bullet train (466) | canoe (472) | container ship (510) |
| fire engine (555) | mountain bike (671) | pickup truck (717) | school bus (779) | sports car (817) |
| submarine (833) | tractor (866) | |||
| Music, sports, and leisure (10 categories) | ||||
| acoustic guitar (402) | cello (486) | French horn (566) | grand piano (579) | saxophone (776) |
| barbell (422) | basketball (430) | golf ball (574) | parachute (701) | soccer ball (805) |
| Technology, tools, and scientific objects (12 categories) | ||||
| binoculars (447) | chain saw (491) | computer keyboard (508) | desktop computer (527) | hammer (587) |
| joystick (613) | laptop (620) | oscilloscope (688) | power drill (740) | projector (745) |
| reflex camera (759) | stethoscope (823) | |||
| Household, clothing, and personal objects (12 categories) | ||||
| backpack (414) | bookcase (453) | coffee mug (504) | jeans (608) | kimono (614) |
| microwave (651) | refrigerator (760) | running shoe (770) | umbrella (879) | vacuum cleaner (882) |
| wallet (893) | washing machine (897) | |||
| Architecture and infrastructure (10 categories) | ||||
| lighthouse (437) | castle (483) | church (497) | dam (525) | greenhouse (580) |
| mosque (668) | palace (698) | suspension bridge (839) | street sign (919) | traffic light (920) |
| People and human activities (3 categories) | ||||
| baseball player (981) | groom / bridegroom (982) | scuba diver (983) |
Table 4. The 100 ImageNet categories used in the number of steps in log-densities ablation experiment. Numbers in parentheses denote the ImageNet class IDs.
Extended Empirical Evidence
Absolute CLIP Contrasts for Real-Data Rankings
The baseline-relative trajectories in Figure 6 are obtained by centering each classwise contrast at its value for . This centering isolates changes with , but suppresses the sign and magnitude of the baseline association. Figure 20 reports the corresponding uncentered contrasts, with linking the two representations.
CLIP Comparison of IW-CFM and CFG
As an ancillary method comparison, we evaluate IW-CFM and CFG generations using the paired CLIP scores defined in Sections C.2 and 5.2, with inference-time guidance held at for both methods.
For each ImageNet category and prompt pair, we select the target that maximizes the mean paired CLIP score of the IW-CFM samples over the evaluated values; we term this the score-optimal . Figure 21 reports the resulting oracle comparison. In this in-sample, post-selected comparison, the selected IW-CFM score exceeds the CFG score in 70.6%, 69.7%, 68.2%, and 69.5% of categories for complex/simple, natural/synthetic, realism/CGI, and texture, respectively—approximately 70% for each prompt pair.
Figure 21. In-sample oracle upper envelope for the additional IW-CFM–CFG comparison. Each panel shows ImageNet categories according to the paired CLIP score of CFG at (x-axis) and the maximum score difference attained by IW-CFM at the same inference-time guidance after selecting its target on the evaluation samples (y-axis). Color intensity denotes the number of categories in each hexagonal bin, and the percentage is the fraction with a positive post-selection difference. Because selection and evaluation use the same samples, the figure is neither a held-out performance estimate nor evidence of statistical significance.
Additional Synthetic Results
Additional Synthetic Results: IW-CFM
Figures 22 and 23 provide an expanded qualitative comparison between the sampling behavior of standard CFG and IW-CFM on synthetic datasets where the analytical target density is known.

(a) 99.7% probability-mass contours of the -powered distribution for the three classes of the three-Gaussian distribution, with CFG samples overlaid at the matched guidance scale .

(b) 99.7% probability-mass contours of the -powered distribution for the three classes of the three-Gaussian distribution, with directly sampled IW-CFM realizations overlaid at the corresponding ; no additional CFG is applied.
Figure 22. Three-Gaussian comparison. CFG with matched guidance (left) departs from the analytical target contours, whereas IW-CFM targeting (right) remains close to them.
Additional Synthetic Results: REG & FKC
We implement Rectified Gradient Guidance (REG) [10 b] and Feynman–Kac Correctors (FKC) [35 a] within our evaluation codebase, following the published algorithms and reusing Figure 23: Fractal comparison. CFG with matched guidance (left) departs from the analytical target contours, whereas IW-CFM targeting (right) remains close to them.

Figure 23. (a) 99.7% probability-mass contours of the -powered distribution for the two classes of the fractal distribution, with CFG samples overlaid at the matched guidance scale . (b) 99.7% probability-mass contours of the -powered distribution for the two classes of the fractal distribution, with directly sampled IW-CFM realizations overlaid at the corresponding ; no additional CFG is applied.
components from the released implementations where applicable. We apply both methods to the exact conditional and unconditional vector fields of the three-Gaussian problem. Under the tested configurations, neither resulting sample distribution closely follows the analytical powered contours in Figure 24. This observation is specific to these implementations and configurations and should not be interpreted as a general failure of either framework.

Figure 24. (a) Samples from Rectified Gradient Guidance over the 99.7% probability-mass contours of the -powered target for the three-Gaussian distribution. (b) Samples from Feynman–Kac Correctors over the 99.7% probability-mass contours of the -powered target for the three-Gaussian distribution.
Figure 24: REG and FKC on a Gaussian mixture. Results from our implementations of REG ([10]) (left) and FKC ([35]) (right), which follow the published algorithms and reuse components from released code where applicable. Under these configurations, neither sample distribution closely follows the analytical -powered contours.
ImageNet Metrics Extension
Main Text Metrics Extension
The following analysis extends Figure 2 by comparing IW-CFM targeting each against CFG whose guidance scale is numerically matched, .
As shown in Figure 25, increasing CFG guidance to match the reference powering parameter, , leads to rapidly increasing distance from the regularized empirical references. IW-CFM remains closer to these references, so the result is not limited to comparison with fixed CFG guidance at . IW-CFM is evaluated on the following to validate the effectiveness of the interpolation of precomputed self-normalized weights. The baselines are evaluated only on the integer .
Unguided Distribution-Shift Evaluation
This evaluation tests whether the learned IW-CFM vector field shifts the generated distribution toward the regularized reference without relying on inference-time guidance. We report Fréchet Distance in Table 5 and PRDC in Table 6, comparing unguided IW-CFM with the conditional Base SiT (). IW-CFM is consistently better aligned with the reference across , providing evidence that the distributional shift is learned by the corrector itself. The remaining gap to the guided results quantifies the practical benefit of the additional inference heuristic.
| Model | Reference | FID | FD-DINOv2 |
| Base SiT () | 4.0 | 19.97 | 324.02 |
| IW-CFM () | 4.0 | 8.48 | 215.80 |
| Base SiT () | 8.0 | 20.55 | 328.66 |
| IW-CFM () | 8.0 | 8.90 | 221.41 |
| Base SiT () | 16.0 | 21.41 | 339.18 |
| IW-CFM () | 16.0 | 9.29 | 223.39 |
| Base SiT () | 32.0 | 21.73 | 348.58 |
| IW-CFM () | 32.0 | 10.56 | 227.64 |
| Base SiT () | 64.0 | 20.23 | 341.78 |
| IW-CFM () | 64.0 | 12.27 | 245.24 |
| Base SiT () | 128.0 | 18.73 | 334.46 |
| IW-CFM () | 128.0 | 13.52 | 263.39 |
Table 5. Unguided distribution-shift evaluation using Fréchet Distance to the filtered regularized ImageNet reference. All IW-CFM rows use and differ only in the target powering parameter . IW-CFM outperforms the conditional Base SiT at every evaluated ; comparison with Figure 2 shows the additional benefit of guided inference.
| Model | Reference | Precision | Recall | Density | Coverage |
| Base SiT () | 4.0 | 0.37 | 0.59 | 0.64 | 0.81 |
| IW-CFM () | 4.0 | 0.51 | 0.68 | 0.87 | 0.93 |
| Base SiT () | 8.0 | 0.37 | 0.60 | 0.62 | 0.80 |
| IW-CFM () | 8.0 | 0.51 | 0.69 | 0.84 | 0.93 |
| Base SiT () | 16.0 | 0.39 | 0.62 | 0.61 | 0.79 |
| IW-CFM () | 16.0 | 0.51 | 0.70 | 0.83 | 0.92 |
| Base SiT () | 32.0 | 0.41 | 0.64 | 0.59 | 0.74 |
| IW-CFM () | 32.0 | 0.50 | 0.70 | 0.75 | 0.89 |
| Base SiT () | 64.0 | 0.44 | 0.65 | 0.63 | 0.72 |
| IW-CFM () | 64.0 | 0.48 | 0.71 | 0.71 | 0.86 |
| Base SiT () | 128.0 | 0.47 | 0.65 | 0.69 | 0.72 |
| IW-CFM () | 128.0 | 0.48 | 0.71 | 0.71 | 0.85 |
Table 6. Unguided distribution-shift evaluation using Precision, Recall, Density, and Coverage with respect to the filtered regularized ImageNet reference. All IW-CFM rows use and differ only in the target powering parameter . IW-CFM is better aligned than the conditional Base SiT at every ; Table 1 reports the guided practical configuration.
Standard ImageNet Target Metrics
We also report the main-text metrics with respect to standard ImageNet references:
for Fréchet Distance: a category-saturated 50k subset of the training set,
for Precision, Recall, Density, and Coverage: a 10k-feature batch from the standard evaluation suite of OpenAI (2021).
In Table 7 and Table 8, CFG at a suitable guidance scale is better aligned with the standard ImageNet references, as expected. IW-CFM, evaluated with fixed inference-time guidance , moves closer to these references as its powering parameter increases.
Table 7: Fréchet Distance with respect to the category-saturated 50k subset of the ImageNet training set using two feature backbones. CFG rows are labeled by guidance scale ; IW-CFM rows are labeled by powering parameter and use inference-time guidance . The best CFG configuration outperforms IW-CFM, although the gap narrows as increases.
| Model | FID-50k | FD-DINOv2-50k |
| CFG () | 2.04 | 88.36 |
| CFG () | 14.07 | 85.64 |
| IW-CFM () | 8.33 | 157.81 |
| CFG () | 16.32 | 137.56 |
| IW-CFM () | 8.49 | 159.98 |
| CFG () | 16.25 | 238.82 |
| IW-CFM () | 8.22 | 152.25 |
| CFG () | 36.00 | 517.38 |
| IW-CFM () | 6.48 | 120.31 |
| CFG () | 213.17 | 1991.20 |
| IW-CFM () | 4.54 | 99.67 |
| CFG () | 253.71 | 2749.11 |
| IW-CFM () | 3.80 | 99.69 |
Table 7.
Table 8: Precision, Recall, Density, and Coverage with respect to the 10k-feature ImageNet evaluation batch from OpenAI (2021). CFG is labeled by guidance scale ; IW-CFM is labeled by powering parameter and uses inference-time guidance . As in Table 7, the baseline has the best overlap with the reference, although the gap narrows as increases.
| Model | Precision | Recall | Density | Coverage |
| CFG () | 0.83 | 0.58 | 1.17 | 0.98 |
| IW-CFM () | 0.78 | 0.49 | 1.05 | 0.94 |
| IW-CFM () | 0.78 | 0.49 | 1.05 | 0.93 |
| IW-CFM () | 0.79 | 0.48 | 1.07 | 0.94 |
| IW-CFM () | 0.81 | 0.49 | 1.08 | 0.94 |
| IW-CFM () | 0.81 | 0.52 | 1.08 | 0.95 |
| IW-CFM () | 0.81 | 0.54 | 1.08 | 0.95 |
Table 8.
Table 9 reports Fréchet Distance without inference-time guidance. In this setup, IW-CFM at is closest to the standard ImageNet reference.
| Model | FID-50k | FD-DINOv2-50k |
| Base SiT () | 9.55 | 246.24 |
| IW-CFM () | 11.21 | 247.82 |
| IW-CFM () | 11.53 | 252.24 |
| IW-CFM () | 10.52 | 238.72 |
| IW-CFM () | 7.64 | 204.28 |
| IW-CFM () | 7.14 | 202.63 |
| IW-CFM () | 8.39 | 219.95 |
Table 9. Fréchet Distance with respect to the category-saturated 50k subset of the ImageNet training set without inference-time guidance (). IW-CFM at achieves the best result for both feature backbones, outperforming the conditional Base SiT.
Memorization Analysis
To assess whether IW-CFM retrieves high-likelihood training instances rather than generating novel variations, we conduct a nearest-neighbor analysis. This test asks whether training-data retrieval could explain the observed distribution-alignment and paired-CLIP score differences.
Methodology. We follow the framework of Gu et al. [12]. After deduplicating the training set as described below, we flatten the VAE latent tensors and compute Euclidean distances from each generated sample to every remaining training instance. We apply no additional distance filter before sorting these distances. Let be the two smallest distances. We flag a generated sample as a potential retrieval when
For , this is equivalent to ; the multiplicative form also covers an exact match with . The reported memorization ratio is the fraction of generated samples satisfying this condition. We use the VAE latent representation on which the generative model operates; this choice does not guarantee that the distances measure semantic similarity.
Deduplication. ImageNet contains duplicate and near-duplicate training instances. A generated sample may therefore have similar distances to two copies of the same image (), causing the ratio test to miss a possible retrieval. Before the nearest-neighbor search, we deduplicate the training set by removing instances within an -distance threshold of .
Retrieval-Test Results. As shown in Figure 27, the fraction flagged by the detector remains below 0.05% across all evaluated powering parameters . Few samples are therefore flagged as retrievals under the specified test, but this is not a general guarantee of non-memorization.
Figure 27. Nearest-neighbor retrieval test. Fraction of IW-CFM realizations satisfying across powering parameters and inference-time guidance scales , where and are Euclidean distances to the first and second nearest neighbors in the deduplicated training set. The ratios remain low under this test, but do not by themselves establish generalization.
Extended ImageNet Samples
We present additional qualitative results for the ImageNet categories used in the powered-density ranking analysis of Section B.2. These visualizations show how IW-CFM generations change with the target powering parameter while the inference-time guidance scale remains fixed at ; they are not a systematic evaluation of attribute transfer or generalization.
As shown in Figure 28 to Figure 30, each grid compares a fixed set of four initial latents (rows) generated by baseline CFG at and by IW-CFM at varying target , also with .

Figure 28. (a) hammerhead shark (b) loggerhead turtle (lat. Caretta caretta) (c) ruddy turnstone (lat. Arenaria interpres) (d) backpack, back pack, knapsack, packsack, rucksack, haversack. Baseline CFG and IW-CFM both use ; the IW-CFM columns vary the target powering parameter .

Figure 30. Additional qualitative trajectory for the triumphal arch class. Baseline CFG and IW-CFM both use ; the IW-CFM columns vary the target powering parameter .

Figure 29. Additional qualitative ImageNet trajectories for four classes. Baseline CFG and IW-CFM both use ; the IW-CFM columns vary the target powering parameter .
References
- [1]Michael Albergo, Nicholas M. Boffi, and Eric Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions. Journal of Machine Learning Research, 26(209):1–80, 2025. URL http://jmlr.org/papers/v26/23-1605.html.
- [2]Arwen Bradley and Preetum Nakkiran. Classifier-free guidance is a predictor-corrector. In NeurIPS 2024 Workshop on Mathematics of Modern Machine Learning, 2024. URL https://openreview.net/forum?id=2dZswRE2sD.arxiv.org/abs/2408.09000
- [3]Ricky TQ Chen, Yulia Rubanova, Jesse Bettencourt, and David K Duvenaud. Neural ordinary differential equations. Advances in neural information processing systems, 31, 2018.arxiv.org/abs/1806.07366
- [4]Muthu Chidambaram, Khashayar Gatmiry, Sitan Chen, Holden Lee, and Jianfeng Lu. What does guidance do? a fine-grained analysis in a simple setting. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=AdS3H8SaPi. Hyungjin Chung, Jeongsol Kim, Geon Yeong Park, Hvelin Nam, and Jong Chul Ye. CFG++: Manifold-constrained classifier free guidance for diffusion models. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=E77uvb0Ttp.
- [5]Jacob Cohen. Statistical Power Analysis for the Behavioral Sciences. Routledge, New York, 2nd edition, 1988. doi: 10.4324/9780203771587.
- [6]Quan Dao, Hao Phung, Binh Nguyen, and Anh Tran. Flow matching in latent space. arXiv preprint arXiv:2307.08698, 2023.
- [7]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, 2009. doi: 10.1109/CVPR.2009.5206848.DOI
- [8]Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. Advances in neural information processing systems, 34:8780–8794, 2021.
- [9]Alexandre Galashov, Ashwini Pokle, Arnaud Doucet, Arthur Gretton, Mauricio Delbracio, and Valentin De Bortoli. Learn to guide your diffusion model. arXiv preprint arXiv:2510.00815, 2025.arxiv.org/abs/2510.00815
- [10]Zhengqi Gao, Kaiwen Zha, Tianyuan Zhang, Zihui Xue, and Duane S Boning. REG: Rectified gradient guidance for conditional diffusion models. In Forty-second International Conference on Machine Learning, 2025a. URL https://openreview.net/forum?id=uNK4fGtdnq.arxiv.org/abs/2501.18865
- [12]Xiangming Gu, Chao Du, Tianyu Pang, Chongxuan Li, Min Lin, and Ye Wang. On memorization in diffusion models. Transactions on Machine Learning Research, 2025. ISSN 2835-8586. URL https://openreview.net/forum?id=D3DBqvSDbj.
- [13]Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In International conference on machine learning, pp. 1321–1330. PMLR, 2017.arxiv.org/abs/1706.04599
- [14]Simon Hentschel, Konstantin Kobs, and Andreas Hotho. Clip knows image aesthetics. Frontiers in Artificial Intelligence, Volume 5 - 2022, 2022. ISSN 2642-8212. doi: 10.3389/frai.2022.976235. URL https://www.frontiersin.org/journals/artificial-intelligence/articles/10.3389/frai.2022.976235.DOI
- [15]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. In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017. URL https://proceedings.neurips.cc/paper_files/paper/2017/file/8a1d69470eb0efe65871369074926d-Paper.pdf.
- [16]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=qw8AkxIrYbI.arxiv.org/abs/2207.12598
- [17]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 6840–6851. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/4c5bcfec874a4d0967f1ab10179ca4b-Paper.pdf.arxiv.org/abs/2006.11239
- [18]M.F. Hutchinson. A stochastic estimator of the trace of the influence matrix for Laplacian smoothing splines. Communication in Statistics- Simulation and Computation, 18:1059–1076, 01 1989. doi: 10.1080/03610919008812866.DOI
- [19]Cristian Perez Jensen and Seyedmortaza Sadat. Efficient distillation of classifier-free guidance using adapters. Transactions on Machine Learning Research, 2025.arxiv.org/abs/2503.07274
- [20]Rafał Karczewski, Markus Heinonen, and Vikas Garg. Diffusion models as cartoonists: The curious case of high density regions. In International Conference on Learning Representations, volume 2025, pp. 12882–12915, 2025.arxiv.org/abs/2411.01293
- [21]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.arxiv.org/abs/2406.02507
- [22]Lee Cheuk Kit, Paul Jeha, Jes Frellsen, Pietro Lio, Michael Samuel Albergo, and Francisco Vargas. Debiasing guidance for discrete diffusion with sequential monte carlo. In Frontiers in Probabilistic Inference: Learning meets Sampling, 2025. URL https://openreview.net/forum?id=vg0d0u3w9g.
- [23]Tuomas Kynkäänniemi, Tero Karras, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Improved precision and recall metric for assessing generative models. Advances in neural information processing systems, 32, 2019.
- [24]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.arxiv.org/abs/2210.02747
- [25]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.arxiv.org/abs/2209.03003
- [26]Nanye Ma, Mark Goldstein, Michael S Albergo, Nicholas M Boffi, Eric Vanden-Eijnden, and Saining Xie. SiT: Exploring flow and diffusion-based generative models with scalable interpolant transformers. In European Conference on Computer Vision, pp. 23–40. Springer, 2024.arxiv.org/abs/2401.08740
- [28]Chenlin Meng, Robin Rombach, Ruiqi Gao, Diederik Kingma, Stefano Ermon, Jonathan Ho, and Tim Salimans. On distillation of guided diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14297–14306, 2023.arxiv.org/abs/2210.03142
- [29]Muhammad Ferjad Naeem, Seong Joon Oh, Youngjung Uh, Yunjey Choi, and Jaejun Yoo. Reliable fidelity and diversity metrics for generative models. In International conference on machine learning, pp. 7176–7185. PMLR, 2020.arxiv.org/abs/2002.09797
- [31]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.
- [32]Tom Rainforth, Rob Cornish, Hongseok Yang, Andrew Warrington, and Frank Wood. On nesting monte carlo estimators. In International Conference on Machine Learning, pp. 4267–4276. PMLR, 2018.arxiv.org/abs/1709.06181
- [33]Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10684–10695, 2022.arxiv.org/abs/2112.10752
- [35]Marta Skreta, Tara Akhound-Sadegh, Viktor Ohanesian, Roberto Bondesan, Alan Aspuru-Guzik, Arnaud Doucet, Rob Brekelmans, Alexander Tong, and Kirill Neklyudov. Feynman-kac correctors in diffusion: Annealing, guidance, and product of experts. In Forty-second International Conference on Machine Learning, 2025b. URL https://openreview.net/forum?id=VhcOKrcqWu.arxiv.org/abs/2503.02819
- [36]Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 2256–2265, Lille, France, 07–09 Jul 2015. PMLR.
- [37]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.
- [38]George Stein, Jesse Cresswell, Rasa Hosseinzadeh, Yi Sui, Brendan Ross, Valentin Villecroze, Zhaoyan Liu, Anthony L Caterini, Eric Taylor, and Gabriel Loaiza-Ganem. Exposing flaws of generative model evaluation metrics and their unfair treatment of diffusion models. Advances in Neural Information Processing Systems, 36:3732–3784, 2023.arxiv.org/abs/2306.04675
- [39]Jianyi Wang, Kelvin CK Chan, and Chen Change Loy. Exploring clip for assessing the look and feel of images. In Proceedings of the AAAI conference on artificial intelligence, volume 37, pp. 2555–2563, 2023.arxiv.org/abs/2207.12396
- [40]Shiyuan Zhang, Weitong Zhang, and Quanquan Gu. Energy-weighted flow matching for offline reinforcement learning. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=HAo0LUvuGI.arxiv.org/abs/2503.04975
- [41]Weixia Zhang, Guangtao Zhai, Ying Wei, Xiaokang Yang, and Kede Ma. Blind image quality assessment via vision-language correspondence: A multitask learning perspective. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 14071–14081, 2023.arxiv.org/abs/2303.14968
- [42]Qinqing Zheng, Matt Le, Neta Shaul, Yaron Lipman, Aditya Grover, and Ricky TQ Chen. Guided flows for generative modeling and decision making. arXiv preprint arXiv:2311.13443, 2023.arxiv.org/abs/2311.13443









