Class-Aware Patch Embedding Adaptation for Few-Shot Image Classification

Fusheng Hao, Fengxiang He, Liu Liu, Fuxiang Wu, Dacheng Tao +1 more
2/14/2026

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

"A picture is worth a thousand words", significantly beyond mere a categorization. Accompanied by that, many patches of the image could have completely irrelevant meanings with the categorization if they were independently observed. This could significantly reduce the efficiency of a large family of few-shot learning algorithms, which have limited data and highly rely on the comparison of image patches. To address this issue, we propose a Class-aware Patch Embedding Adaptation (CPEA) method to learn "class-aware embeddings" of the image patches. The key idea of CPEA is to integrate patch embeddings with class-aware embeddings to make them class-relevant. Furthermore, we define a dense score matrix between class-relevant patch embeddings across images, based on which the degree of similarity between paired images is quantified. Visualization results show that CPEA concentrates patch embeddings by class, thus making them class-relevant. Extensive experiments on four benchmark datasets, miniImageNet, tieredImageNet, CIFAR-FS, and FC-100, indicate that our CPEA significantly outperforms the existing state-of-the-art methods. The source code is available at https://github.com/FushengHao/CPEA.

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{hao2026classaware,
  title  = {Class-Aware Patch Embedding Adaptation for Few-Shot Image Classification},
  author = {Fusheng Hao and Fengxiang He and Liu Liu and Fuxiang Wu and Dacheng Tao and Jun Cheng},
  year   = {2026},
  doi    = {10.1109/ICCV51070.2023.01733},
  url    = {https://doi.org/10.1109/ICCV51070.2023.01733},
  journal = {ICCV 2023 2023}
}

Discussion