Optimizing Visual Generative Models via Distribution-wise Rewards

TL;DR

Proposes distribution-wise reward with subset-replace strategy for RL fine-tuning, reducing FID from 8.30 to 5.77.

cs.LG 🔴 Advanced 2026-07-02 26 views
Ruihang Li Mengde Xu Shuyang Gu Leigang Qu Fuli Feng Han Hu Wenjie Wang
generative models reinforcement learning distribution metrics image quality model optimization

Key Findings

Methodology

This paper introduces a reinforcement learning framework based on distribution rewards, utilizing a subset-replace strategy to efficiently estimate FID as a reward signal. By replacing small subsets of a reference set with new samples, the approach provides dense feedback while maintaining computational efficiency. The framework combines this reward with post-hoc model merging coefficient optimization, avoiding the train-inference gap caused by SDEs. Extensive experiments on models like SiT and EDM2 demonstrate significant improvements in FID scores, validating the method's effectiveness in enhancing distribution coverage, diversity, and visual fidelity.

Key Results

  • On the SiT model, FID decreased from 8.30 to 5.77, and FDDINOv2 from 230.39 to 164.88, outperforming traditional sample-based rewards.
  • For EDM2, FID improved from 3.74 to 3.52 after post-hoc coefficient optimization, confirming the approach's robustness.
  • The subset-replace strategy efficiently estimates distribution metrics, providing dense reward signals that lead to better coverage and diversity in generated images.

Significance

This work advances the field of generative modeling by addressing key limitations of sample-wise reinforcement learning, notably reward hacking and training-inference inconsistency. By leveraging distribution-level rewards, it enhances the quality and diversity of generated images, which is crucial for practical applications like content creation, virtual reality, and AI-assisted design. The proposed methods open new avenues for scalable, robust, and high-fidelity generative systems, bridging the gap between theoretical metrics and real-world performance.

Technical Contribution

The core technical innovation lies in the subset-replace strategy for estimating distribution rewards, enabling efficient RL-based fine-tuning. Additionally, the paper introduces a post-hoc model merging coefficient optimization method that decouples training from inference, thus resolving the train-inference inconsistency caused by SDEs. The framework is compatible with various pretrained models and employs policy gradient methods to optimize the model parameters and merging coefficients, significantly improving FID scores with minimal additional computational cost.

Novelty

This is the first work to utilize a subset-replace based distribution reward for reinforcement fine-tuning of generative models, effectively balancing computational efficiency and reward density. It also innovatively applies RL to optimize model merging coefficients post hoc, bypassing the limitations of SDE-based training and inference mismatch, representing a significant step forward in scalable, distribution-aware generative model optimization.

Limitations

  • Despite efficiency gains, the method still requires substantial computational resources for large reference sets and frequent updates, which may limit real-time applications.
  • Parameter sensitivity, such as reference set size and replacement ratio, demands careful tuning, potentially hindering widespread adoption.
  • Current validation is primarily on image datasets; applicability to other modalities like video or 3D remains to be demonstrated.

Future Work

Future research will focus on adaptive subset selection strategies, reducing computational overhead further, and extending the framework to multi-modal data such as videos and 3D models. Exploring unsupervised or self-supervised reward estimation techniques could make the approach more scalable and versatile. Additionally, integrating this framework with other generative paradigms like GANs or autoregressive models may broaden its impact.

AI Executive Summary

This study addresses fundamental challenges in the reinforcement learning-based fine-tuning of visual generative models, notably reward hacking and train-inference inconsistency. Traditional sample-wise reward functions, while straightforward, often lead to mode collapse, artifacts, and reduced diversity, limiting the practical utility of such models. To overcome these issues, the authors propose a novel distribution-wise reward framework that evaluates the entire generated distribution rather than individual samples. Central to this approach is the subset-replace strategy, which efficiently estimates the Fréchet Inception Distance (FID) by replacing small subsets of a reference set with newly generated samples, providing dense and reliable reward signals with minimal computational overhead. Extensive experiments on models like SiT and EDM2 demonstrate that this method significantly reduces FID scores—down from 8.30 to 5.77 on SiT—indicating substantial improvements in image quality and diversity. Furthermore, the authors introduce a post-hoc optimization technique for model merging coefficients, which alleviates the train-inference gap caused by stochastic differential equations (SDEs), leading to further performance gains. The combined framework not only enhances perceptual quality but also maintains sample diversity, making it highly promising for real-world applications such as content creation, virtual reality, and AI-assisted design. Overall, this work pushes the frontier of distribution-aware reinforcement learning in generative modeling, offering scalable, robust, and high-fidelity solutions for future AI systems.

