arXiv(opens in a new tab)cs.LGAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.28010

When Can Conditional Flow Matching Replace Pointwise Negative Log-Likelihood?

Yansen Han, Hongxin Sun, Tao Lin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Flow matching enables likelihood-free training, yet alignment methods increasingly reuse conditional flow matching (CFM) losses as endpoint negative log-likelihoods (NLLs) and their old/new differences as log-likelihood ratios. We characterize when these substitutions are valid. For linear Gaussian paths, we exactly decompose endpoint NLL into entropy, a weighted CFM objective, an interior velocity–score residual, and a boundary residual. Thus CFM-only estimates and differences are exact only when the corresponding residuals cancel. At the off-policy population optimum, ordinary CFM is not generally a pointwise NLL estimator, whereas wsc(t)=(1−t)/tw_{\mathrm{sc}}(t)=(1-t)/t removes the interior residual; this positive result does not extend generally to training or on-policy alignment. On-policy log-ratios can remain biased even for identical endpoint laws or after surrogate optimization. Experiments across dimensions, distributions, and geometries support these conclusions and the mechanisms that make inexact ratios useful. More broadly, the decomposition provides a theoretical basis for adapting likelihood-based LLM methods to flow matching, while distinguishing exact substitutions from controlled surrogates.

Table 1: Summary of when CFM-only objectives or ratios can replace clean NLL or clean likelihood ratios; Sec. 7 summarizes the empirical support. ✓: identity-level replacement up to the endpoint boundary term Bε→0\mathcal{B}_{\varepsilon}\to 0; ✗: task-level or local surrogate validity; ✗: no general guarantee.

StageOff-policy: fixed-target CFMOn-policy: CFM-ratio surrogate
Ordinary CFMScore-calibrated CFMCFM-only ratioScore-calibrated ratio
During optimization✕ No identity guarantee. Away from the fixed-target CFM optimum, G\mathcal{G} need not vanish.See Prop. 5.1.✕ No identity guarantee. The score-calibrated weight does not remove the interior gap G\mathcal{G} during optimization.See Prop. 5.1.✓ Empirical controlled-update surrogate. Useful in the tested settings, but biased in general.See Prop. 6.1.✓ Empirical controlled-update surrogate. Useful in the tested settings, but biased in general.See Prop. 6.2.
After optimization✕ No pointwise identity. Ordinary CFM recovers the population-optimal velocity, but its pointwise objective is not likelihood-calibrated.See Prop. 5.2.✓ Identity-level replacement. At the score-calibrated CFM optimum, interior gap G=0\mathcal{G}=0 with w=wscw=w_{\mathrm{sc}}.See Prop. 5.2.✕ No general guarantee. Optimizing CFM-only ratio does not enforce the relative calibration condition, i.e., ΔG+ΔB=0\Delta \mathcal{G}+\Delta \mathcal{B}=0.See Prop. 6.3.✕ No general guarantee. Even score calibration is not enough unless the learned ratio satisfies the relative calibration condition.See Prop. 6.3.

Note. “After optimization” means different things in the two settings. For off-policy, it refers to convergence to the fixed-target CFM population optimum. For on-policy, it refers to optimizing the CFM-only ratio surrogate, which does not by itself guarantee exact clean-ratio calibration. Ordinary CFM uses w=1w=1, while score-calibrated CFM uses w=wscw=w_{\mathrm{sc}}.

  • Corresponding author

Preprint.

1 Introduction

Flow matching is attractive partly because it replaces likelihood-based training with supervised regression along prescribed probability paths [11, 1, 14, 22]. However, its likelihood-free treatment becomes bottlenecks in reward-based post-training: PPO- and GRPO-style updates require per-sample likelihood ratios [18, 19], while evaluating the endpoint density of a continuous generator is expensive. Recent forward-process methods avoid estimating likelihoods by using samplewise CFM to construct likelihood surrogates [25, 16, 27, 23, 6]. These designs are computationally appealing and stay close to pretraining, but the likelihood-surrogate case raises a basic question:

When is replacing pointwise likelihoods by CFM-only quantities exact, and what makes the replacement useful when it is not exact?

The difficulty is a mismatch between likelihoods and CFM-based surrogates. For a fixed endpoint x0x_0, the pointwise CFM objective averages a squared velocity-regression error along noisy conditional paths, whereas the pointwise NLL −log⁡p0θ(x0)-\log p_0^\theta(x_0) is determined by the endpoint marginal density. Expectation-level equivalence does not guarantee pointwise equivalence. Thus, a model may recover the population-optimal velocity while its pointwise CFM objective differs from the NLL for individual endpoints. The requirement is stronger in on-policy alignment: the difference between old and new pointwise CFM objectives must track the change in endpoint log-density for every endpoint whose contribution is reweighted or clipped. What is missing is therefore a pointwise criterion that distinguishes an exact likelihood identity from a reward-effective but biased surrogate.

