Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2025 Sep 29;15:33543. doi: 10.1038/s41598-025-18329-8

Multi-stage fusion of local and global features for few-shot image classification

Yi Gu 1, Zhangyan Yao 2, Sai Yang 3,✉
PMCID: PMC12480445  PMID: 41023042

Abstract

Few-shot classification is a very challenging task of computer vision. Recently, different from meta-learning, transfer-learning foregoing the episodic training strategy has gradually become popular in this community. Under this pipeline, how to learn a high-quality feature representation is vital for winning good performance. However, current works mainly build the classification model upon convolutional neural networks, which cannot extract discriminative features. To address the above problem, we propose exploring the non-local networks to construct classification model, which is trained by the joint learning of supervised and self-supervised tasks to obtain global invariant features. Further, we propose a few-shot classification algorithm using multi-stage fusion of local and global features, in which the fusion of features happens simultaneously during two stages of transfer-learning. The stage of pre-training implements parallel mechanism, in which the local feature network and global feature network mutually learn from each other, while the stage of few-shot testing implements serial mechanism through feature concatenation. We conducted extensive evaluations on multiple benchmark datasets to demonstrate the effectiveness of our method. Ablation studies have shown the effectiveness of the multi-stage feature fusion, and the comparison results have shown that our method can achieve better performance compared with other state-of-the-art methods.

Subject terms: Engineering, Mathematics and computing

Introduction

In recent years, the performance of image classification models based on deep convolutional neural networks (CNNs) has been constantly refreshed, however, these impressive achievements largely depend on the use of large-scale labelled data to optimize the representation parameters in the models. Manual labelling of large amounts of image data is labor-intensive and sometimes impossible to collect, which severely limits the practical application of CNNs in social and productive fields. In contrast, the human visual system can quickly identify an object and generalize it to other unseen observation samples by observing only a few example images. Inspired by this powerful learning capability, few-shot image classification1,2 has now become very important in computer vision and artificial intelligence.

The few-shot image classification task involves making classification decisions for query samples in novel categories using only a few support sets per class. Due to the limited supervised information, it is often necessary to learn to obtain a priori knowledge with the help of base class samples as an additional auxiliary dataset. Meta-learning-based3–5 methods quickly adapt to the classification task of unknown classes with little supervised information by constructing a series of few-shot image classification tasks in the base class dataset, and then employing segmental training to acquire the meta-knowledge embedded in these tasks. Few-shot image classification methods based on transfer learning usually adopt a two-stage learning approach, i.e., pre-training on the base class dataset and testing on the unknown class dataset. The key element of those methods is extracting good features for the unknown category6. Compared with data from unknown categories, the base-class dataset has sufficient labeled data. In most cases, the pretraining process treats it as a supervised learning task and optimizes the network parameters using the classic Softmax loss function. Hence, enhancing model generalization has emerged as a key challenge in few-shot image classification.. Unlike supervised learning tasks, self-supervised learning7,8 constructs auxiliary tasks to directly learn useful feature representations for downstream tasks from unlabeled data. Recent works9,10 introduce self-supervised tasks into few-shot image classification research, enabling the feature extractor to be invariant to certain variations in images through joint supervised and self-supervised learning during the pre-training step, thereby enhancing the generalization capability of the feature representations.

However,current few-shot image classification models are built upon CNNs whose receptive-field size limits them to extracting only local features from the input image. As shown in Fig. 1(a), when local changes such as occlusion, illumination, and pose occur in the content of the image, if local features are used, the bird can still be recognized even after its torso has been occluded; due to the occlusion of the bird’s torso by the tree leaves, it may be misclassified as a tree leaf when global features are used. This shows that local features have good robustness to local changes within the image. As shown in Fig. 1(b), when there are global changes in shape, color, texture, etc., if only local features are used, due to the fact that the local black region of the bird’s torso and the local black region of the tropical fish’s ventral fins are very close to each other, it may happen that the two are misclassified as being of the same kind; whereas, due to the difference in the overall shapes of the bird and the tropical fish, the global features are able to correctly differentiate between the two. This shows that global features have good discriminative properties. Leveraging the advantages of global features, we introduce non-local networks11 into few-shot image classification to construct a global feature network, and use supervised and self-supervised joint learning to pre-train the model, yielding global invariant features. The algorithm constructs local and global feature networks separately and fuses them in the stage of pre-training and stage of testing. In order to reduce the computational effort in the pre-training stage, we use a parallel fusion method with mutual learning in this stage to minimize the Kullback-Leibler (KL) divergence between the two output probability distributions.The KL divergence measures the disparity between two probability distributions. In our mutual learning framework, we employ KL divergence to quantify the divergence among the output distributions of different networks. Amari12 demonstrates that minimizing the KL divergence between output distributions can effectively enhance the model’s representational capacity, and the resulting representation consistency is more readily transferable to other related tasks. And the serial fusion method of splicing is used in the testing stage, which can map the samples to the high-dimensional feature space and increase the linear divisibility to improve the classification performance.

Fig. 1.

Fig. 1

Illustration of our motivation.

The contributions of our work can be summarized as follows:

  1. We propose a few-shot image classification model based on global features by adding a non-local computational module to the backbone neural network and pre-train the model using supervised and self-supervised joint learning. And for the first time, the non-local network is introduced to the few-shot image classification, and the established global network model can enable the feature extractor to have global invariance property, which improves the discriminative property of the classification model.

  2. A few-shot image classification method based on multi-stage fusion of local and global features is proposed, and the fusion of local and global features in the pre-training stage is a parallel fusion method, which is realized through the interactive learning of information between the networks. The fusion of local and global features in the testing stage is a feature serial fusion method, which is realized by splicing features extracted from the local and global networks. We firstly implement multi-stage fusion of local and global features under the transfer learning paradigm, and the method can make full use of the complementary nature of local and global features, which makes the classification model robust and discriminative at the same time, and thus can effectively improve the performance of few-shot image classification.

  3. The proposed method is experimentally validated on several datasets for few-shot image classification, and the comparison results with SOTAs show the effectiveness of the proposed method.

Related work

In recent years, few-shot image classification has attracted widespread attention. Based on the differences in the learning paradigms employed, these methods can generally be divided into two major categories: those based on meta-learning and those based on transfer learning.

