Papers
Topics
Authors
Recent
Search
2000 character limit reached

Latent Rectified Flow Models

Updated 10 July 2026
  • Latent rectified flow is a generative transport model that employs deterministic ODEs to move between latent representations while preserving modality-specific structure.
  • It uses linear interpolation with constant displacement in latent space and optimizes a velocity field via flow-matching losses to streamline the sampling process.
  • The framework supports diverse applications—from image and text generation to biomedical signal translation—by leveraging tailored latent constructions and conditioning mechanisms.

Latent rectified flow is a class of generative and transport models that instantiates rectified-flow or flow-matching dynamics in a learned latent representation rather than directly in pixel, waveform, or token space. In the canonical formulation, a model learns a time-dependent velocity field on a latent variable ztz_t or on a latent-conditioned state sts_t, with training targets derived from straight-line interpolation between a simple source distribution and latent data, or between paired source and target latents. This yields deterministic ordinary differential equation (ODE) dynamics with linear reference paths, constant target velocities, and few-step sampling, while allowing the latent space to encode modality-specific structure such as semantics, physiology, acoustics, or spatio-temporal uncertainty (Liu et al., 2022). Across recent work, latent rectified flow has been used for image generation and restoration, text generation and editing, room impulse response synthesis, precipitation nowcasting, remote-sensing change detection, PPG-to-ECG translation, and bidirectional autoencoding architectures such as RAC (Fang et al., 6 Mar 2026).

1. Definition, scope, and relation to rectified flow

Rectified flow, in the formulation of “Flow Straight and Fast,” learns a deterministic ODE that transports one distribution into another while making trajectories as straight as possible in Euclidean space (Liu et al., 2022). Given a coupling (X0,X1)(X_0,X_1), the reference path is the linear interpolation

Xt=(1t)X0+tX1,X_t=(1-t)X_0+tX_1,

and the optimal velocity field for the least-squares objective is the conditional mean

vX(x,t)=E[X1X0Xt=x].v^X(x,t)=\mathbb{E}[X_1-X_0\mid X_t=x].

The resulting rectified coupling preserves marginals and has provably non-increasing convex transport costs under rectification (Liu et al., 2022).

Latent rectified flow retains this ODE-and-linear-path structure but moves the dynamics into a learned latent space. The source variable may be Gaussian noise, a posterior-mean estimate, a source-domain latent, a teacher feature vector, or a latent-derived state; the target may be an encoded image, waveform, sentence, segmentation mask, or other structured latent. In most recent formulations, the training target remains the constant displacement between endpoints, while the learned vector field is conditioned on time and often on side information such as text, another modality, or historical frames. This makes latent rectified flow a broad design pattern rather than a single architecture.

The literature exhibits at least three recurring interpretations. First, latent rectified flow can mean a direct Gaussian-to-latent generator, as in PromptReverb’s conditional DiT for room impulse response latents, PPGFlowECG’s ECG-latent generator conditioned on PPG latents, ChangeFlow’s mask-latent synthesis, or RLFSeg’s image-to-mask latent transport (Vosoughi et al., 25 Oct 2025, Fang et al., 24 Sep 2025, Rolih et al., 14 May 2026, Qu et al., 6 May 2026). Second, it can mean transport between structured latent distributions, as in Language Rectified Flow, where source and target text domains are mapped in a VAE latent space, or Latent-PMRF, where the source is the latent of a posterior-mean restoration estimate (Zhang et al., 2024, Luo et al., 1 Jul 2025). Third, it can denote a latent-augmented state-space bridge rather than a purely latent ODE, as in RAC, where the flow operates on a full-resolution state constructed from both latent and image representations (Fang et al., 6 Mar 2026).

This breadth suggests that latent rectified flow is best understood as rectified-flow-style transport in a representation space chosen to regularize geometry, reduce dimensionality, and better align optimization with the task-specific notion of structure or perception. That interpretation is explicit in several papers: PromptReverb argues that the latent space simplifies the generative problem for room acoustics (Vosoughi et al., 25 Oct 2025), Latent-PMRF argues that a VAE latent better aligns with human perception in face restoration (Luo et al., 1 Jul 2025), and PG-LRF constructs a physiology-aware shared latent space before learning the rectified flow itself (Wang et al., 9 May 2026).

2. Mathematical formulation

The dominant formulation is the linear-interpolant ODE. Let z0z_0 denote a source latent and z1z_1 a target latent. The reference path is

