betaFeedback

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 yy by combining conditional and unconditional vector-field estimates.

Both CFG and its predecessor, classifier-based guidance ([8]), are motivated by a powered distribution,

pω(x∣y)∝p(x∣y)ωp(x)1−ω(1)p_\omega(x|y) \propto p(x|y)^\omega p(x)^{1-\omega} \tag*{(1)}

where ω>1\omega> 1 is the powering parameter. Separately, we denote the CFG guidance scale by γ\gamma: CFG combines the conditional and unconditional vector fields as vCFGγ=γv(⋅∣y)+(1−γ)v(⋅)v_{\mathrm{CFG}}^\gamma= \gamma v(\cdot|y) + (1-\gamma)v(\cdot). Its standard motivating interpretation identifies the two numerical values, γ=ω\gamma= \omega, and treats vCFGγv_{\mathrm{CFG}}^\gamma as if it generated pωp_\omega. 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 pωp_{\omega}, even when γ=ω\gamma= \omega. 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].

Synthetic target recovery and qualitative ImageNet generations

Figure 1. (a,b) On a synthetic dataset, IW-CFM samples match the 99.7% probability-mass contour of the analytical pωp_{\omega}, whereas CFG with numerically matched guidance γ=ω\gamma= \omega 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 γ=4\gamma= 4, while IW-CFM additionally varies the target powering parameter ω\omega.

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 ω\omega and learns the flow for pω(x∣y)p_{\omega}(x \mid y) 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 γ\gamma.

Beyond target recovery, we examine how powered-density rankings of real images change with ω\omega. 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 ω\omega-powered conditional targets using density ratios from frozen conditional and unconditional flow models.

  • We develop a hierarchical self-normalized estimator for heterogeneous (y,ω)(y,\omega) pairs and distinguish this finite-sample procedure from the exact population objective.

  • We develop a lightweight corrector amortized over ω\omega 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 ω\omega-Powered Distribution

We adopt the Flow Matching (FM) framework [24], which defines a probability path pt(x)p_t(x) for t∈[0,1]t \in[0,1] interpolating between a prior p0(x)=N(x;0,I)p_0(x) = \mathcal{N}(x; 0, I) and data p1(x)p_1(x). The flow is governed by a time-dependent vector field v(⋅,t)v(\cdot,t) via the ODE dxt=v(xt,t)dt\mathrm{d}x_t = v(x_t,t)\mathrm{d}t.

Background on Conditional Flow Matching

In Conditional Flow Matching, for each data point x1x_1, we define a conditional probability path pt(x∣x1)p_t(x|x_1) that interpolates between a prior sample x0∼p0x_0 \sim p_0 and the data point x1x_1. The path is constructed by defining the interpolated sample xtx_t and its corresponding target velocity vector utu_t as:

xt=αtx1+σtx0(2)x_t = \alpha_t x_1 + \sigma_t x_0 \tag*{(2)}
ut=α˙tx1+σ˙tx0(3)u_t = \dot{\alpha}_t x_1 + \dot{\sigma}_t x_0 \tag*{(3)}

where αt\alpha_t and σt\sigma_t are differentiable functions of time t∈[0,1]t \in[0,1] defining the schedule. The goal of a standard conditional flow matching model is to learn a vector field that predicts this target velocity utu_t marginalized over x1x_1 [24].

CFG Guidance and the Powered Target

We reserve γ\gamma for the CFG guidance scale and ω\omega for the powering parameter. Given conditional and unconditional vector fields, CFG uses

vCFGγ(x,t,y)=γv(x,t∣y)+(1−γ)v(x,t).(4)v_{\mathrm{CFG}}^\gamma(x,t,y) = \gamma v(x,t|y) + (1-\gamma)v(x,t). \tag*{(4)}

The usual powered-distribution motivation associates CFG at γ\gamma with pωp_\omega at the matched numerical value ω=γ\omega= \gamma. We write this motivating correspondence as

CFG⁡(γ=ω)→motivationpω,Law⁡(CFG⁡(γ=ω))≠pωin general.(5)\operatorname{CFG}(\gamma=\omega) \xrightarrow{\text{motivation}} p_\omega,\qquad\operatorname{Law}(\operatorname{CFG}(\gamma=\omega)) \ne p_\omega\quad\text{in general}. \tag*{(5)}

IW-CFM addresses the right-hand side directly by learning a vector field conditioned on ω\omega. When we later apply CFG to this learned field at inference time, its scale remains a distinct parameter γ\gamma.

Density Evaluation and Pre-computation

To enable importance weighting, we require the log-densities of the unconditional p(x)p(x) and conditional p(x∣y)p(x|y) distributions. Given a vector field vv, we use the instantaneous change of variables formula [3]:

log⁡p(x)=log⁡p0(x0)−∫01∇⋅v(xt,t) dt(6)\log p(x) = \log p_0(x_0) - \int_0^1 \nabla\cdot v(x_t,t)\,\mathrm{d}t \tag*{(6)}

where x0x_0 is obtained by integrating the ODE backward from t=1t=1 to t=0t=0. In high dimensions, we approximate the divergence ∇⋅v\nabla\cdot v 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, log⁡p(x∣y)\log p(x|y), is computed similarly using the conditional vector field v(x∣y)v(x|y).

Practical Implementation. Because the base vector fields v(x)v(x) and v(x∣y)v(x|y) remain frozen, we precompute these log-densities for the training set. Corrector training therefore does not backpropagate through the density models.

Algorithm 1 Importance-Weighted Conditional Flow Matching (IW-CFM)

Figure 1 (PDF p. 4).

Importance-Weighted Conditional Flow Matching (IW-CFM)

Our goal is to learn a vector field vϕ(x,t,y,ω)v^\phi(x,t,y,\omega) that targets the normalized powered distribution pω(x∣y)=p~ω(x∣y)/Z(y,ω)p_\omega(x|y)=\tilde{p}_\omega(x|y)/Z(y,\omega). We define the unnormalized weight for a sample (x,y)(x,y) as

w~ω(x,y)=p~ω(x∣y)p(x∣y)=p(x∣y)ω−1p(x)1−ω.(7)\tilde{w}_\omega(x,y)=\frac{\tilde{p}_\omega(x|y)}{p(x|y)}=p(x|y)^{\omega-1}p(x)^{1-\omega}. \tag*{(7)}