Meta-learning based methods

Meta-learning simulates a real few-shot image classification testing environment through a series of fragments and accumulates meta-knowledge in several randomly sampled subtasks to quickly identify unknown classes. Depending on the type of meta-knowledge, meta-learning is further divided into optimization-based methods and metric-based methods. The former employs an explicit, two-tier optimization process to learn the key elements of the optimizer, allowing for rapid adaptation to new unseen tasks. For example, MAML13 obtained the optimal initialization parameters of the model through meta-training, so that the model can adapt to new tasks after a few gradient updates. In addition to initialization parameters, Meta-SGD14 and Meta-Learner LSTM15 learned the learning rate and update rules of the optimizer. Because bi-level optimization requires storing and computing higher-order derivatives, it incurs large memory and computational costs. Consequently, only low-capacity base learners can be adopted, which severely limits model expressiveness. To solve the above problems, MetaOptNet16 uses SVM instead of linear classifiers. Recently, in order to further improve the generalization performance of the model, TAML17 constrained all tasks on parameter updates, and MeTAL18 optimized the model using the task adaptive loss function in the inner loop. Meta-AdaM19 incorporated momentum into the optimization process via a double look-ahead mechanism.

The basic idea of the metric-based meta-learning methods is to learn a good feature embedding space, so that samples of the same class can be close to each other in this space, and samples of different classes can be far away from each other. In the meta-training process, the early methods constructed the feature embedding space based on the convolutional neural network, and used fixed metrics (such as cosine, Euclidean distance, etc.) or parameterized nonlinear metrics to calculate the similarity between samples. On the one hand, how to extract effectiveness features in the meta-training process is a continuous concern of researchers. For example, DSN20 used the samples in the support set to find a discriminative subspace for each category, and maps the feature vectors of the query samples to this subspace for distance measurement, and IEPT10 introduced self-supervised tasks in the meta-training process to make the feature extractor obtain richer and more migratory feature representations. APP2S21 maps sample features to hyperbolic hyperspaces. On the other hand, several studies have carried out improvement work around the similarity measurement link. For example, CovMNet22 and Deep EMD23 obtained rich similarity measures directly from local features, while DeepBDC24 introduced a Brownian covariance measure function. Wu et al.25 proposed a trilinear spatial-awareness network to handle subtle differences between images. Zheng et al.26 proposed a bi-directional local alignment approach to reduce the interference of non-dominant objects. Zheng et al.27 proposed a novel cooperative density-aware representation to encode the semantic information. Recently, Zheng et al.28 proposed a semantic-guided generalization enhancement method to solve distributional bias.

Transfer learning based methods

Recent studies have shown that the transfer learning can achieve classification performance comparable to that of meta-learning methods in few-shot image classification tasks. These methods usually combine the pre-trained feature extractors on all base class datasets with any traditional classifier to complete the classification decision of unknown classes. Neg-Cosine29 uses a non-negatively spaced Cosine loss function that increases the distance between the training sample and its parameterized prototype, while S2M230 borrows manifold blending, an effective regularization technique. In view of the fact that there is no complex and well-performing teacher network in few-shot image classification, self-distillation or mutual learning in knowledge distillation is used as knowledge transfer between models. In addition, the self-supervised task can improve the robustness of the classification model to image transformation, and can also improve the generalization performance of the model31. Under the framework of transfer learning, several works have improved the classification results. For example, simpleShot32 can achieve very good performance using the KNN classifier after simple whitening preprocessing of the extracted features, and CBM33 uses the double-path similarity of the query sample and the correlation calculation cooperation between the sample set and the base class dataset as a measure in the KNN classifier. In addition to non-parametric classifiers, other parametric classifiers, such as logistic regressors34, also showed excellent performance.

Recent research indicates that the transfer learning based methods have achieved superior performance compared to the meta-learning based methods, including PBML35, S2M230,RFS6 and PAL36. However, most of those methods are based on ordinary convolutional neural networks, which can only extract local features of the image. In this paper, the non-local network is used to construct the model, and the non-local mechanism is used to expand the visual receptive field of neurons and obtain global features to improve the discrimination of the classification model. In addition, in view of the good complementarity between local features and global features, this paper proposes to carry out multi-stage fusion of local features and global features, and through parallel fusion in the pre-training stage and serial fusion in the test stage, the information between the local feature network and the global feature network can be fully mined, so as to obtain excellent feature representation, so as to further improve the performance of few-shot image classification. Wu et al.37 presented a geometric invariance module to learn the intra-instance variance. Zheng et al.38 used one-vs-all contrastive learning to improve the generalization ability. Zheng et al.39 proposed a data augmentation strategy and an alternating training manner to overcome domain discrepancies

Methodology

Overall framework

For the given dataset I, it can be randomly partitioned into a base training dataset Inline graphic which has Inline graphic categories, a validation set Inline graphic and a new class dataset Inline graphic for testing, and the category label spaces of each subset are disjoint. The Inline graphic image sample in Inline graphic is denoted as Inline graphic, and its label is denoted as Inline graphic, N categories are randomly sampled from Inline graphic, and K samples are randomly sampled from each category to obtain the support set, and a batch of samples are sampled from the remaining image collection to obtain the query set, and the few-shot image classification task requires the model to use each sample to classify the images. The task requires the model to distinguish N categories using K support samples for each category, which is called the N-way K-shot problem. Suppose that the support set is denoted as Inline graphic, where Inline graphic denotes the Inline graphic image and Inline graphic is its label. The query set is denoted as Inline graphic, where where Inline graphic denotes the Inline graphic query sample. We firstly construct local and global feature networks and fuses them in the training phase using deep mutual learning, then extracts features and performs serial fusion on the images in the support set and the query set using local and global feature networks, and finally trains a logistic regression classifier using the support sample features to complete the classification decision on the support set. The general framework diagram as well as the pseudo-code flow of the proposed method are shown in Fig. 2 and algorithm 1, respectively, and the detailed descriptions of the key steps in the algorithm are as follows.

Fig. 2.

Fig. 2

Overview of the Framework. The network contains two stages: pretraining and testing, both of which perform feature fusion. The pretraining stage employs a parallel fusion strategy, realized through inter-network information exchange and learning. The testing stage adopts a serial fusion strategy, accomplished via feature concatenation. The local and global network does not share the parameters..

