Blog
A Visual Introduction to Rectified Flow Matching
From curved transport paths to real-time VLAs, World Action Models, modern LLMs, and Reverse Flow Matching — an interactive 18-figure visual guide running live 2D neural ODE models in your browser.
28 min read
1. Introduction
For the last decade, generative modeling lived under a painful speed–quality trade-off. Diffusion models and early continuous normalizing flows could learn extraordinarily rich, multimodal distributions—images, video frames, protein backbones, and continuous robot trajectories—but generating a single sample required stepping cautiously along a heavily curved trajectory through high-dimensional space, burning 30 to 100 sequential neural network evaluations.
In offline image synthesis, waiting two seconds for 50 denoising steps is an inconvenience. In Physical AI, waiting two seconds is a collision. A bimanual manipulator running a Vision-Language-Action (VLA) policy like [1], NVIDIA GR00T [2], or SmolVLA [3] must synthesize multi-step continuous action chunks at 20–50 Hz. A World Action Model (WAM) simulating candidate futures inside a closed planning loop cannot afford 50 sequential forward passes per imagined rollout. And modern flow-based LLMs exploring parallel, non-autoregressive generation [4] live or die by how few refinement steps it takes to transport noise into coherent tokens.
Rectified Flows [5]—closely unified with Flow Matching [6] and Stochastic Interpolants [7]—solve this latency wall with a remarkably simple geometric insight: if you straighten the transport paths between noise and data, a cheap numerical solver can leap from noise to data in just one to four steps without losing accuracy.
Figure 1: A rectified flow model (right) learns nearly straight transport paths compared to a standard flow matching model (left). Both models transport the exact same 2D Gaussian source distribution onto the exact same target smiley-face manifold , yet standard flow matching bends sharply around empty regions while rectified flow moves almost linearly—cutting Euler discretization error by over 40× at a single step. Click either panel to spawn matched trajectories live.
In this post, we unpack Flow Matching and Rectified Flows from first principles using 18 live, interactive 2D visualizations. Rather than treating these ideas as abstract differential equations, we will watch real neural velocity fields bend, cross, untangle, and straighten—and conclude by showing how these exact geometric primitives generalize to VLAs, WAMs, modern LLMs, and Reverse Flow Matching (RFM) [8].
2. Background
2.1 Flow-Based Generative Models
A generative model’s job is straightforward to state: given samples from a complex, unknown target data distribution (say, valid 7-DoF robot grasp trajectories or our 2D smiley-face manifold), learn a fast procedure that transforms easy-to-sample noise into realistic target samples .
Flow-based models—specifically Continuous Normalizing Flows (CNFs) [9]—perform this transformation continuously over a pseudo-time variable . Instead of teleporting straight to in a single black-box map, a neural network parameterizes a time-dependent velocity field that tells every point which direction and how fast to move at instant :
Figure 2: A flow matching model transforms simple Gaussian noise into a structured 2D manifold along curved trajectories. Notice how particles starting on the periphery first sweep inward toward the center before flaring outward onto the eyes and smile arc. Tap anywhere near on the left to integrate a live trajectory from that point.
As every particle follows the flow map defined by the ODE above, the entire probability distribution evolves smoothly along a probability path interpolating between at and at . Formally, and are coupled by the continuity equation (conservation of probability mass):
Figure 3: The probability path of a continuous normalizing flow. Scrub from to to watch probability density continuously split from a single unimodal Gaussian cloud into three disconnected modes (two eyes and a curved smile), guided by the overlaid sample trajectories .
Zooming in on a single sample makes the ODE mechanics concrete. At every instant , our neural network evaluates the instantaneous tangent vector at the particle’s current location :
Figure 4: A single sample trajectory with its instantaneous velocity vector (green arrow). Watch how the direction and magnitude of the green tangent arrow rotate substantially mid-flight as the particle navigates around empty space. Tap anywhere in to launch a new sample.
In practice, we cannot integrate a neural ODE analytically. Instead, we discretize into small intervals of width and step forward using a numerical integrator—most commonly the Forward Euler method:
Each step costs one full forward pass through the neural network (often measured as NFE—Number of Function Evaluations).
Figure 5: Discrete Euler integration through a learned time-dependent velocity field. Each orange arrow advances linearly along for duration . Drag the step slider down from to to watch the discrete approximation overshoot the dashed reference ODE curve and accumulate endpoint error (red).
2.2 Flow Matching & Conditional Flow Matching
Early Continuous Normalizing Flows were notoriously slow to train because they required simulating the ODE during training and backpropagating through the solver via maximum likelihood. Flow Matching [6] eliminates simulation from training entirely by posing a direct regression problem: if we knew a ground-truth marginal velocity field that generates the target probability path , we could simply minimize squared error:
There is an obvious catch: we do not know the marginal velocity field or marginal density in closed form!
The breakthrough of Conditional Flow Matching (CFM) is to build as a mixture of trivial conditional paths between individual pairs . The cleanest choice—and the foundation of rectified flows—is linear interpolation:
Figure 6: Linear interpolation between a single source point and target point . Along this conditional straight line, the target velocity is completely constant in time. Click either side of the canvas to reposition or .
If we freeze a single target point , its conditional velocity field (for ) is utterly simple: every point in space just has an arrow pointing straight at :
Figure 7: The conditional velocity field for a fixed target point (direction snapshot at fixed ). Every arrow points radially toward , with magnitude proportional to . Click anywhere on the canvas to relocate and watch the entire conditional field re-orient immediately.
Now replace the intractable marginal target with the trivial conditional target to form the Conditional Flow Matching objective:
Figure 8: The Conditional Flow Matching training signal. At each sampled pair and time , we evaluate the network (orange) and regress it toward the constant conditional velocity (blue), minimizing the squared residual (red dashed segment). Crucially, only observes —never directly.
Why does regressing against noisy per-pair vectors recover the exact marginal velocity field ? By the conditional Pythagorean projection identity (the same mathematical fact that makes least squares return the conditional expectation), the CFM and FM objectives differ only by a constant independent of :
and the unique global minimizer at every point is the conditional expectation of the pairwise velocities passing through at time :
Key Takeaway (§2): Conditional Flow Matching eliminates ODE simulation during training by regressing onto trivial straight per-pair velocities —yet still recovers the exact marginal conditional-expectation field .
3. The Problem: Why Naive Flow Matching Curves
Wait a second. We trained our neural network exclusively on straight linear interpolations with constant velocities . So why, when we actually integrate the trained Flow Matching model at inference time, do its trajectories curve sharply?!
Let’s remove the horizontal time shift and superimpose the 2D trajectories directly on top of and to see the bending starkly:
Figure 9: Superimposed 2D view of Flow Matching trajectories. Without horizontal time unrolling, the severe bending of standard 1-FM is unmistakable: trajectories sweep inward toward the origin (mean arc-to-chord ratio 2.21×), execute sharp J-turns around empty regions, and then hook outward onto the eyes and smile. Tap anywhere to trace live paths.
3.1 Curvature Is the Enemy of Speed
Why does curvature matter so much in practice? Look at the local truncation error of Forward Euler over a single step of size . By Taylor’s theorem:
Forward Euler captures only the first two terms. Its truncation error is governed directly by the second derivative (trajectory acceleration, driven by path bending and speed changes) :
- When a trajectory bends or accelerates sharply (), Euler must take tiny steps (, i.e., large ) to stay on the manifold.
- When a trajectory moves straight at constant velocity (), all higher-order Taylor terms vanish identically—meaning a single Euler step () is exact!
Figure 10: Curvature directly controls Euler discretization error. Comparing a high-curvature trajectory (left) against a near-straight trajectory (right) under identical step budgets . Drag down to 1–4 steps: the high-curvature Euler rollout diverges dramatically from ground truth, whereas the near-straight path stays accurate even at .
In robotics and foundation models, every Euler step is a full forward pass through a multi-billion-parameter Vision-Language-Action transformer or World Action Model. Cutting from 32 steps down to 1–4 steps is not a minor optimization—it is an 8× to 32× wall-clock speedup, the difference between a sluggish 3 Hz demo and a reactive 50 Hz closed-loop controller.
3.2 What Is a Coupling?
To understand why trajectories curve, we have to inspect the joint distribution used during training—known in optimal transport as a coupling of and (a joint distribution whose marginals are and ).
In standard Flow Matching, we sample and completely independently:
Under an independent coupling, a noise point on the far left of is just as likely to be paired with the far-right eye as with the left eye. The straight chords connecting all pairs form a dense, tangled web crossing right through the middle of space:
Figure 11: An independent coupling . Random pairing creates massive path tangling and high average squared transport distance (). Hover over any point to inspect its random partner, or resample a new random pairing.
Contrast that with an Optimal Transport (OT) coupling —the joint distribution minimizing total squared transport cost . Using the Sinkhorn-Knopp algorithm [10] on the exact same 36 source and target points, the tangled web collapses into clean, parallel, non-crossing segments:
Figure 12: An Optimal Transport coupling computed via Sinkhorn-Knopp on the exact same points as Figure 11. Mean squared transport distance plummets by 5.1× (from down to ), and almost every crossing vanishes. Hover over any point to trace its OT partner.
If Optimal Transport eliminates crossings so cleanly, why don’t we just run Sinkhorn OT on every training batch? Minibatch OT [11] helps in low dimensions, but exact OT scales cubically/quadratically with batch size and suffers from the curse of dimensionality: in high-dimensional action chunks or image/LLM latents, a minibatch of 256 random samples is far too sparse to approximate the true population OT plan. We need a scalable way to untangle couplings in any dimension.
3.3 Paths Crossed at the Wrong Time
Now put two facts together:
- Under an independent coupling, linear interpolation chords cross each other at intermediate points .
- The optimal velocity field must output a single deterministic vector at .
When two paths and intersect at , the velocity field cannot simultaneously move up-right along and down-right along . The best it can do under squared error is predict their average—pointing straight horizontally!
Figure 13: Why crossing pairs force trajectories to curve—and why single-step Euler extrapolation falls into the dead zone. Two equally weighted pairs and cross at with conflicting velocities (blue). Because a deterministic ODE can only assign one velocity to , the optimal predictor outputs their conditional expectation (green). Advancing to in a single remaining Euler step lands at (crimson bullseye)—smack in the empty off-manifold dead zone between both valid targets. Adjust the spread angle slider or toggle the 1-step landing preview.
Look at what happens at under an independent coupling: because is independent of ,
Every single particle starts by rushing straight toward the global mean of the target distribution! Only later in , as paths separate, does the velocity field turn sharply outward toward the individual modes (eyes and smile). That global-mean pinch at is why 1-step Euler on standard Flow Matching collapses the entire distribution onto a single point at .
Statistical physics gives this exact dynamical turning point a precise name. Raya and Ambrogioni [12] show that generative transport from noise to multimodal data undergoes spontaneous symmetry breaking, and Biroli, Bonnaire, de Bortoli, and Mézard [13] formalize this transition as a critical speciation time :
- Before speciation (): The velocity field pulls trajectories inward toward the unimodal mean—the “mean-pinch” regime visible near the start of Figures 9 and 17.
- At the speciation window (): The effective potential develops saddle separatrices, and trajectories spontaneously bifurcate toward distinct macroscopic modes (left eye vs. right eye vs. smile—or in robotics, left vs. right around an obstacle).
- After speciation (): Once particles commit to a basin, the local velocity field smooths out and guides them onto fine manifold detail.
In our 2D smiley-face Flow Matching model, measuring the mean angular rotation rate of along particle trajectories directly reveals this speciation transition peaking right around (which you can watch live in Figure 17 below). It is also why large-scale rectified flow transformers like Stable Diffusion 3 [14] concentrate training weight around mid-range timesteps via logit-normal schedules—putting maximum capacity right where symmetry breaking and mode commitment occur.
Key Takeaway (§3): Independent couplings cross in space-time, forcing the optimal velocity field to average conflicting directions, pinch inward toward the global mean before speciation , and bend sharply—so naive low-step Euler integration lands off-manifold.
4. Rectified Flows
4.1 The Reflow Algorithm
Rectified Flow [5] exploits a remarkable self-correcting property of ODEs to untangle couplings without solving an explicit optimal transport linear program.
Even though our first Flow Matching model traces curved paths, it defines a deterministic ODE . By the Picard–Lindelöf uniqueness theorem for Lipschitz ODEs, two distinct ODE trajectories can never cross at the same ! Instead of crossing through the center and swapping sides, particles coming from the top-left bounce gently off the center and continue to the top-left target region, while particles from the bottom-right stay on the bottom-right.
Therefore, denoting the time- flow map of by , simply simulating our trained 1-FM model forward from noise to produces a brand-new induced coupling whose pairs are dramatically less tangled than the original independent coupling—yet whose endpoints still follow the exact same target distribution !
Now we simply retrain a fresh Flow Matching model on straight linear interpolations of this induced coupling. This iterative straightening procedure is called Reflow:
Input: Source distribution , target distribution , generation count ( is standard 1-FM / 1-RF; apply Reflow passes).
- Initialize Coupling (): Set by drawing independent pairs .
- For :
-
Train Velocity Field : Minimize the linear Flow Matching loss on the current coupling :
-
Generate Induced Coupling (if ): Sample fresh noise and integrate the learned ODE from at to (using a high-accuracy solver such as Heun/RK4) to obtain paired targets . Set .
-
- Return: Final straightened velocity field (the -Rectified Flow, after Reflow passes).
Watch the three-stage untangling happen live on our exact 2D dataset:
Figure 14: How Reflow untangles an independent coupling automatically. Step through the three buttons: (1) we start with a tangled independent coupling (mean squared distance ); (2) flowing through the learned 1-FM ODE bends paths so they avoid crossing; (3) replacing those curved ODE trajectories with straight chords connecting each start to its flowed endpoint produces an almost crossing-free coupling with mean squared distance —an 8.0× drop that essentially matches the true population 2-Wasserstein OT floor ! (Note: Figure 12’s discrete 36-point OT score of is slightly higher only because matching two tiny independent 36-point draws incurs finite-sample empirical mismatch, whereas pushes the 36 source points continuously.)
4.2 Why It Works
Liu, Gong, and Liu [5] proved three clean mathematical guarantees for Reflow that make it uniquely attractive for production systems:
-
Exact Marginal Preservation: If accurately solves the continuity equation for , then the induced endpoints have the exact same marginal distribution as the original data. Reflow changes which noise maps to which target—never the target distribution itself.
-
Monotone Reduction of Convex Transport Cost: For every convex cost function (including squared Euclidean distance ), one step of Reflow provably does not increase transport cost:
This follows by applying Jensen’s inequality twice on vectors: first over time along the curved ODE trajectory , and second over the conditional expectation across crossing chords (using ). Whenever is strictly convex (such as ) and trajectories bend or chords cross, the new straight chord achieves strictly lower expected cost!
-
Asymptotic Straightness () and Convergence Guarantees: Denoting the -th learned ODE trajectory by ( from to ) and measuring deviation from constant-speed straightness via
telescoping the squared-distance drops across Reflow rounds guarantees . Subsequent theory by Lee, Kim, and Ye [15] formalized how directly minimizing trajectory curvature bounds ODE discretization error in proportion to transport displacement, while Bansal, Roy, Rinaldo, and Sarkar [16] established non-asymptotic Wasserstein convergence and straightness guarantees for Rectified Flow—clarifying both how quickly Reflow straightens paths and how numerical solver errors can accumulate if too many noisy reflow rounds are chained carelessly. In our 2D example, a single reflow pass (2-RF) already eliminates over 99% of ; a second pass (3-RF) drives trajectories to near-perfect Euclidean straightness.
4.3 Side-by-Side Comparisons
Let’s inspect the empirical difference between our trained 1-FM (Flow Matching) model and our Rectified Flow (Reflow) model across trajectories, Euler step budgets, and time-varying vector fields.
| Metric (1,000 Held-Out Samples) | Standard Flow Matching (1-FM) | 1st Reflow (2-RF) | 2nd Reflow (3-RF) | Improvement (1-FM → 3-RF) |
|---|---|---|---|---|
| Mean Arc / Chord Ratio (1.00 = perfectly straight) | 2.2133× | 1.0009× | 1.0004× | Nearly perfectly linear |
| Curvature Energy | 0.3511 | 0.0002 | 0.0001 | > 3,500× lower |
| 1-Step Euler Error (vs. 40-step ODE) | 0.8624 | 0.0263 | 0.0184 | 46.9× lower |
| 4-Step Euler Error (vs. 40-step ODE) | 0.0927 | 0.0071 | 0.0054 | 17.2× lower |
First, compare the superimposed 2D trajectories launched from identical starting points :
Figure 15: Superimposed trajectory straightness: Flow Matching (left) vs. Rectified Flow (right). Starting from identical noise coordinates , 1-FM sweeps inward and hooks sharply around empty space, whereas Rectified Flow travels along straight line segments directly to the eyes and smile. Tap anywhere in either panel to fire matched pairs simultaneously.
Next, test the real payoff—inference speed under tiny Euler step budgets, plus the training-free Warm Start shortcut we explore in Section 5.2. Toggle between 1, 2, 4, 8, 16, and 32 below, and switch between Cold Start () and Warm Start (). All 320 particles are integrated live in your browser through the actual trained MLP weights:
Figure 16: Live Euler step comparison across with a Cold Start () vs. Marginal-Aligned Warm Start () toggle. Under a Cold Start at on these 320 live particles, Flow Matching collapses completely to the mean near the origin (badge error ), whereas Rectified Flow reconstructs a crisp smiley face in a single step (error ). Now click Warm Start (): by initializing from a rough mode-committed prior re-noised to the exact marginal past speciation time (simulating the previous-chunk warm start of MAWS [19]), even standard 1-FM skips the mean-pinch collapse and cuts its 1-step error by nearly 8× (down to )!
Finally, look directly inside the learned neural vector fields and as time sweeps from to , watching the dynamical regime timeline along the bottom:
Figure 17: Animated time-varying velocity fields (left) vs. (right) with the dynamical speciation window highlighted. Before speciation (), the Flow Matching field pulls radially inward toward the origin; right inside the highlighted speciation band (, [12], [13]), its arrows pivot sharply outward to carve out the two eyes and smile. By contrast, the Rectified Flow velocity field remains remarkably steady across all —the geometric signature of near-zero acceleration ().
How Does This Compare to Diffusion Models?
Readers arriving from score-based diffusion (DDPM, DDIM, or Diffusion Policy) often ask how Flow Matching and Rectified Flows differ in practice. Under a Gaussian source , Gaussian Flow Matching and Probability-Flow ODE Diffusion are mathematically reparameterizable into one another—yet linear interpolants, arbitrary non-Gaussian source flexibility, and Reflow straightening change both training simplicity and inference speed dramatically:
| Dimension | Score-Based Diffusion (DDPM / SDE) | Standard Flow Matching (1-FM) | Rectified Flow (2-RF / 3-RF via Reflow) |
|---|---|---|---|
| Training Interpolation Path | Curved VP () or VE () noising (, data noise; reversed at sampling) | Straight linear interpolant (, noise data) | Straight linear interpolant on non-crossing induced coupling |
| Training Target | Noise or score | Conditional velocity | Conditional velocity |
| Inference Dynamics | Reverse SDE or Probability-Flow ODE (curved) | Deterministic ODE (curved across crossings) | Deterministic ODE (nearly straight, ) |
| Typical Solver Budget (NFE) | 20–100 steps | 8–32 steps (or 1 step on unimodal / warm-started regimes) | 1–4 Euler steps even on multimodal targets |
| Primary Trade-Off | Rich diversity, slower sampling & schedule tuning | Simple simulation-free training, curved near speciation | Ultra-fast low-NFE sampling; requires extra reflow generation passes |
Key Takeaway (§4): Because deterministic ODE trajectories cannot cross, integrating 1-FM forward automatically produces an untangled coupling ; retraining on its straight chords (Reflow) cuts curvature by orders of magnitude while preserving the exact target distribution .
5. The Bigger Picture: VLAs, WAMs, Modern LLMs, and Open Frontiers
Everything we just visualized in two dimensions—linear interpolants, conditional expectations, curved vs. straight ODEs, and low-NFE Euler integration—is no longer just a toy-dataset curiosity. It is rapidly becoming the universal transport backbone of modern generative AI and Physical AI:
5.1 Where Rectified Flow Matching Powers Today’s Frontier Models
| Model Class | Representative Systems | What the Flow Transports () | Why Straight Trajectories Matter |
|---|---|---|---|
| Vision-Language-Action (VLA) Policies | / OpenPI [1], NVIDIA GR00T [2], SmolVLA [3], FLOWER [20] | Gaussian noise continuous multi-step robot action chunks conditioned on camera frames + language | Robot policies must represent multimodal grasps (left vs. right around an obstacle—where MSE regression averages into a collision!) while running at 20–50 Hz in 1–10 ODE steps. |
| World Action Models (WAMs) | Latent video & dynamics world models | Noise future visual/physics latent states conditioned on current state & candidate action | Closed-loop model-predictive control (MPC) and simulation rollouts evaluate many candidate futures per second; curved 50-step diffusion makes interactive planning prohibitive, whereas straight rectified flows unlock real-time imagination. |
| High-Res Multimodal & Flow LLMs | Stable Diffusion 3 / Flux [14], Discrete & Continuous Flow LLMs [4] | Noise / masked prior high-res visual latents or parallel token sequences | Rectified flow transformers scale cleanly to billions of parameters and decouple generation latency from sequence length via few-step parallel refinement rather than strictly sequential token-by-token decoding. |
5.2 When Is One Step Actually Enough? Unimodal Stretches, Bifurcations, and Warm Starts
Looking at Figure 16, we might immediately ask: if 1-step standard Flow Matching (1-FM) collapses to the mean on our 2D smiley face, why do production VLAs like , GR00T, SmolVLA, and FLOWER [20] often achieve strong performance using 1-FM (without full Reflow) in just 4–10 steps—or sometimes even 1 step?
Recent empirical studies resolve this apparent paradox directly through the dynamical-regimes geometry we just visualized:
- Conditioning collapses multimodality on smooth stretches: Unlike unconditional generation from to a three-mode smiley face, a VLA action head is tightly conditioned on live RGB cameras, proprioception, and a language instruction. Sujit, Nunziante, Dossa, and Arulkumaran [21] empirically studied Euler integration in flow-matching policies and showed that on smooth, unimodal motion segments where the conditional action distribution has a single narrow peak, a single Euler step is frequently enough. Multi-step integration (or rectified straightening) becomes decisive specifically at multimodal bifurcations—such as choosing left vs. right around clutter or breaking symmetry at a grasp boundary—where 1-step
1-FMaverages modes across the saddle separatrix right into an obstacle! - Skipping past speciation with Marginal-Aligned Warm Starts (MAWS): Instead of retraining a VLA with Reflow, MAWS [19] exploits temporal continuity across consecutive control ticks: it shifts the previously predicted robot action chunk forward and re-noises it to match the exact training marginal at an intermediate time . By jumping cleanly past the curved mean-pinch and speciation window, MAWS accelerates VLA action heads to a single denoising step (reported up to 9.1× speedup on benchmark action heads, with real-world gains depending on action horizon, VLM prefix caching, and hardware) while preserving baseline task success—an effect you can test directly with the Warm Start toggle in Figure 16!
- Smoothing teleoperation jitter at test time: Even with fast ODE solvers, VLAs trained on human teleoperation logs can inherit high-frequency demonstration jitter; Action Coherence Guidance (ACG) [22] introduces a training-free test-time velocity contrast that steers flow sampling toward temporally coherent robot trajectories without retraining.
You can test that exact unimodal-vs.-bifurcation transition directly in a 2D robot action workspace below:
Figure 18: Obstacle bifurcation in a 2D robot action space (exact closed-form bimodal flow model). With a central obstacle creating two equally valid expert corridors (upper vs. lower arc), both MSE Regression and 1-Step Standard Flow Matching (1-FM) average across the saddle separatrix and crash dead-center into the obstacle. Switching to Rectified Flow (1-Step) or MAWS Warm Start (, 1-Step) yields 0% collisions—and clicking Open Space (Unimodal) illustrates Sujit et al.’s finding [21] that 1-step 1-FM succeeds cleanly once clutter multimodality disappears. Click near the center obstacle to nudge it vertically.
5.3 The Wall Standard Flow Matching Hits—and How Reverse Flow Matching (RFM) Could Help
Look back at the Conditional Flow Matching objective in Section 2.2:
Standard Flow Matching and Rectified Flow are extraordinarily effective when you already possess a large dataset of expert target samples (imitation learning, pretraining VLAs on teleoperation logs, or image/video pretraining).
Now consider an open theoretical question at the frontier of online reinforcement learning, robotics, and verifier-guided generation:
What happens when you do not have direct samples —only a reward function, critic, or energy potential defining an unnormalized target Boltzmann distribution ()?
In settings like online RL or novel physical environments, an agent encountering an unseen layout or tight kinematic constraint rarely comes with thousands of pre-recorded demonstrations for that exact scenario. Yet one may still have access to a scalar reward model, critic, or physics evaluator that can score candidate outputs without being able to sample from directly.
One intriguing theoretical direction proposed in recent literature is Reverse Flow Matching (RFM) [8]. Recall from Section 2.2 that under an independent coupling with linear interpolant , the optimal velocity field at any is . Algebraically, since implies (and the constant change-of-variables Jacobian at fixed absorbs into the normalization over ), the optimal target velocity can be rewritten purely in terms of a reverse posterior over the source noise given :
Conceptually, this reverse inferential perspective suggests a compelling hypothesis for future research:
- No direct target samples required: Rather than sampling directly, one could look backward from an intermediate state to the tractable source prior , weighting candidate noise draws via the Boltzmann reverse posterior .
- Variance reduction via Stein operators: In principle, pairing importance sampling with Langevin Stein control variates could unify value-based () and gradient-based () estimators into a single family of posterior-mean velocity targets.
- Open scaling questions: While early continuous-control studies are encouraging, whether reverse-posterior estimators remain numerically stable, sample-efficient, and practical at the scale of modern VLAs, WAMs, and high-dimensional generative models remains an unproven, active area of future research.
We will leave that question open for now—and explore the geometry of Reverse Flow Matching, Boltzmann reverse posteriors, and Langevin Stein estimators interactively in Part 2 of this series.
Acknowledgements
The interactive visual pedagogy and progression of Figures 1–17 in this 18-figure explainer were directly inspired by Alec Helbling’s outstanding visual essay A Visual Introduction to Rectified Flows [23], extended here with dynamical speciation regimes, warm-started robotic action-space bifurcations (Figure 18), and connections to VLAs, WAMs, and Reverse Flow Matching. All 2D Flow Matching (1-FM) and Rectified Flow (2-RF/3-RF) models, Sinkhorn Optimal Transport couplings, prose, and zero-dependency HTML5 Canvas visualizations in this publication were written and trained independently from scratch for the Tarfy Engineering Publication Series.
How to Cite
If you find these interactive visualizations or explanations helpful in your research, teaching, or engineering work, you can cite this article as:
@misc{barbosa2026rectifiedflows,
title = {A Visual Introduction to Rectified Flow Matching},
author = {Barbosa, Renan Monteiro},
year = {2026},
month = nov,
institution = {Tarfy Cybernetics and Bored Engineering},
howpublished = {Tarfy Engineering Publication Series (Interactive Visual Explainer)}
}
References
- K. Black, N. Brown, D. Driess, A. Esmail, M. Equi, C. Finn, N. Fusai, L. Groom, K. Hausman, B. Ichter, et al., “π₀: A Vision-Language-Action Flow Model for General Robot Control,” arXiv preprint arXiv:2410.24164, 2024. [Online]. Available: https://arxiv.org/abs/2410.24164 ↩1 ↩2
- J. Bjorck, F. Castañeda, N. Cherniadev, X. Da, R. Ding, L. Fan, Y. Fang, D. Fox, F. Hu, S. Huang, et al., “GR00T N1: An Open Foundation Model for Generalist Humanoid Robots,” arXiv preprint arXiv:2503.14734, 2025. [Online]. Available: https://arxiv.org/abs/2503.14734 ↩1 ↩2
- M. Shukor et al., “SmolVLA: A Vision-Language-Action Model for Affordable and Efficient Robotics,” arXiv preprint arXiv:2506.01844, 2025. [Online]. Available: https://arxiv.org/abs/2506.01844 ↩1 ↩2
- I. Gat et al., “Discrete Flow Matching,” in Advances in Neural Information Processing Systems (NeurIPS), 2024. [Online]. Available: https://arxiv.org/abs/2407.15595 ↩1 ↩2
- X. Liu, C. Gong, and Q. Liu, “Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow,” in International Conference on Learning Representations (ICLR), 2023. [Online]. Available: https://arxiv.org/abs/2209.03003 ↩1 ↩2 ↩3
- Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, M. Nickel, and M. Le, “Flow Matching for Generative Modeling,” in International Conference on Learning Representations (ICLR), 2023. [Online]. Available: https://arxiv.org/abs/2210.02747 ↩1 ↩2
- M. S. Albergo and E. Vanden-Eijnden, “Building Normalizing Flows with Stochastic Interpolants,” in International Conference on Learning Representations (ICLR), 2023. [Online]. Available: https://arxiv.org/abs/2209.15571 ↩
- Z. Li, S. Tang, and N. Azizan, “Reverse Flow Matching: A Unified Framework for Online Reinforcement Learning with Diffusion and Flow Policies,” in Proceedings of the 43rd International Conference on Machine Learning (ICML), vol. 306, 2026. [Online]. Available: https://arxiv.org/abs/2601.08136 ↩1 ↩2
- R. T. Q. Chen, Y. Rubanova, J. Bettencourt, and D. K. Duvenaud, “Neural Ordinary Differential Equations,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 31, 2018. [Online]. Available: https://arxiv.org/abs/1806.07366 ↩
- M. Cuturi, “Sinkhorn Distances: Lightspeed Computation of Optimal Transport,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 26, 2013. [Online]. Available: https://arxiv.org/abs/1306.0895 ↩
- A. Tong et al., “Improving and Generalizing Flow-Based Generative Models with Minibatch Optimal Transport,” Transactions on Machine Learning Research (TMLR), 2024. [Online]. Available: https://arxiv.org/abs/2302.00482 ↩
- G. Raya and L. Ambrogioni, “Spontaneous Symmetry Breaking in Generative Diffusion Models,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 36, 2023. [Online]. Available: https://arxiv.org/abs/2305.19693 ↩1 ↩2
- G. Biroli, T. Bonnaire, V. de Bortoli, and M. Mézard, “Dynamical Regimes of Diffusion Models,” Nature Communications, vol. 15, no. 1, p. 9957, 2024, doi: 10.1038/s41467-024-54281-3. [Online]. Available: https://arxiv.org/abs/2402.18491 ↩1 ↩2
- P. Esser, S. Kulal, A. Blattmann, R. Entezari, J. Müller, H. Saini, Y. Levi, D. Lorenz, A. Sauer, F. Boesel, et al., “Scaling Rectified Flow Transformers for High-Resolution Image Synthesis,” in International Conference on Machine Learning (ICML), 2024. [Online]. Available: https://arxiv.org/abs/2403.03206 ↩1 ↩2
- S. Lee, B. Kim, and J. C. Ye, “Minimizing Trajectory Curvature of ODE-based Generative Models,” in International Conference on Machine Learning (ICML), 2023. [Online]. Available: https://arxiv.org/abs/2301.12003 ↩
- V. Bansal, S. Roy, A. Rinaldo, and P. Sarkar, “On the Convergence and Straightness of Rectified Flow,” arXiv preprint arXiv:2410.14949, 2024. [Online]. Available: https://arxiv.org/abs/2410.14949 ↩
- X. Hu et al., “Improving Rectified Flow with Boundary Conditions,” in IEEE/CVF International Conference on Computer Vision (ICCV), 2025. [Online]. Available: https://arxiv.org/abs/2506.15864 ↩
- S. Saini, S. Gupta, and A. C. Bovik, “Rectified-CFG++ for Flow Based Models,” in Advances in Neural Information Processing Systems (NeurIPS), 2025. [Online]. Available: https://arxiv.org/abs/2510.07631 ↩
- Anonymous Authors, “One Step Is Often Enough: Accelerating VLA Action Heads with Training-Free Marginal-Aligned Warm Starts,” OpenReview preprint, 2026. [Online]. Available: https://openreview.net/forum?id=SuC6hcw1yd ↩1 ↩2
- M. Reuss, H. Zhou, M. Rühle, Ö. E. Yağmurlu, F. Otto, and R. Lioutikov, “FLOWER: Democratizing Generalist Robot Policies with Efficient Vision-Language-Action Flow Policies,” in Conference on Robot Learning (CoRL), 2025. [Online]. Available: https://arxiv.org/abs/2509.02541 ↩1 ↩2
- S. Sujit, S. Nunziante, R. F. J. Dossa, and K. Arulkumaran, “When One Step Is Enough: An Empirical Study of Euler Integration in Flow-Matching Policies,” arXiv preprint arXiv:2610.30735, 2026. [Online]. Available: https://arxiv.org/abs/2610.30735 ↩1 ↩2
- M. Park et al., “ACG: Action Coherence Guidance for Flow-based Vision-Language-Action Models,” in IEEE International Conference on Robotics and Automation (ICRA), 2026. [Online]. Available: https://arxiv.org/abs/2510.22201 ↩
- A. Helbling, “A Visual Introduction to Rectified Flows,” 2025. [Online]. Available: https://alechelbling.com/blog/rectified-flow/ ↩