Fine-tuning Flow Matching Generative Models with Intermediate Feedback

Jiajun Fan, Chaoran Cheng, Shuaike Shen, Xiangxin Zhou, Ge LiuarXiv 2025 · DOI

Abstract: Flow Matching (FM) models have emerged as a powerful alternative to traditional diffusion models for high-quality image synthesis. However, aligning these models with complex human instructions remains challenging due to the credit assignment problem inherent in outcome-based rewards. We present AC-Flow, a robust actor-critic framework designed for fine-tuning continuous-time FM models using intermediate process feedback. By integrating a lightweight critic with novel stability mechanisms—including a dual-phase warm-up and Wasserstein-2 regularization—AC-Flow achieves superior text-to-image alignment and human preference scores while mitigating training collapse and diversity loss.

Introduction: The Credit Assignment Problem

Generative models like Stable Diffusion 3 (SD3) often struggle with complex spatial reasoning and multi-object prompts. Most existing fine-tuning paradigms rely on outcome rewards, where feedback is provided only after the final image is generated. This "all-or-nothing" approach fails to identify which specific steps in the generation trajectory led to a failure, a classic credit assignment problem.

AC-Flow addresses this by providing "play-by-play" feedback throughout the generation process. While actor-critic methods are standard in reinforcement learning, applying them to high-dimensional generative models is notoriously unstable. AC-Flow introduces several architectural and algorithmic innovations to stabilize this process.

AC-Flow: Actor-Critic for Flow Matching

The AC-Flow framework is built upon three primary pillars designed to provide granular feedback without compromising model stability.

Overview of AC-Flow architecture and training objectives.

1. Lightweight Critic & Reward Shaping

Instead of a large secondary model, AC-Flow utilizes a computationally efficient critic (MLP + CNN) to predict expected rewards from intermediate states. Min-max reward shaping is applied to normalize learning signals, ensuring the critic provides a consistent gradient for the actor.

2. Dual-Stability Mechanism

To prevent destructive feedback loops between the actor and critic, the authors implement two key strategies:

  • Warm-up Phase: For the initial training phase, the model employs Group-Relative Advantage Estimation (GRAE)—similar to the GRPO technique used in DeepSeek-R1—to allow the critic to mature before it begins influencing the actor.
  • Advantage Clipping: Extreme critic values are truncated to prevent aggressive updates that could destabilize the model's weights.

3. Wasserstein-2 Regularization

To preserve the model's creative diversity, the authors penalize the difference between the fine-tuned and original vector fields using a Wasserstein-2 metric. This approach is more mathematically tractable for FM models than standard KL-divergence and helps maintain the "soul" of the pre-trained model.

Experimental Results

The researchers evaluated AC-Flow using Stable Diffusion 3 (SD3) on the DrawBench prompt set, which tests challenging aspects like spatial relations and long text rendering. Training signals were derived from CLIPScore, with generalization tested on human preference models like HPS v2 and ImageReward.

Training stability and qualitative comparison between AC-Flow and vanilla baselines.

AC-Flow demonstrated significant improvements over state-of-the-art methods:

  • Superior Alignment: On DrawBench, AC-Flow achieved a CLIPScore of 32.93, outperforming the base SD3 (29.37).
  • Human Preference Generalization: Despite being trained on CLIP rewards, the model scored highest on ImageReward (1.20) and HPS v2 (30.59), indicating fundamental quality improvements rather than metric gaming.
  • Low Overhead: The framework adds minimal overhead, requiring only ~2GB of additional VRAM and roughly 2 hours of extra training time.

Conclusion and Limitations

While AC-Flow effectively maintains diversity, a slight decrease is still observed compared to the untuned base model. Furthermore, the model's performance remains bounded by the quality of the underlying reward model. Future work may explore more complex reward functions and application to other flow-based domains like molecular generation or protein folding.

Summary updated

BibTeX
@misc{fan2025fine,
  author = {Jiajun Fan and Chaoran Cheng and Shuaike Shen and Xiangxin Zhou and Ge Liu},
  title = {{Fine-tuning Flow Matching Generative Models with Intermediate Feedback}},
  year = {2025},
  eprint = {2510.18072},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.18072},
}
Figure