Abstract
Generative models like Diffusion and Flow Matching often suffer from high computational costs due to curved sampling trajectories. We present Block Flow, a novel framework that utilizes label-informed data partitioning to straighten these paths. By matching specific data "blocks" to corresponding noise "blocks" within a Gaussian Mixture prior, we minimize trajectory intersections and curvature. Our results on CIFAR-10 demonstrate competitive image quality (FID 2.30) with significantly fewer sampling steps, achieving high-fidelity synthesis in as few as 8 function evaluations.
Introduction
The efficiency of generative models is fundamentally limited by the geometry of the paths they learn. Models like Diffusion and Flow Matching (FM) transform a simple prior distribution into a complex data distribution. In practice, these paths are solved using numerical ODE solvers. Highly curved trajectories lead to significant truncation errors unless the step size is extremely small, resulting in slow sampling. While methods like Rectified Flow attempt to straighten these paths through retraining, they often fail to eliminate "tangles" caused by independent noise points being matched to distant data points.
Methods: Block Matching and Curvature Control
The core innovation of Block Flow is the Block Matching strategy. Instead of a global matching process, the authors partition the data and noise into corresponding groups based on labels ($y$).
- Gaussian Mixture Priors: Rather than a single standard Gaussian, Block Flow employs a Mixture of Gaussians (MoG). Each data class is mapped to a specific component of the noise distribution. This spatial organization prevents cross-label path intersections, which are a primary source of curvature.
- The Variance-Curvature Link: The paper establishes a mathematical bound showing that the variance of the prior distribution directly controls the maximum curvature of the learned flow. By reducing the variance of individual noise blocks, the model is forced to learn straighter trajectories.
- Regularization and Training: To prevent the prior distribution from collapsing while maintaining straightness, the authors introduce several training schemes (FANR, FABR, HACBR, HABR). These balance alignment with VAE-style regularization, with the parameter $\beta$ serving as a critical trade-off between diversity and path straightness.
Key Results
The effectiveness of Block Flow was evaluated on CIFAR-10 and MNIST benchmarks. On CIFAR-10, the "HABR" strategy achieved a Fréchet Inception Distance (FID) of 2.30, outperforming standard Rectified Flow (2.58) and DDPM (3.21) at similar parameter scales.
Crucially, the straightness of the trajectories allows for extreme sampling efficiency. Using a simple Euler solver, Block Flow maintains high image quality with only 8 Number of Function Evaluations (NFEs). This performance is attributed to the reduction in truncation errors made possible by the near-linear paths learned through block matching.
Discussion and Limitations
While Block Flow significantly improves sampling speed and path geometry, it currently relies on class labels for partitioning. Although clustering could potentially automate this for unlabeled data, it introduces additional complexity. Furthermore, the performance of "Hybrid Information" schemes suggests that larger, more powerful encoders may be necessary to fully leverage the potential of structured priors in high-resolution settings. Future work will explore scaling these techniques to more diverse datasets like ImageNet, where the number of "blocks" would be significantly larger.
Summary updated