The exact normalized density ratio is

wω∗(x,y)=w~ω(x,y)Z(y,ω)=pω(x∣y)p(x∣y),Z(y,ω)=Ep(x∣y)[w~ω(x,y)].(8)w_\omega^*(x,y)=\frac{\tilde{w}_\omega(x,y)}{Z(y,\omega)}=\frac{p_\omega(x|y)}{p(x|y)},\qquad Z(y,\omega)=\mathbb{E}_{p(x|y)}[\tilde{w}_\omega(x,y)]. \tag*{(8)}

Using this exact ratio gives the population IWIW-CFMCFM objective

LIW−CFM∗(ϕ,ω)=Ep(y),p(x1∣y)[wω∗(x1,y)Ep(t),pt(x∣x1)[∥vϕ(x,t,y,ω)−ut(x∣x1)∥2]].(9)\mathcal{L}_{\mathrm{IW-CFM}}^*(\phi,\omega)=\mathbb{E}_{p(y),p(x_1|y)}\left[w_\omega^*(x_1,y)\mathbb{E}_{p(t),p_t(x|x_1)}\left[\left\|v^\phi(x,t,y,\omega)-u_t(x|x_1)\right\|^2\right]\right]. \tag*{(9)}

The normalizer Z(y,ω)Z(y,\omega) is generally unavailable. For a batch of KK samples {xi}i=1K\{x_i\}_{i=1}^K drawn from p(x∣y)p(x|y), we therefore use finite-batch self-normalized importance sampling (SNIS) weights

w^ω,K(i)=w~ω(xi,y)∑k=1Kw~ω(xk,y).(10)\widehat{w}_{\omega,K}^{(i)}=\frac{\tilde{w}_\omega(x_i,y)}{\sum_{k=1}^K\tilde{w}_\omega(x_k,y)}. \tag*{(10)}

As shown in Section A.1, the exact objective LIW−CFM∗\mathcal{L}_{\mathrm{IW-CFM}}^* has the same gradient as the ideal flow-matching objective on pωp_\omega. Replacing wω∗w_\omega^* with w^ω,K\widehat{w}_{\omega,K} gives the practical estimator in Algorithm 1; its gradient is biased for finite KK and becomes unbiased asymptotically as K→∞K\to\infty. 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 ω\omega-Powering via Lightweight Correctors

To avoid training a separate model for each powering parameter, we treat ω\omega as a conditioning variable for a single corrector network. We implement this corrector, vϕv^\phi, using lightweight, parameter-efficient designs. For synthetic experiments, vϕv^\phi 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 (y,ω)(y,\omega): each pair is weighted in proportion to its partition function Z(y,ω)Z(y,\omega) rather than according to the intended outer distribution p(y)p(ω)p(y)p(\omega) (see Section A.2). We instead use hierarchical batches and nested normalization. At each training step, we sample MM condition–parameter pairs (yj,ωj)(y_j,\omega_j) and a subbatch of KK data points for each pair. We normalize weights only within samples that share (yj,ωj)(y_j,\omega_j), 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 ω\omega would require computing the weight of every ImageNet training instance for every sampled ω\omega. We instead precompute normalized weights over the full dataset at integer powering parameters. Given a continuous ω\omega, we sample training instances with replacement using the weights at the nearest integer mˉ(ω)\bar{m}(\omega). For those instances only, we linearly interpolate the self-normalized weights at ω\omega and multiply the flow-matching loss by rω(i∣y)/rmˉ(ω)reg(i∣y)r_\omega(i|y)/r_{\bar{m}(\omega)}^{\mathrm{reg}}(i|y). This proposal is more efficient than uniform sampling followed by SNIS: at large ω\omega, 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

d^(x,y)=log⁡p^(x∣y)−log⁡p^(x)\hat{d}(x,y)=\log\hat{p}(x|y)-\log\hat{p}(x)

differs from its ideal value by an additive error ϵ(x,y)\epsilon(x,y), then the corresponding unnormalized weight is distorted by the multiplicative factor exp⁡((ω−1)ϵ(x,y))\exp((\omega-1)\epsilon(x,y)). At large ω\omega, 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 T>1T>1. We then cap the largest per-class log-weights at each precomputed integer powering parameter mm. For the NyN_y training instances in class yy, define

am(i,y)=m−1T[log⁡p(xi∣y)−log⁡p(xi)],rmreg(i∣y)=exp⁡(Clip⁡τ,y(am(i,y)))∑j=1Nyexp⁡(Clip⁡τ,y(am(j,y))).(11)\begin{aligned} a_m(i,y) &= \frac{m-1}{T}\left[\log p(x_i|y)-\log p(x_i)\right],\\ r_m^{\mathrm{reg}}(i|y) &= \frac{\exp\left(\operatorname{Clip}_{\tau,y}(a_m(i,y))\right)}{\sum_{j=1}^{N_y}\exp\left(\operatorname{Clip}_{\tau,y}(a_m(j,y))\right)}. \tag*{(11)} \end{aligned}

Temperature scaling reduces concentration globally. Increasing TT sufficiently to suppress the most extreme weights would also flatten potentially meaningful variation throughout the remainder of the class. We therefore additionally apply Clip⁡τ,y\operatorname{Clip}_{\tau,y}, 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 pmp_m. Figure 19 illustrates the finite-precision consequence of the unregularized concentration and the effect of TT and τ\tau 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 ω\omega, for different temperatures TT and clipping fractions τ\tau. The highlighted curve is the configuration used in our experiments (T=1.2T = 1.2, τ=0.01\tau= 0.01). 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 ω\omega, let m−<ω<m+m_- < \omega< m_+ be its adjacent precomputed integers and λ=(ω−m−)/(m+−m−)\lambda= (\omega- m_-)/(m_+ - m_-). We define

rωreg(i∣y)=(1−λ)rm−reg(i∣y)+λrm+reg(i∣y).(12)r_{\omega}^{\mathrm{reg}}(i|y) = (1-\lambda)r_{m_-}^{\mathrm{reg}}(i|y) + \lambda r_{m_+}^{\mathrm{reg}}(i|y). \tag*{(12)}

