---
title: Conditional Guided Flow Matching
url: https://www.emergentmind.com/topics/conditional-guided-flow-matching-cgfm
type: topic
---

# Conditional Guided Flow Matching

Conditional Guided Flow Matching (CGFM) denotes a class of flow-matching methods in which a continuous-time transport model is both **conditional** on side information and **guided** by an additional signal during training, sampling, or both. The term is introduced explicitly for time-series forecasting in "Bridging the Last Mile of Prediction: Enhancing Time Series Forecasting with Conditional Guided Flow Matching" [2507.07192]. Closely related formulations include classifier-free “Guided Flows” for flow matching [2311.13443] and the broader FM/CFM/guidance synthesis assembled in "Flow Matching Guide and Code" [2412.06264]. Taken together, these works suggest that CGFM is best viewed not as a single fixed algorithm, but as a family of conditional flow models augmented by guidance mechanisms such as classifier-free interpolation, energy gradients, operator-derived corrections, internal scoring signals, or differentiable forward-model constraints.

## 1. Conceptual scope and lineage

The immediate conceptual lineage of CGFM lies in Flow Matching (FM), Conditional Flow Matching (CFM), and classifier-free guidance for continuous normalizing flows. "Guided Flows for Generative Modeling and Decision Making" extends classifier-free guidance from diffusion to flow matching and defines guided sampling through a conditional continuous normalizing flow
\[
\dot{x}_t = u_t(x_t|y),
\]
together with the guided vector field
\[
\tilde{u}_t(x|y) = (1 - \omega) u_t(x) + \omega u_t(x|y),
\]
where \(\omega\) is the guidance weight [2311.13443]. "Flow Matching Guide and Code" presents the same ingredients more systematically: FM as simulation-free training of continuous-time generative flows, endpoint-conditioned CFM, conditional generation with side information \(Y\), classifier guidance, and classifier-free guidance [2412.06264].

The explicit CGFM formulation in forecasting adds a further step. Rather than transporting only from a fixed noise source, it uses the output of an auxiliary forecaster as the source distribution, conditions both endpoints on the same historical context, and introduces a general affine family of conditional probability paths [2507.07192]. This is the paper in which CGFM is named directly, and it emphasizes a forecasting-specific capability: learning from the errors of an auxiliary model.

Later work broadens the phrase through applications rather than through a single unified theory. In autonomous driving, GuideFlow is described as “closest to a conditional guided flow-matching application,” but also as “not a generic CGFM theory paper” [2511.18729]. In speech synthesis, a conditional flow model is trained to internalize CFG-like behavior without inference-time dual passes [2607.00363]. In robotics, ForesightFlow uses a self-guided conditional flow over augmented action-and-potential states rather than an external critic [2606.04968]. These variants preserve the central CGFM pattern—conditional transport plus guidance—while differing sharply in what counts as the guide.

## 2. Mathematical structure

At its core, CGFM inherits the FM view that a generative model is a time-dependent vector field whose flow transports a source distribution to a target distribution. In the conditional case, the sampling dynamics take the form
\[
\dot{x}_t = u_t(x_t|y),
\]
with \(y\) denoting a conditioning variable such as a class label, text prompt, observation history, source image, or scene context [2311.13443].

The standard FM/CFM training picture is regression on analytically defined pathwise velocities rather than simulation-based likelihood training. "Flow Matching Guide and Code" writes the basic CFM objective as
\[
\mathcal{L}_{CFM}(\theta) = \mathbb{E}_{t,Z,X_t\sim p_{t|Z}} D(u_t(X_t|Z),u_t^\theta(X_t)),
\]
and emphasizes the marginalization identity
\[
u_t(x)=\mathbb{E}[u_t(X_t|Z)\mid X_t=x],
\]
which makes endpoint-conditioned or latent-conditioned targets sufficient for learning the marginal flow field [2412.06264]. In the linear conditional OT path, one has
\[
X_t=tX_1+(1-t)X_0,
\]
and the target velocity reduces to the familiar straight-line displacement \(X_1-X_0\) [2412.06264].

