Skip to main content
QUICK REVIEW

[논문 리뷰] Semantic Prompt for Few-Shot Image Recognition

Wentao Chen, Chenyang Si|arXiv (Cornell University)|2023. 03. 24.
Domain Adaptation and Few-Shot LearningComputer Science인용 수 9
한 줄 요약

의미 프롬프트(SP)를 도입하여 클래스 이름의 텍스트 프롬프트를 사용해 소수 샷 이미지 인식에서 시각 특징 추출기를 적응적으로 조정하고 네 가지 벤치마크에서 베이스라인 대비 이득을 달성한다.

ABSTRACT

Few-shot learning is a challenging problem since only a few examples are provided to recognize a new class. Several recent studies exploit additional semantic information, e.g. text embeddings of class names, to address the issue of rare samples through combining semantic prototypes with visual prototypes. However, these methods still suffer from the spurious visual features learned from the rare support samples, resulting in limited benefits. In this paper, we propose a novel Semantic Prompt (SP) approach for few-shot learning. Instead of the naive exploitation of semantic information for remedying classifiers, we explore leveraging semantic information as prompts to tune the visual feature extraction network adaptively. Specifically, we design two complementary mechanisms to insert semantic prompts into the feature extractor: one is to enable the interaction between semantic prompts and patch embeddings along the spatial dimension via self-attention, another is to supplement visual features with the transformed semantic prompts along the channel dimension. By combining these two mechanisms, the feature extractor presents a better ability to attend to the class-specific features and obtains more generalized image representations with merely a few support samples. Through extensive experiments on four datasets, the proposed approach achieves promising results, improving the 1-shot learning accuracy by 3.67% on average.

연구 동기 및 목표

  • 소수 샷 학습에서 특징 추출을 개선하기 위해 의미 정보를 활용하는 동기를 제시한다.
  • 공간 및 채널 차원을 따라 시각적 특징 추출기에 의미 프롬프트를 주입하는 방법을 개발한다.
  • 제한된 지원 데이터로 새로운 클래스에 대한 일반화가 의미 프롬프트로 향상되는 것을 보인다.

제안 방법

  • 선형 헤드를 가진 비주얼 트랜스포머 기반 특징 추출기를 기본 클래스에서 사전 학습한다.
  • 사전 학습된 언어/텍스트 인코더를 사용하여 클래스 이름에서 의미 특징을 추출한다(예: CLIP, SBERT, GloVe).
  • 의미 프롬프트를 두 가지 메커니즘으로 특징 추출기에 통합한다: 의미 토큰으로 패치 시퀀스를 확장하고 Transformer 자기 주의로 처리하는 공간 상호작용(SI); 시각 맥락과 의미 프롬프트를 연결하고 MLP 기반 베타 벡터로 특징을 조절하는 채널 상호작용(CI).
  • 의미 프롬프트로 조건화된 특징을 사용해 클래스 프로토타입을 계산하고, 질의 특징과 프로토타입 간 코사인 유사도를 최대화하는 메타러닝 목표로 최적화한다.
  • CLIP 기반 프롬프트를 기본 텍스트 인코더로 사용하여 1샷 및 5샷 설정으로 네 가지 데이터셋(mini ImageNet, tiered ImageNet, CIFAR-FS, FC100)에서 평가한다.

실험 결과

연구 질문

  • RQ1클래스 이름에서 얻은 의미 정보(프롬프트로 사용)가 Few-Shot 학습에서 시각 특징의 판별 품질을 향상시킬 수 있는가?
  • RQ2의미 프롬프트와의 공간적 및 채널 leve 상호작용이 서로를 보완해 새로운 클래스에 대한 일반화를 향상시키는가?
  • RQ3프롬프트 배치 계층과 백본 선택이 few-shot 성능에 미치는 영향은 무엇인가?
  • RQ4다른 텍스트 인코더(CLIP, SBERT, GloVe)가 1샷 및 5샷 구간에서 SP 성능에 어떤 영향을 미치는가?

주요 결과

  • SP는 4개 벤치마크에서 1샷 정확도를 평균 3.67% 향상시킨다.
  • 공간 상호작용(SI)과 채널 상호작용(CI) 모두 상당한 이득에 기여하며, 이 둘을 결합하면 최상의 결과가 나온다.
  • 1샷 설정에서 CLIP 기반 텍스트 프롬프트가 일반적으로 SBERT 및 GloVe 프롬프트보다 우수하다.
  • Visformer를 백본으로 SP를 사용할 때 mini ImageNet 및 tiered ImageNet에서 여러 베이스라인 및 이전 의미적 방법을 상당히 능가한다.
  • 프롬프트 배치를 더 높은 계층에서 하면 더 나은 결과를 얻으며; layer3-2 배치가 데이터세트 전반에서 효과적이다.
  • 패치 간 특징의 평균 풀링(프롬프트 위치만이 아닌)이 성능 안정성에 중요하다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.