Skip to main content
QUICK REVIEW

[Paper Review] PVPUFormer: Probabilistic Visual Prompt Unified Transformer for Interactive Image Segmentation

Xu Zhang, Kailun Yang|arXiv (Cornell University)|Jun 11, 2023
Visual Attention and Saliency DetectionComputer Science4 citations
TL;DR

This paper proposes VPUFormer, a Visual Prompt Unified Transformer that unifies clicks, boxes, and scribbles into a single dense 1D prompt representation via Gaussian mapping, enabling deeper interaction with image features through Dual-cross Merging Attention and a Prompt-to-Pixel Contrastive Loss (P²CL). The method achieves state-of-the-art performance across seven datasets, reducing average interactions to reach 85%/90% IoU to 1.10/1.59 with multi-prompt input.

ABSTRACT

Integration of diverse visual prompts like clicks, scribbles, and boxes in interactive image segmentation significantly facilitates users' interaction as well as improves interaction efficiency. However, existing studies primarily encode the position or pixel regions of prompts without considering the contextual areas around them, resulting in insufficient prompt feedback, which is not conducive to performance acceleration. To tackle this problem, this paper proposes a simple yet effective Probabilistic Visual Prompt Unified Transformer (PVPUFormer) for interactive image segmentation, which allows users to flexibly input diverse visual prompts with the probabilistic prompt encoding and feature post-processing to excavate sufficient and robust prompt features for performance boosting. Specifically, we first propose a Probabilistic Prompt-unified Encoder (PPuE) to generate a unified one-dimensional vector by exploring both prompt and non-prompt contextual information, offering richer feedback cues to accelerate performance improvement. On this basis, we further present a Prompt-to-Pixel Contrastive (P$^2$C) loss to accurately align both prompt and pixel features, bridging the representation gap between them to offer consistent feature representations for mask prediction. Moreover, our approach designs a Dual-cross Merging Attention (DMA) module to implement bidirectional feature interaction between image and prompt features, generating notable features for performance improvement. A comprehensive variety of experiments on several challenging datasets demonstrates that the proposed components achieve consistent improvements, yielding state-of-the-art interactive segmentation performance. Our code is available at https://github.com/XuZhang1211/PVPUFormer.

Motivation & Objective

  • To overcome the limitations of single-prompt interaction in interactive image segmentation, which restricts user flexibility and interaction efficiency.
  • To address the inefficiency and weak feature interaction of existing 2D prompt representations (e.g., Distance Maps, Disk Maps) that suffer from high storage and computation costs.
  • To unify diverse visual prompts (clicks, boxes, scribbles) into a single, dense, and compact representation that preserves spatial intent and enables deeper cross-modal interaction.
  • To improve segmentation accuracy by refining image semantic features through user feedback using a novel contrastive loss that aligns prompt and pixel-level features.
  • To enable flexible, multi-modal user interaction in real-world applications by supporting dynamic switching between prompt types.

Proposed method

  • A Prompt-unified Encoder (PuE) maps each visual prompt into a 1D vector using Gaussian distribution-based horizontal and vertical projections, creating a dense, compact, and spatially informative representation.
  • The unified prompt representation is injected as queries into Dual-cross Merging Attention (DMA) blocks, enabling deep, bidirectional feature interaction between image and prompt features.
  • A Prompt-to-Pixel Contrastive Loss (P²CL) is introduced to refine candidate semantic features by maximizing similarity between image features and those similar to the user prompt, while minimizing similarity with dissimilar features.
  • The method avoids 2D sparse representations by replacing Disk/Distance Maps with 1D vectors, reducing computational and memory overhead.
  • The framework supports multi-prompt input (e.g., click + box + scribble) without architectural changes, enabling flexible user interaction.
  • The model is trained end-to-end with cross-entropy and P²CL, allowing iterative refinement of predictions based on user feedback.

Experimental results

Research questions

  • RQ1Can a unified, dense 1D representation effectively encode diverse visual prompts (clicks, boxes, scribbles) while preserving spatial intent and reducing computational cost?
  • RQ2Does deeper interaction between image and prompt features through attention mechanisms improve segmentation accuracy compared to simple concatenation?
  • RQ3Can a contrastive learning-based loss (P²CL) effectively refine image semantic features by aligning them with user prompt features and improving prediction consistency?
  • RQ4How does multi-prompt interaction (e.g., click + box + scribble) compare to single-prompt interaction in terms of interaction efficiency and segmentation accuracy?
  • RQ5To what extent does the proposed method generalize across diverse datasets with varying data distributions?

Key findings

  • VPUFormer achieves state-of-the-art performance on seven benchmark datasets, including Berkeley, DAVIS, and SBD, with consistent improvements across all settings.
  • With all three prompt types (click + box + scribble), the average number of interactions to reach 85% IoU is reduced to 1.10, and to 1.59 for 90% IoU, outperforming single-prompt baselines.
  • Using only clicks results in the lowest IoU (1.38 interactions to 85% IoU), while combining all prompt types reduces interaction count and improves accuracy.
  • The Prompt-to-Pixel Contrastive Loss (P²CL) significantly improves feature alignment, reducing deviation from ground truth and enhancing robustness to ambiguous inputs.
  • The unified 1D prompt representation via PuE reduces storage and computation costs compared to 2D map-based methods, while maintaining or improving performance.
  • The model generalizes well across diverse datasets, though performance drops on medical images without domain-specific fine-tuning, indicating a need for adaptation in open-set scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.