TL;DR
BideDPO introduces a novel framework for conditional image generation that solves the "tug-of-war" between text prompts and structural conditions (like depth maps or Canny edges). By decoupling preference optimization into two separate streams—one for text and one for condition—and using an adaptive loss balancing strategy, it achieves significantly better alignment even when the two inputs are in direct conflict.
What Problem Does This Paper Address?
In conditional image generation, models are given two sets of instructions: a text prompt (e.g., "a dog made of LEGO") and a spatial condition (e.g., a depth map of a real dog). Current state-of-the-art models often struggle when these two inputs conflict. The authors identify two primary types of failure:
- Input-Level Conflict: The semantics of the prompt contradict the structure of the condition. For example, a prompt asking for "LEGO dogs" paired with a depth map of smooth, real dogs often results in the model ignoring the "LEGO" part to satisfy the smooth depth constraint.
- Model-Bias Conflict: Even when inputs are compatible, the model’s internal training bias might favor one over the other. A model might "prefer" generating realistic textures even when the prompt asks for a "jade-like" surface.
Standard fine-tuning and even "Vanilla" Direct Preference Optimization (DPO) fail here because of gradient entanglement: trying to optimize both text and condition alignment with a single preference pair creates ambiguous signals that cause the model to collapse toward one constraint while neglecting the other.
Methods
The authors propose BideDPO (Bidirectionally Decoupled DPO), which consists of three core innovations:
- Bidirectionally Decoupled Preference Pairs: Instead of one preference pair per sample, BideDPO constructs two: a text-disentangled pair (where both images match the condition, but one matches the text better) and a condition-disentangled pair (where both images match the text, but one matches the condition better). This provides the model with clear, non-ambiguous gradients for each objective.
- Adaptive Loss Balancing (ALB): To prevent one objective from dominating the training, the framework dynamically weights the losses based on their current magnitudes. This ensures that if the model is already good at following conditions but bad at text, it focuses more on the text alignment.
- Automated Data Pipeline & Iterative Optimization: The authors built a self-driven pipeline using LLMs to generate conflicting prompts and Vision-Language Models (VLMs) to automatically score and select preference pairs. This process is iterative: the model generates data for its own next round of training, creating a self-reinforcing loop of improvement.
Datasets
The study utilizes several benchmarks to prove its effectiveness:
- DualAlign Benchmark: A new benchmark introduced in this paper specifically designed to evaluate models on conflicting text-condition pairs across modalities like Depth, Canny, and Soft Edge.
- COCO Dataset: Used to validate the robustness of the approach on standard, non-conflicting prompts, ensuring the model doesn't lose its general generative capabilities.
- DualAlign-Style: A specialized benchmark for evaluating abstract style-conditioned generation.
Key Insights and Ideas
- Decoupling is Key: The "aha moment" is that multi-objective optimization in diffusion models is hindered by signal interference. By treating text and condition alignment as separate but simultaneous tasks, the model learns to navigate the trade-offs rather than just picking a winner.
- The Flywheel Effect: The iterative strategy shows that as the generator improves, the quality of the preference data it produces also improves, leading to a steady climb in performance that surpasses single-round training.
- VLM as a Scalable Judge: Using high-capacity VLMs to automate the preference data creation removes the bottleneck of human labeling, allowing for the generation of thousands of high-quality "conflict-aware" training samples.
Key Results
BideDPO demonstrates substantial gains over strong baselines like FLUX-Depth and Union-Pro2:
- Text Success Rate (SR): On the FLUX-Depth model, BideDPO boosted the text success rate by 15%. On Union-Pro2, the SR increased by a massive 43%.
- Condition Adherence: The method reduced the conditional Mean Squared Error (MSE) by 87.7 points on FLUX-Depth, indicating much tighter structural alignment.
- Qualitative Superiority: As seen in the visual comparisons, BideDPO is the only method that consistently preserves the requested texture (e.g., "furry," "lava-cracked," "icy") while strictly maintaining the structural integrity of the input condition.
Limitations and Future Work
While BideDPO is highly effective, the authors and the framework's nature suggest a few areas for further exploration:
- Computational Cost: The iterative optimization strategy requires multiple rounds of sampling and VLM scoring, which is more computationally expensive than standard one-shot fine-tuning.
- VLM Dependency: The quality of the final model is inherently tied to the "judgment" capabilities of the VLMs used in the data pipeline.
- Scaling to More Constraints: Future work could explore extending this decoupling strategy to more than two constraints (e.g., text + depth + color palette + pose) simultaneously.
Summary updated