Skip to main navigation Skip to search Skip to main content

Category Alignment Mechanism for Few-Shot Image Classification

  • Zhenyu Zhou
  • , Lei Luo
  • , Tianrui Liu*
  • , Qing Liao*
  • , Xinwang Liu*
  • , En Zhu*
  • *Corresponding author for this work
  • National University of Defense Technology
  • School of Computer Science and Technology, Harbin Institute of Technology

Research output: Contribution to journalArticlepeer-review

Abstract

While humans can excel at image classification tasks by comparing a few images, existing metric-based few-shot classification methods are still not well adapted to novel tasks. Performance declines rapidly when encountering new patterns, as feature embeddings cannot effectively encode discriminative properties. Moreover, existing matching methods inadequately utilize support set samples, focusing only on comparing query samples to category prototypes without exploiting contrastive relationships across categories for discriminative features. In this work, we propose a method where query samples select their most category-representative features for matching, making feature embeddings adaptable and category-related. We introduce a category alignment mechanism (CAM) to align query image features with different categories. CAM ensures features chosen for matching are distinct and strongly correlated to intra- and inter-contrastive relationships within categories, making extracted features highly related to their respective categories. CAM is parameter-free, requires no extra training to adapt to new tasks, and adjusts features for matching when task categories change. We also implement a cross-validation-based feature selection technique for support samples, generating more discriminative category prototypes. We implement two versions of inductive and transductive inference and conduct extensive experiments on six datasets to demonstrate the effectiveness of our algorithm. The results indicate that our method consistently yields performance improvements on benchmark tasks and surpasses the current state-of-the-art methods.

Original languageEnglish
Pages (from-to)7725-7738
Number of pages14
JournalIEEE Transactions on Neural Networks and Learning Systems
Volume36
Issue number4
DOIs
StatePublished - 2025
Externally publishedYes

Keywords

  • Category alignment mechanism (CAM)
  • feature selection
  • few-shot classification
  • metric-based

Fingerprint

Dive into the research topics of 'Category Alignment Mechanism for Few-Shot Image Classification'. Together they form a unique fingerprint.

Cite this