Skip to main content
QUICK REVIEW

[Paper Review] Side Adapter Network for Open-Vocabulary Semantic Segmentation

Mengde Xu, Zheng Zhang|arXiv (Cornell University)|Feb 23, 2023
Multimodal Machine Learning ApplicationsComputer Science14 citations
TL;DR

SAN attaches a lightweight side network to a frozen CLIP model to jointly generate mask proposals and CLIP-aware attention biases, enabling end-to-end open-vocabulary semantic segmentation with strong efficiency and accuracy gains.

ABSTRACT

This paper presents a new framework for open-vocabulary semantic segmentation with the pre-trained vision-language model, named Side Adapter Network (SAN). Our approach models the semantic segmentation task as a region recognition problem. A side network is attached to a frozen CLIP model with two branches: one for predicting mask proposals, and the other for predicting attention bias which is applied in the CLIP model to recognize the class of masks. This decoupled design has the benefit CLIP in recognizing the class of mask proposals. Since the attached side network can reuse CLIP features, it can be very light. In addition, the entire network can be trained end-to-end, allowing the side network to be adapted to the frozen CLIP model, which makes the predicted mask proposals CLIP-aware. Our approach is fast, accurate, and only adds a few additional trainable parameters. We evaluate our approach on multiple semantic segmentation benchmarks. Our method significantly outperforms other counterparts, with up to 18 times fewer trainable parameters and 19 times faster inference speed. We hope our approach will serve as a solid baseline and help ease future research in open-vocabulary semantic segmentation. The code will be available at https://github.com/MendelXu/SAN.

Motivation & Objective

  • Motivate open-vocabulary semantic segmentation using vision-language pre-training (CLIP).
  • Introduce a lightweight side network that remains frozen CLIP-based and end-to-end trainable.
  • Decouple mask proposal generation from CLIP-based recognition via attention biases.
  • Achieve CLIP-aware mask predictions with minimal additional parameters and computation.
  • Demonstrate state-of-the-art performance on multiple benchmarks with efficiency advantages.

Proposed method

  • Attach a side adapter network (SAN) to a frozen CLIP model with two branches: mask proposal generation and attention-bias prediction for mask recognition.
  • Use asymmetric input resolutions: low-res CLIP features for CLIP-based recognition and high-res SAN inputs for mask proposals.
  • Fuse visual tokens from CLIP into SAN and apply a decoupled head to generate mask proposals and recognition biases.
  • Compute segmentation by S = M P^T, where M are mask proposals and P are class scores from attention biases.
  • Train end-to-end with losses on mask prediction (dice and BCE) and mask classification (cross-entropy).
  • Optionally fine-tune CLIP position embeddings and employ prompt engineering to improve zero-shot recognition.
Figure 2 : Overview of our SAN . The red dotted lines indicate the gradient flow during training. In our framework, the frozen CLIP model still serves as a classifier, and the side adapter network generates mask proposals and attention bias to guide the deeper layers of the CLIP model to predict pro
Figure 2 : Overview of our SAN . The red dotted lines indicate the gradient flow during training. In our framework, the frozen CLIP model still serves as a classifier, and the side adapter network generates mask proposals and attention bias to guide the deeper layers of the CLIP model to predict pro

Experimental results

Research questions

  • RQ1How can open-vocabulary semantic segmentation be achieved without fine-tuning large CLIP models on segmentation data?
  • RQ2Can a lightweight side network leverage frozen CLIP features to produce CLIP-aware mask proposals and recognition biases in an end-to-end manner?
  • RQ3What is the impact of feature fusion depth, input resolution, and decoupled heads on performance and efficiency?
  • RQ4How does SAN compare to two-stage or fully-tuned CLIP-based approaches in accuracy and efficiency across benchmarks?
  • RQ5What is the effect of prompt engineering on open-vocabulary segmentation performance?

Key findings

  • SAN achieves state-of-the-art mIoU on ADE-847 (12.4), PC-459 (15.7), ADE-150 (32.1), PC-59 (57.7), and VOC (94.6) with ViT-L/14 CLIP, outperforming prior methods.
  • Using SAN with ViT-B/16 yields 10.1 mIoU (ADE-847), 12.6 (PC-459), 27.5 (ADE-150), 53.8 (PC-59), and 94.0 (VOC) without full CLIP fine-tuning.
  • Ensembling SAN with a COCO-tuned model further improves results to 13.7 (ADE-847), 17.1 (PC-459), 33.3 (ADE-150), 60.2 (PC-59), 95.5 (VOC).
  • SAN requires only 8.4M trainable parameters and 64.3 GFLOPs, substantially fewer than competing methods.
  • Ablations show deeper CLIP feature fusion and decoupled heads contribute to performance gains; end-to-end CLIP-aware mask prediction is crucial for strong results.
  • Prompt engineering provides measurable gains (around 1.2 mIoU on ADE-150 and ADE-847) when used.
Figure 3 : The architecture of the side adapter network. The side adapter network projects the input image to visual tokens and appends query tokens to them at the beginning. Further, it fuses the immediate features of the CLIP model in the middle of transformer layers. The query and visual features
Figure 3 : The architecture of the side adapter network. The side adapter network projects the input image to visual tokens and appends query tokens to them at the beginning. Further, it fuses the immediate features of the CLIP model in the middle of transformer layers. The query and visual features

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.