The explicit CGFM forecasting formulation generalizes this by building a **two-sided conditional probability path**
\[
p_{t|H}(x|h) = \int p_{t|0,1,H}(x|x_0,x_1,h)\,\pi_{0,1|H}(x_0,x_1|h)\,dx_0\,dx_1,
\]
with conditional independent coupling
\[
\pi_{0,1|H}(x_0,x_1|h)=p(x_0|h)\,q(x_1|h),
\]
and an affine bridge
\[
X_t=\alpha_t X_1+\beta_t X_0.
\]
Its marginal conditional velocity can then be written as
\[
u_t(x|h)=\mathbb{E}\!\left[\dot\alpha_t X_1+\dot\beta_t X_0 \mid X_t=x,\ H=h\right].
\]
The same paper derives equivalent \(u_t\)-prediction, \(X_0\)-prediction, and \(X_1\)-prediction parameterizations, and reports that \(X_1\)-prediction works best empirically [2507.07192].

This mathematical picture already contains the two components that define CGFM in practice. The **conditional** part enters through \(u_t^\theta(x_t|\text{context})\) and through context-dependent endpoint laws or paths. The **guided** part enters when the field used for sampling is modified beyond the base conditional field, or when the source/path itself is redesigned to encode an informative auxiliary signal.

## 3. Guidance mechanisms

The most canonical guidance mechanism in FM is classifier-free guidance. For Gaussian paths, "Guided Flows for Generative Modeling and Decision Making" shows that the guided field
\[
\tilde{u}_t(x|y) = (1 - \omega) u_t(x) + \omega u_t(x|y)
\]
is the flow-matching analogue of diffusion CFG [2311.13443]. "Flow Matching Guide and Code" presents the same construction in the broader FM framework and also gives the classifier-guided form
\[
\tilde{u}_t^{\theta,\phi}(x|y) = u_t^\theta(x)+b_t\,w\,\nabla\log p_{Y|t}^\phi(y|x),
\]
which is valid for Gaussian paths through the score-to-velocity relation [2412.06264].

Subsequent work expands “guidance” well beyond classifier guidance. GuideFlow adds application-specific guidance terms for planning in end-to-end autonomous driving. Its sampling update may include energy guidance
\[
x^{(k+1)} = x^{(k)} + v_\theta(x^{(k)}, t_k)\Delta t - \eta(t_k)\nabla_x E_\theta(x^{(k)}),
\]
classifier-free interpolation of conditional and unconditional velocity fields, and two explicit constraint interventions: constraining the velocity field (CVF) and constraining the flow states (CF) [2511.18729]. In that paper, the cleanest standard mechanism is classifier-free conditional guidance, while the most theoretically CGFM-adjacent mechanism is the energy-guided sampler.

In physically constrained time-series generation, HPC-FNO-CFM defines an FNO-derived correction
\[
v_{\text{guided}}(x,t,c) = v_{\text{CFM}}(x,t,c)-\mathcal{G}_{\text{FNO}}(x,t),
\]
where
\[
\mathcal{G}_{\text{FNO}}(x_t,t) = \alpha(t)\nabla_{x_t}\left\|\hat x_t-x_{\text{FNO}(t+\Delta t)}\right\|^2.
\]
Guidance is therefore a learned physics-operator correction, reinforced by hierarchical physical penalties in the total objective [2510.08295].

Speech synthesis introduces yet another variant. The unified guidance framework for FM speech generation defines an intrinsic guidance target
\[
v'_{\text{target}} = (x_1 - x_0) + w \cdot \mathrm{sg}\big( v_{\theta}(x_t, t, \tilde{c}) - v_{\theta}(x_t, t, \emptyset) \big),
\]
followed by a distillation loss that trains the model to internalize guided behavior without inference-time CFG overhead [2607.00363]. In robotics, ForesightFlow does not use additive gradient guidance at all; instead, it jointly generates an action chunk and a success-potential trajectory, then performs best-of-\(K\) inference using the generated potential as an internal ranking signal [2606.04968].

