Flow Matching: Network Parameterization Matters

Microsoft Research

Tufts' Leping Liu on why flow matching network parameterization matters, across three projects

In a Microsoft Research talk, a Tufts computer science professor and a co-presenter argue that what a network is asked to predict changes the quality of flow matching, with new designs for image generation, forecasting and language reasoning.

Flow matching trains a network to move random noise towards real data along a learned vector field. In this Microsoft Research talk, a Tufts University computer science professor, introduced as Leaping, argues that a choice usually treated as an implementation detail, what the network is asked to predict, matters a great deal. The same vector field can be reached by predicting velocity, the clean data or the noise. Those options are equivalent in mathematics but not once a real network has to approximate them. The talk covers three projects, each proposing a different parameterization, and a co-presenter, introduced as a collaborator and first author of the second project, takes the middle section.

Combining velocity and endpoint prediction in one network

The first project builds on an MIT study that compared parameterizations in pixel space. That study favoured predicting the clean image, on the hypothesis that clean images lie on a low dimensional structure that is easier to learn than noise. The speaker agreed, and added an analysis: the training error splits into a learnable part and a constant part caused by random pairing of noise and data, so models can be compared on the learnable part.

Predicting the clean data has a weakness. Converting that prediction into a velocity involves dividing by 1 minus t squared, so small errors blow up near the end of sampling. The proposal is a single network that predicts both velocity and endpoint, with an input switch saying which one is wanted, plus a consistency loss forcing the two predictions to agree. Sampling begins with endpoint prediction and switches to velocity prediction later, so sampling cost does not rise, though training runs the network twice.

Presentation slide showing a neural network block with an indicator input switching between velocity and endpoint prediction.
Single network trained to predict both velocity and clean endpoint, tied together by a consistency loss.

The speaker reported better scores than the baseline, either reaching the same FID sooner or scoring lower at equal training. Ablations showed performance dropped without the consistency loss, and that sharing one network beat using two separate ones. In questions, an attendee asked why not simply output both predictions at once. The speaker thought the input switch changes the network's internal computation more, but said this was an intuition, not something shown.

Conditional generation for forecasting

The second project targets tasks where the condition largely fixes the centre of the output: time series forecasting, precipitation nowcasting and super resolution. Here a deterministic model gives an accurate point forecast but no uncertainty, while a generative model gives uncertainty but nothing anchoring it to the observation. Earlier hybrid methods either learn the residual of the deterministic prediction or start the flow from that prediction plus noise. Both make one network part of the other's input, so updates to one shift the other's training target, which the presenter linked to unstable training.

The new design keeps a fixed probability path and splits the velocity into a global part from the deterministic network, which pushes the noise towards the centre of the target, and a local part from the flow network. The global part is computed once up front, so sampling cost barely grows. The team reported the best CRPS, a score of how well a forecast distribution fits, on all six time series tasks. Gradient norms stayed steady where the rival hybrids spiked.

Slide diagram of noise on the left, target distribution on the right, with dotted and solid arrows showing global and local velocity.
Global velocity from a deterministic prediction combined with a local velocity from the flow model.

Reinforcement learning for flow-based language models

The third project trains a flow matching language model, which generates continuous vectors and decodes them to tokens in a final step, with reinforcement learning to improve reasoning. Because nearly all actions are continuous, gradients can flow through them, avoiding the noisy score function estimates needed for discrete tokens. The setup resembles GRPO without clipping or a KL term, and uses an actor critic method with a learned value function.

The parameterization twist is in the critic. Instead of pooling the sequence into one score, the team supervises every output vector, so the signal can fall on the tokens responsible for a right or wrong answer. They call it 2D, supervision at every step and every token. It gave the best results, with lower gradient noise than score function methods.

Slide showing a transformer critic over a sequence of vectors with a loss applied to each output.
Critic network design for reinforcement learning, supervising every output token rather than one pooled score.

In questions, a listener challenged the claim that the Bellman equation can be ignored. The speaker settled on the distinction that the problem has a fixed, finite horizon with no loops, so values can be estimated by averaging sampled trajectories.

Questions and answers

What did Tufts University's Leping Liu argue in the Microsoft Research talk on flow matching?

Leping Liu, a Tufts University computer science professor, argued in a Microsoft Research talk that network parameterization matters in flow matching. What the network is asked to predict, velocity, clean data or noise, is mathematically equivalent but changes quality once a real network approximates it. The talk covered three projects.

How does flow matching network parameterization work in 2025 image generation research from Tufts University?

The Tufts University project builds one network that predicts both velocity and the clean endpoint, with an input switch choosing which one, plus a consistency loss forcing the two to agree. Sampling starts with endpoint prediction and later switches to velocity prediction, so sampling cost does not rise.

Why is predicting clean data a problem in flow matching?

Predicting clean data makes small errors blow up near the end of sampling. Turning a clean-data prediction into a velocity involves dividing by 1 minus t squared, which magnifies errors late in sampling. The Tufts University proposal of combining velocity and endpoint prediction in one network addresses this.

How did the Tufts flow matching method perform on forecasting tasks?

The team reported the best CRPS, a score of how well a forecast distribution fits, on all six time series tasks. Their design splits velocity into a global part from a deterministic network and a local part from the flow network. Gradient norms stayed steady while rival hybrid methods spiked.

What does the conditional flow matching design split the velocity into, and what does it cost at sampling?

The design splits velocity into a global part and a local part. The deterministic network supplies the global part, pushing noise towards the centre of the target, and the flow network supplies the local part. The global part is computed once up front, so sampling cost barely grows.

How does reinforcement learning improve flow-based language models in the Tufts talk?

The third project trains a flow matching language model with reinforcement learning using an actor critic method. Because nearly all actions are continuous, gradients can flow through them, avoiding noisy score function estimates. The critic supervises every output vector, called 2D supervision, and gave the best results with lower gradient noise.

From the YouTube description

Flow matching has shown strong results across generation tasks. Rectified flow, for instance, uses straight-line paths to define the vector field that transports noise to data. Under this setup, the same vector field admits several parameterizations. These choices are equivalent in math but not under approximation - a learned network behaves differently depending on what it is asked to predict, and generation quality can differ substantially as a result.

This talk treats parameterization as a design axis rather than an implementation detail. In the first project, we combine velocity and endpoint prediction in a single network, tying the two with a consistency loss to obtain more stable optimization and straighter generation paths. In the second, we propose a parameterization for conditional generation that separates a deterministic prediction from the generative velocity, enabling stable end-to-end training for probabilistic time-series forecasting. I will also introduce our work on generating reasoning solutions with flow matching language models.

Speaker bio: Dr. Liping Liu received his PhD from Oregon State University in 2016 and was a postdoctoral researcher at Columbia University. He joined the Computer Science Department at Tufts University as an assistant professor in 2017 and is currently an associate professor. His research is in machine learning, with interests in generative models, graph data analysis, and modeling problems arising from dynamical systems. He received an NSF CAREER award for his work on graph generation. He serves as a moderator for arXiv and as an area chair or senior program committee member for NeurIPS, IJCAI, and AAAI.

Find seminar details and upcoming talks: https://www.microsoft.com/en-us/research/event/microsoft-research-new-england-generative-modeling-sampling-seminar/

Watch on YouTube

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.