Modular MeanFlow: Towards Stable and Scalable One-Step Generative Modeling

Haochen You, Baojing Liu, Hongyang He
8/24/2025
cs.LG

No official code found. Best implementation: primepake/modular_meanflow (5 stars, last commit 2025-08-29).

Abstract

One-step generative modeling seeks to generate high-quality data samples in a single function evaluation, significantly improving efficiency over traditional diffusion or flow-based models. In this work, we introduce Modular MeanFlow (MMF), a flexible and theoretically grounded approach for learning time-averaged velocity fields. Our method derives a family of loss functions based on a differential identity linking instantaneous and average velocities, and incorporates a gradient modulation mechanism that enables stable training without sacrificing expressiveness. We further propose a curriculum-style warmup schedule to smoothly transition from coarse supervision to fully differentiable training. The MMF formulation unifies and generalizes existing consistency-based and flow-matching methods, while avoiding expensive higher-order derivatives. Empirical results across image synthesis and trajectory modeling tasks demonstrate that MMF achieves competitive sample quality, robust convergence, and strong generalization, particularly under low-data or out-of-distribution settings.

View on arXivView PDF

Code Implementations(1)

implement of Modular MeanFlow: Towards Stable and Scalable One-Step Generative Modeling

50Python, Jupyter NotebookAug 29, 20251 years ago

Similar Papers

Cite this paper

@article{you2025modular,
  title  = {Modular MeanFlow: Towards Stable and Scalable One-Step Generative Modeling},
  author = {Haochen You and Baojing Liu and Hongyang He},
  year   = {2025},
  eprint = {2508.17426},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.17426v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.17426.svg)](https://codeofpaper.com/paper/2508.17426)

Discussion