Skip to main content
QUICK REVIEW

[Paper Review] SPTNet: An Efficient Alternative Framework for Generalized Category Discovery with Spatial Prompt Tuning

Hongjun Wang, Sagar Vaze|arXiv (Cornell University)|Mar 20, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

SPTNet proposes a two-stage iterative framework that alternately optimizes model parameters and spatial prompts to improve Generalized Category Discovery (GCD), using pixel-level spatial prompt tuning (SPT) to focus on object parts for better generalization. It achieves 61.4% average accuracy on SSB, surpassing prior SOTA by ~10%, with only 0.117% additional parameters over ViT-Base.

ABSTRACT

Generalized Category Discovery (GCD) aims to classify unlabelled images from both `seen' and `unseen' classes by transferring knowledge from a set of labelled `seen' class images. A key theme in existing GCD approaches is adapting large-scale pre-trained models for the GCD task. An alternate perspective, however, is to adapt the data representation itself for better alignment with the pre-trained model. As such, in this paper, we introduce a two-stage adaptation approach termed SPTNet, which iteratively optimizes model parameters (i.e., model-finetuning) and data parameters (i.e., prompt learning). Furthermore, we propose a novel spatial prompt tuning method (SPT) which considers the spatial property of image data, enabling the method to better focus on object parts, which can transfer between seen and unseen classes. We thoroughly evaluate our SPTNet on standard benchmarks and demonstrate that our method outperforms existing GCD methods. Notably, we find our method achieves an average accuracy of 61.4% on the SSB, surpassing prior state-of-the-art methods by approximately 10%. The improvement is particularly remarkable as our method yields extra parameters amounting to only 0.117% of those in the backbone architecture. Project page: https://visual-ai.github.io/sptnet.

Motivation & Objective

  • To address the limitations of existing GCD methods that rely solely on fine-tuning large pre-trained models, which can lead to overfitting and high computational cost.
  • To improve alignment between pre-trained models and target data by adapting data representations through learnable prompts, rather than only optimizing model weights.
  • To enable effective knowledge transfer between seen and unseen categories by focusing on discriminative object parts through spatially localized prompts.
  • To develop an efficient, parameter-light method that maintains high performance without extensive fine-tuning or architectural changes.

Proposed method

  • SPTNet employs a two-stage iterative training strategy: first, the backbone model is frozen and only spatial prompts are optimized; then, prompts are fixed and the model is fine-tuned using a contrastive loss on augmented image pairs (original + prompted).
  • Spatial Prompt Tuning (SPT) divides the input image into patches and attaches learnable prompts directly in pixel space, enabling localized, object-part-focused attention.
  • The method treats the learned prompts as task-specific data augmentations that improve feature alignment with the pre-trained vision transformer backbone.
  • The alternating optimization process mimics the EM algorithm, iteratively refining both prompt and model parameters to improve generalization in the open-world GCD setting.
  • SPT uses independent prompts per spatial patch, allowing the model to attend selectively to salient object regions rather than global image features or hidden token spaces.
  • The framework is evaluated using standard GCD benchmarks, including both generic (CIFAR-10/100, ImageNet-100) and fine-grained datasets (CUB, Stanford Cars, FGVC-Aircraft, Herbarium19).

Experimental results

Research questions

  • RQ1Can alternating optimization between model fine-tuning and prompt learning improve performance in Generalized Category Discovery?
  • RQ2Does spatially localized prompt tuning, focused on object parts, enhance knowledge transfer between seen and unseen categories?
  • RQ3Can a lightweight prompt mechanism achieve state-of-the-art performance with minimal parameter overhead?
  • RQ4How does spatial prompt tuning compare to global or hidden-space prompt methods in terms of representation quality and attention focus?

Key findings

  • SPTNet achieves 61.4% average accuracy on the SSB benchmark, representing a ~10% relative improvement over prior state-of-the-art methods.
  • The method introduces only 0.117% additional parameters compared to the ViT-Base backbone, demonstrating high parameter efficiency.
  • SPTNet outperforms SimGCD and its variants, including SimGCD+VPT, in all evaluated benchmarks, with the largest gains on unseen classes.
  • t-SNE visualization confirms that SPTNet produces more discriminative and compact feature clusters than baseline methods, especially for unseen classes.
  • Attention maps show that SPTNet promotes more diverse and foreground-focused attention across multiple heads, unlike baseline methods that often attend to background or redundant regions.
  • Ablation studies confirm that both the alternating training strategy and spatial prompt design are essential, as removing either leads to performance degradation.

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.