TL;DR
Ask a modern text-to-image model to put green paint on an artist's right upper arm and purple paint on their left lower arm, and you will likely get a colourful, anatomically confused mess. This paper introduces PartConcepts, a lightweight mechanism that compresses multi-word part descriptions into single, spatially grounded tokens. Not only does this achieve state-of-the-art part segmentation, it automatically unlocks surgical, part-level control in image generation—without breaking the base model's creative priors.
What Problem Does This Paper Address?
Text-to-image (T2I) diffusion models like FLUX.2 have remarkable object-level understanding. Their internal cross-attention maps—which dictate where text concepts appear in an image—are clean enough to segment whole objects right out of the box.
Yet, this clarity falls apart at the part level, especially when spatial orientation matters (e.g., distinguishing a dog's "left front leg" from its "right back leg"). Curiously, prior work shows that the model's underlying visual features do contain fine-grained, part-level geometry. The bottleneck is the text–image interface. Because standard tokenizers split phrases like "left front leg" into separate words, spatial modifiers like "left" scatter diffusely across the image in cross-attention, failing to anchor to a coherent region. Consequently, models struggle both to locate specific parts and to follow generation prompts targeting them.
Methods
Built on top of FLUX.2 (a multi-modal Diffusion Transformer, or mmDiT), PartConcepts fixes the cross-attention bottleneck through a clever combination of token compression and joint training:
- The PartConcept Encoder: Instead of feeding discrete word tokens for a part phrase into the diffusion backbone, the authors route them through three extra text-encoder layers and pool them into a single
PartConceptembedding. Crucially, Base T2I models usually tap intermediate text layers for conditioning; by initializing this new encoder with the subsequent layers of the existing text encoder and training only parameter-efficient LoRA adapters, the new tokens stay anchored to the native text manifold. - Lightweight Segmentation Decoder: Raw diffusion attention maps live on a noisy, compressed latent grid. To get crisp pixel masks during a single forward pass, multi-layer
PartConceptcross-attention maps are extracted and fed—alongside the clean RGB image—into a lightweight multi-scale CNN decoder trained with Dice loss. - Preserving Generation & Attribute Binding: Fine-tuning purely for segmentation ruins image generation. To keep visual synthesis sharp, the authors jointly optimize the standard generative flow-matching loss alongside the segmentation loss ($\mathcal{L} = \mathcal{L}_{\text{dice}} + \lambda \cdot \mathcal{L}_{\text{flow}}$). To help attributes (like "made of ice") bind to these new tokens, training prompts are augmented with localized part descriptions generated by a Vision-Language Model (VLM).
Datasets
- Open-Vocabulary Part Segmentation (OVPS) suite: Used for standard zero-shot and cross-dataset segmentation benchmarks, encompassing Pascal-Part-116 (PPS-116), ADE20K-Part-234, and PartImageNet.
- Original Pascal-Part: Because standard OVPS benchmarks strip away left/right spatial modifiers (collapsing "left hand" and "right hand" into just "hand"), the authors evaluate fine-grained part instance segmentation on the unaltered Pascal-Part dataset.
- Pascal-Part SR (Newly Introduced): Legacy Pascal-Part images are low-resolution, which degrades modern T2I priors during training. The authors built an automated FLUX.2 restoration and outpainting pipeline to create a high-resolution, aspect-ratio-corrected training set that strictly preserves original part masks.
Key Insights and Ideas
- Spatial grounding gives you attribute binding "for free": The paper's biggest "aha" moment is that you don't need complex, custom attention-masking architectures during inference to bind textures or colors to tiny parts. Once a
PartConcepttoken is trained to attend to the right pixels—and stays close to the text embedding space via LoRA—surrounding text instructions naturally compose with it. - Generalization beyond the training vocabulary: Because
PartConcepttokens leverage the pretrained text encoder's priors, the system generalizes zero-shot to novel part names never seen during training (such aswrist,armrest,tyre, andleft front wheel) and pairs them with outlandish creative attributes (like "spaghetti" or "cyber-blue veins"). - Batch size matters for localization: While standard diffusion fine-tuning scripts default to tiny batch sizes, the authors found that scaling up batch sizes (up to 32) noticeably improved localization convergence.
Key Results
- Open-Vocabulary Segmentation: PartConcepts sets a new state-of-the-art on the OVPS zero-shot benchmarks, reaching harmonic-IoU (h-IoU) scores of 57.3 on ADE20K (+7.3 over PartCATSeg), 56.3 on PPS-116 (+4.2 over LangHOPS), and 72.9 on PartImageNet. In cross-dataset transfer (PartImageNet $\to$ PPS-116), it jumps from 22.88 to 30.00 IoU.
- Fine-Grained Instance Segmentation: On the much harder original Pascal-Part benchmark (requiring left/right disambiguation), PartConcepts achieves 54.7 h-IoU, crushing dedicated segmentation baselines LangHOPS (38.5) and PartCATSeg (34.3) by over +16 points.
- Instruction-Following Generation: In VLM-as-a-judge evaluations scoring localized attribute accuracy (0–5 scale), PartConcepts scored 3.52 (Qwen) and 2.45 (Gemini), handily beating FLUX.2 Klein (2.34 / 1.60) and Nano Banana 2 (2.49 / 1.73). In human A/B user studies, users preferred PartConcepts 71% to 82% of the time over baselines.
Limitations and Future Work
- Multi-part scaling: Packing more than four part-attribute pairs into a single prompt occasionally causes attributes to leak across parts, even when the attention maps remain well-localized—likely because 5+ part prompts are out-of-distribution relative to the training data.
- The $\lambda$ trade-off: While the architecture unifies segmentation and generation, the optimal loss-balancing weight ($\lambda$) differs slightly between pure segmentation and high-fidelity generation. Eliminating this discriminative-vs.-generative trade-off is left for future work, alongside applying attention-based post-training to teach T2I models other underrepresented textual concepts.
Summary updated