zt=(1t)z0+tz1,t[0,1],z_t=(1-t)z_0+t z_1,\qquad t\in[0,1],

with constant target velocity

dztdt=z1z0.\frac{d z_t}{dt}=z_1-z_0.

A neural vector field vθ(zt,t,cond)v_\theta(z_t,t,\mathrm{cond}) is trained by a flow-matching loss of the form

sts_t0

This exact pattern appears in latent ECG generation conditioned on PPG (Fang et al., 24 Sep 2025), in multimodal room impulse response generation (Vosoughi et al., 25 Oct 2025), in change-mask synthesis (Rolih et al., 14 May 2026), in text-based segmentation (Qu et al., 6 May 2026), in precipitation nowcasting latents (Schusterbauer et al., 29 May 2026), and in physiology-guided ECG generation (Wang et al., 9 May 2026).

Sampling then integrates the deterministic ODE

sts_t1

from a simple initial condition, usually sts_t2, to obtain a terminal latent that is decoded into the target modality. Several works use explicit Euler integration with a small number of steps, including PPGFlowECG, ChangeFlow, and RLFSeg (Fang et al., 24 Sep 2025, Rolih et al., 14 May 2026, Qu et al., 6 May 2026). PromptReverb instead uses an adaptive midpoint RK2 solver with a maximum 50 function evaluations and sts_t3, together with cosine time reparameterization (Vosoughi et al., 25 Oct 2025).

A second formulation replaces Gaussian-to-data generation by latent transport between observed source and target domains. Language Rectified Flow uses a VAE latent space for text and trains on pairs sts_t4 drawn from source and target corpora: sts_t5 with Euler sampling over 10–20 steps in practice (Zhang et al., 2024). This is still rectified flow, but the source distribution is no longer necessarily Gaussian.

A third formulation modifies the state on which the ODE acts. RAC defines a deterministic ODE on a full-resolution state tensor sts_t6,

sts_t7

where sts_t8 is a latent-derived initialization and sts_t9 is an image-like target state. The flow is coupled to latent space by padding, expansion, and downsampling operators, and the same velocity field is reused in reverse time as an encoder (Fang et al., 6 Mar 2026). RAC also introduces a path-rectification loss that explicitly penalizes deviation from linear interpolation in state space, a latent alignment loss against a teacher VAE latent, pixel-level consistency with the teacher decoder, round-trip consistency, and an optional mean-velocity regularizer inspired by rectified flow (Fang et al., 6 Mar 2026).

Several papers augment the basic flow-matching loss with domain-specific structure. PromptReverb replaces plain (X0,X1)(X_0,X_1)0 with a pseudo-Huber penalty for improved gradient stability in high-dimensional latent space (Vosoughi et al., 25 Oct 2025). PG-LRF adds simulator-based residual penalties on decoded ECG and on ECG-induced PPG, while keeping the latent rectified-flow objective intact (Wang et al., 9 May 2026). ChangeFlow samples (X0,X1)(X_0,X_1)1 from a logit-normal rather than a uniform distribution to emphasize the ambiguous middle of the trajectory (Rolih et al., 14 May 2026). These variations do not alter the core idea: a deterministic ODE trained to follow straight latent paths.

3. Latent-space constructions and representation choices

The decisive design choice in latent rectified flow is the meaning of “latent.” Recent work spans compressed generative latents, semantically aligned cross-modal latents, teacher feature vectors, state-space hybrids, and uncertainty-preserving spatio-temporal latents.

Latent construction Representative use Example paper
VAE latent of data Gaussian-to-data or conditional generation PromptReverb (Vosoughi et al., 25 Oct 2025)
Shared aligned cross-modal latent PPG-conditioned ECG generation PPGFlowECG (Fang et al., 24 Sep 2025)
Latent-augmented full-resolution state Bidirectional auto-coder RAC (Fang et al., 6 Mar 2026)

In PromptReverb, the latent is the output of a VAE trained on mel-spectrogram representations of room impulse responses. The encoder produces 16 channels at 23.6 Hz, so a 5-second RIR yields 118 latent frames. Rectified flow operates purely in this latent space, while the frozen decoder reconstructs a 48 kHz full-band waveform (Vosoughi et al., 25 Oct 2025). In ChangeFlow, the latent is the SD-XL VAE encoding of a triplicated binary change mask, with spatial downsampling by a factor of 8 and latent dimension (X0,X1)(X_0,X_1)2 (Rolih et al., 14 May 2026). In RLFSeg, both the image and the segmentation mask are encoded by the same Stable Diffusion VAE encoder, and the rectified flow is defined between the resulting image and mask latents (Qu et al., 6 May 2026).