Algorithm 1.

Algorithm 1

Multi-stage Fusion of Local and Global Features for Few-shot Image Classification

Construction of local and global feature networks

In order to improve the generalization performance of the classification model, a self-supervised method is introduced to learn jointly with the supervised method during the training process, and for this purpose the image enhancement module Inline graphic is shared in the local and global feature networks to construct the self-supervised task. Here, we mainly choose two self-supervised tasks, rotation prediction(RP) and instance discrimination(ID), so in addition to the base class classifier that implements the original supervised task on the training dataset, the classification model also needs to add a rotation predictor and a projector. Assume that the local feature network is denoted as Inline graphic, which mainly consists of a backbone network Inline graphic with parameter Inline graphic, a base class classifier Inline graphic with parameter matrix Inline graphic, a rotational predictor Inline graphic with parameter matrix Inline graphic, and a projector Inline graphic with parameter matrix Inline graphic. Assume that the global feature network is denoted as Inline graphic, which mainly consists of a backbone network Inline graphic, a base class classifier Inline graphic, a rotational predictor Inline graphic and a projector Inline graphic.

Unlike the local feature network, the global feature network incorporates a non-local computational module into the backbone. This module captures long-range dependencies between global feature points by computing correlations across the entire feature space, instead of restricting to local neighborhood correlations as in local feature networks, as shown in Fig. 3. For a given feature map Inline graphic, the module performs a non-local operation on each of its feature points expressed as follows:

graphic file with name d33e640.gif 1

where Inline graphic, Inline graphic denote the C-dimensional feature vectors at the ith and jth positions in the feature map, Inline graphic computes the similarity between the feature vectors, Inline graphic denotes the Inline graphic spatial convolution operation, and Inline graphic denotes the normalisation of the features. Then the output of the non-local module is represented as follows:

graphic file with name d33e684.gif 2

where Inline graphic is the parameters to be optimized in the module.

Fig. 3.

Fig. 3

Illustration of non-local module.

Feature fusion in pre-training stage

For model Inline graphic, its backbone network maps the image to a Inline graphicdimensional feature space to get Inline graphic, then goes through a base class classifier and a rotation predictor to get the bth base class score Inline graphic and the rth rotation score Inline graphic, while the projector maps it to a V-dimensional hyper-spherical space to get Inline graphic,with the help of normalization operations, and the Softmax layer converts the base class scores and the rotation scores into predicted probability values:

graphic file with name d33e744.gif 3

For Inline graphic, it also maps the image to a Inline graphicdimensional feature space to get Inline graphic, then also get the bth base class score Inline graphic and the rth rotation score Inline graphic, while the projector is also used to get Inline graphic,with the help of normalization operations, and then a Softmax layer is uesed to predicted probability values:

graphic file with name d33e795.gif 4

The cross-entropy loss functions between the samples in base dataset predicted by classification probabilities of Inline graphic and Inline graphic and the true value of the samples in base dataset label Inline graphic are calculated in Eq(5) as follows:

graphic file with name d33e823.gif 5

where Inline graphic denotes the bth component of the mth image sample whose label value is Inline graphic. Similarly, the cross-entropy loss functions between rotation prediction probabilities and true value with label Inline graphic are calculated in Eq(6) as follows:

graphic file with name d33e859.gif 6

where Inline graphic denotes the bth component of the mth image sample whose rotated label value is Inline graphic.

Assuming that the positive sample image Inline graphic of the image Inline graphic passes through the projectors of Inline graphic and Inline graphic to obtain V-dimensional projective feature representations as Inline graphic and Inline graphic, the computational formula for comparison learning by Inline graphic and Inline graphic is defined as follows:

graphic file with name d33e935.gif 7

where Inline graphic denotes the temperature parameter. Then the loss function for optimization Inline graphic and Inline graphic of supervised and self-supervised is:

graphic file with name d33e961.gif 8

where Inline graphic and Inline graphic are the adjustable hyper-parameters. In this stage of fusion of local and global features, an information interaction mechanism between models Inline graphic and Inline graphic is required, for this purpose, we use the KL divergence to measure the mutual information between them, with the expectation that the probability of their outputs to the image base class converges to the same level. The loss function of mutual information from local network Inline graphic to global network Inline graphic is formulated:

graphic file with name d33e1005.gif 9

The mutual information loss function from Inline graphic to Inline graphic is formulated:

graphic file with name d33e1024.gif 10

Then the total loss functions of Inline graphic and Inline graphic trained in the pre-training step is denoted as:

graphic file with name d33e1044.gif 11

where Inline graphic is the adjustable hyper-parameter. The pre-training is mainly related with the joint learning of supervised learning and self-supervised learning and mutual learning. Wherein, the joint loss function of supervised and self-supervised is Lipschitz-smooth and has bounded gradients. And the training loss in the mutual learning is quasi-convex. Therefore, gradient descent converges to a stationary point.

Feature fusion in testing stage

Firstly, Inline graphic and Inline graphic are removed, and then the parameters in the backbone network in the fixed model are used to extract features for the support set and query set, in which the kth support sample passes through Inline graphic and Inline graphic to get the features Inline graphic and Inline graphic ,respectively. Then the feature representation of the support image samples is get by fusing the features:

graphic file with name d33e1101.gif 12

Where Inline graphic denotes the feature splicing operation.Similarly, the features Inline graphic and Inline graphic are obtained for the qth query sample, and Inline graphic. The logistic regression classifier Inline graphic with parameter Inline graphic is trained using Inline graphic support sample features, and the final classification prediction of the query sample is denoted as:

graphic file with name d33e1154.gif 13

Experiments and analysis

Experimental settings

In order to provide a fair comparison with SOTAs, both the the backbone network of local and global feature networks we used are ResNet-12. The first three residual blocks use a maximum pooling operation, while the last residual block uses an average pooling operation. The number of filters in each residual block is 64, 160, 320, and 640, respectively. In the training step, SGD is chosen as the Optimizer, where momentum is set to 0.9 and weight decay is set to 5 Inline graphic 10-4.For all experiments, the model is trained for 160 rounds, and the initial learning rate is set to 0.025. When the model is trained for 70 rounds, every 30 rounds the learning rate is adjusted to one-tenth of the original one. The temperature coefficient Inline graphic in contrast learning is set to 0.1. In the evaluation stage, we test 5-way 1-shot and 5-way 5-shot test tasks on each dataset. 2000 episodes are randomly selected from the test dataset, and in each episode, 15 images of each class are randomly selected as query images for testing. The evaluation criterion for the classification performance of the algorithm is the average of the correct rates of all episodes, along with the standard deviation of the correct rates at 95% confidence intervals. The projector is the MLP.

