Spectral Prompt Tuning:Unveiling Unseen Classes for Zero-Shot Semantic Segmentation
Wenhao Xu, Rongtao Xu, Changwei Wang, Shibiao Xu, Li Guo, Man Zhang, Xiaopeng Zhang
TL;DR
SPT-SEG presents a one-stage CLIP-based framework for zero-shot semantic segmentation that explicitly leverages spectral information. It introduces Spectral Prompt Tuning in the shallow visual layers to inject structure-aware cues and a Spectral Guided Decode Layer that combines high- and low-frequency features to sharpen pixel-level predictions for unseen classes. Across VOC 2012 and COCO-Stuff 164K, SPT-SEG consistently outperforms prior methods, with marked gains in unseen-class IoU and favorable ablations showing the importance of early-layer prompts and a multi-layer frequency-guided decoder. The approach offers a practical, efficient solution for dense zero-shot segmentation, reducing reliance on proposal generation while enhancing cross-modal alignment between text and pixels.
Abstract
Recently, CLIP has found practical utility in the domain of pixel-level zero-shot segmentation tasks. The present landscape features two-stage methodologies beset by issues such as intricate pipelines and elevated computational costs. While current one-stage approaches alleviate these concerns and incorporate Visual Prompt Training (VPT) to uphold CLIP's generalization capacity, they still fall short in fully harnessing CLIP's potential for pixel-level unseen class demarcation and precise pixel predictions. To further stimulate CLIP's zero-shot dense prediction capability, we propose SPT-SEG, a one-stage approach that improves CLIP's adaptability from image to pixel. Specifically, we initially introduce Spectral Prompt Tuning (SPT), incorporating spectral prompts into the CLIP visual encoder's shallow layers to capture structural intricacies of images, thereby enhancing comprehension of unseen classes. Subsequently, we introduce the Spectral Guided Decoder (SGD), utilizing both high and low-frequency information to steer the network's spatial focus towards more prominent classification features, enabling precise pixel-level prediction outcomes. Through extensive experiments on two public datasets, we demonstrate the superiority of our method over state-of-the-art approaches, performing well across all classes and particularly excelling in handling unseen classes. Code is available at:https://github.com/clearxu/SPT.