When ω=m\omega= m is an integer grid point, we use rmregr_m^{\mathrm{reg}} 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 ω\omega.

The resulting rωregr_{\omega}^{\mathrm{reg}} therefore defines the operational weighted ImageNet reference, rather than an exact estimator of the theoretical pωp_\omega. 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 rωregr_{\omega}^{\mathrm{reg}}. 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 yy, setting the base distribution to p(x∣y)p(x|y), the energy to Ey(x)=log⁡p(x)−log⁡p(x∣y)E_y(x) = \log p(x) - \log p(x|y), and β=ω−1\beta= \omega- 1 gives

p(x∣y)exp⁡[−βEy(x)]∝p(x∣y)ωp(x)1−ω.p(x|y)\exp[-\beta E_y(x)] \propto p(x|y)^\omega p(x)^{1-\omega}.

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 β\beta, IW-CFM uses a lightweight flow-matching corrector to approximate model-defined powered conditional distributions across ImageNet classes and a continuous range of ω\omega. Our parameter-efficient corrector conditioned on ω\omega 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 (y,ω)(y,\omega) pairs: our hierarchical estimator normalizes within each pair, preserving the intended outer distribution p(y)p(ω)p(y)p(\omega) 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 γ=ω\gamma= \omega 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 ω\omega 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 p(x∣y)p(x|y). 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: pω(x∣y)p_\omega(x|y) 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 ω\omega-powered density is available, does IW-CFM recover that target more faithfully than CFG with the numerically matched guidance scale γ=ω\gamma= \omega and the other evaluated alternatives? Second, on ImageNet, how closely do samples from the learned corrector align with weighted and filtered references derived from rωr^\omega? 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 γ=ω\gamma= \omega 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 256×256256 \times256 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 ω∼U[4,128]\omega\sim\mathcal{U}[4, 128]; the real-data CLIP analysis in Figure 6 evaluates a wider range of ω\omega values.

Class-dependent changes in the association between powered-density rankings and selected CLIP attributes

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 cc and attribute contrast aa, dc,a(ω)d_{c,a}(\omega) compares the top- and bottom-ranked 10%, and Δdc,a(ω)\Delta d_{c,a}(\omega) reports its change from ω=1\omega= 1. 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-ω\omega weight, as described in § 2.6. At inference, we optionally apply CFG with scale γ\gamma to vϕ(x,t,y,ω)v^\phi(x,t,y,\omega). 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 (γ=1\gamma= 1) to assess the learned distributional shift, γ=1.5\gamma= 1.5 for FID, FD-DINOv2, and PRDC, and γ=4\gamma= 4 for qualitative visualizations. The ancillary, prompt-specific comparison of IW-CFM and CFG generations in Section D.2 also uses γ=4\gamma= 4 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 γ\gamma, whereas IW-CFM labels report the target powering parameter ω\omega; 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 rωregr^{\mathrm{reg}}_{\omega}. 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 rωregr^{\mathrm{reg}}_{\omega} from Equation (12) to compute feature statistics and omits the proposal-only zero-weight re-injection used during training. For the “filtered” reference, define Aω,y={i:rωreg(i∣y)>0}A_{\omega,y} = \{i : r^{\mathrm{reg}}_{\omega}(i \mid y) > 0\} from the stored float32 weights; the threshold is exactly zero in float32. For PRDC, we sample 10 instances uniformly without replacement from each Aω,yA_{\omega,y}, 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, γ=1.5\gamma= 1.5, or numerically matched CFG, γ=ω\gamma= \omega (in Figure 25), across the evaluated target values ω\omega. The corresponding qualitative comparison in Figure 26 shows that, for the displayed ImageNet example, matched-guidance CFG loses coherent image structure for γ≥32\gamma\ge32, whereas IW-CFM remains visually coherent at the corresponding target values with inference-time guidance fixed at γ=4\gamma= 4. In addition to integer values of ω\omega, 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 ω\omega. IW-CFM targets each displayed ω\omega and uses inference-time guidance γ=1.5\gamma= 1.5. The CFG baselines use fixed guidance γ=1.5\gamma= 1.5. The plots show FID (left) and FD-DINOv2 (right). “Weighted” uses feature moments weighted by rωregr^{\mathrm{reg}}_{\omega}, while “Filtered” uses uniform moments over the numerically active weights.

Model and parameterReference ω\omegaPrecisionRecallDensityCoverage
CFG (γ=1.5\gamma= 1.5)4.00.550.500.950.90
CFG (γ=4.0\gamma= 4.0)4.00.700.301.100.89
IW-CFM (ω=4.0\omega= 4.0)4.00.690.601.150.98
CFG (γ=1.5\gamma= 1.5)8.00.560.510.930.90
CFG (γ=8.0\gamma= 8.0)8.00.660.221.020.86
IW-CFM (ω=8.0\omega= 8.0)8.00.700.611.150.98
CFG (γ=1.5\gamma= 1.5)16.00.570.530.920.90
CFG (γ=16.0\gamma= 16.0)16.00.540.160.870.80
IW-CFM (ω=16.0\omega= 16.0)16.00.710.621.150.97
CFG (γ=1.5\gamma= 1.5)32.00.580.570.880.87
CFG (γ=32.0\gamma= 32.0)32.00.290.140.410.48
IW-CFM (ω=32.0\omega= 32.0)32.00.700.631.070.97
CFG (γ=1.5\gamma= 1.5)64.00.600.570.910.86
CFG (γ=64.0\gamma= 64.0)64.00.040.100.030.05
IW-CFM (ω=64.0\omega= 64.0)64.00.680.641.050.97
CFG (γ=1.5\gamma= 1.5)128.00.610.570.940.86
CFG (γ=128.0\gamma= 128.0)128.00.100.000.080.01
IW-CFM (ω=128.0\omega= 128.0)128.00.680.631.060.96

Table 1. Guided practical evaluation using PRDC ([29]) against filtered regularized ImageNet references indexed by ω\omega. Each IW-CFM row targets the listed ω\omega and uses inference-time guidance γ=1.5\gamma= 1.5; CFG uses either fixed guidance γ=1.5\gamma= 1.5 or matched guidance γ=ω\gamma= \omega. 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 ω\omega. Extension of Figure 2 across the full range of target powering parameters. IW-CFM targets each ω\omega and uses inference-time guidance γ=1.5\gamma= 1.5. CFG uses either fixed guidance γ=1.5\gamma= 1.5 or matched guidance γ=ω\gamma= \omega. The log-scale y-axis shows the increase in FID and FD-DINOv2 for matched-guidance CFG at larger γ=ω\gamma= \omega, while IW-CFM remains closer to the regularized empirical reference.