Cross-modal biomedical work uses more structured latents. PPGFlowECG constructs a shared latent space with a CardioAlign Encoder, using a shared encoder, modality-specific decoders, latent distribution alignment, symmetric InfoNCE, and cross-modal reconstruction. The latent head outputs posterior parameters in (X0,X1)(X_0,X_1)3, and the flow model acts on this aligned latent rather than raw waveforms (Fang et al., 24 Sep 2025). PG-LRF goes further by defining a Physiology-Aware AutoEncoder whose shared latent space is regularized by ECG–PPG phase delay consistency, global posterior alignment, contrastive alignment, and weak cross-decodability. The latent time series is then the substrate for the conditional rectified flow (Wang et al., 9 May 2026).

Other work treats latent space more abstractly. RestoRect defines rectified flow over 256-dimensional teacher feature vectors, separately for Retinex features and raw-image features, and interprets knowledge distillation itself as latent rectified transport in feature space (Verma et al., 27 Sep 2025). Latent-PMRF defines the source as the latent of the posterior-mean image, (X0,X1)(X_0,X_1)4, and the target as the latent of the high-quality image, (X0,X1)(X_0,X_1)5, then trains a conditional flow-matching model on the latent interpolation (Luo et al., 1 Jul 2025). Language Rectified Flow uses a text VAE latent space to move between source and target text domains by rectified ODE transport (Zhang et al., 2024).

A recurring conclusion is that latent geometry materially affects both fidelity and tractability. Latent-PMRF explicitly argues that the VAE’s reconstruction error bounds the minimum distortion achievable by the latent-flow restoration pipeline (Luo et al., 1 Jul 2025). FREUD, the first-stage model in precipitation nowcasting, uses a stochastic (X0,X1)(X_0,X_1)6 regularization to create bounded, smooth latents for a latent-space rectified-flow forecaster and shows that this uncertainty-preserving latent stage is beneficial for downstream probabilistic nowcasting (Schusterbauer et al., 29 May 2026). RecTok shifts attention from latent points to latent trajectories: it treats the forward rectified-flow path (X0,X1)(X_0,X_1)7 as the true training space of the diffusion transformer and enriches those trajectories semantically via VFM distillation (Shi et al., 15 Dec 2025). This suggests that latent rectified flow should often be analyzed at the level of path geometry, not only endpoint representation.

4. Conditioning, bidirectionality, and path regularization

Conditioning in latent rectified flow is highly task dependent but structurally uniform: the velocity field takes the current latent state, time, and a conditioning signal. In PromptReverb the condition (X0,X1)(X_0,X_1)8 includes text embeddings, audio features, and constant parameters, and classifier-free guidance is implemented by replacing (X0,X1)(X_0,X_1)9 with learned unconditional embeddings with probability 0.2 during training and using guidance scale 6.0 at inference (Vosoughi et al., 25 Oct 2025). In PPGFlowECG, the flow network is a conditional Transformer whose evolving ECG latent attends to the PPG latent through cross-attention at every block (Fang et al., 24 Sep 2025). PG-LRF keeps the same conditional pattern but makes the condition a physiology-aware PPG latent and augments training with ECG-side and ECG-to-PPG simulator consistency (Wang et al., 9 May 2026).

In computer vision, conditioning may be simpler but remains central. ChangeFlow computes

Xt=(1t)X0+tX1,X_t=(1-t)X_0+tX_1,0

resizes it to the VAE latent resolution, concatenates it with the current latent Xt=(1t)X0+tX1,X_t=(1-t)X_0+tX_1,1, and feeds the result to a DiT that predicts the latent velocity. The paper describes this as a “structured yet lightweight conditioning signal,” and ablations show that replacing absolute difference with signed difference or concatenation degrades performance (Rolih et al., 14 May 2026). RLFSeg conditions its rectified-flow UNet on text exactly as Stable Diffusion does, via frozen CLIP embeddings injected through cross-attention, but replaces the diffusion denoising task with velocity prediction between image and mask latents (Qu et al., 6 May 2026).

