Skip to main content
QUICK REVIEW

[Paper Review] Prompt-Matched Semantic Segmentation

Lingbo Liu, Jianlong Chang|arXiv (Cornell University)|Aug 22, 2022
Advanced Neural Network ApplicationsComputer Science12 citations
TL;DR

This paper proposes a stage-wise prompt-matched framework for parameter-efficient fine-tuning of frozen visual foundation models in semantic segmentation. By inserting a lightweight Semantic-aware Prompt Matcher (SPM) between stages of CNN and Transformer backbones, the method progressively learns effective visual prompts using intermediate semantic maps, achieving state-of-the-art performance with only 1.76M trainable parameters while outperforming full-tuning and prior prompt-tuning methods.

ABSTRACT

The objective of this work is to explore how to effectively and efficiently adapt pre-trained visual foundation models to various downstream tasks of semantic segmentation. Previous methods usually fine-tuned the entire networks for each specific dataset, which will be burdensome to store massive parameters of these networks. A few recent works attempted to insert some extra trainable parameters into the frozen networks to learn visual prompts for parameter-efficient tuning. However, these works showed poor generality as they were designed specifically for Transformers. Moreover, using limited information in these schemes, they exhibited a poor capacity to learn beneficial prompts. To alleviate these issues, we propose a novel Stage-wise Prompt-Matched Framework for generic and effective visual prompt tuning. Specifically, to ensure generality, we divide the pre-trained backbone with frozen parameters into multiple stages and perform prompt learning between different stages, which makes the proposed scheme applicable to various architectures of CNN and Transformer. For effective tuning, a lightweight Semantic-aware Prompt Matcher (SPM) is designed to progressively learn reasonable prompts with a recurrent mechanism, guided by the rich information of interim semantic maps. Working as deep matched filter of representation learning, the proposed SPM can well transform the output of the previous stage into a desirable input for the next stage, thus achieving the better matching/stimulating for the pre-trained knowledge. Extensive experiments on four benchmarks demonstrate that the proposed scheme can achieve a promising trade-off between parameter efficiency and performance effectiveness. Our code and models will be released.

Motivation & Objective

  • To address the inefficiency and poor generalization of existing prompt-tuning methods that are limited to Transformers and lack parameter efficiency.
  • To enable effective and generic fine-tuning of frozen CNN and Transformer backbones for semantic segmentation tasks.
  • To improve prompt learning by leveraging rich intermediate semantic representations instead of relying solely on final classification loss.
  • To design a parameter-efficient tuning framework applicable to high-speed, stage-embedded inference devices.
  • To achieve strong performance with minimal trainable parameters while maintaining compatibility across diverse architectures.

Proposed method

  • The method partitions a frozen backbone into multiple stages and inserts a lightweight Semantic-aware Prompt Matcher (SPM) between adjacent stages for prompt tuning.
  • The SPM uses a recurrent mechanism to progressively refine visual prompts, guided by intermediate semantic maps from the previous stage.
  • The SPM fuses feature maps and semantic probability vectors through concatenation, 1×1 convolutions, and a PDC module to generate refined prompts.
  • The SPM acts as a deep matched filter, transforming the output of one stage into an optimal input for the next, enhancing knowledge transfer.
  • The framework is applied to both CNNs (e.g., ResNet) and Transformers (e.g., ViT), enabling generic applicability across architectures.
  • The SPM is trained end-to-end using only the segmentation head loss, with no structural modifications to the backbone.

Experimental results

Research questions

  • RQ1Can a prompt-tuning framework be made generic across both CNN and Transformer architectures without architectural modifications?
  • RQ2Can intermediate semantic maps be effectively leveraged to improve prompt learning beyond final classification loss?
  • RQ3Can a stage-wise, recurrent prompt learning mechanism outperform existing prompt-tuning methods in both performance and parameter efficiency?
  • RQ4Does the proposed method maintain strong performance while significantly reducing trainable parameters compared to full-tuning and head-tuning?
  • RQ5Can the framework be applied effectively to diverse downstream tasks such as natural, satellite, and medical image segmentation?

Key findings

  • The proposed method achieves a mean Intersection over Union (mIoU) of 45.05 on the Cityscapes benchmark, surpassing full-tuning (47.53) and other prompt-tuning methods.
  • On the COCO-Stuff dataset, the method achieves 44.18 mIoU with only 1.76M trainable parameters, demonstrating high parameter efficiency.
  • In image recognition tasks, the method achieves 86.62% top-1 accuracy on CIFAR-100 with only 1.00M trainable parameters, outperforming Full-Tuning (85.90%) and AdaptFormer (85.90%).
  • The method reduces the number of trainable parameters to just 1.16% of Full-Tuning on average, while maintaining or exceeding performance on all benchmarks.
  • The SPM framework generalizes well across architectures, achieving strong results on natural, satellite, and medical image segmentation datasets.
  • The ablation study confirms that using intermediate semantic maps significantly improves prompt quality and downstream performance compared to black-box optimization.

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.