We use five datasets to evaluate the proposed method: Caltech-UCSD Bird-200-2011(CUB)40, which is the most widely used benchmark in fine-grained image classification, MiniImageNet dataset41, tiredImagenet dataset42, CIFAR-FS and Few-shot-CIFAR100 (FC100)43.

Results comparison

We compares with the SOTAs in recent years, and the results are shown in Table 1. The comparison methods include DeepEMD23, RENet44, APP2S21, MFS45, Meta-AdaM19, ALFA5, SM+CADS46, BML36, LPE47, MBBS48, PBML35, DFR49, AdaBC50. Wherein, DeepEMD23 used a Earth Mover’s Distance to calculate the similarity between image regions. RENet44applied attention mechanisms to establish more discriminative features. APP2S21 maps sample features to hyperbolic hyperspaces. MFS45embedded shallow self-attention mechanisms inside existing encoder architectures. Meta-AdaM19 incorporated momentum into the optimization process via a double look-ahead mechanism. ALFA5 used a task-adaptive weight update rule that greatly enhances the fast adaptation process. SM+CADS46calibrated and utilizes the characteristics of different features. BML36 combined the mutual learning paradigm and binocular parallax. LPE47 represented each class by its several different parts with the help of class semantic knowledge. MBBS48 employed a mixer module to spread the key semantic on the whole image. PBML35 employed Laplacian estimation to approximate the integral term over the likelihood loss. DFR49 adaptively decoupled the discriminative features that are modeled by the classification branch. As shown in Table 1, our method achieves the optimal classification performance in the 5-way 1-shot and 5-way 5-shot classification tasks on the five benchmarks.

Table 1.

Comparison results on benchmarks.’-’means the result is not given by the author.The best results are marked in Bold italic.

Method Venue miniImageNet tiredImageNet CIFAR-FS FC100 CUB
1-shot 5-shot 1-shot 5-shot 1-shot 5-shot 1-shot 5-shot 1-shot 5-shot
Meta-learning based approach
DeepEMD23 CVPR’20 65.91±0.82 82.41±0.56 71.16±0.87 86.03±0.58 46.47±0.78 63.22±0.71 75.65±0.83 88.69±0.50
RENet44 ICCV’21 67.60±0.44 82.58±0.30 71.61±0.51 85.28±0.35 74.51±0.46 86.60±0.32 79.49±0.44 91.11±0.24
APP2S21 AAAI’22 66.25±0.20 83.42±0.15 72.00±0.22 86.23±0.15 73.12±0.22 85.69±0.16 47.64±0.21 63.56±0.22 77.64±0.19 90.43±0.18
MFS45 CVPR’22 68.32±0.62 82.71±0.46 73.63±0.88 87.59±0.57 79.60±0.80 90.48±0.44
Meta-AdaM19 NIPS’23 59.89±0.49 77.92±0.43 65.31±0.48 85.24±0.35 41.12±0.49 56.14±0.49 -
ALFA5 TPAMI’24 66.61±0.28 81.43±0.25 70.29±0.40 86.17±0.35 76.32±0.43 86.73±0.31 44.54±0.50 58.44±0.42 -
SM+CADS46 TNNLS’25 66.56±0.19 82.74±0.13 72.04±0.22 86.47±0.15 73.23±0.21 86.65±0.14 76.74±0.21 89.45±0.12
Transfer-learning based approach
BML36 ICCV’21 67.04±0.63 83.63±0.29 68.99±0.50 85.49±0.34 73.45±0.47 88.04±0.33 76.21±0.63 90.45±0.36
LPE47 WACV’23 65.74±0.53 83.03±0.33 73.82±0.58 86.76±0.52 74.13±0.71 87.54±0.51 44.82±0.73 61.31±0.54 80.76±0.40 88.98±0.26
MBBS48 TMM’23 65.40±0.20 81.90±0.14 71.74±0.23 86.34±0.15 73.71±0.69 88.13±0.40
PBML35 TNNLS’24 63.60±0.70 81.94±0.44 70.64±0.72 85.39±0.40 73.07±0.59 85.51±0.41 47.92±0.49 62.96±0.51 73.07±0.59 85.51±0.41
DFR49 TNNLS’24 68.12±0.86 82.79±0.59 72.38±0.95 86.00±0.61 81.67±0.78 93.76±0.47
AdaBC50 NEUCOM’25 68.95±0.20 84.62±0.13 75.57±0.21 87.42±0.15 81.20±0.19 91.49±0.10
ICCL51 KBS’25 68.05±0.88 82.46±0.58 74.41±0.92 87.30±0.60 78.51±0.91 88.30±0.59 -
our 69.55±0.43 85.77±0.30 74.01±0.48 87.77±0.32 77.19±0.44 89.71±0.31 47.93±0.42 64.25±0.42 82.26±0.40 93.87±0.18

Parametric analyses

Equation (11) shows the loss function optimised for local and global feature networks, where the coefficients of each loss term are important parameters in the proposed method, and the impact of these parameters on classification performance is analysed in this section on three datasets: miniImageNet, CIFAR-FS and CUB. In the experimental process, it is found that the rotational prediction term loss function coefficient Inline graphic,the instance discrimination loss term coefficient Inline graphic, and the fusion loss term coefficient Inline graphic take the values in the ranges of [0, 1], [0, 0.1], and [0, 1], respectively. The classification results of different combinations of coefficients are shown in table 2, and it can be seen that the 1-shot and 5-shot tests have the highest performance on all datasets when Inline graphic, Inline graphic or Inline graphic and Inline graphic.

Table 2.

The mean accuracies with 95% confidence intervals of different parameters on MiniImageNet, CIFAR-FS and CUB under the 5-way 1-shot and 5-shot tasks.

