BideDPO: Conditional Image Generation with Simultaneous Text and Condition Alignment
Dewei Zhou, Mingwei Li, Zongxin Yang, Yu Lu, Yunqiu Xu, Zhizhong Wang, Zeyi Huang, Yi Yang
TL;DR
This work tackles the challenge of aligning both text prompts and conditioning inputs in conditional image generation, identifying input-level and model-bias conflicts. It introduces BideDPO, a bidirectionally decoupled Direct Preference Optimization framework that separates text and condition learning signals and uses Adaptive Loss Balancing to prevent gradient entanglement. An automated data pipeline generates disentangled, conflict-aware preference data, and an iterative optimization loop refines both data and the model, yielding strong improvements on the DualAlign and COCO benchmarks, including style-conditioned cases. By formulating separate reward-based objectives for text and condition adherence and validating with multiple evaluators, the approach significantly enhances both textual fidelity and conditioning fidelity in multi-constraint generation with practical impact for advanced, controllable image synthesis.
Abstract
Conditional image generation enhances text-to-image synthesis with structural, spatial, or stylistic priors, but current methods face challenges in handling conflicts between sources. These include 1) input-level conflicts, where the conditioning image contradicts the text prompt, and 2) model-bias conflicts, where generative biases disrupt alignment even when conditions match the text. Addressing these conflicts requires nuanced solutions, which standard supervised fine-tuning struggles to provide. Preference-based optimization techniques like Direct Preference Optimization (DPO) show promise but are limited by gradient entanglement between text and condition signals and lack disentangled training data for multi-constraint tasks. To overcome this, we propose a bidirectionally decoupled DPO framework (BideDPO). Our method creates two disentangled preference pairs-one for the condition and one for the text-to reduce gradient entanglement. The influence of pairs is managed using an Adaptive Loss Balancing strategy for balanced optimization. We introduce an automated data pipeline to sample model outputs and generate conflict-aware data. This process is embedded in an iterative optimization strategy that refines both the model and the data. We construct a DualAlign benchmark to evaluate conflict resolution between text and condition. Experiments show BideDPO significantly improves text success rates (e.g., +35%) and condition adherence. We also validate our approach using the COCO dataset. Project Pages: https://limuloo.github.io/BideDPO/.
