Know Your Step: Faster and Better Alignment for Flow Matching Models via Step-aware Advantages
Zhixiong Yue, Zixuan Ni, Feiyang Ye, Jinshan Zhang, Sheng Shen, Zhenpeng Mi
TL;DR
This paper tackles the latency and reward-signal sparsity of flow-matching Text-to-Image models by introducing TAFS-GRPO, a framework that enables efficient few-step generation while maintaining alignment with human preferences. It combines temperature-annealed few-step sampling, which injects adaptive temporal noise to generate semantically meaningful intermediate states, with a step-aware advantage integration of Group Relative Policy Optimization to produce dense, step-specific rewards without requiring differentiable reward functions. The approach yields faster convergence and robust human-preference alignment across composition-generation and evaluation on the Pick-a-Pic dataset, outperforming several baselines on both in-domain and out-of-domain metrics. Practically, TAFS-GRPO reduces inference latency and enhances deployment flexibility, making few-step, preference-aligned generation more scalable for real-world applications.
Abstract
Recent advances in flow matching models, particularly with reinforcement learning (RL), have significantly enhanced human preference alignment in few step text to image generators. However, existing RL based approaches for flow matching models typically rely on numerous denoising steps, while suffering from sparse and imprecise reward signals that often lead to suboptimal alignment. To address these limitations, we propose Temperature Annealed Few step Sampling with Group Relative Policy Optimization (TAFS GRPO), a novel framework for training flow matching text to image models into efficient few step generators well aligned with human preferences. Our method iteratively injects adaptive temporal noise onto the results of one step samples. By repeatedly annealing the model's sampled outputs, it introduces stochasticity into the sampling process while preserving the semantic integrity of each generated image. Moreover, its step aware advantage integration mechanism combines the GRPO to avoid the need for the differentiable of reward function and provide dense and step specific rewards for stable policy optimization. Extensive experiments demonstrate that TAFS GRPO achieves strong performance in few step text to image generation and significantly improves the alignment of generated images with human preferences. The code and models of this work will be available to facilitate further research.
