Manifold Drift in Flow Preference Optimization: A Root Cause of Reward Hacking

Yansen Han, Shengyi Liao, Yuanxing Zhang, Pengfei Wan, Tao Lin

TL;DR

This paper identifies manifold drift—a geometric failure where fine-tuned trajectories leave the pretrained data support—as the primary cause of reward hacking in flow-based generative models. To fix this, the authors introduce THERMODPO, a temperature-controlled objective that anchors preference updates to the data manifold, significantly improving alignment metrics (like OCR) without sacrificing image quality.

What Problem Does This Paper Address?

Direct Preference Optimization (DPO) has become a staple for aligning generative models with human preferences. However, when applied to continuous-time models like Flow Matching (FM) or Diffusion, researchers often observe a sharp drop in sample quality—a phenomenon typically dismissed as "reward hacking."

The authors argue that this degradation has a fundamental structural cause. Unlike discrete models that simply reweight output probabilities, flow-based models generate samples by transporting noise along learned trajectories. Standard preference updates (like FlowDPO) modify these transport dynamics without any constraint to keep them on the original data manifold. Consequently, the model learns to reach "preferred" regions by taking "off-road" shortcuts that lead to regions the model was never trained to support, resulting in visual artifacts and semantic distortions.

Figure 2: Core intuition of THERMODPO. Flow Matching (gray) transports noise to the pretrained data manifold. FlowDPO (green) may reach preferred regions through an off-manifold displacement, whereas THERMODPO (red) adds a winner-side anchor intended to keep the redirected mass closer to the pretrained manifold. The formal statements and their assumptions are summarized in Tab. 1; the behavior is evaluated in the toy study (Fig. 3) and real-image study (Fig. 1).

Methods

The authors formalize the problem by defining Manifold Drift and proving that a preference update will leave the pretrained manifold whenever its terminal displacement has a non-zero normal component.

To solve this, they propose THERMODPO, which views alignment as a thermodynamic balancing act. The key innovations include:

  • Winner-side Manifold Anchor: A new term in the loss function that penalizes the model for moving preferred samples away from the pretrained manifold.
  • Temperature Control ($\tau$): A parameter that allows the model to interpolate between the rigid constraints of Rejection Sampling Fine-Tuning (RFT) at low temperatures and the flexible preference signal of FlowDPO at high temperatures.
  • THERMODPO-weighted: A practical variant that replaces the theoretical $t^2$ weighting with a $(1-t)^2$ activation. This strengthens the manifold anchor near the terminal endpoint ($t=0$), where geometric preservation is most critical for final image quality.

Datasets

The researchers evaluated their method across three distinct settings:

  1. Toy 3D Benchmark: A custom-designed curved surface in $\mathbb{R}^3$ with specific "preferred" bumps and "dispreferred" dips to visualize manifold drift.
  2. OCR Preference Dataset: 1,000 prompts from DrawBench used to generate winner/loser pairs based on text rendering accuracy.
  3. Real-Image Benchmarks: Evaluation on Stable Diffusion 3.5-Medium and FLUX.2-klein-base-4B using metrics like GenEval (object alignment), HPSv3.0 (human preference), and UniRwd (multimodal reward).

Key Insights and Ideas

  • Reward Hacking is Geometric: In flow models, reward hacking isn't just about exploiting a flawed reward function; it's a failure of the transport dynamics to stay within the "legal" bounds of the data manifold.
  • Theoretical Bridge: The authors show that THERMODPO mathematically unifies two common alignment strategies. As temperature $\tau \to 0$, it reduces to Rejection Sampling Fine-Tuning (RFT). For $\tau > 0$, it decomposes into a temperature-scaled FlowDPO objective plus a non-negative anchoring term.
  • Pointwise Distance Bound: The paper provides a theoretical guarantee (Theorem 4.3) showing that the THERMODPO loss provides a pointwise upper bound on the squared distance between the generated sample and the true data manifold.
Figure 3: Toy example of manifold drift under direct preference optimization. Starting from the same pretrained flow matching (FM) reference model, FlowDPO drives terminal samples toward preferred regions but also causes a deviation from the pretrained data manifold. In contrast, THERMODPO variant preserves the overall manifold structure much better while still improving alignment with the preference signal.

Key Results

THERMODPO-weighted achieves a superior trade-off between following preferences and maintaining quality:

  • Toy Task: Achieved a StrictScore of 0.899, significantly higher than vanilla FlowDPO (0.629) and even FlowDPO+RFT (0.857).
  • SD3.5-M: At a Classifier-Free Guidance (CFG) of 4.5, it improved OCR accuracy by 47.5% and the average of four major metrics by 16.0% compared to the baseline.
  • Human Evaluation: In side-by-side comparisons, THERMODPO-weighted was consistently preferred for visual quality over other DPO variants while remaining competitive on text accuracy.
Qualitative comparison: FlowDPO (left) shows high text accuracy but severe artifacts; THERMODPO-weighted (right) maintains quality.

Limitations and Future Work

The authors acknowledge several areas for further exploration:

  • Offline Setting: The current study focuses on offline preference optimization using a fixed dataset. Extending this to online RLHF (where the model generates new samples during training) is a natural next step.
  • Physical Derivation: While motivated by thermodynamics, the objective is not yet a fully principled physical derivation.
  • Generalization: While tested on image generation, the authors suspect manifold drift is even more dangerous in fields like robotics, where "off-manifold" behavior translates to unpredictable and potentially unsafe physical actions.

Summary updated

BibTeX
@inproceedings{han2026manifold,
  author = {Yansen Han and Shengyi Liao and Yuanxing Zhang and Pengfei Wan and Tao Lin},
  title = {{Manifold Drift in Flow Preference Optimization: A Root Cause of Reward Hacking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9dO9vJ1V5d},
}
Figure