NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Preference Alignment with Flow Matching

Minu Kim, Yongsik Lee, Sehyeok Kang, Jihwan Oh, Song Chong, Seyoung Yun · DOI

Abstract

Aligning large-scale models with human preferences is essential for modern AI, yet standard methods like Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO) require computationally intensive fine-tuning of the entire model. This paper introduces Preference Flow Matching (PFM), a novel alignment strategy that keeps the base model frozen. By learning a vector field that transforms less-preferred outputs into more-preferred ones, PFM acts as a modular post-processor. Experimental results demonstrate that PFM is robust to reward overfitting, compatible with black-box APIs, and achieves superior alignment with significantly fewer trainable parameters.

Introduction

The success of models like ChatGPT relies heavily on alignment techniques that steer model outputs toward human preferences. However, traditional approaches face significant hurdles: they are computationally expensive, incompatible with black-box APIs (where weights cannot be modified), and prone to "reward hacking"—where models exploit flaws in the reward function to produce high-scoring but low-quality outputs.

Researchers from KAIST AI propose a shift from model optimization to generative transformation. Their method, Preference Flow Matching (PFM), introduces a lightweight, plug-and-play module that "nudges" a frozen model's outputs toward preferred distributions without altering the original weights.

Methodology: Preference Flow Matching

PFM leverages the principles of Flow Matching to bridge the gap between "less preferred" ($y^-$) and "preferred" ($y^+$) samples. Unlike RLHF, which updates the policy $\pi$, PFM trains a separate vector field $v_\theta$ to define a path in the latent space.

Comparison of traditional RLHF methods versus the proposed Preference Flow Matching (PFM) framework for training and inference.

The PFM Workflow

  1. Frozen Base Model: The pre-trained model ($\pi_{ref}$) remains untouched.
  2. Learning the Flow: A small neural network learns a vector field $v_\theta(t, y|x)$ that maps the distribution of less-preferred samples to preferred ones.
  3. Inference via ODE: During generation, a sample from the base model is refined by solving an Ordinary Differential Equation (ODE) along the learned vector field.
  4. Iterative Refinement: The process can be applied multiple times to progressively concentrate the output distribution toward high-reward regions.

Experimental Evaluation

The authors evaluated PFM across multiple domains, including 2D toy tasks, image generation (MNIST), text generation (IMDB sentiment), and offline reinforcement learning (D4RL).

Key Results

  • Efficiency: In text generation tasks, the PFM module required only 1.2% of the parameters of a full GPT-2 fine-tune while achieving higher win rates.
  • Alignment Performance: On MNIST, PFM achieved a preference score of 0.9841, outperforming RLHF (0.9171) and DPO (0.8936). Iterative PFM (2 iterations) pushed this to 0.9996.
  • Robustness: PFM's objective function is mathematically bounded, preventing the "divergence" often seen in RLHF when preference signals are deterministic.
Visualization of the learned vector field in a 2D toy task, showing how PFM and its iterative variant concentrate samples toward preferred regions.

Discussion and Limitations

PFM offers a compelling alternative for aligning models that are too large to fine-tune or are only accessible via API. By treating alignment as a post-processing flow, it avoids the instability of reinforcement learning.

However, the method introduces some trade-offs. Solving an ODE at inference time is computationally slower than a single forward pass of a fine-tuned model. Additionally, for NLP tasks, PFM currently relies on autoencoders to map text to a fixed-size latent space, which may limit its effectiveness for highly complex structural text generation.

Conclusion

Preference Flow Matching represents a significant step toward accessible and robust AI alignment. By decoupling the alignment process from the base model's weights, it enables the refinement of massive, black-box systems while maintaining high performance and stability.

Summary updated

BibTeX
@inproceedings{kim2024preference,
  author = {Minu Kim and Yongsik Lee and Sehyeok Kang and Jihwan Oh and Song Chong and Seyoung Yun},
  title = {{Preference Alignment with Flow Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=EKN8AGS1wG},
}
Figure