Exploring the Design Space of Reward Backpropagation for Flow Matching

Ruoyu Wang, Boye Niu, Xiangxin Zhou, Yushi Huang, Tongliang Liu, Chi ZhangarXiv 2026

TL;DR

FlowBP is a unified framework that treats the backward trajectory of text-to-image flow matching models as a flexible design space for reward backpropagation. By decoupling forward sampling from backward optimization, it introduces three novel variants (Sparse, Bridge, Lagrange) that eliminate memory bottlenecks and gradient explosion, consistently outperforming existing direct-gradient alignment methods across multiple foundation models.

What Problem Does This Paper Address?

Aligning large text-to-image (T2I) generative models with human preferences typically relies on reinforcement learning (like policy gradients) or direct reward backpropagation through the sampling trajectory. While direct backpropagation is highly sample-efficient, it is severely hampered by two pathologies at modern model scales:

  1. Activation Memory Explosion: Storing network activations across the entire multi-step sampling trajectory quickly exhausts GPU memory.
  2. Gradient Explosion/Vanishing: Chaining Jacobian products across dozens of sequential steps causes the reward gradient to become highly unstable by the time it travels back to early timesteps.

Prior methods attempt to circumvent these issues by using short or sparse "surrogate" paths. However, these solutions were designed in isolation, creating an unexplored design space and often introducing severe mismatches between what the model actually samples and what the reward model evaluates.

Methods

The authors propose FlowBP, a unified framework that caches a standard, no-gradient forward rollout during sampling, and then constructs a lightweight backward surrogate graph for optimization. This framework unifies prior work along four distinct design axes: the reward-model input, the active set of timesteps, integration weights, and bridge coupling.

Using this framework, they instantiate three new methods:

  • FlowBP-Sparse: Replays cached Euler updates but only exposes a small, randomly sampled active set of steps to autograd, completely removing cross-step Jacobians for maximum stability.
  • FlowBP-Bridge: Splits the trajectory into two segments connected by a "bridge" with a tunable coupling strength ($\alpha$), allowing controlled credit assignment across the split.
  • FlowBP-Lagrange: Keeps a two-segment structure but replaces simple single-velocity steps with higher-order Lagrange quadrature rules to drastically reduce approximation errors over long intervals.
Figure 2: Surrogate backward graphs under the unified framework. Each panel uses the same cached denoising trajectory but differs in reward-model input, active velocities, integration weights, and nested-gradient path. Highlighted velocities are re-forwarded with gradients, while inactive trajectory states and velocities are detached. ReFL, DRaFT-LV, and DRTune optimize posterior-mean endpoints with no nested path; LeapAlign keeps a two-step bridged path; FlowBP-Lagrange raises the bridge quadrature order, FlowBP-Sparse uses a sparse Euler active set without a bridge, and FlowBP-Bridge combines sparse Euler coverage with a tunable nested-gradient scale.

Datasets

The methods were evaluated using three prominent flow-matching foundation backbones: SD3.5-M, FLUX.1-dev (12B), and FLUX.2-Klein-base (9B).

For preference alignment evaluation, the authors utilized the HPDv2 test split (400 prompts) and evaluated performance across several reward models: HPSv2.1 (in-domain), PickScore, ImageReward, UR-Align, and UR-IQ (out-of-domain). Compositional text-to-image prompt following was evaluated using the GenEval benchmark.

Key Insights and Ideas

  • Decoupling is Key: Separating the forward sampling path (which can be executed without tracking gradients) from the backward optimization path opens up a rich, flexible design space for surrogate trajectories.
  • Real vs. Predicted Endpoints: Evaluating the reward model on the actual final sampled image ($x_0$) rather than an intermediate posterior-mean estimate ($\hat{x}_0$) yields substantial gains in out-of-domain human preference metrics.
  • The Connector Mismatch Failure Mode: In connector-based methods like LeapAlign, large gaps in the surrogate path cause the estimated endpoint to drift from the real sample, leading to "reward collapse." FlowBP fixes this either structurally (via exact Euler reconstruction) or numerically (via Lagrange quadrature).

Key Results

  • State-of-the-Art Alignment: Across SD3.5-M, FLUX.1-dev, and FLUX.2-Klein, FlowBP variants consistently achieved faster optimization and higher final rewards than existing direct-gradient baselines (ReFL, DRaFT-LV, DRTune, LeapAlign).
  • GenEval Improvements: On FLUX.1-dev, FlowBP-Lagrange boosted the overall GenEval score from 63.25 (base model) to 69.88, achieving the highest performance among all tested direct-gradient methods without degrading compositional prompt-following capabilities.
Figure 1: Overview of the FlowBP design space and empirical behavior. Left: methods are positioned by reward-path fidelity C and nested-coupling fidelity Fnest (defined in Section A.1), which respectively summarize reward-input fidelity and retained cross-step gradient coupling. Right: HPSv2.1 training reward on FLUX.1-dev; our three variants optimize faster and reach higher reward than the direct- gradient baselines.

Limitations and Future Work

The authors note that the optimal surrogate design choice varies depending on the specific model architecture and scale, indicating that there is no "one-size-fits-all" configuration. Future work could involve automatically searching or dynamically adapting the design axes (such as active set selection and bridge coupling strength) during the training process to match the specific characteristics of different foundation backbones.

Summary updated

BibTeX
@misc{wang2026exploring,
  author = {Ruoyu Wang and Boye Niu and Xiangxin Zhou and Yushi Huang and Tongliang Liu and Chi Zhang},
  title = {{Exploring the Design Space of Reward Backpropagation for Flow Matching}},
  year = {2026},
  eprint = {2606.11075},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.11075},
}

Loading related content...

Figure