Parameters miniImageNet CIFAR-FS CUB
1-shot 5-shot 1-shot 5-shot 1-shot 5-shot
Inline graphic 69.10±0.44 85.54±0.27 76.30±0.46 89.33±0.31 81.11±0.39 93.30±0.20
Inline graphic 69.55±0.42 85.77±0.27 77.09±0.47 89.56±0.32 81.87±0.42 93.55±0.19
Inline graphic 69.37±0.43 85.45±0.27 77.19±0.44 89.71±0.31 82.26±0.40 93.87±0.18
Inline graphic 69.37±0.41 85.39±0.27 76.93±0.46 89.60±0.31 82.16±0.39 93.67±0.18

Time complexity and parametric capacity analysis

In the training step, assuming that T batches of images are randomly selected for model optimisation, the number of images in each batch is M and the number of classes to which all images belong is Inline graphic, the complexity of the local and global feature networks for base class prediction is Inline graphic, he complexity of the local and global feature networks for rotational prediction is O(4TM), the complexity of the local and global networks for instance adjudication is Inline graphic, and Inline graphic for fusion of local and global networks in the pre-training step, the total complexity is Inline graphic,with a linear relationship with the number of image samples.

We use both local and global feature networks to build a model with comparable parameter capacity between the two. Assuming that the parameter capacity of any model is C, the evaluation stage fusion method fuses the local feature network and global feature network to extract features, and the parameter capacity of the model is 2C. Inspired by the method52, we reduce the number of convolution kernels in the convolutional block in the backbone network, and the results of the performance at this time compared with the performance without capacity parameter reduction on the CUB dataset are shown in Table 3. As shown in Table 3, when the parameter capacity of the local feature network and global feature network is reduced, the performance is comparable to the previous performance.But the runtime is significantly reduced from 3.18 seconds per image to 2.92 seconds per image. The reason for this is that there is redundancy in the original backbone network used, which does not affect the performance after reduction, so applying this technique to this paper’s method allows this paper’s method to avoid a significant increase in parameter capacity.

Table 3.

Comparison results with reduced parameter capacity on CUB dataset.

Parameter capacity CUB Runtime(second/per image)
1-shot 5-shot
W/O decrease(Inline graphic) 82.28±0.39 93.87±0.18 3.18
Decrease(Inline graphic) 81.95±0.43 93.48±0.18 2.92

Visual analysis

We propose a global feature network to capture long range dependencies within an image, effectively highlighting its overall changes. In order to verify its effectiveness, the feature maps in layer 4 of this network are visualized via Grad-cam53, and the visualization results are shown in Fig. 4. From the results, it can be seen that: (1) for the target objects in the original image in row 1, all the target objects can be highlighted consistently and holistically in the corresponding visualization image in row 2; (2) as shown in the original image in row 3 in the figure, when there are multiple example targets, small-sized targets, target locations near edge locations or complex scenes within the image, all the target objects can be highlighted consistently and holistically in the corresponding visualization image in row 4; and (3) when there are multiple example targets, small-sized targets, target locations close to edge locations or complex scenes within the image, all the target objects are highlighted consistently and holistically in the corresponding visualization image in row 4. visualization image, all the target objects can still be highlighted. The above analysis shows that the global feature network can effectively extract global features.

Fig. 4.

Fig. 4

Visualization of feature maps in the global feature network.

In addition, in order to further verify the complementary nature of the local and global feature networks, we visualize what features are retained in their respective backbone networks. To this end, the features extracted from the backbone network are transformed into RGB images using the DIP technique54 in this section. DIP adopted the autoencoder network with six blocks to produce the reconstruction images. And it used the Inline graphic loss as the reconstruction loss.The reconstruction results of the local and global feature networks are shown in Fig. 5. From the results, it can be seen that (1) for the four original images in row 1, local singularity regions appear in the content of each image, the red head of the white goose in row 1, the black dots on the body of the ladybird in row 2, the black pattern on the part of the dog’s torso in row 3, and the light dots within the bird’s image in row 4; and (2) when comparing the reconstructed images of rows 2 and 3, it can be found that the local features highlight the local singular regions within the image, such as the red head of the white goose, the black dots of the ladybird, the black pattern of the dog, and the bright spots within the image, while the global features highlight the target object as a whole within the image, and do not highlight the local singular regions therein, which suggests that the local and global feature networks in our method are capable of extracting complementary features; (3) Comparison of the reconstructed images of rows 2 and 4, it can be found that after the feature fusion in the pre-training stage, the highlighting of local singular regions in the reconstructed images of local features is weakened, and comparing the reconstructed images in rows 3 and 5, it can be found that the reconstructed images of global features after the feature fusion in the pre-training stage increase the highlighting of local singular regions, which indicates that the feature fusion algorithm in the pre-training stage has the effectiveness; (4) Comparing the reconstructed images in rows 4 and 5, it can be found that the reconstructed images of local features in the pre-training stage are able to extract complementary features. Reconstructed images are compared, it can be found that after the fusion in the pre-training stage, the reconstructed images of local and global features are similar, but still differentiated, which provides a basis for their fusion in the evaluation stage.

Fig. 5.

Fig. 5

Illustration of reconstruction images of features.

Ablation study

To show the effectiveness of our method, we conduct the ablation studies on three datasets: miniImageNet, CIFAR-FS, and CUB.

Evaluation of self-supervision

Both local and global feature networks are trained using joint supervised and self-supervised learning, where self-supervised learning chose the rotation prediction (RP) and instance discrimination (ID). We first evaluate the effectiveness of self-supervision in the training process of local and global networks.Inline graphic denotes the rotation prediction using local features, and Inline graphic denotes the instance discrimination using local features, and Inline graphic denotes combination of Rot and ID using local features. Similarly, we can define Inline graphic, Inline graphic and Inline graphic. As the results shown in Fig. 6, the local feature network and the global feature network achieve consistent results in both the 5-way 1-shot and 5-way 5-shot tests on all three datasets, with the correct rate of Inline graphic being higher than that of Inline graphic and Inline graphic, and the correct rate of Inline graphic being higher than that of Inline graphic and Inline graphic, indicating that the two self-supervised tasks can facilitate the extraction of different invariant features by local and global feature networks, and their linear combination can jointly improve the classification performance of the model.

