Layer-Wise Feature Metric of Semantic-Pixel Matching for Few-Shot Learning
Preprint
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.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- PointSAM: Pointly-Supervised Segment Anything Model for Remote Sensing ImagesIEEE Transactions on Geoscience and Remote Sensing, 2025
- KLSANet: Key local semantic alignment Network for few-shot image classificationNeural Networks, 2024
- SLTRN: Sample-level transformer-based relation network for few-shot classificationNeural Networks, 2024
- Mutual Correlation Network for few-shot learningNeural Networks, 2024
- Global- and local-aware feature augmentation with semantic orthogonality for few-shot image classificationPattern Recognition, 2023
- Quaternion-Valued Correlation Learning for Few-Shot Semantic SegmentationIEEE Transactions on Circuits and Systems for Video Technology, 2022
- Revisiting metric learning for few-shot image classificationNeurocomputing, 2020
- Multi-Level Semantic Feature Augmentation for One-Shot LearningIEEE Transactions on Image Processing, 2019
- Learning Deep Representations of Fine-Grained Visual Descriptions2016
- The Hungarian method for the assignment problemNaval Research Logistics Quarterly, 1955