English

Label Anything: Multi-Class Few-Shot Semantic Segmentation with Visual Prompts

Computer Vision and Pattern Recognition 2025-08-22 v4

Abstract

Few-shot semantic segmentation aims to segment objects from previously unseen classes using only a limited number of labeled examples. In this paper, we introduce Label Anything, a novel transformer-based architecture designed for multi-prompt, multi-way few-shot semantic segmentation. Our approach leverages diverse visual prompts -- points, bounding boxes, and masks -- to create a highly flexible and generalizable framework that significantly reduces annotation burden while maintaining high accuracy. Label Anything makes three key contributions: (i\textit{i}) we introduce a new task formulation that relaxes conventional few-shot segmentation constraints by supporting various types of prompts, multi-class classification, and enabling multiple prompts within a single image; (ii\textit{ii}) we propose a novel architecture based on transformers and attention mechanisms; and (iii\textit{iii}) we design a versatile training procedure allowing our model to operate seamlessly across different NN-way KK-shot and prompt-type configurations with a single trained model. Our extensive experimental evaluation on the widely used COCO-20i20^i benchmark demonstrates that Label Anything achieves state-of-the-art performance among existing multi-way few-shot segmentation methods, while significantly outperforming leading single-class models when evaluated in multi-class settings. Code and trained models are available at https://github.com/pasqualedem/LabelAnything.

Keywords

Cite

@article{arxiv.2407.02075,
  title  = {Label Anything: Multi-Class Few-Shot Semantic Segmentation with Visual Prompts},
  author = {Pasquale De Marinis and Nicola Fanelli and Raffaele Scaringi and Emanuele Colonna and Giuseppe Fiameni and Gennaro Vessio and Giovanna Castellano},
  journal= {arXiv preprint arXiv:2407.02075},
  year   = {2025}
}

Comments

ECAI 2025 - 28th European Conference on Artificial Intelligence

R2 v1 2026-06-28T17:26:11.914Z