Fig. 6.

Fig. 6

Performance of self-supervised learning.

The evaluation of multi-stage feature fusion

In order to illustrate the effectiveness of the multi-stage fusion of local and global features proposed in this paper, the classification results of un-fused local and global features, single-stage fusion in pre-training stage or testing stage, and multi-stage fusion in pre-training and testing step are given in this section, respectively. As shown the results in table 4, the methods Local an Global are denoted as unfused local and global features respectively, Inline graphic and Inline graphic are denoted as methods for single-stage fusion of local and global features in the pre-training stage, Inline graphic are denoted as methods for single-stage fusion of local and global features in the testing stage, and Inline graphic are denoted as methods for multi-stage fusion of local and global features multi-stage fusion methods, and all the methods employ Logistic regression.

Table 4.

The mean accuracy with 95% confidence intervals of multi-stage fusion of local and global features on MiniImageNet, CIFAR-FS and CUB under the 5-way 1-shot and 5-shot tasks.

Method Backbone miniImageNet CIFAR-FS CUB
1-shot 5-shot 1-shot 5-shot 1-shot 5-shot
Local(baseline) ResNet12 67.03±0.44 84.05±0.29 74.07±0.46 88.46±0.32 78.09±0.42 91.72±0.20
Global ResNet12 67.52±0.44 83.93±0.28 73.96±0.46 87.99±0.32 78.58±0.42 92.00±0.20
Inline graphic ResNet12 68.36±0.43 85.36±0.28 75.47±0.45 89.11±0.32 80.38±0.40 93.27±0.19
Inline graphic ResNet12 69.30±0.42 85.22±0.28 77.05±0.44 89.45±0.31 82.13±0.39 93.58±0.18
Inline graphic ResNet12 68.67±0.43 84.98±0.27 76.79±0.46 89.34±0.32 81.78±0.41 93.16±0.17
Inline graphic ResNet12 69.55±0.42 85.77±0.27 77.19±0.46 89.71±0.31 82.28±0.39 93.87±0.18

From the results , we can see that:

  1. The multi-stage fusion approach improves the performance of both local and global feature networks on 5-way 1-shot and 5-shot tasks. Specifically, on the miniImageNet dataset, Inline graphic is higher than Local by 2.52% and 1.72%, and Global by 2.03% and 1.84%; on the CIFAR-FS dataset, it is higher than Local by 3.12% and 1.25%, and Global by 3.23% and 1.72% on the CUB dataset, higher than Local 4.19% and 2.15%, and higher than Global 3.7% and 1.87%. From the above results, it can be seen that the proposed multi-stage fusion method is highly effective for feature fusion.

  2. On the 5-way 1-shot and 5-shot tasks, the multi-stage fusion method performs higher compared to the single-stage fusion method that fuses only at the pre-training stage. Specifically, on the miniImageNet dataset, Inline graphic outperforms Inline graphic by 1.19% and 0.41%, and Inline graphic by 0.25% and 0.55%; on the CIFAR-FS dataset, it outperforms Inline graphic by 1.72% and 0.6%, and Inline graphic by 0.14% and 0.26%; on the CUB dataset, higher than Inline graphic 1.9% and 0.6%, and higher than Inline graphic 0.15% and 0.29%.

  3. On the 5-way 1-shot and 5-shot tasks, the multi-stage fusion method performs higher compared to the single-stage fusion method that fuses only in the test phase. Specifically, Inline graphic is higher than Inline graphic by 0.88% and 0.79% on the miniImageNet dataset, by 0.4% and 0.37% on the CIFAR-FS dataset, and by 0.5% and 0.71% on the CUB dataset.

Conclusion

For the shortcomings of the current networks only extract the local features via convolutional neural network, which cannot guarantee the discriminative feature representation, we propose a few-shot image classification model based on the global feature network, so as to achieve the purpose of portraying the overall changes of the image. On this basis, we further propose a few-shot image classification algorithm with multi-stage fusion of local and global features. The algorithm is capable of exploiting the complementary characteristics of local and global feature networks and fusing them in parallel and serial in the pre-training and testing stage, respectively. In this paper, exhaustive experiments are conducted on several few-shot image classification datasets. The results of the ablation experiments and visual analysis experiments show that the local and global networks are capable of extracting complementary features, and the proposed multi-stage feature fusion algorithm is able to effectively fuse the local and global features to achieve better discriminative features. Compared with several SOTAs on five benchmarks, the proposed method achieves a better performance. On the one hand, the future work will focus on how to develop promising local and global feature embeddings. On the other hand, since this work used a stationary fusion rule, future work will explore adaptive fusion strategies to dynamically adjust the weights of local and global features. In addition, we will also address the issue of doubled parameters caused by employing two networks.

Notation

The symbols used in this paper are listed in Table 5.

Table 5.

Table of symbol introductions.

Symbol Definition
Inline graphic Dataset
Inline graphic Base training dataset
Inline graphic Categories of Inline graphic
Inline graphic Validation set
Inline graphic New class dataset
Inline graphic Image sample in Inline graphic
Inline graphic Label of Inline graphic
Inline graphic Support sample set
Inline graphic Query set
Inline graphic Image enhancement module
Inline graphic Local feature network
Inline graphic Backbone network in Inline graphic
Inline graphic Base class classifier in Inline graphic
Inline graphic Rotational predictor in Inline graphic
Inline graphic Projector in Inline graphic
Inline graphic Global feature network
Inline graphic Backbone network in Inline graphic
Inline graphic Base class classifier in Inline graphic
Inline graphic Rotational predictor in Inline graphic
Inline graphic Projector in Inline graphic

Acknowledgements

This work was partially supported by the Nantong Science and Technology Program Project (JC2024065).

Author contributions

Yi Gu contributed to drafting the article. Zhangyan Yao made the analysis and interpretation of data associated with the work contained in the article. Sai Yang approved the final version of the article as accepted for publication. All authors reviewed the manuscript.

Data availability

