Layer-Wise Feature Metric of Semantic-Pixel Matching for Few-Shot Learning

Hao Tang, Junhao Lu, Guoheng Huang, Ming Li, Xuhang Chen +3 more
11/10/2024
cs.CVcs.AI

Official code: Halo2Tang/Code-for-LWFM-SPM (3 stars, last commit 2024-11-13).

Abstract

In Few-Shot Learning (FSL), traditional metric-based approaches often rely on global metrics to compute similarity. However, in natural scenes, the spatial arrangement of key instances is often inconsistent across images. This spatial misalignment can result in mismatched semantic pixels, leading to inaccurate similarity measurements. To address this issue, we propose a novel method called the Layer-Wise Features Metric of Semantic-Pixel Matching (LWFM-SPM) to make finer comparisons. Our method enhances model performance through two key modules: (1) the Layer-Wise Embedding (LWE) Module, which refines the cross-correlation of image pairs to generate well-focused feature maps for each layer; (2)the Semantic-Pixel Matching (SPM) Module, which aligns critical pixels based on semantic embeddings using an assignment algorithm. We conducted extensive experiments to evaluate our method on four widely used few-shot classification benchmarks: miniImageNet, tieredImageNet, CUB-200-2011, and CIFAR-FS. The results indicate that LWFM-SPM achieves competitive performance across these benchmarks. Our code will be publicly available on https://github.com/Halo2Tang/Code-for-LWFM-SPM.

View on arXivView PDF

Code Implementations(1)

30Shell, PythonNov 10, 20241 years ago

Similar Papers

Cite this paper

@article{tang2024layerwise,
  title  = {Layer-Wise Feature Metric of Semantic-Pixel Matching for Few-Shot Learning},
  author = {Hao Tang and Junhao Lu and Guoheng Huang and Ming Li and Xuhang Chen and Guo Zhong and Zhengguang Tan and Zinuo Li},
  year   = {2024},
  eprint = {2411.06363},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.06363v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.06363.svg)](https://codeofpaper.com/paper/2411.06363)

Discussion