These examples show that “guided” in CGFM is now used in at least four distinct senses: guidance by conditional/unconditional interpolation, guidance by external gradients, guidance by explicit constraint corrections, and guidance by jointly generated internal scoring variables.

## 4. Conditioning, path design, and source design

A second defining axis of CGFM research concerns **what is being conditioned**, **what source distribution is used**, and **what probability path is chosen**. The original FM and CFM formulations often use Gaussian sources and endpoint-conditioned linear or Gaussian bridges [2412.06264]. CGFM methods increasingly depart from that default.

The forecasting CGFM paper is explicit that the source need not be noise. It sets
\[
X_0 = X_{\text{aux}} = \Phi(H),
\]
with \(X_0\sim p(\cdot|h)\) supplied by an auxiliary forecaster, and interprets the resulting transport as learning from the residual gap between auxiliary prediction and ground truth future [2507.07192]. This is a strong departure from both diffusion-style Gaussian starting points and standard FM formulations that do not exploit prior model outputs.

Coreset-Induced Conditional Velocity Flow Matching pushes source design even further. It replaces the inner isotropic Gaussian source in hierarchical rectified flow with a coreset-induced closed-form surrogate conditional law
\[
\tilde\pi(v\mid x_t,t)=\sum_{b=1}^K \gamma_b(x_t,t)\,\mathcal N\!\big(v;m_b(x_t,t),\Lambda_b(t)\big),
\]
obtained from a Sinkhorn coreset and Gaussian mixture surrogate of the target distribution [2605.12951]. This is not “guided” in the standard semantic sense, but it is a clear example of a data-informed conditional source distribution shrinking the residual transport problem.

Another generalization replaces endpoint conditioning by latent path conditioning. "Stream-level flow matching with Gaussian processes" defines streams \(s=\{x_t:0\le t\le 1\}\) and trains with the stream-level loss
\[
\mathcal{L}_{\rm sCFM}(\theta)=\mathbb E_{t,q(s)}\|v_t^\theta(x_t(s))-\dot x_t(s)\|^2.
\]
The paper’s central point is that richer latent trajectory conditioning can reduce the variance of the estimated marginal vector field while preserving the simulation-free character of CFM training [2409.20423]. This suggests a trajectory-level extension of CGFM beyond endpoint or label conditioning.

Condition design also matters. MusFlow aligns image, story, and caption embeddings into CLAP’s audio embedding space before conditioning a latent FM model on the fused representation, using
\[
\mathcal{L_A} = \left\| e_M - \frac{1}{n}\sum_i MLP_i(e_i) \right\|^2
\]
and a generation loss
\[
\mathcal{L_G} = \mathbb{E}_{t, q(z_1), p(z|z_1)} \left\| v_\theta(z,t,e_f) - \bigl(z_1-(1-\sigma_{\min})z_0\bigr) \right\|^2.
\]
The paper’s main lesson is that conditional flow matching depends strongly on the semantic geometry of the conditioning space [2504.13535].

A similar source-versus-condition separation appears in CBCT-to-sCT generation. That work uses a Gaussian source with CBCT concatenated as a static condition,
\[
v_{t,\theta}(x_t,y),
\]
and reports that the Gaussian-conditioned method generally outperforms both “CBCT w/o Concat” and “CBCT w/ Concat” variants [2603.05796]. A plausible implication is that, in inverse problems, separating the transported state from the conditioning observation can be preferable to transporting the corrupted observation itself.

## 5. Representative domains

The current literature spans a wide range of domains, but the role played by CGFM varies substantially across them.