The datasets are available on the website: https://github.com/tristandeleu/pytorch-meta?tab=readme-ov-file.

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Wang, Y., Yao, Q., Kwok, J. T. & Ni, L. M. Generalizing from a few examples: A survey on few-shot learning. ACM Comput. Surv.10.1145/3386252 (2020). [Google Scholar]
  • 2.Zhao, J., Kong, L. & Lv, J. An overview of deep neural networks for few-shot learning. Big Data Min. Anal.8, 145–188. 10.26599/BDMA.2024.9020049 (2025). [Google Scholar]
  • 3.Baik, S., Hong, S. & Lee, K. M. Learning to forget for meta-learning. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 2376–2384. 10.1109/CVPR42600.2020.00245 (2020).
  • 4.Rajeswaran, A., Finn, C., Kakade, S. M. & Levine, S. Meta-Learning with Implicit Gradients (Curran Associates Inc., 2019).
  • 5.Baik, S., Choi, M., Choi, J., Kim, H. & Lee, K. M. Learning to learn task-adaptive hyperparameters for few-shot learning. IEEE Trans. Pattern Anal. Mach. Intell.46, 1441–1454. 10.1109/TPAMI.2023.3261387 (2024). [DOI] [PubMed] [Google Scholar]
  • 6.Tian, Y., Wang, Y., Krishnan, D., Tenenbaum, J. B. & Isola, P. Rethinking few-shot image classification: A good embedding is all you need? In Computer Vision – ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part XIV 266–282. 10.1007/978-3-030-58568-6_16 (Springer-Verlag, 2020).
  • 7.Pathak, D., Krähenbühl, P., Donahue, J., Darrell, T. & Efros, A. A. Context encoders: Feature learning by inpainting. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) 2536–2544. 10.1109/CVPR.2016.278 (2016).
  • 8.He, K., Fan, H., Wu, Y., Xie, S. & Girshick, R. Momentum contrast for unsupervised visual representation learning. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 9726–9735. 10.1109/CVPR42600.2020.00975 (2020).
  • 9.Rizve, M. N., Khan, S., Khan, F. S. & Shah, M. Exploring complementary strengths of invariant and equivariant representations for few-shot learning. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 10831–10841. 10.1109/CVPR46437.2021.01069 (2021).
  • 10.Zhang, M. et al. IEPT: Instance-level and episode-level pretext tasks for few-shot learning. In International Conference on Learning Representations (ICLR) (2021).
  • 11.Wang, X., Girshick, R., Gupta, A. & He, K. Non-local neural networks. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition 7794–7803. 10.1109/CVPR.2018.00813 (2018).
  • 12.Amari, S. Information geometry and its applications: Convex function and dually flat manifold. In Nielsen, F. (ed.) Emerging Trends in Visual Computing, LIX Fall Colloquium, ETVC 2008, Palaiseau, France, November 18-20, 2008. Revised Invited Papers, vol. 5416 of Lecture Notes in Computer Science 75–102. 10.1007/978-3-642-00826-9_4 (Springer, 2008).
  • 13.Finn, C., Abbeel, P. & Levine, S. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning - Volume 70, ICML’17 1126–1135 (JMLR.org, 2017).
  • 14.Li, Z., Zhou, F., Chen, F. & Li, H. Meta-sgd: Learning to learn quickly for few shot learning. CoRRabs/1707.09835 (2017). arXiv: 1707.09835.
  • 15.Ravi, S. & Larochelle, H. Optimization as a model for few-shot learning. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings (OpenReview.net, 2017).
  • 16.Bertinetto, L., Henriques, J. F., Torr, P. H. S. & Vedaldi, A. Meta-learning with differentiable closed-form solvers. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019 (OpenReview.net, 2019).
  • 17.Jamal, M. A. & Qi, G.-J. Task agnostic meta-learning for few-shot learning. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 11711–11719. 10.1109/CVPR.2019.01199 (2019).
  • 18.Baik, S. et al. Meta-learning with task-adaptive loss function for few-shot learning. In 2021 IEEE/CVF International Conference on Computer Vision (ICCV) 9445–9454. 10.1109/ICCV48922.2021.00933 (2021).
  • 19.Sun, S. & Gao, H. Meta-adam: a meta-learned adaptive optimizer with momentum for few-shot learning. In Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS ’23 (Curran Associates Inc., 2023).
  • 20.Simon, C., Koniusz, P., Nock, R. & Harandi, M. Adaptive subspaces for few-shot learning. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 4135–4144. 10.1109/CVPR42600.2020.00419 (2020).
  • 21.Ma, R., Fang, P., Drummond, T. & Harandi, M. Adaptive poincaré point to set distance for few-shot classification. In Thirty-Sixth AAAI Conference on Artificial Intelligence, AAAI 2022, Thirty-Fourth Conference on Innovative Applications of Artificial Intelligence, IAAI 2022, The Twelveth Symposium on Educational Advances in Artificial Intelligence, EAAI 2022 Virtual Event, February 22–March 1, 2022 1926–1934. 10.1609/AAAI.V36I2.20087 (AAAI Press, 2022).
  • 22.Li, W. et al. Distribution consistency based covariance metric networks for few-shot learning. AAAI’19/IAAI’19/EAAI’19. 10.1609/aaai.v33i01.33018642 (AAAI Press, 2019).
  • 23.Zhang, C., Cai, Y., Lin, G. & Shen, C. Deepemd: Few-shot image classification with differentiable earth mover’s distance and structured classifiers. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 12200–12210. 10.1109/CVPR42600.2020.01222 (2020).
  • 24.Xie, J., Long, F., Lv, J., Wang, Q. & Li, P. Joint distribution matters: Deep brownian distance covariance for few-shot classification. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 7962–7971. 10.1109/CVPR52688.2022.00781 (2022).
  • 25.Wu, H., Zhao, Y. & Li, J. Selective, structural, subtle: Trilinear spatial-awareness for few-shot fine-grained visual recognition. In 2021 IEEE International Conference on Multimedia and Expo (ICME) (2021).
  • 26.Zheng, Z., Feng, X., Yu, H., Li, X. & Gao, M. Bdla: Bi-directional local alignment for few-shot learning. Appl. Intell.53, 769–785 (2023). [Google Scholar]
  • 27.Zheng, Z. et al. Cooperative density-aware representation learning for few-shot visual recognition. Neurocomputing471, 208–218 (2022). [Google Scholar]
  • 28.Zheng, Z. et al. Sge: Semantic-guided generalization enhancement for few-shot learning. Knowl.-Based Syst.323 (2025).
  • 29.Liu, B. et al. Negative margin matters: Understanding margin in few-shot classification. In Vedaldi, A., Bischof, H., Brox, T. & Frahm, J. (eds.) Computer Vision - ECCV 2020 - 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part IV, vol. 12349 of Lecture Notes in Computer Science 438–455. 10.1007/978-3-030-58548-8_26 (Springer, 2020).
  • 30.Mangla, P. et al. Charting the right manifold: Manifold mixup for few-shot learning. In IEEE Winter Conference on Applications of Computer Vision, WACV 2020, Snowmass Village, CO, USA, March 1-5, 2020 2207–2216. 10.1109/WACV45572.2020.9093338 (IEEE, 2020).
  • 31.Rajasegaran, J., Khan, S., Hayat, M., Khan, F. S. & Shah, M. Self-supervised knowledge distillation for few-shot learning. In 32nd British Machine Vision Conference 2021, BMVC 2021, Online, November 22-25, 2021 179 (BMVA Press, 2021).
  • 32.Wang, Y., Chao, W., Weinberger, K. Q. & van der Maaten, L. Simpleshot: Revisiting nearest-neighbor classification for few-shot learning. CoRRabs/1911.04623 (2019). arXiv: 1911.04623.
  • 33.Wang, Z., Zhao, Y., Li, J. & Tian, Y. Cooperative bi-path metric for few-shot learning. In Proceedings of the 28th ACM International Conference on Multimedia, MM ’20, 1524–1532. 10.1145/3394171.3413946 (Association for Computing Machinery, 2020).
  • 34.Yang, S., Liu, L. & Xu, M. Free lunch for few-shot learning: Distribution calibration. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3–7, 2021 (OpenReview.net, 2021).
  • 35.Fu, M., Wang, X., Wang, J. & Yi, Z. Prototype Bayesian meta-learning for few-shot image classification. IEEE Trans. Neural Netw. Learn. Syst.36, 7010–7024. 10.1109/TNNLS.2024.3403865 (2025). [DOI] [PubMed] [Google Scholar]
  • 36.Zhou, Z., Qiu, X., Xie, J., Wu, J. & Zhang, C. Binocular mutual learning for improving few-shot classification. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) 8402–8411 (2021).
  • 37.Wu, H. Y., Zhao, Y. & Li, J. Invariant and consistent: Unsupervised representation learning for few-shot visual recognition. Neurocomputing520, 1–14 (2022). [Google Scholar]
  • 38.Zheng, Z., Feng, X., Yu, H., Li, X. & Gao, M. Unsupervised few-shot image classification via one-vs-all contrastive learning. Appl. Intell. 1–15 (2022).
  • 39.Zheng, Z. et al. Cross-domain few-shot chest x-ray recognition. In 2024 5th International Conference on Computers and Artificial Intelligence Technology (CAIT).
  • 40.Hilliard, N. et al. Few-shot learning with metric-agnostic conditional embeddings. ArXivabs/1802.04376 (2018).
  • 41.Vinyals, O., Blundell, C., Lillicrap, T., Kavukcuoglu, K. & Wierstra, D. Matching networks for one shot learning. In Proceedings of the 30th International Conference on Neural Information Processing Systems, NIPS’16, 3637–3645 (Curran Associates Inc., 2016).
  • 42.Ren, M. et al. Meta-learning for semi-supervised few-shot classification. In Proceedings of 6th International Conference on Learning Representations ICLR (2018).
  • 43.Oreshkin, B. N., Rodriguez, P. & Lacoste, A. Tadam: task dependent adaptive metric for improved few-shot learning. NIPS’18 719–729 (Curran Associates Inc., 2018).
  • 44.Kang, D., Kwon, H., Min, J. & Cho, M. Relational embedding for few-shot classification. In 2021 IEEE/CVF International Conference on Computer Vision (ICCV) 8802–8813. 10.1109/ICCV48922.2021.00870 (2021).
  • 45.Afrasiyabi, A., Larochelle, H., Lalonde, J.-F. & Gagné, C. Matching feature sets for few-shot image classification. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 9004–9014. 10.1109/CVPR52688.2022.00881 (2022).
  • 46.Zhang, Y., Gong, M., Li, J., Feng, K. & Zhang, M. Few-shot learning with enhancements to data augmentation and feature extraction. IEEE Trans. Neural Netw. Learn. Syst.36, 6655–6668. 10.1109/TNNLS.2024.3400592 (2025). [DOI] [PubMed] [Google Scholar]
  • 47.Yang, F., Wang, R. & Chen, X. Semantic guided latent parts embedding for few-shot learning. In 2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) 5436–5446. 10.1109/WACV56688.2023.00541 (2023).
  • 48.Cheng, J., Hao, F., He, F., Liu, L. & Zhang, Q. Mixer-based semantic spread for few-shot learning. IEEE Trans. Multimed.25, 191–202. 10.1109/TMM.2021.3123813 (2023). [Google Scholar]
  • 49.Cheng, H., Wang, Y., Li, H., Kot, A. C. & Wen, B. Disentangled feature representation for few-shot image classification. IEEE Trans. Neural Netw. Learn. Syst.35, 10422–10435. 10.1109/TNNLS.2023.3241919 (2024). [DOI] [PubMed] [Google Scholar]
  • 50.Xu, J., Wang, B., Wan, H., Su, P. & Wei, X. Adaptive blank compensation for few-shot image classification. Neurocomputing637, 130127. 10.1016/j.neucom.2025.130127 (2025). [Google Scholar]
  • 51.Zheng, Z. et al. Iccl: Independent and correlative correspondence learning for few-shot image classification. Knowl.-Based Syst.266, 13 (2023). [Google Scholar]
  • 52.Bendou, Y. et al. Easy-ensemble augmented-shot-y-shaped learning: State-of-the-art few-shot classification with simple components. J. Imaging10.3390/jimaging8070179 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Selvaraju, R. R. et al. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV) (2017).
  • 54.Lempitsky, V., Vedaldi, A. & Ulyanov, D. Deep image prior. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition 9446–9454. 10.1109/CVPR.2018.00984 (2018).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The datasets are available on the website: https://github.com/tristandeleu/pytorch-meta?tab=readme-ov-file.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES