Skip to main content
QUICK REVIEW

[Paper Review] S-Prompts Learning with Pre-trained Transformers: An Occam's Razor for Domain Incremental Learning

Yabin Wang, Zhiwu Huang|arXiv (Cornell University)|Jul 26, 2022
Domain Adaptation and Few-Shot LearningComputer Science60 citations
TL;DR

S-Prompts introduces independent domain-specific prompts with pre-trained transformers to tackle exemplar-free domain incremental learning, achieving strong domain separation and reduced forgetting, with two implementations: image-based prompts (ViT) and language-image prompts (CLIP).

ABSTRACT

State-of-the-art deep neural networks are still struggling to address the catastrophic forgetting problem in continual learning. In this paper, we propose one simple paradigm (named as S-Prompting) and two concrete approaches to highly reduce the forgetting degree in one of the most typical continual learning scenarios, i.e., domain increment learning (DIL). The key idea of the paradigm is to learn prompts independently across domains with pre-trained transformers, avoiding the use of exemplars that commonly appear in conventional methods. This results in a win-win game where the prompting can achieve the best for each domain. The independent prompting across domains only requests one single cross-entropy loss for training and one simple K-NN operation as a domain identifier for inference. The learning paradigm derives an image prompt learning approach and a novel language-image prompt learning approach. Owning an excellent scalability (0.03% parameter increase per domain), the best of our approaches achieves a remarkable relative improvement (an average of about 30%) over the best of the state-of-the-art exemplar-free methods for three standard DIL tasks, and even surpasses the best of them relatively by about 6% in average when they use exemplars. Source code is available at \url{https://github.com/iamwangyabin/S-Prompts}.

Motivation & Objective

  • Address catastrophic forgetting in domain-incremental learning (DIL) without storing exemplars.
  • Propose a simple paradigm (S-Prompts) that learns prompts independently per domain to maximize domain-specific performance.
  • Demonstrate two implementations (S-iPrompts on ViT and S-liPrompts on CLIP) with scalable prompt pools.

Proposed method

  • Fix a pre-trained transformer and learn domain-specific prompts independently per domain into a growing prompt pool.
  • Use a simple cross-entropy loss for training the domain prompts and a K-Means/K-NN domain identifier during inference.
  • For S-iPrompts, attach an independent image prompt to image tokens and train a per-domain FC classifier.
  • For S-liPrompts, attach joint image and language prompts; use a CLIP-style text encoder with per-domain language prompts and a domain-specific classifier based on CLIP.

Experimental results

Research questions

  • RQ1Can exemplar-free DIL achieve competitive or superior performance by independently prompting per domain instead of shared prompting?
  • RQ2How do image-only and language-image prompting strategies compare in terms of accuracy, forgetting, and scalability across multiple domains?
  • RQ3Does a simple domain identifier (K-Means/K-NN) suffice for effective domain routing during inference?
  • RQ4What is the memory and computational footprint of S-Prompts as the number of domains grows?
  • RQ5How well do S-Prompts generalize to unseen domains or out-of-domain data?

Key findings

  • S-Prompts significantly outperform exemplar-free baselines on three standard DIL benchmarks (average ~30% relative improvement in forward accuracy).
  • S-Prompts exhibit substantially reduced forgetting compared with competing exemplar-free methods (average forgetting improvements ~13–41 points).
  • S-liPrompts with CLIP-based prompts can surpass even exemplar-based methods on DomainNet and show strong generalization to unseen domains.
  • The language-image prompting scheme in CLIP (S-liPrompts) achieves scalable domain growth with only ~0.03% parameter increase per domain.
  • S-Prompts maintain competitive or better performance even with imperfect domain identification at inference.

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.