| Domain | Representative papers | Role of CGFM |
|---|---|---|
| Time-series forecasting | [2507.07192] | Auxiliary-model source, two-sided conditional paths, affine path design |
| Conditional image, speech, and planning | [2311.13443], [2607.00363] | CFG-style guided flows; intrinsic guidance distillation for low-NFE sampling |
| Autonomous driving | [2511.18729] | Conditional planner with classifier-free guidance, constraint interventions, and EBM guidance |
| Physics-informed generation and inverse reconstruction | [2510.08295], [2604.04453], [2510.26601] | Operator guidance, differentiable forward-model guidance, and measurement-guided conditional transport |
| Robotics and control | [2606.04968] | Self-guided action generation via jointly generated success-potential trajectories |
| Multimodal and structured prediction | [2504.13535], [2603.12937] | Multimodal conditional latent FM; CFM-style regularization for smooth correspondences |

In autonomous driving, GuideFlow frames CGFM-like planning as conditional flow generation augmented by classifier-free guidance, energy guidance, and driving-specific constrained generation [2511.18729]. In speech synthesis, the major concern is eliminating CFG overhead while preserving conditional adherence and low-NFE generation [2607.00363]. In physics-informed or inverse settings, guidance often becomes measurement consistency or operator consistency rather than semantic conditioning: HPC-FNO-CFM uses an FNO-derived correction with hierarchical physical constraints [2510.08295], granular-flow reconstruction uses a differentiable forward operator and sparsity-aware gradient guidance [2604.04453], and ResMatching conditions a super-resolution flow on the observed low-resolution image to sample an implicit posterior over high-resolution reconstructions [2510.26601].

Robotics introduces a particularly distinctive form. ForesightFlow jointly models action chunks and success-potential trajectories, then uses the generated potential to rank candidates at inference. Its key objective is decoupled across action and potential coordinates:
\[
\mathcal{L}(\theta)=\mathbb E\!\left[
w_{i,t}\|v_\theta^{(a)}-u_{i,t}^{(a)}\|_2^2
+
\|v_\theta^{(s)}-u_{i,t}^{(s)}\|_2^2
\right],
\]
thereby separating policy improvement from potential calibration [2606.04968]. This is a CGFM realization in which guidance is neither external nor post hoc, but part of the jointly generated state.

## 6. Distinctions, misconceptions, and open issues

A recurring misconception is that any paper using both “conditional” and “guided” belongs straightforwardly to CGFM. The literature is more heterogeneous. "Fast Flow Matching based Conditional Independence Tests for Causal Discovery" is explicitly described as **not** a paper about CGFM in the usual generative-modeling sense; its “guided” component refers to CI-query selection in PC skeleton learning, not to guidance in the flow dynamics [2602.08315]. Likewise, SGMatch uses a CFM-style objective as a **regularizer** for feature-space correspondence smoothness rather than as an inference-time generative transport model [2603.12937].

Another misconception is that GuideFlow is a foundational general CGFM reference. The paper itself is explicit that it is “primarily application-specific for autonomous driving planning” and “not a generic CGFM theory paper” [2511.18729]. The same caution applies more broadly: many application papers instantiate conditional and guided flow ideas successfully, but do not attempt a universal formalism.

Theoretical completeness also varies. HPC-FNO-CFM uses generic CFM notation but leaves the precise bridge \(p_t(x\mid x_1,c)\) under-specified, while also acknowledging manual constraint design, higher computational cost, partial observability, and difficulty with non-stationary systems [2510.08295]. The general FM guide explicitly notes that one assembles CGFM by combining FM, CFM, and guidance ingredients rather than by invoking a single canonical named method [2412.06264]. This suggests that CGFM currently functions more as a design pattern than as a closed theory.

Taken together, the literature suggests three open directions. First, source and path design are becoming as important as guidance itself, as seen in auxiliary-forecast sources, coreset-induced surrogates, and GP streams [2507.07192][2605.12951][2409.20423]. Second, guidance is broadening from CFG-style interpolation to operator, energy, constraint, and self-scoring mechanisms [2511.18729][2510.08295][2606.04968]. Third, several papers imply that more expressive conditional structures—multimodal embedding alignment, multiple anchors, internal value-like coordinates, and explicit forward models—can improve both sample quality and controllability, but these advances remain fragmented across domains rather than unified under a single standard CGFM framework.

Source: https://www.emergentmind.com/topics/conditional-guided-flow-matching-cgfm