A notable line of work uses time reversal or bidirectionality. RAC explicitly reuses the same time-conditioned “Coder” in both directions: latent-to-image decoding is forward ODE integration, whereas image-to-latent encoding is numerical inverse integration with the same velocity field. The encoded latent is obtained by downsampling the recovered state, and the model is trained with latent alignment, pixel-level consistency, and round-trip losses. This yields nearly 41% parameter reduction relative to separate encoder–decoder designs while improving reconstruction and generation (Fang et al., 6 Mar 2026).

Path regularization is the mechanism by which “rectification” is often made explicit rather than implicit. RAC adds a decoding path loss forcing intermediate states to approximate linear interpolation between the latent-derived initial state and the target state, as well as an optional mean-velocity regularizer motivated by rectified-flow formulations (Fang et al., 6 Mar 2026). RestoRect adds a trajectory consistency loss composed of a smoothness term across ODE steps, a target alignment term at the final step, and a semantic consistency term measured by cosine distance to teacher features (Verma et al., 27 Sep 2025). Delta Rectified Flow Sampling, although focused on text-to-image editing rather than latent generation from scratch, highlights another dimension of path control: it introduces a time-dependent shift term that moves noisy target latents closer to the intended editing trajectory, and shows that setting the shift to zero recovers DDS while a linear schedule recovers FlowEdit as a strict special case (Beaudouin et al., 1 Sep 2025). This suggests that path shaping, not only endpoint supervision, is now a major axis of latent rectified-flow design.

5. Modalities, applications, and empirical behavior

Latent rectified flow now spans a wide range of modalities. In language, it provides a latent-space ODE alternative to diffusion LLMs: Language Rectified Flow reports 10–20 Euler steps in practice and approximately 26.7× speedup over a diffusion LM on a POS-control benchmark, while improving or matching task metrics on POS control, length control, infilling, and sentiment editing (Zhang et al., 2024). In acoustics, PromptReverb combines a VAE for RIR upsampling with a conditional rectified-flow DiT in latent space and reports 8.8% mean RT60 error for the XL long-prompt setting, compared with approximately Xt=(1t)X0+tX1,X_t=(1-t)X_0+tX_1,2 underestimation for Image2Reverb (Vosoughi et al., 25 Oct 2025).

In biomedical signal generation, latent rectified flow has become a central mechanism for PPG-to-ECG translation. PPGFlowECG shows that a standard rectified-flow baseline in raw signal space achieves Macro-AUROC 0.499 on MCMED, whereas the full aligned-latent method achieves 0.631, supporting the thesis that rectified flow alone is insufficient without a semantically aligned latent space (Fang et al., 24 Sep 2025). PG-LRF strengthens that thesis by adding physiology-aware latent structure and simulator guidance, improving over PPGFlowECG on MC-MED in MAE, RMSE, FD, FID, HR MAE, and multiple morphology metrics, and raising downstream cardiovascular-disease classification from Macro-AUROC 0.545 with a PPG baseline to 0.633 using generated ECGs (Wang et al., 9 May 2026).

In image generation and restoration, latent rectified flow appears in several roles. RecTok uses latent-space rectified flow together with flow semantic distillation and reconstruction–alignment distillation, achieving state-of-the-art gFID-50K results with and without classifier-free guidance while observing consistent improvements as latent dimensionality increases (Shi et al., 15 Dec 2025). Latent-PMRF reformulates Posterior-Mean Rectified Flow in VAE latent space for blind face restoration and reports a 5.79× speedup over PMRF in terms of FID convergence, while emphasizing that VAE design is crucial for both reconstruction and restoration (Luo et al., 1 Jul 2025). RAC replaces the traditional VAE with a rectified-flow auto-coder and reports about 70% lower computational cost and nearly 41% fewer parameters while surpassing SOTA VAEs in both reconstruction and generation (Fang et al., 6 Mar 2026). RestoRect reinterprets teacher-feature distillation as latent rectified-flow feature generation and reports lower FID with 3–4 steps than a DDIM-based baseline that needs 10+ steps to reach comparable quality (Verma et al., 27 Sep 2025).

In segmentation and change detection, latent rectified flow often appears as a discriminative alternative to diffusion. RLFSeg learns a direct latent mapping from image to segmentation mask with a one-step rectified-flow update and shows that one-step sampling is best; increasing to 2, 5, or 15 steps reduces performance (Qu et al., 6 May 2026). ChangeFlow reformulates remote-sensing change detection as generative synthesis of a change-mask latent conditioned on feature differences between two images, reporting an average F1 of 80.4% across four benchmarks, improving by 1.3 points on average over the previous best method while maintaining inference speed comparable to recent strong baselines (Rolih et al., 14 May 2026). The model also supports sampling-based ensembling and confidence estimation through sample agreement (Rolih et al., 14 May 2026).

