Learning What to Trust: Bayesian Prior-Guided Optimization for Visual Generation

Ruiying Liu, Yuanzhi Liang, Haibin Huang, Tianshu Yu, Chi ZhangarXiv 2025 · DOI

Abstract

Reinforcement Learning from Human Feedback (RLHF) is essential for aligning generative models, but visual tasks suffer from inherent ambiguity and noisy reward signals. We present Bayesian Prior-Guided Optimization (BPGO), a framework that models reward uncertainty to distinguish between reliable and noisy feedback. By incorporating a semantic prior, BPGO introduces Reliability-Adaptive Scaling (RAS) and Contrastive Reward Transformation (CRT) to stabilize training and improve prompt alignment. Our results demonstrate significant improvements in text-to-video and text-to-image generation, outperforming standard methods like GRPO in both semantic consistency and fine-grained detail.

Introduction: The Ambiguity Challenge

Aligning generative models with human intent often relies on comparing multiple outputs for a single prompt. While Group Relative Policy Optimization (GRPO) provides a lightweight alternative to PPO by removing the need for a value network, it struggles with the "many-to-many" mapping problem inherent in visual generation. A single prompt (e.g., "a dog runs") can correspond to infinite valid visual representations, and a single video can be described by numerous captions. This ambiguity leads to noisy reward signals, where standard optimizers may overfit to unreliable feedback or fail to capture subtle quality differences.

Methodology: Bayesian Prior-Guided Optimization

BPGO addresses reward noise by treating optimization through a Bayesian lens, using the performance of a supervised fine-tuned (SFT) model as a "prior anchor." The framework consists of two hierarchical components:

  1. Reliability-Adaptive Scaling (RAS): Operates at the group level. It compares the average reward of a generated group against the prior. Groups with rewards significantly deviating from the prior are weighted differently: high-performing groups are amplified, while low-performing or ambiguous groups are down-weighted to prevent learning from noise.
  2. Contrastive Reward Transformation (CRT): Operates at the sample level within a group. It "stretches" the reward distribution, expanding the gap for confident winners and compressing scores for uncertain samples, thereby providing clearer signals to the optimizer.
The BPGO framework compared to standard GRPO, highlighting the RAS and CRT modules.

Experimental Results

We evaluated BPGO across Text-to-Video (T2V), Image-to-Video (I2V), and Text-to-Image (T2I) tasks using models like Wan2.1 and FLUX.

Quantitative Performance

In T2V tasks, BPGO achieved a 24.6% improvement in the VideoAlign-TA metric over standard GRPO. The training process exhibited much smoother reward trajectories, indicating that the Bayesian regularization effectively stabilizes convergence by filtering out inconsistent feedback.

Qualitative Improvements

BPGO excels at rendering fine-grained details and complex attributes that often trip up standard models. For instance, in prompts requiring specific counts (e.g., "seven people") or precise objects (e.g., "a white suitcase"), BPGO consistently outperforms both the base models and GRPO-tuned versions.

Qualitative comparison showing BPGO (Ours) correctly rendering a "white suitcase" where standard GRPO fails.

Conclusion

BPGO introduces a robust way to handle the uncertainty of reward models in visual generation. By learning what to trust through Bayesian priors, it achieves superior alignment and faster convergence. Future work will explore dynamic prior estimation and further tuning of the scaling parameters to enhance generalizability across even more diverse generative tasks.

Summary updated

Abstract

Group Relative Policy Optimization (GRPO) has emerged as an effective and lightweight framework for post-training visual generative models. However, its performance is fundamentally limited by the ambiguity of textual visual correspondence: a single prompt may validly describe diverse visual outputs, and a single image or video may support multiple equally correct interpretations. This many to many relationship leads reward models to generate uncertain and weakly discriminative signals, causing GRPO to underutilize reliable feedback and overfit noisy ones. We introduce Bayesian Prior-Guided Optimization (BPGO), a novel extension of GRPO that explicitly models reward uncertainty through a semantic prior anchor. BPGO adaptively modulates optimization trust at two levels: inter-group Bayesian trust allocation emphasizes updates from groups consistent with the prior while down-weighting ambiguous ones, and intra-group prior-anchored renormalization sharpens sample distinctions by expanding confident deviations and compressing uncertain scores. Across both image and video generation tasks, BPGO delivers consistently stronger semantic alignment, enhanced perceptual fidelity, and faster convergence than standard GRPO and recent variants.
BibTeX
@misc{liu2025learning,
  author = {Ruiying Liu and Yuanzhi Liang and Haibin Huang and Tianshu Yu and Chi Zhang},
  title = {{Learning What to Trust: Bayesian Prior-Guided Optimization for Visual Generation}},
  year = {2025},
  eprint = {2511.18919},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.18919},
}
Figure