Figure 26. Qualitative matched-guidance comparison on ImageNet. Columns correspond to target powers ω∈{4,8,16,32,64,128}\omega\in\{4, 8, 16, 32, 64, 128\}. The top row shows standard CFG at the numerically matched guidance scale γ=ω\gamma= \omega; the bottom row shows IW-CFM targeting the same ω\omega while holding inference-time guidance fixed at γ=4\gamma= 4. In this golden retriever example, CFG remains recognizable through γ=16\gamma= 16 but exhibits severe saturation and loss of coherent image structure for γ≥32\gamma\ge32, 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 ω∈{4,8}\omega\in\{4, 8\}, begin to separate at ω=16\omega= 16, and diverge substantially for ω≥32\omega\ge32. 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 ω−1\omega- 1 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 ω\omega 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 ω\omega grows. Lower is better.

Target regularization parameters. Using the default log-density estimates computed with 250 integration steps, we vary the temperature T∈{1,1.2,1.5,2.5,5}T \in\{1, 1.2, 1.5, 2.5, 5\} and the clipped upper fraction τ∈{0.5%,1%,2.5%,5%}\tau\in\{0.5\%, 1\%, 2.5\%, 5\%\}, 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 (T,τ)(T, \tau). 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 τ\tau, and colors denote the temperature TT. Every corrector is trained using 250-step log-density estimates and evaluated against weighted and filtered references constructed using its matching (T,τ)(T, \tau), 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 τ\tau 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 τ\tau, these lower distances do not imply that more aggressive clipping is preferable. To retain as much of the powered signal as possible, τ\tau should instead be the smallest value that still prevents pathological weight concentration.

The effect of TT depends on ω\omega: stronger tempering generally worsens alignment at small ω\omega but becomes comparable or beneficial at large ω\omega. This interaction may reflect both the signal–concentration trade-off and the fixed inference-time guidance used in this evaluation. Strong tempering makes low-ω\omega targets close to the base distribution, leaving only a weak correction signal, whereas at large ω\omega it reduces extreme weight concentration while retaining a substantial target shift. The default (T,τ)=(1.2,1%)(T, \tau) = (1.2, 1\%) 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 log⁡p(x∣y)\log p(x|y) and unconditional log-density log⁡p(x)\log p(x) 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 ω\omega changes which images occupy the extremes of the ranking. Figure 5 provides one qualitative example, and Section B.2 presents additional selected categories.

Illustrative powered-density rankings of real images from the ImageNet “hammerhead shark” category at different values of $\omega$.

Figure 5. Illustrative powered-density rankings of real images from the ImageNet “hammerhead shark” category at different values of ω\omega.

Illustrative ranking changes. In the displayed “hammerhead shark” examples in Figure 5, the top-ranked images at lower ω\omega have relatively simple compositions, whereas those at higher ω\omega 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 ω=32\omega= 32 but does not appear among the corresponding extremes at lower ω\omega; 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 xx from class cc and attribute contrast aa, the paired score Sc,a(x)S_{c,a}(x) is the positive-prompt component of a two-way softmax over the temperature-scaled CLIP similarities and therefore lies in [0,1][0,1]; 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.