Deep Dive

Plain Language Accessible to non-experts

想象你在厨房里做菜,目标是做出既好吃又多样的菜肴。传统方法像是每次只专注于一道菜的味道,容易偏向某些口味,忽略了整体的丰富性。现在,厨师用一种“整体评分”的方法,评估一盘菜的整体味道,而不是只看单个菜。每次试验后,他会用这个评分快速判断哪些食材搭配更合适,然后调整食谱。通过不断试验和调整,菜肴变得更美味、多样,也更符合大家的口味。作者还提出在最后阶段,把不同的菜融合在一起,形成一道完整的佳肴。整个过程就像是在厨房里不断试验、调整,最终做出既好看又好吃的菜。

ELI14 Explained like you're 14

想象你在学校的美术课上画画,老师让你画出很多不同的风景。以前,你只会画一种风景,结果画出来都差不多,没有新意。现在,老师告诉你一个新办法:你可以用一种“整体评分”来看你画的所有风景是不是多样、符合真实。每次你画完一组,就用这个评分给你反馈,然后你可以快速调整画风和内容。这样一来,你画的风景不仅更漂亮,还更丰富多彩。老师还建议你在最后把不同的风景融合在一起,画出一幅完整的画。这就像用一种聪明的“评分系统”不断帮你改进,最后你能画出既漂亮又多样的风景画。

Glossary

Distribution-wise Reward (分布奖励)

一种衡量生成样本整体分布偏差的奖励机制,反映模型对真实数据分布的覆盖程度,基于FID指标实现。

用来指导模型微调,避免样本操控,提升多样性。

Subset-replace Strategy (子集替换策略)

在参考集中随机替换少量样本,用于估算分布指标的奖励信号,兼顾效率和密度。

核心创新,用于高效估算FID奖励。

FID (Fréchet Inception Distance)

衡量生成图像与真实图像分布差异的指标,基于Inception网络特征的均值和协方差差异。

作为分布偏差的评价指标,用于奖励信号。

Model Merging Coefficients (模型融合系数)

用于线性融合多个模型参数的权重系数,通过RL优化实现性能提升。

在后置阶段优化模型融合,避免训练-推理差异。

SDE (Stochastic Differential Equation, 随机微分方程)

描述扩散模型中引入随机噪声的数学工具,影响训练中的随机性。

训练中引入,影响推理一致性。

Open Questions Unanswered questions from this research

  • 1 如何进一步降低大规模模型微调的计算成本,特别是在高维数据和复杂指标下的效率优化。
  • 2 分布奖励在多模态生成(如视频、3D)中的适应性和效果验证。
  • 3 结合自监督学习和强化学习的多任务优化策略,以提升模型泛化能力。

Applications

Immediate Applications

高质量图像生成

可用于内容创作、虚拟试衣、广告设计等行业,通过优化预训练模型,提升生成图像的视觉质量和多样性。

模型微调工具

为研究人员提供一种高效微调生成模型的技术手段,减少调参时间,增强模型的适应性。

Long-term Vision

多模态生成系统

未来可扩展到视频、3D模型等多模态内容,推动虚拟现实、增强现实等技术的发展。

Abstract

Conventional reinforcement learning strategies for visual generation typically employ sample-wise reward functions, yet this practice frequently results in reward hacking that degrades image diversity and introduces visual anomalies. To address these limitations, we present a novel framework that finetunes generative models using distribution-wise rewards, ensuring better alignment with real-world data distributions. Unlike rewards that evaluate samples individually, distribution-wise reward accounts for the data distribution of the samples, mitigating the mode collapse problem that occurs when all samples optimize towards the same direction independently. To overcome the prohibitive computational cost of estimating these rewards, we introduce a subset-replace strategy that efficiently provides reward signals by updating only a small subset of a generated reference set. Additionally, we apply RL to optimize post-hoc model merging coefficients, potentially mitigating the train-inference inconsistency caused by introducing stochastic differential equation (SDE) in regular RL practices. Extensive experiments show our approach significantly improves FID-50K across various base models, from 8.30 to 5.77 for SiT and from 3.74 to 3.52 for EDM2. Qualitative evaluation also confirms that our method enhances perceptual quality while preserving sample diversity.

cs.LG cs.CV