NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PartSeg: Few-shot Part Segmentation via Part-aware Prompt Learning

Mengya Han, Heliang Zheng, Chaoyue Wang, Yong Luo, Han Hu, Jing Zhang, Yonggang Wen

TL;DR

PartSeg is a novel framework that tackles few-shot part segmentation by bridging the gap between vision and language. By leveraging the rich textual space of pre-trained models like CLIP and introducing "part-aware prompt learning," it enables models to recognize and segment object parts in novel categories using only a handful of examples.

What Problem Does This Paper Address?

Few-shot part segmentation (FSPS) is the challenging task of segmenting specific components of an object (e.g., a car's side mirror or a bird's wing) when the model has only seen a few labeled examples of that object category.

Traditional approaches usually fall into two traps: they either rely solely on visual prototypes, which struggle to generalize from limited data, or they use generative models that are often restricted to a single category (like human faces) and require extensive retraining for new ones. The authors argue that humans don't just look; we use language to categorize parts. Concepts like "head" or "body" are universal across many species and objects. The challenge is how to effectively inject this cross-modal, linguistic knowledge into a computer vision pipeline to improve generalization.

Methods

The authors introduce PartSeg, the first multi-modal approach for FSPS. The architecture consists of three main pillars:

  1. Visual Encoder: A standard backbone (like ViT) extracts features from both the "support" image (the labeled example) and the "query" image (the one to be segmented). It uses Masked Average Pooling (MAP) to create visual prototypes for each part.
  2. Part-aware Prompt Learning (PPL): This is the core innovation. Instead of using static text labels, PPL generates dynamic prompts using two sub-modules:
  3. Part-specific Prompt Generator (PPG): A shallow network that transforms visual prototypes into specific tokens, helping the model distinguish between different parts of the same object.
  4. Part-shared Prompt Estimator (PPE): This uses an Exponential Moving Average (EMA) to learn tokens for parts that are semantically similar across different categories (e.g., the "body" of a car vs. the "body" of a bicycle).
  5. Text Encoder: These learned tokens are concatenated with the part's text label and fed into a pre-trained CLIP text encoder to produce textual prototypes.

Finally, the query image is segmented by comparing its features against both the visual and textual prototypes.

Figure 2: The framework of our PartSeg method for few-shot part segmentation. We first utilize a visual encoder to extract feature maps F s and F q from a given support image and query image, respectively. Then we apply masked average pooling (MAP) to generate the part-level visual prototypes V1, V2, · · · , VN from the support feature F s and its support mask. To generate part-level textual prototypes T1, T2, · · · , TN, we propose the part-aware prompt learning (PPL) module that takes V1, V2, · · · , VN and a part label set as a condition. Specifically, our part-aware prompt learning (PPL) module consists of a part-specific prompt generator (PPG) and a part-shared prompt estimator (PPE) to generate part-specific tokens vspecific and part-shared tokens vshared, respectively. These tokens are concatenated with the part label as the final prompt for text encoding. Finally, we utilize part-level visual prototypes and part-level textual prototypes to segment the query image. It is worth noting that the visual encoders for support and query images share the same weights in our method.

Datasets

The model was evaluated on two primary benchmarks:

  • PartImageNet: A large-scale dataset featuring part-level annotations for 11 super-categories. The authors divided this into four splits to test generalization to unseen "novel" sets.
  • Pascal Part: Used primarily for cross-domain evaluation, where the model is trained on PartImageNet and tested directly on Pascal Part to see how well it handles entirely different data distributions.

Key Insights and Ideas

  • Language as a Generalizer: The "aha moment" is that while visual appearances change, the concept of a part (like a "leg") remains relatively stable in textual space. Leveraging CLIP’s pre-trained latent space provides a "semantic anchor" that visual-only models lack.
  • Sharing is Caring: The PPE module's ability to share information across categories is vital. By recognizing that a "torso" in one animal category is semantically proximal to a "torso" in another, the model learns transferable knowledge that speeds up adaptation to novel classes.
  • Visual-Conditioned Prompts: The paper shows that prompts shouldn't just be text; they should be conditioned on the visual features of the support image. This helps bridge the "semantic gap" between what the text encoder expects and what the visual encoder sees.

Key Results

PartSeg achieved state-of-the-art (SOTA) results across all tested datasets:

  • Performance Boost: On PartImageNet, PartSeg outperformed the visual-only baseline (ProtoNet) by up to 9.3% in mIoU (mean Intersection-over-Union) on certain splits.
  • Multimodal Synergy: Ablation studies (Table 2) showed that adding the text encoder improved performance by ~5%, and adding the PPL module provided an additional boost, proving that both components are necessary for peak performance.
  • Cross-Domain Robustness: In the challenging PartImageNet $\rightarrow$ Pascal Part transfer task, PartSeg maintained a lead over baselines, achieving 0.4911 mIoU.
Figure 3: Qualitative comparison on the PartImageNet dataset. The last column shows a failure case.

Limitations and Future Work

While PartSeg shows impressive results, it still faces hurdles:

  • Failure Cases: The model can still struggle with complex occlusions or very small parts where the visual features are ambiguous (as seen in the last column of Figure 3).
  • Backbone Dependency: The method's efficacy is partially tied to the quality of the pre-trained CLIP model.
  • Future Directions: The authors suggest exploring semi-supervised learning to leverage large-scale unlabeled data. They also aim to extend this framework to video part segmentation and multi-modal image editing tasks.

Summary updated

BibTeX
@article{han2023partseg,
  author = {Mengya Han and Heliang Zheng and Chaoyue Wang and Yong Luo and Han Hu and Jing Zhang and Yonggang Wen},
  title = {{PartSeg: Few-shot Part Segmentation via Part-aware Prompt Learning}},
  journal = {Pattern Recognition},
  year = {2023},
}
Figure