Value Gradient Guidance for Flow Matching Alignment
Zhen Liu, Tim Z. Xiao, Carles Domingo-Enrich, Weiyang Liu, Dinghuai Zhang
TL;DR
This work tackles efficient, prior-preserving alignment of flow matching models with human preferences by embedding the problem in an optimal-control framework. It introduces VGG-Flow, which uses value-gradient guidance from the Hamilton-Jacobi-Bellman equation to regularize the residual velocity between a finetuned model and its base, via a forward-looking value gradient model and a set of consistency, boundary, and matching losses. Empirically, VGG-Flow achieves faster reward convergence with better diversity and stronger prior preservation than baselines on Stable Diffusion 3 across multiple reward models and under constrained compute. The approach offers a principled, memory-efficient route to principled alignment and highlights avenues for further architectural and optimization refinements.
Abstract
While methods exist for aligning flow matching models--a popular and effective class of generative models--with human preferences, existing approaches fail to achieve both adaptation efficiency and probabilistically sound prior preservation. In this work, we leverage the theory of optimal control and propose VGG-Flow, a gradient-matching-based method for finetuning pretrained flow matching models. The key idea behind this algorithm is that the optimal difference between the finetuned velocity field and the pretrained one should be matched with the gradient field of a value function. This method not only incorporates first-order information from the reward model but also benefits from heuristic initialization of the value function to enable fast adaptation. Empirically, we show on a popular text-to-image flow matching model, Stable Diffusion 3, that our method can finetune flow matching models under limited computational budgets while achieving effective and prior-preserving alignment.
