Hierarchical Rectified Flow Matching with Mini-Batch Couplings

Yichi Zhang, Yici Yan, Alex Schwing, Zhizhen Zhao

TL;DR

Hierarchical Rectified Flow (HRF) improves generative modeling by capturing complex, multi-modal velocity fields, but it suffers from high computational complexity across its hierarchy. This paper introduces mini-batch couplings in both data and velocity spaces to progressively simplify these distributions, enabling high-quality data generation with drastically fewer sampling steps—even down to a single neural function evaluation (NFE=1).

What Problem Does This Paper Address?

Flow matching generates data by solving an Ordinary Differential Equation (ODE) that moves samples from a simple source distribution (like a Gaussian) to a complex target data distribution. However, the "velocity field" guiding this transformation is often highly multi-modal—meaning multiple different paths could connect the same points, causing standard models to average them out and create curved, inefficient paths.

To fix this, Hierarchical Rectified Flow (HRF) was recently proposed to model these multi-modal velocities by adding another layer to the hierarchy (essentially modeling acceleration). But there's a catch: HRF keeps the distribution complexity just as high at every level of the hierarchy, making it hard to learn and computationally expensive to sample from. The authors address this gap by asking: Can we gradually simplify the complexity of these velocity distributions across the hierarchy to make sampling faster and more efficient?

Methods

The authors propose Hierarchical Rectified Flow with Mini-Batch Couplings, focusing on a depth-two hierarchy (HRF2). They introduce two types of couplings using mini-batch Optimal Transport (OT):

  1. Data Coupling (HRF2-D): Instead of pairing source and target data points completely at random during training, they use mini-batch OT to pair them optimally. This breaks the independence between source and target, which inherently simplifies the intermediate velocity distribution, making it more uni-modal and easier to learn.
  2. Velocity Coupling (HRF2-V): To simplify the next level of the hierarchy (acceleration), they couple the initial velocity ($v_0$) and target velocity ($v_1$) using a pre-trained HRF2 model. This straightens the trajectories in velocity space.
  3. Joint Hierarchical Coupling (HRF2-D&V): A two-stage approach combining both. Stage 1 trains the model with data coupling. Stage 2 uses this pre-trained model to generate coupled velocity pairs for final training.

Datasets

  • Synthetic Benchmarks: 1D datasets ($\mathcal{N} \to 2\mathcal{N}$ and $\mathcal{N} \to 5\mathcal{N}$) and 2D datasets ($\mathcal{N} \to 6\mathcal{N}$ and an $8\mathcal{N} \to \text{moon}$ shape dataset) evaluated using Wasserstein and sliced 2-Wasserstein distances.
  • Image Datasets: MNIST (pixel space), CIFAR-10 (pixel space), and CelebA-HQ 256 (latent space via a pre-trained VAE). Evaluated using Fréchet Inception Distance (FID).

Key Insights and Ideas

  • Coupling as a Complexity Slider: Adjusting the batch size in mini-batch OT acts as a control knob for distribution complexity. A larger batch size drives the multi-modal velocity distribution toward a simpler, uni-modal Gaussian-like shape.
Figure 1: The generated velocity distributions at (xt, t) = (−1, 0) for the dataset 1D N →2N using HRF2, (a) without couplings, (b)-(c) with data coupling (batch sizes: 5 and 100), (d) with velocity coupling (batch size: 100), (e)-(f) with velocity coupling (batch size: 100) and data coupling (batch sizes: 5 and 100). Data coupling simplifies the velocity distribution (cf. (a)-(c)), while velocity coupling reduces the number of sampling steps.
  • Complementary Roles: Data coupling and velocity coupling solve different problems. Data coupling simplifies the distribution itself (reducing multi-modality), while velocity coupling straightens the sampling paths (reducing the number of integration steps needed).
  • The NFE=1 Breakthrough: By combining both couplings, the model can generate high-quality images in just a single step (NFE=1), a regime where vanilla flow matching and standard HRF completely fail.

Key Results

  • Synthetic Data: Data coupling successfully collapses complex multi-modal velocity distributions into single-mode distributions, making them significantly easier for the network to model.
  • MNIST: At NFE=5, HRF2-D&V achieves an FID of 5.519, outperforming vanilla Rectified Flow (19.187) and standard HRF2 (15.798).
  • CIFAR-10: At NFE=5, HRF2-D&V reaches an FID of 6.315, compared to 36.209 for RF and 30.884 for HRF2.
  • CelebA-HQ 256: At NFE=5, HRF2-D&V achieves an outstanding FID of 7.612, whereas vanilla HRF2 scores 34.246. Even at the extreme case of NFE=1, it produces visually compelling faces.
Qualitative and quantitative performance comparison across image datasets.

Limitations and Future Work

The primary limitation is that the velocity coupling stage is not "simulation-free." It requires a two-stage training process where a pre-trained model must simulate target velocity samples to generate the offline dataset for the second stage. The authors note that developing a completely simulation-free velocity coupling method is a highly promising direction for future research.

Summary updated

BibTeX
@misc{zhang2025hierarchical,
  author = {Yichi Zhang and Yici Yan and Alex Schwing and Zhizhen Zhao},
  title = {{Hierarchical Rectified Flow Matching with Mini-Batch Couplings}},
  year = {2025},
  eprint = {2507.13350},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.13350},
}
Figure