Generating a single high-quality image from a text prompt is now commonplace, but asking an AI to place a "cat with a purple hat" specifically to the left of a "dog with red glasses" often leads to a mess. Colors bleed between objects, positions get swapped, or objects vanish entirely. This paper introduces MIGC++, a sophisticated "divide-and-conquer" controller that gives users surgical precision over multi-instance image generation.
TL;DR
MIGC++ is an advanced controller for diffusion models that solves "attribute leakage" and positioning errors by treating multi-object generation as a set of parallel, single-object tasks. It allows users to specify objects using text or images and define their locations using boxes or masks, all while maintaining perfect consistency during iterative edits.
What Problem Does This Paper Address?
Current text-to-image models like Stable Diffusion (SD) struggle with complex scenes containing multiple distinct objects. Two main issues plague these models:
- Attribute Leakage: Because the model processes the entire prompt at once, attributes often "bleed." For example, if you ask for a red car and a blue bike, you might get a purple car or a red bike.
- Spatial Control: Standard models are notoriously bad at following specific layout instructions (e.g., "put the apple in the top-left corner").
- Iterative Inconsistency: If you try to add a new object to an existing AI-generated image, the entire background and the identity of existing objects usually change completely.
Methods
The authors propose a divide-and-conquer strategy called the Multi-Instance Generation Controller (MIGC) and its evolution, MIGC++.
- Instance Shader: Instead of one global attention pass, the model creates separate "shading" instances for each object. It uses Enhance-Attention (EA) to bind attributes to specific coordinates and Layout-Attention (LA) to ensure that pixels within one object's area don't accidentally "look at" or get influenced by pixels of another object.
- Shading Aggregation Controller (SAC): This module dynamically merges these individual object layers into a single, coherent feature map.
- Refined Shader (MIGC++): A training-free component that uses the base model's pre-trained knowledge to add fine-grained details (like the texture of a specific fruit) without losing the layout control.
- Consistent-MIG Algorithm: For iterative editing, this algorithm uses a masking technique and "Key-Value" concatenation from previous steps to ensure that when you add a "parrot" to a scene, the "dog" already there doesn't change its breed or color.
Datasets
The models were trained on COCO 2014. To rigorously test their approach, the authors introduced several new benchmarks:
- COCO-MIG (Box & Mask): Evaluates how well the model follows specific layouts and color assignments.
- Multimodal-MIG: Tests the model's ability to use both text and reference images (e.g., "make the bag look like this image") simultaneously.
- Existing Benchmarks: They also evaluated on COCO-Position and DrawBench to compare against industry standards.
Key Insights and Ideas
- Isolation is Key: The most effective way to prevent attribute leakage isn't better training, but architectural isolation. By forcing the model to process each object in its own "lane" before merging, leakage becomes mathematically difficult.
- Inhibition Loss: The authors developed a specific loss function that penalizes the model for placing object-related attention in the "background" areas, effectively "inhibiting" ghost objects or artifacts.
- Training-Free Refinement: MIGC++ demonstrates that you don't need to re-train the entire U-Net to get better details; you can "plug in" the original model's attention layers at the end of the process to restore fine textures.
Key Results
MIGC++ significantly outperforms previous state-of-the-art methods like GLIGEN and InstanceDiffusion:
- Instance Success Ratio (ISR): On the COCO-MIG-BOX benchmark, MIGC improved the success rate by 37.4% over GLIGEN.
- Precision: In the COCO-Position benchmark, MIGC achieved a 14.01 increase in Average Precision (AP) over previous methods.
- Attribute Accuracy: On DrawBench, MIGC++ reached an incredible 98.5% attribute control accuracy, nearly perfecting the alignment between user prompts and visual output.
- Efficiency: Despite its power, MIGC requires fewer training parameters than most of its competitors (see Fig. 3 in the paper).
Limitations and Future Work
While the paper presents a robust solution, a few areas remain for exploration:
- Base Model Dependency: The performance is still somewhat tied to the underlying diffusion model (e.g., SD 1.4). While it improves layout, it cannot magically grant the model knowledge of objects the base model hasn't seen.
- Complexity: The multi-stage pipeline (EA, LA, SAC, Refined Shader) is more complex than a standard forward pass, which might impact inference latency in real-time applications.
- Future Directions: The authors suggest that this divide-and-conquer approach could be extended to video generation, where maintaining object consistency across frames is an even greater challenge.
Summary updated