Value Gradient Guidance for Flow Matching Alignment

Zhen Liu, Tim Z. Xiao, Carles Domingo-Enrich, Weiyang Liu, Dinghuai Zhang
12/4/2025
cs.LGcs.CV

No official code found. Best implementation: lzzcd001/vggflow (22 stars, last commit 2026-03-11).

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.

View on arXivView PDF

Code Implementations(1)

lzzcd001/vggflowCommunity64%

Official Implementation of VGG-Flow (NeurIPS 2025; https://arxiv.org/abs/2512.05116)

222Shell, PythonDec 5, 20257 months ago

Similar Papers

Cite this paper

@article{liu2025value,
  title  = {Value Gradient Guidance for Flow Matching Alignment},
  author = {Zhen Liu and Tim Z. Xiao and Carles Domingo-Enrich and Weiyang Liu and Dinghuai Zhang},
  year   = {2025},
  eprint = {2512.05116},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.05116v1},
  journal = {NEURIPS 2025 2025}
}

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/2512.05116.svg)](https://codeofpaper.com/paper/2512.05116)

Discussion