Saved in:
Bibliographic Details
Main Authors: Liang, Zhanhao, Yang, Tao, Wu, Jie, Feng, Chengjian, Zheng, Liang
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.15311
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909011186548736
author Liang, Zhanhao
Yang, Tao
Wu, Jie
Feng, Chengjian
Zheng, Liang
author_facet Liang, Zhanhao
Yang, Tao
Wu, Jie
Feng, Chengjian
Zheng, Liang
contents This paper focuses on the alignment of flow matching models with human preferences. A promising way is fine-tuning by directly backpropagating reward gradients through the differentiable generation process of flow matching. However, backpropagating through long trajectories results in prohibitive memory costs and gradient explosion. Therefore, direct-gradient methods struggle to update early generation steps, which are crucial for determining the global structure of the final image. To address this issue, we introduce LeapAlign, a fine-tuning method that reduces computational cost and enables direct gradient propagation from reward to early generation steps. Specifically, we shorten the long trajectory into only two steps by designing two consecutive leaps, each skipping multiple ODE sampling steps and predicting future latents in a single step. By randomizing the start and end timesteps of the leaps, LeapAlign leads to efficient and stable model updates at any generation step. To better use such shortened trajectories, we assign higher training weights to those that are more consistent with the long generation path. To further enhance gradient stability, we reduce the weights of gradient terms with large magnitude, instead of completely removing them as done in previous works. When fine-tuning the Flux model, LeapAlign consistently outperforms state-of-the-art GRPO-based and direct-gradient methods across various metrics, achieving superior image quality and image-text alignment.
format Preprint
id arxiv_https___arxiv_org_abs_2604_15311
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle LeapAlign: Post-Training Flow Matching Models at Any Generation Step by Building Two-Step Trajectories
Liang, Zhanhao
Yang, Tao
Wu, Jie
Feng, Chengjian
Zheng, Liang
Computer Vision and Pattern Recognition
This paper focuses on the alignment of flow matching models with human preferences. A promising way is fine-tuning by directly backpropagating reward gradients through the differentiable generation process of flow matching. However, backpropagating through long trajectories results in prohibitive memory costs and gradient explosion. Therefore, direct-gradient methods struggle to update early generation steps, which are crucial for determining the global structure of the final image. To address this issue, we introduce LeapAlign, a fine-tuning method that reduces computational cost and enables direct gradient propagation from reward to early generation steps. Specifically, we shorten the long trajectory into only two steps by designing two consecutive leaps, each skipping multiple ODE sampling steps and predicting future latents in a single step. By randomizing the start and end timesteps of the leaps, LeapAlign leads to efficient and stable model updates at any generation step. To better use such shortened trajectories, we assign higher training weights to those that are more consistent with the long generation path. To further enhance gradient stability, we reduce the weights of gradient terms with large magnitude, instead of completely removing them as done in previous works. When fine-tuning the Flux model, LeapAlign consistently outperforms state-of-the-art GRPO-based and direct-gradient methods across various metrics, achieving superior image quality and image-text alignment.
title LeapAlign: Post-Training Flow Matching Models at Any Generation Step by Building Two-Step Trajectories
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2604.15311