Skip to main content
QUICK REVIEW

[Paper Review] Explicit Visual Prompting for Universal Foreground Segmentations

Weihuang Liu, Xi Shen|arXiv (Cornell University)|May 29, 2023
Visual Attention and Saliency DetectionComputer Science4 citations
TL;DR

This paper proposes Explicit Visual Prompting (EVP), a unified framework for universal foreground segmentation that adapts frozen vision transformers via task-specific tuning of image patch embeddings and learned high-frequency components. By re-modulating these explicit visual features with only a few tunable parameters, EVP achieves state-of-the-art performance across 14 datasets in 5 foreground segmentation tasks, outperforming both full fine-tuning and other parameter-efficient methods.

ABSTRACT

Foreground segmentation is a fundamental problem in computer vision, which includes salient object detection, forgery detection, defocus blur detection, shadow detection, and camouflage object detection. Previous works have typically relied on domain-specific solutions to address accuracy and robustness issues in those applications. In this paper, we present a unified framework for a number of foreground segmentation tasks without any task-specific designs. We take inspiration from the widely-used pre-training and then prompt tuning protocols in NLP and propose a new visual prompting model, named Explicit Visual Prompting (EVP). Different from the previous visual prompting which is typically a dataset-level implicit embedding, our key insight is to enforce the tunable parameters focusing on the explicit visual content from each individual image, i.e., the features from frozen patch embeddings and high-frequency components. Our method freezes a pre-trained model and then learns task-specific knowledge using a few extra parameters. Despite introducing only a small number of tunable parameters, EVP achieves superior performance than full fine-tuning and other parameter-efficient fine-tuning methods. Experiments in fourteen datasets across five tasks show the proposed method outperforms other task-specific methods while being considerably simple. The proposed method demonstrates the scalability in different architectures, pre-trained weights, and tasks. The code is available at: https://github.com/NiFangBaAGe/Explicit-Visual-Prompt.

Motivation & Objective

  • To address the lack of a unified framework for diverse foreground segmentation tasks such as salient object detection, forgery detection, and camouflage object detection.
  • To reduce reliance on task-specific architectures by enabling a single model to generalize across multiple foreground segmentation tasks.
  • To improve parameter efficiency and model generalization by learning task-specific knowledge through explicit visual prompts rather than full fine-tuning.
  • To explore the effectiveness of explicit visual prompts derived from image embeddings and high-frequency components in the frequency domain.

Proposed method

  • The method freezes a pre-trained vision transformer backbone and introduces a small number of tunable parameters to adapt to downstream tasks.
  • It re-modulates features from frozen patch embeddings and learns high-frequency components via an adaptive mask in the frequency domain using a Fourier MLP.
  • A Frequency Enhanced Adaptor combines image embeddings and frequency features through a learnable mapping, enabling task-specific adaptation across all transformer blocks.
  • The scale factor $ r $ controls the number of tunable parameters, balancing model complexity and performance.
  • The approach is end-to-end trainable, with prompts learned directly from input image features and their spectral representations.
  • The method is compatible with various vision transformer architectures and pre-trained weights, demonstrating strong scalability.

Experimental results

Research questions

  • RQ1Can a unified framework achieve state-of-the-art performance across diverse foreground segmentation tasks without task-specific architecture design?
  • RQ2How effective is explicit visual prompting—based on image patch embeddings and high-frequency components—compared to implicit prompting or full fine-tuning?
  • RQ3What is the optimal configuration of tunable parameters and adaptation stages for maximizing performance with minimal parameter overhead?
  • RQ4Does end-to-end learning of frequency-domain prompts improve performance over fixed, hand-crafted masks used in prior versions?

Key findings

  • EVP achieves superior performance compared to full fine-tuning and other parameter-efficient fine-tuning methods across 14 datasets spanning 5 foreground segmentation tasks.
  • Removing either image embeddings or frequency features leads to a significant performance drop, confirming both components are essential for effective prompting.
  • Tuning all four stages of SegFormer-B4 yields the best performance, with Stage 3 contributing most, and no preference observed for top or bottom layers.
  • The optimal scale factor $ r = 16 $ balances performance and parameter efficiency, as further reducing $ r $ to 8 or 4 does not yield consistent improvements.
  • EVPv2, which learns frequency features adaptively via a Fourier MLP, outperforms EVPv1, which uses a fixed mask for high-frequency component extraction.
  • The method demonstrates strong scalability across different vision transformer architectures and pre-trained weights, maintaining high performance with minimal trainable parameters.

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.