In spatio-temporal forecasting, latent rectified flow has become a probabilistic forecaster rather than only a decoder. FREUD uses rectified flow both as a pixel-space generative decoder and as a latent-space forecasting transformer. The latent-space model is trained only on noised future latents while conditioning frames are kept clean, and the authors report state-of-the-art precipitation nowcasting on SEVIR together with calibrated ensemble uncertainty from repeated latent-flow sampling and repeated RF decoding (Schusterbauer et al., 29 May 2026). This use case makes explicit that latent rectified flow can model aleatoric uncertainty despite deterministic ODE dynamics, because randomness enters through initial latent sampling and conditional generative decoding.

6. Limitations, misconceptions, and open directions

A common misconception is that latent rectified flow is merely “diffusion with fewer steps.” The cited work does not support that simplification. Rectified flow replaces score or noise prediction with direct velocity regression on prescribed paths; in several papers the training objective, path family, and solver behavior are substantively different from standard diffusion (Liu et al., 2022). Another misconception is that operating in latent space automatically improves generation. Multiple studies indicate that latent construction is decisive: PPGFlowECG shows that raw-space rectified flow is ineffective without latent alignment (Fang et al., 24 Sep 2025), Latent-PMRF shows that the source latent must be the latent of the posterior mean rather than the posterior mean of latents if one wants to preserve the distortion argument (Luo et al., 1 Jul 2025), and PG-LRF shows that replacing a physiology-aware latent space with independent autoencoders degrades both waveform and physiological metrics (Wang et al., 9 May 2026).

Several limitations recur. Many systems depend on a pretrained or frozen first-stage model. RAC relies on a teacher KL-VAE and frozen teacher encoder to avoid latent collapse (Fang et al., 6 Mar 2026). PromptReverb is a two-stage system with a frozen VAE decoder during rectified-flow training (Vosoughi et al., 25 Oct 2025). ChangeFlow uses a frozen SD-XL VAE and notes that this VAE was not tailored to binary masks, even though mask reconstruction is nearly perfect (Rolih et al., 14 May 2026). Latent-PMRF explicitly states that VAE reconstruction error bounds the minimum distortion of the overall method, making VAE design a bottleneck rather than a neutral component (Luo et al., 1 Jul 2025). This suggests that first-stage representation learning remains a primary systems problem for latent rectified flow.

Another limitation is solver-path mismatch or instability under long horizons. RAC uses Euler integration with short horizons such as Xt=(1t)X0+tX1,X_t=(1-t)X_0+tX_1,3 and notes that long trajectories may require more careful numerical analysis (Fang et al., 6 Mar 2026). ChangeFlow reports that repetitions in sampling help more than increasing ODE steps once a small step count is reached (Rolih et al., 14 May 2026). RLFSeg finds that multistep integration can trigger “path-crossing” effects because image and mask latents overlap in the shared VAE space, so one-step inference is actually preferable (Qu et al., 6 May 2026). In beam prediction, the uniform-velocity assumption of rectified flow becomes less adequate on longer horizons, and a BeamLLM eventually surpasses the rectified-flow model on late prediction steps (Zheng et al., 25 Nov 2025).

Conditioning and uncertainty also remain open areas. PromptReverb does not fully specify the exact conditioning injection mechanism inside the DiT (Vosoughi et al., 25 Oct 2025). ChangeFlow notes that latent RF is still heavier than the leanest discriminative models (Rolih et al., 14 May 2026). FREUD finds that classifier-free guidance, although standard in diffusion practice, is problematic for precipitation nowcasting because it systematically increases precipitation intensity and harms calibration (Schusterbauer et al., 29 May 2026). These observations suggest that conditioning heuristics imported from diffusion are not automatically valid in latent rectified-flow systems.

The forward-looking direction that emerges from the literature is not a single replacement paradigm but a layered recipe. Learn a latent space that encodes the right invariants or semantics; define rectified ODE transport on that space with a path family compatible with the task; and, where available, add structural guidance such as bidirectional consistency, simulator residuals, feature distillation, or uncertainty-preserving decoding. The published work suggests that latent rectified flow is most effective when the latent space and the flow objective are co-designed, rather than when rectified flow is simply applied to an arbitrary compressed representation (Shi et al., 15 Dec 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Latent Rectified Flow.