ContrastPositive PromptNegative Prompt
complex/simpleComplex photo.Simple photo.
natural/syntheticNatural photo.Synthetic photo.
realism/CGIAn authentic, real-world photo of a {class_name}, captured by a camera.A synthetic, computer-generated image of a {class_name}, a digital rendering.
textureA 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 dd (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 Δdc,a(ω)=dc,a(ω)−dc,a(1)\Delta d_{c,a}(\omega) = d_{c,a}(\omega) - d_{c,a}(1) for class cc and attribute contrast aa. 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 ω=1\omega= 1; it does not imply that the absolute contrast dc,a(ω)d_{c,a}(\omega) 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 ω=1\omega= 1 level. These averages stabilize at larger ω\omega, 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 dc,a(1)d_{c,a}(1) 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 ω=1\omega= 1 and approaches zero as ω\omega 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.

Absolute classwise CLIP contrasts for complex/simple, natural/synthetic, realism/CGI, and texture

Figure 20. Absolute classwise CLIP contrasts underlying the baseline-relative trajectories in Figure 6. Positive dc,a(ω)d_{c,a}(\omega) 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 ω\omega-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 γ=ω\gamma= \omega. 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 ω\omega. 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 LIW-CFM⋆\mathcal{L}^{\star}_{\mathrm{IW\text{-}CFM}}. 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 Z(y,ω)Z(y,\omega). Then the gradient ∇ϕLIW-CFM⋆(ϕ,ω)\nabla_{\phi}\mathcal{L}^{\star}_{\mathrm{IW\text{-}CFM}}(\phi,\omega), defined using the exact density ratio wω⋆w^{\star}_{\omega} in Equation (8), equals the gradient of the flow-matching objective targeting pω(x∣y)p_{\omega}(x\mid y).

Proof. The ideal objective targeting the powered distribution is

LTarget(ϕ,ω)=∫p(y)∫pω(x1∣y)LcFM(x1,ϕ) dx1 dy\mathcal{L}_{\mathrm{Target}}(\phi,\omega)=\int p(y)\int p_{\omega}(x_{1}\mid y)\mathcal{L}_{\mathrm{cFM}}(x_{1},\phi)\,dx_{1}\,dy

Using the exact importance-sampling identity pω(x1∣y)=wω⋆(x1,y)p(x1∣y)p_{\omega}(x_{1}\mid y)=w^{\star}_{\omega}(x_{1},y)p(x_{1}\mid y) gives

∇ϕLTarget=∫p(y)∫p(x1∣y)wω⋆(x1,y)∇ϕLcFM(x1,ϕ) dx1 dy\nabla_{\phi}\mathcal{L}_{\mathrm{Target}}=\int p(y)\int p(x_{1}\mid y)w^{\star}_{\omega}(x_{1},y)\nabla_{\phi}\mathcal{L}_{\mathrm{cFM}}(x_{1},\phi)\,dx_{1}\,dy
∇ϕLTarget=Ep(y),p(x1∣y)[wω⋆(x1,y)∇ϕLcFM(x1,ϕ)]\nabla_{\phi}\mathcal{L}_{\mathrm{Target}}=\mathbb{E}_{p(y),p(x_{1}\mid y)}\left[w^{\star}_{\omega}(x_{1},y)\nabla_{\phi}\mathcal{L}_{\mathrm{cFM}}(x_{1},\phi)\right]

By the flow-matching gradient identity [24], the conditional objective that regresses to utu_{t} has the same gradient as the marginal objective that regresses to the target vector field. Thus, training on p(x1∣y)p(x_{1}\mid y) with exact weights wω⋆w^{\star}_{\omega} recovers the vector field vϕ(x,t,y,ω)v^{\phi}(x,t,y,\omega) for pωp_{\omega}.

The practical estimator in Algorithm 1 substitutes the finite-batch weights w^ω,K\widehat{w}_{\omega,K} from Equation (10) for wω⋆w^{\star}_{\omega}. This SNIS estimator is biased at finite KK; under the standard importance-sampling regularity conditions, its gradient converges to the population gradient above as K→∞K\to\infty 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 (y,ω)(y,\omega) pairs. Let gϕ(y,ω)g_{\phi}(y,\omega) denote the expected gradient of the ideal flow-matching objective targeting pω(x∣y)p_{\omega}(x\mid y) for a fixed (y,ω)(y,\omega). Jointly normalizing importance weights across different conditions and powering parameters yields the population gradient

∇ϕLGlobal=Ep(y)p(ω)[Z(y,ω)gϕ(y,ω)]Ep(y)p(ω)[Z(y,ω)],(13)\nabla_{\phi}\mathcal{L}_{\mathrm{Global}}=\frac{\mathbb{E}_{p(y)p(\omega)}\left[Z(y,\omega)g_{\phi}(y,\omega)\right]}{\mathbb{E}_{p(y)p(\omega)}\left[Z(y,\omega)\right]}, \tag*{(13)}

where

Z(y,ω)=∫p(x∣y)ωp(x)1−ω dx=exp⁡((ω−1)Dω(p(x∣y)∥p(x))).(14)Z(y,\omega)=\int p(x\mid y)^{\omega}p(x)^{1-\omega}\,dx=\exp\left((\omega-1)D_{\omega}\left(p(x\mid y)\mathbin{\|}p(x)\right)\right). \tag*{(14)}

Here, Dω(P∥Q):=1ω−1log⁡∫P(x)ωQ(x)1−ω dxD_{\omega}(P\mathbin{\|}Q):=\frac{1}{\omega-1}\log\int P(x)^{\omega}Q(x)^{1-\omega}\,dx is the Rényi divergence of order ω\omega. For ω>1\omega>1, Dω(P∥Q)≥0D_{\omega}(P\mathbin{\|}Q)\ge0, so Z(y,ω)≥1Z(y,\omega)\ge1. When finite, Z(y,ω)Z(y,\omega) is also non-decreasing in ω\omega for fixed yy. Global normalization therefore induces the effective outer distribution

q(y,ω)=p(y)p(ω)Z(y,ω)Ep(y)p(ω)[Z(y,ω)].(15)q(y,\omega)=\frac{p(y)p(\omega)Z(y,\omega)}{\mathbb{E}_{p(y)p(\omega)}\left[Z(y,\omega)\right]}. \tag*{(15)}

This distribution gives more influence to (y,ω)(y,\omega) pairs with larger Z(y,ω)Z(y,\omega). Nested normalization operates within each (y,ω)(y,\omega) group and preserves the intended outer distribution p(y)p(ω)p(y)p(\omega).

Statistical Bias-Variance Trade-off in Nested Normalization

Nested normalization uses MM condition–parameter pairs (y,ω)(y,\omega), each with a subbatch of KK data samples and finite-batch weights w~ω,K\tilde{w}_{\omega,K}. Under standard finite-variance assumptions, the leading variance terms scale as O(1/M)O(1/M) across (y,ω)(y,\omega) pairs and O(1/(MK))O(1/(MK)) for within-pair Monte Carlo noise. With fixed B=MKB = MK, these terms become O(K/B)O(K/B) and O(1/B)O(1/B), respectively. Increasing KK reduces finite-KK SNIS bias but leaves fewer distinct (y,ω)(y,\omega) pairs for estimating the outer expectation. This allocation trade-off is characteristic of nested Monte Carlo estimators [32].

Extended Characterization of ω\omega-Powering

Univariate Toy Example

In Figure 7, we illustrate the discrepancy between the ω\omega-powered distribution and CFG using a univariate Gaussian mixture (μ1=−2,μ2=2,σ1=σ2=1,π1=π2=0.5)(\mu_1 = -2, \mu_2 = 2, \sigma_1 = \sigma_2 = 1, \pi_1 = \pi_2 = 0.5). We define the target class as the component centered at μ2=2\mu_2 = 2, vary the powering parameter over ω∈[2,16]\omega\in[2, 16], and compare each target pωp_\omega with CFG at the matched guidance scale γ=ω\gamma= \omega.

CFG and powered distribution discrepancy

Figure 7. Comparison of the ω\omega-powered distribution and matched-guidance CFG on a univariate Gaussian mixture. The ω\omega-powered distribution (dashed) concentrates around the target-class mode. The CFG distribution (solid), evaluated at the numerically matched guidance scale γ=ω\gamma= \omega, shifts probability mass toward low-density regions as the matched values increase.

This example shows two differences:

  • Powered target. Increasing ω\omega moves mass away from the overlap region near the decision boundary and toward the mode of the target class.

  • Matched CFG. Increasing γ=ω\gamma= \omega 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 pω(x∣y)p_\omega(x|y) 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 ω\omega values. These examples illustrate heterogeneous changes in the rankings rather than a universal progression with ω\omega.

In several displayed categories, higher ω\omega 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 ω\omega values favor images with a prominent, centrally located vehicle, whereas high ω\omega values favor landscapes in which the vehicle occupies only a small part of the scene.

Ranked recreational vehicle images for $\omega = 1$, $\omega = 8$, $\omega = 32$, and $\omega = 128$

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 ω\omega are different views of the Arch of Constantine next to the Colosseum in Rome.

Triumphal arch image retrieval results

Figure 16. triumphal arch

Top- and bottom-ranked images for the hammerhead shark category at different $\omega$ values

Figure 8. hammerhead shark

Top- and bottom-ranked images for the loggerhead turtle category at different $\omega$ values

Figure 9. loggerhead turtle (lat. Caretta caretta)

Ranked ruddy turnstone images for $\omega = 1$, $\omega = 8$, $\omega = 32$, and $\omega = 128$

Figure 10. ruddy turnstone (lat. Arenaria interpres)

Ranked backpack images for $\omega = 1$, $\omega = 8$, $\omega = 32$, and $\omega = 128$

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

Top- and bottom-ranked balloon images for $\omega=1$, $\omega=8$, $\omega=32$, and $\omega=128$

Figure 12. balloon

Top- and bottom-ranked plastic bag images for $\omega=1$, $\omega=8$, $\omega=32$, and $\omega=128$

Figure 13. plastic bag

Ranked running shoe images for $\omega = 1$, $\omega = 8$, $\omega = 32$, and $\omega = 128$

Figure 15. running shoe

Implementation Details and Setup

Synthetic

The synthetic tasks test whether IW-CFM recovers pω(x∣y)p_{\omega}(x|y) 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, log⁡p(x∣y)\log p(x|y) and log⁡p(x)\log p(x);

  • conditional and unconditional ground-truth vector fields, v(xt,t,y)v(x_t,t,y) and v(xt,t)v(x_t,t); and

  • exact conditional and unconditional sampling procedures.

Distribution Parameters.

  • Three-Gaussian mixture: three components with means μ∈{[−1,−0.866],[0,0.866],[1,−0.866]}\mu\in\{[-1,-0.866],[0,0.866],[1,-0.866]\} 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:

vϕ(x,t,y,ω)=v(xt,t,y)⊙scale⁡(xt,t,y,ω)+shift⁡(xt,t,y,ω)(16)v^{\phi}(x,t,y,\omega)=v(x_t,t,y)\odot\operatorname{scale}(x_t,t,y,\omega)+\operatorname{shift}(x_t,t,y,\omega) \tag*{(16)}

where a multilayer perceptron maps (xt,t,y,ω)(x_t,t,y,\omega) 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 M=256M=256 (y,ω)(y,\omega) pairs and K=32K=32 samples per pair for nested normalization. For both tasks, p(ω)p(\omega) is uniform on [1,8][1,8].

CLIP Evaluation Suite Details

For each ImageNet class cc and attribute contrast aa, let pc,a+p^+_{c,a} and pc,a−p^-_{c,a} denote the positive and negative prompts listed in Table 2. For an image xx from class cc, we define the paired CLIP score by applying a two-way softmax to the temperature-adjusted cosine similarities:

Sc,a(x)=exp⁡(cos⁡(x,pc,a+)/τCLIP)exp⁡(cos⁡(x,pc,a+)/τCLIP)+exp⁡(cos⁡(x,pc,a−)/τCLIP)(17)S_{c,a}(x)=\frac{\exp\left(\cos(x,p^+_{c,a})/\tau_{\mathrm{CLIP}}\right)}{\exp\left(\cos(x,p^+_{c,a})/\tau_{\mathrm{CLIP}}\right)+\exp\left(\cos(x,p^-_{c,a})/\tau_{\mathrm{CLIP}}\right)} \tag*{(17)}

Here, cos⁡(x,p)\cos(x,p) is the CLIP cosine similarity between image xx and prompt pp, and τCLIP=0.01\tau_{\mathrm{CLIP}}=0.01. During evaluation, \{class_name\} is replaced with the name of class cc.

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 2172^{17} 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 (ρ\rho) against the 250-step estimates.

Figure 18. Numerical convergence of log-densities. Hexbin plots comparing log-density estimates at N∈{2,5,25,50,125}N \in\{2, 5, 25, 50, 125\} steps with the 250-step estimates.

Figure 17. Ranking stability of log-density evaluation. Spearman rank correlation (ρ\rho) between rankings at each step count and the 250-step estimates. Both conditional and unconditional rankings reach ρ>0.99\rho> 0.99 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 ω∼U[4,128]\omega\sim\mathcal{U}[4, 128], the ImageNet data loader rounds to the nearest grid point mˉ(ω)\bar{m}(\omega) and samples examples with replacement according to the stored sampling weights at that point. For each sampled instance ii, we interpolate the unmodified weights at the adjacent grid points to obtain rωuw(i∣y)r_{\omega}^{\mathrm{uw}}(i|y). The flow-matching loss is multiplied by rωuw(i∣y)/rmˉ(ω)reg(i∣y)r_{\omega}^{\mathrm{uw}}(i|y)/r_{\bar{m}(\omega)}^{\mathrm{reg}}(i|y) when the denominator exceeds 10−910^{-9}, 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 β1=0.5\beta_1 = 0.5, β2=0.9\beta_2 = 0.9, and a base learning rate of 1.0×10−31.0 \times10^{-3}. 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 ω\omega, 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.

BatchModeForward (%)Sampling (%)Sampling + VAE (%)
1Eager+21.41 ± 0.33+21.49 ± 0.12+18.38 ± 3.03
1Compiled+1.98 ± 0.03+2.91 ± 0.02+2.88 ± 0.00
24Eager+0.58 ± 0.07+0.38 ± 0.47+0.84 ± 0.40
24Compiled+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 T=1.2T = 1.2, a per-class clipping fraction τ=0.01\tau= 0.01 (1%), a zero-weight re-injection fraction ρ=0.05\rho= 0.05, and a loss-correction threshold of 10−910^{-9}. Re-injection is applied separately within each class that has exact-zero stored weights: nonzero sampling weights are scaled by 1−ρ1 - \rho, 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 mm and yy, write the ordered log-weights as am,(1)y≤⋯≤am,(Ny)ya^y_{m,(1)} \le\cdots\le a^y_{m,(N_y)}, let ky=⌈τNy⌉k_y = \lceil\tau N_y \rceil, and let cm,y=am,(Ny−ky)yc_{m,y} = a^y_{m,(N_y-k_y)} be the largest log-weight below the clipped group. Then

Clip⁡τ,y(am(i,y))=min⁡(am(i,y),cm,y).(18)\operatorname{Clip}_{\tau,y}(a_m(i,y)) = \min(a_m(i,y),c_{m,y}). \tag*{(18)}

Thus, the largest kyk_y log-weights are capped at cm,yc_{m,y} rather than removed. For the degenerate case ky=Nyk_y = N_y, we set cm,y=am,(1)yc_{m,y} = a^y_{m,(1)}.

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 TT and τ\tau; the selected configuration yields approximately 30,000 numerically active instances per ω\omega 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 ω=1\omega= 1. This centering isolates changes with ω\omega, but suppresses the sign and magnitude of the baseline association. Figure 20 reports the corresponding uncentered contrasts, with Δdc,a(ω)=dc,a(ω)−dc,a(1)\Delta d_{c,a}(\omega) = d_{c,a}(\omega) - d_{c,a}(1) 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 γ=4\gamma= 4 for both methods.

For each ImageNet category and prompt pair, we select the target ω\omega that maximizes the mean paired CLIP score of the IW-CFM samples over the evaluated values; we term this the score-optimal ω\omega. 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 γ=4\gamma= 4 (x-axis) and the maximum score difference attained by IW-CFM at the same inference-time guidance after selecting its target ω\omega 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.

CFG samples overlaid at the matched guidance scale

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

Directly sampled IW-CFM realizations overlaid at the corresponding omega

(b) 99.7% probability-mass contours of the ω\omega-powered distribution for the three classes of the three-Gaussian distribution, with directly sampled IW-CFM realizations overlaid at the corresponding ω\omega; no additional CFG is applied.

Figure 22. Three-Gaussian comparison. CFG with matched guidance γ=ω\gamma= \omega (left) departs from the analytical target contours, whereas IW-CFM targeting ω\omega (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 γ=ω\gamma= \omega (left) departs from the analytical target contours, whereas IW-CFM targeting ω\omega (right) remains close to them.

Fractal comparison for CFG and IW-CFM across $\omega = 1, 2, 4, 8$

Figure 23. (a) 99.7% probability-mass contours of the ω\omega-powered distribution for the two classes of the fractal distribution, with CFG samples overlaid at the matched guidance scale γ=ω\gamma= \omega. (b) 99.7% probability-mass contours of the ω\omega-powered distribution for the two classes of the fractal distribution, with directly sampled IW-CFM realizations overlaid at the corresponding ω\omega; 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.

REG and FKC samples over the $\omega$-powered target contours for a three-Gaussian distribution

Figure 24. (a) Samples from Rectified Gradient Guidance over the 99.7% probability-mass contours of the ω\omega-powered target for the three-Gaussian distribution. (b) Samples from Feynman–Kac Correctors over the 99.7% probability-mass contours of the ω\omega-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 ω\omega-powered contours.

ImageNet Metrics Extension

Main Text Metrics Extension

The following analysis extends Figure 2 by comparing IW-CFM targeting each ω\omega against CFG whose guidance scale is numerically matched, γ=ω\gamma= \omega.

As shown in Figure 25, increasing CFG guidance to match the reference powering parameter, γ=ω\gamma= \omega, 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 γ=1.5\gamma= 1.5. IW-CFM is evaluated on the following ω∈{4.0,4.17,8.0,8.5,15.87,16.0,32.0,32.24,63.89,64.0,127.57,128.0}\omega\in\{4.0, 4.17, 8.0, 8.5, 15.87, 16.0, 32.0, 32.24, 63.89, 64.0, 127.57, 128.0\} to validate the effectiveness of the interpolation of precomputed self-normalized weights. The baselines are evaluated only on the integer ω\omega.

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 (γ=1\gamma= 1). IW-CFM is consistently better aligned with the reference across ω\omega, 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.

ModelReference ω\omegaFIDFD-DINOv2
Base SiT (γ=1\gamma= 1)4.019.97324.02
IW-CFM (ω=4.0\omega= 4.0)4.08.48215.80
Base SiT (γ=1\gamma= 1)8.020.55328.66
IW-CFM (ω=8.0\omega= 8.0)8.08.90221.41
Base SiT (γ=1\gamma= 1)16.021.41339.18
IW-CFM (ω=16.0\omega= 16.0)16.09.29223.39
Base SiT (γ=1\gamma= 1)32.021.73348.58
IW-CFM (ω=32.0\omega= 32.0)32.010.56227.64
Base SiT (γ=1\gamma= 1)64.020.23341.78
IW-CFM (ω=64.0\omega= 64.0)64.012.27245.24
Base SiT (γ=1\gamma= 1)128.018.73334.46
IW-CFM (ω=128.0\omega= 128.0)128.013.52263.39

Table 5. Unguided distribution-shift evaluation using Fréchet Distance to the filtered regularized ImageNet reference. All IW-CFM rows use γ=1\gamma= 1 and differ only in the target powering parameter ω\omega. IW-CFM outperforms the conditional Base SiT at every evaluated ω\omega; comparison with Figure 2 shows the additional benefit of guided inference.

ModelReference ω\omegaPrecisionRecallDensityCoverage
Base SiT (γ=1\gamma= 1)4.00.370.590.640.81
IW-CFM (ω=4.0\omega= 4.0)4.00.510.680.870.93
Base SiT (γ=1\gamma= 1)8.00.370.600.620.80
IW-CFM (ω=8.0\omega= 8.0)8.00.510.690.840.93
Base SiT (γ=1\gamma= 1)16.00.390.620.610.79
IW-CFM (ω=16.0\omega= 16.0)16.00.510.700.830.92
Base SiT (γ=1\gamma= 1)32.00.410.640.590.74
IW-CFM (ω=32.0\omega= 32.0)32.00.500.700.750.89
Base SiT (γ=1\gamma= 1)64.00.440.650.630.72
IW-CFM (ω=64.0\omega= 64.0)64.00.480.710.710.86
Base SiT (γ=1\gamma= 1)128.00.470.650.690.72
IW-CFM (ω=128.0\omega= 128.0)128.00.480.710.710.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 γ=1\gamma= 1 and differ only in the target powering parameter ω\omega. IW-CFM is better aligned than the conditional Base SiT at every ω\omega; 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 γ\gamma is better aligned with the standard ImageNet references, as expected. IW-CFM, evaluated with fixed inference-time guidance γ=1.5\gamma= 1.5, moves closer to these references as its powering parameter ω\omega 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 γ\gamma; IW-CFM rows are labeled by powering parameter ω\omega and use inference-time guidance γ=1.5\gamma= 1.5. The best CFG configuration outperforms IW-CFM, although the gap narrows as ω\omega increases.

ModelFID-50kFD-DINOv2-50k
CFG (γ=1.5\gamma= 1.5)2.0488.36
CFG (γ=4.0\gamma= 4.0)14.0785.64
IW-CFM (ω=4.0\omega= 4.0)8.33157.81
CFG (γ=8.0\gamma= 8.0)16.32137.56
IW-CFM (ω=8.0\omega= 8.0)8.49159.98
CFG (γ=16.0\gamma= 16.0)16.25238.82
IW-CFM (ω=16.0\omega= 16.0)8.22152.25
CFG (γ=32.0\gamma= 32.0)36.00517.38
IW-CFM (ω=32.0\omega= 32.0)6.48120.31
CFG (γ=64.0\gamma= 64.0)213.171991.20
IW-CFM (ω=64.0\omega= 64.0)4.5499.67
CFG (γ=128.0\gamma= 128.0)253.712749.11
IW-CFM (ω=128.0\omega= 128.0)3.8099.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 γ\gamma; IW-CFM is labeled by powering parameter ω\omega and uses inference-time guidance γ=1.5\gamma= 1.5. As in Table 7, the baseline has the best overlap with the reference, although the gap narrows as ω\omega increases.

ModelPrecisionRecallDensityCoverage
CFG (γ=1.5\gamma= 1.5)0.830.581.170.98
IW-CFM (ω=4.0\omega= 4.0)0.780.491.050.94
IW-CFM (ω=8.0\omega= 8.0)0.780.491.050.93
IW-CFM (ω=16.0\omega= 16.0)0.790.481.070.94
IW-CFM (ω=32.0\omega= 32.0)0.810.491.080.94
IW-CFM (ω=64.0\omega= 64.0)0.810.521.080.95
IW-CFM (ω=128.0\omega= 128.0)0.810.541.080.95

Table 8.

Table 9 reports Fréchet Distance without inference-time guidance. In this setup, IW-CFM at ω=64\omega= 64 is closest to the standard ImageNet reference.

ModelFID-50kFD-DINOv2-50k
Base SiT (γ=1\gamma= 1)9.55246.24
IW-CFM (ω=4.0\omega= 4.0)11.21247.82
IW-CFM (ω=8.0\omega= 8.0)11.53252.24
IW-CFM (ω=16.0\omega= 16.0)10.52238.72
IW-CFM (ω=32.0\omega= 32.0)7.64204.28
IW-CFM (ω=64.0\omega= 64.0)7.14202.63
IW-CFM (ω=128.0\omega= 128.0)8.39219.95

Table 9. Fréchet Distance with respect to the category-saturated 50k subset of the ImageNet training set without inference-time guidance (γ=1\gamma= 1). IW-CFM at ω=64\omega= 64 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 d1≤d2d_1 \le d_2 be the two smallest distances. We flag a generated sample as a potential retrieval when

1.82d1<d2.(19)1.82d_1 < d_2. \tag*{(19)}

For d1>0d_1 > 0, this is equivalent to d2/d1>1.82d_2/d_1 > 1.82; the multiplicative form also covers an exact match with d1=0d_1 = 0. 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 (d1≈d2d_1 \approx d_2), causing the ratio test to miss a possible retrieval. Before the nearest-neighbor search, we deduplicate the training set by removing instances within an ℓ2\ell_2-distance threshold of dduplicate=35d_{\mathrm{duplicate}} = 35.

Retrieval-Test Results. As shown in Figure 27, the fraction flagged by the detector remains below 0.05% across all evaluated powering parameters ω\omega. 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 1.82d1<d21.82d_1 < d_2 across powering parameters ω\omega and inference-time guidance scales γ∈{1.5,4}\gamma\in\{1.5, 4\}, where d1d_1 and d2d_2 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 ω\omega while the inference-time guidance scale remains fixed at γ=4\gamma= 4; 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 γ=4\gamma= 4 and by IW-CFM at varying target ω\omega, also with γ=4\gamma= 4.

Additional qualitative ImageNet trajectories for four classes

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 γ=4\gamma= 4; the IW-CFM columns vary the target powering parameter ω\omega.

Additional qualitative trajectory for the triumphal arch class

Figure 30. Additional qualitative trajectory for the triumphal arch class. Baseline CFG and IW-CFM both use γ=4\gamma= 4; the IW-CFM columns vary the target powering parameter ω\omega.

Additional qualitative ImageNet trajectories for balloon, plastic bag, recreational vehicle, RV, R.V., and running shoe

Figure 29. Additional qualitative ImageNet trajectories for four classes. Baseline CFG and IW-CFM both use γ=4\gamma= 4; the IW-CFM columns vary the target powering parameter ω\omega.

References

  1. [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. [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. [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. [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. [5]Jacob Cohen. Statistical Power Analysis for the Behavioral Sciences. Routledge, New York, 2nd edition, 1988. doi: 10.4324/9780203771587.
  6. [6]Quan Dao, Hao Phung, Binh Nguyen, and Anh Tran. Flow matching in latent space. arXiv preprint arXiv:2307.08698, 2023.
  7. [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. [8]Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. Advances in neural information processing systems, 34:8780–8794, 2021.
  9. [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. [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
  11. [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.
  12. [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
  13. [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
  14. [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.
  15. [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
  16. [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
  17. [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
  18. [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
  19. [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
  20. [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
  21. [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.
  22. [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.
  23. [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
  24. [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
  25. [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
  26. [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
  27. [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
  28. [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.
  29. [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
  30. [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
  31. [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
  32. [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.
  33. [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.
  34. [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
  35. [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
  36. [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
  37. [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
  38. [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

Paper details

vlnc:W_b9p7fggy
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents