Composing Parts for Expressive Object Generation

Harsh Rangwani, Aishwarya Agarwal, Kuldeep Kulkarni, R. Venkatesh Babu, Srikrishna Karanam

TL;DR

PartComposer is a training-free framework that grants users "surgical" control over specific object parts in text-to-image generation. By automatically localizing parts through a specialized diffusion process and then generating them using parallel, region-specific paths, it enables complex compositions—like a bird with a peacock’s crown—without altering the rest of the image.

Introduction

Current state-of-the-art text-to-image (T2I) models like Stable Diffusion are excellent at global composition but struggle with fine-grained, part-level details. When users attempt to specify details for small components (e.g., "a person wearing a red silk shirt"), models often suffer from attribute leakage, where the color or texture spreads to the entire image, or the butterfly effect, where minor prompt changes drastically alter the overall layout and identity. Existing solutions typically require expensive retraining or manual masking. PartComposer addresses these issues by providing part-level control without training or manual intervention.

Methodology

PartComposer operates in two main stages: Part Localization and Part Generation.

Part Localization

The system first generates a mask for the entire object. It then performs a "Part-Diffusion" process, denoising the object region using part-specific tokens (e.g., "beak," "wings"). By analyzing cross-attention maps—which indicate which pixels the model focuses on for specific words—the system automatically clusters pixels into distinct part masks. This repurposes the generative model as a zero-shot segmenter.

Part Generation

Once masks are identified, users can specify attributes like color, style, or detailed descriptions for each part via a Rich-Text interface. PartComposer runs parallel diffusion processes for each part. To maintain harmony, it employs Self-Injection techniques to preserve the background and structure of the original "base" image while only modifying pixels within the specific part masks.

PartComposer demonstrates versatility across domains, such as modifying a dress in a Monet-style painting while preserving the overall aesthetic.

Evaluation and Results

The authors evaluated PartComposer's localization accuracy using the DeepFashion and CUB200 datasets. In zero-shot part segmentation, PartComposer outperformed standard Stable Diffusion and Rich-Text baselines by over 5 points in Normalized Mutual Information (NMI) and Adjusted Rand Index (ARI).

Qualitatively, PartComposer enables "impossible" objects and precise cross-domain edits. For instance, a user can add a "pelican's beak" to a flamingo without changing the bird's species or the background.

Comparison of PartComposer against baselines for a complex composition: a white swan with a peacock's crown.

A user preference study with 50 participants confirmed that PartComposer is significantly preferred for both localization (keeping details in the correct spot) and text-consistency (matching the description).

Key Insights

  • Denoising as Discovery: Internal attention maps during denoising can be leveraged to find semantic part boundaries.
  • Training-Free Versatility: By avoiding fine-tuning, the method inherits the base model's broad knowledge, working equally well on photographs and artistic paintings.

Limitations

The method's performance is bound by the base model's semantic understanding; if the base model cannot recognize an obscure part, PartComposer cannot localize or generate it correctly. Additionally, running parallel diffusion paths increases computational overhead compared to standard single-pass generation.

Summary updated

BibTeX
@inproceedings{rangwani2025composing,
  author = {Harsh Rangwani and Aishwarya Agarwal and Kuldeep Kulkarni and R. Venkatesh Babu and Srikrishna Karanam},
  title = {{Composing Parts for Expressive Object Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01233},
}
Figure