Continuous normalizing flows permit endpoint likelihood evaluation, and diffusion objectives admit ELBO or score-matching likelihood interpretations [5, 21, 15, 9, 26]. Neither result makes a samplewise CFM objective the clean endpoint NLL. Reverse-process RL instead optimizes ratios over discretized denoising trajectories [4, 12, 10, 7], which are not generally the corresponding marginalized endpoint ratios. Forward-process methods construct CFM-based likelihood surrogates to replace the clean endpoint log-ratio [25, 27, 3, 16, 23, 6]. Our analysis is to identify when the CFM-based surrogates are exact and when they are useful local surrogates in post-training.

We theoretically characterize this exactness of substitution by exposing the exact pointwise gap. For the linear Gaussian path and a fixed clean endpoint x0x_{0}, we prove the decomposition

−log⁡p0θ(x0)=H(qεx0)+Et∈U[ε,1],Xt∼qtx0[w(t)∥vtθ(Xt;x0)−utx0(Xt)∥2]+Gε,w(θ;x0)+Bε(θ;x0).\begin{align*}-\log p_{0}^{\theta}(x_{0})&=H(q_{\varepsilon}^{x_{0}})+\mathbb{E}_{t\in U[\varepsilon,1],X_{t}\sim q_{t}^{x_{0}}}\big[w(t)\left\|v_{t}^{\theta}(X_{t};x_{0})-u_{t}^{x_{0}}(X_{t})\right\|^{2}\big]\\&\quad+\mathcal{G}_{\varepsilon,w}(\theta;x_{0})+\mathcal{B}_{\varepsilon}(\theta;x_{0}).\end{align*}

Here E[w(t)∥vtθ(Xt;x0)−utx0(Xt)∥2]\mathbb{E}\big[w(t)\|v_t^\theta(X_t;x_0)-u_t^{x_0}(X_t)\|^2\big] is the weighted pointwise CFM objective, Gε,w\mathcal{G}_{\varepsilon,w} is an interior residual coupling the velocity and score gaps, and Bε\mathcal{B}_\varepsilon is the boundary residual introduced by positive-time smoothing. The identity is both a diagnosis and an exactness criterion: a CFM-only estimate equals endpoint NLL precisely when Gε,w+Bε=0\mathcal{G}_{\varepsilon,w} + \mathcal{B}_\varepsilon = 0, and an old/new CFM difference is a clean endpoint log-ratio precisely when the corresponding relative residual cancels. The criterion produces sharply different conclusions for off-policy and on-policy uses, summarized in Tab. 1.

Our experiments examine the theory at three levels: numerical examination of the decomposition identity, its off-policy and on-policy consequences, and the stable use of an inexact ratio. First, across 1D and 2D distributions and high-dimensional Gaussian mixtures with tractable endpoint densities, independently estimated terms demonstrate that the decomposition identity is more accurate than the CFM-only estimate in every off-policy experiment. Using wscw_{sc} reduces fixed-target CFM-only NLL MAE from 0.800 to 0.223 in 1D, from 1.294 to 0.377 in 2D, and from 19.402 to 3.012 in 32D. Second, the on-policy experiments show that optimization success does not imply global ratio accuracy: CFM-ratio training reaches rewards of 0.995, 0.981, and 0.910 in representative 1D, 2D, and 32D experiments, while the corresponding log-ratio MAE reaches 7.900, 1.570, and 1382.955. Third, EMA and clipping sweeps measure associations between controlled reference and reward stability. MNIST and CIFAR-10 experiments test only whether the results for successful optimization using inexact ratios persist for real-image datasets.

Our contributions are threefold:

• An exact pointwise NLL decomposition. For Gaussian paths, we decompose endpoint NLL into entropy, CFM objective, an interior velocity–score residual, and a boundary residual. This turns pointwise likelihood substitution from an experimental usefulness into an analytical quantity.

• A clear separation between off-policy and on-policy regimes. At the off-policy population optimum, we show that ordinary CFM is not generally a pointwise NLL estimator, whereas wscw_{sc} can narrow the gap between CFM and NLL. For on-policy use, we derive the exact bias and gap-tilted reward of CFM-derived ratios and construct counterexamples showing that an exact endpoint log-ratio is not guaranteed.

• A cross-scale numerical and controlled empirical study. Experiments from 1D to 32D verify the decomposition identity and test its off-policy and on-policy consequences. EMA, clipping, and regularization sweeps study which mechanisms are associated with stable optimization using biased CFM-derived ratios. Raw-image experiments test whether these stabilization effects can be transferred to real-image datasets.

References (27)