From Competition to Synergy: Unlocking Reinforcement Learning for Subject-Driven Image Generation
Ziwei Huang, Ying Shu, Hao Fang, Quanyu Long, Wenya Wang, Qiushi Guo, Tiezheng Ge, Leilei Gan
TL;DR
Subject-driven image generation faces a fundamental fidelity vs. editability trade-off. The paper introduces Customized-GRPO, a reinforcement-learning framework that combines Synergy-Aware Reward Shaping (SARS) and Time-Aware Dynamic Weighting (TDW) to address reward conflicts and align optimization with diffusion timesteps. Empirical results on DreamBench show state-of-the-art balance between identity preservation and prompt following, with notable gains in DINO, CLIP-I, and HPS-v3, validated by ablations and human evaluations. The approach offers a practical, model-agnostic pathway to improve multi-objective RL in diffusion-based generation and potentially generalizes to other architectures and multi-subject setups.
Abstract
Subject-driven image generation models face a fundamental trade-off between identity preservation (fidelity) and prompt adherence (editability). While online reinforcement learning (RL), specifically GPRO, offers a promising solution, we find that a naive application of GRPO leads to competitive degradation, as the simple linear aggregation of rewards with static weights causes conflicting gradient signals and a misalignment with the temporal dynamics of the diffusion process. To overcome these limitations, we propose Customized-GRPO, a novel framework featuring two key innovations: (i) Synergy-Aware Reward Shaping (SARS), a non-linear mechanism that explicitly penalizes conflicted reward signals and amplifies synergistic ones, providing a sharper and more decisive gradient. (ii) Time-Aware Dynamic Weighting (TDW), which aligns the optimization pressure with the model's temporal dynamics by prioritizing prompt-following in the early, identity preservation in the later. Extensive experiments demonstrate that our method significantly outperforms naive GRPO baselines, successfully mitigating competitive degradation. Our model achieves a superior balance, generating images that both preserve key identity features and accurately adhere to complex textual prompts.
