Skip to Content
MathematicsMathematics
  • Article
  • Open Access

9 June 2026

29 Pages

BAFNet: A Few-Shot Segmentation Algorithm Based on Two-Stage Backbone Network Adaptation Fine-Tuning via Meta-Learning

,
,
,
and
1
Northeastern University, Shenyang 110167, China
2
College of Information Science and Engineering, Northeastern University, Shenyang 110167, China
*
Author to whom correspondence should be addressed.

Abstract

The objective of few-shot segmentation is to segment novel categories given only a few annotated support images. Current FSS methods typically rely on pretrained backbone networks while often overlooking the inherent discrepancy between pretraining tasks and downstream segmentation tasks. This oversight renders the models susceptible to noise interference and hinders rapid generalization to novel categories. To address these limitations, we propose BAFNet, a novel few-shot segmentation algorithm based on two-stage backbone adaptive fine-tuning. Our approach incorporates a Feature Activation Adapter module into the backbone network, which operates through similarity feature enhancement and low-dimensional adaptive learning. Building upon this foundation, we develop an adapter-based fine-tuning strategy for the training phase that enhances the backbone network’s capacity for extracting category-relevant features while optimizing similarity representation of the extracted features. Additionally, we introduce a support set-driven, in-episode, online fine-tuning strategy for the testing phase, which leverages data augmentation to generate pseudo-query sets for supervised fine-tuning optimization. Through comprehensive quantitative and qualitative experiments conducted on PASCAL-5i, COCO-20i, and the industrial MT Defect Dataset, our results demonstrate that the proposed BAFNet model achieves state-of-the-art few-shot segmentation performance while utilizing the minimal number of trainable parameters. Our method obtains superior performance for both the mean intersection over union and foreground-background intersection over union evaluation metrics, exhibiting remarkable applicability for both general images in complex scenes and industrial defect segmentation under few-shot conditions.

1. Introduction

With the advancement of deep learning, deep neural networks (DNNs) based on convolutional neural networks (CNNs) and transformer architectures have demonstrated significant progress in semantic segmentation tasks [1,2]. However, training such networks requires substantial amounts of densely annotated data [3], which often proves difficult to obtain. While extensive annotated data and parameters provide substantial information to networks, they also constrain the networks to limited datasets, resulting in insufficient generalization capability. These models struggle to rapidly adapt to novel categories beyond their training distribution.
In contrast, humans can easily recognize new categories after observing only a few annotated examples, leveraging their powerful knowledge background. Inspired by this capability, numerous researchers have focused on enabling convolutional neural networks to recognize novel categories using limited annotated data through a process known as few-shot learning (FSL) [4,5,6,7,8,9,10].
As an application branch of few-shot learning in segmentation tasks, few-shot segmentation aims to segment target regions of unknown categories using only limited annotated data. Most existing FSS research follows the meta-learning paradigm [11,12,13,14,15,16,17,18,19,20,21].
The critical requirement for few-shot segmentation tasks under the meta-learning paradigm is that the segmentation categories during testing remain strictly unseen during training. Current methods primarily focus on enhancing the contextual modeling capability of downstream segmentation networks during training while overlooking the transfer process from training categories to testing categories. Prolonged training with training set data causes models to overemphasize training phase target categories, making them more susceptible to noise influence and hindering rapid generalization to novel categories.
Furthermore, to prevent overfitting in few-shot segmentation, using pretrained backbone networks with frozen parameters during training has become a standard paradigm. However, directly employing ImageNet pretrained backbone networks for feature extraction may not represent the optimal approach. Few-shot tasks require extracting the most relevant semantic cues from backbone networks while simultaneously minimizing the generation of irrelevant noise.
In contemporary research, fine-tuning backbone networks for downstream tasks has become a common practice in deep learning. Transfer learning approaches utilizing ImageNet pretrained weights have achieved initial breakthroughs in various visual tasks, exemplified by R-CNN for detection [22] and FCN for segmentation [1]. However, in few-shot segmentation tasks, applying standard fine-tuning methods to learn novel categories often leads to overfitting or catastrophic forgetting [23].
To address these limitations, parameter-efficient tuning techniques have emerged as effective solutions. Several mainstream PET approaches have been developed, including prompt-tuning, prefix-tuning, and LoRA methods. In computer vision domains, adapters and prompt tuning have demonstrated remarkable performance in transfer learning. The few-shot learning community has also witnessed numerous attempts at backbone network fine-tuning, yielding significant achievements. For instance, P-Transfer [24] employs neural architecture search to identify parameters requiring fine-tuning in few-shot classification tasks, though this method exhibits considerable complexity and challenges for direct application to few-shot segmentation.
Other works reference the prompt tuning paradigm from natural language processing [17], fine-tuning specific parameters within vision transformers. While these methods demonstrate effectiveness in transformer-based architectures, most few-shot segmentation models utilize CNN-based backbones, necessitating substantial adaptations for prompt-based approaches. Additionally, some methods [23] introduce highly constrained parameter subsets for fine-tuning yet remain suboptimal for few-shot segmentation tasks.
Distinct from these approaches, we design a backbone adaptive fine-tuning network for few-shot segmentation. Inspired by partial parameter fine-tuning strategies, we construct specialized adapter structures within the backbone network of few-shot segmentation models to capture category-relevant information. We fine-tune these adapter parameter sets with two primary objectives: extracting the most relevant semantic cues from the backbone network and facilitating category adaptation from training to testing datasets.
To address the aforementioned challenges, we propose a novel, two-stage fine-tuning framework based on adapters, as illustrated in Figure 1. We reconsider the frozen backbone paradigm during training and introduce a novel mechanism: integrating adapter structures containing minimal trainable parameters within the backbone network. This approach enables enhanced model generalization when learning new tasks. For addressing category discrepancy between training and testing datasets, we employ the same network architecture for online fine-tuning during testing episodes.
Figure 1. Comparison of conventional FSS versus the proposed fine-tuning approach.
Our contributions are summarized as follows:
  • We propose a Feature Activation Adapter module founded on similarity feature enhancement and low-dimensional adaptive learning. By integrating FAA modules into the backbone network during both training and testing phases, we enhance the network’s capacity for extracting category-relevant features. This approach optimizes similarity representation in feature extraction while reducing intra-class discrepancies caused by the mismatch between prior biases learned from general datasets and the spatial consistency requirements of few-shot segmentation tasks.
  • We develop an adapter-based fine-tuning strategy for the training phase. Through the incorporation of feature activation adapters into pretrained backbone networks, we enable superior generalization capability when learning new tasks, thereby achieving more accurate correlation modeling between support and query features.
  • We introduce a data augmentation-based fine-tuning strategy for the testing phase. This methodology facilitates online fine-tuning of model parameters through pseudo-query sample generation, effectively addressing the novel class adaptation challenge in few-shot segmentation tasks.
  • We conduct comprehensive quantitative and qualitative experiments on three benchmark datasets: PASCAL-5i, COCO-20i, and the industrial MT Defect Dataset. The experimental results demonstrate that our BAFNet model achieves state-of-the-art few-shot segmentation performance. Notably, our method exhibits remarkable applicability across diverse scenarios, including general images in complex environments and industrial defect segmentation.

3. Proposed Method

In this section, we present the architectural framework and operational mechanism of the proposed BAFNet model.

3.1. Overview

Under extremely limited data conditions, model overfitting represents a critical challenge. Most existing few-shot segmentation methods adopt the paradigm of frozen pretrained backbone networks to prevent overfitting issues. While this strategy has achieved certain success, completely freezing ImageNet pretrained backbone networks for few-shot image segmentation may hinder our ability to extract the most relevant semantic cues from support and query images. This limitation arises because the backbone network has learned irrelevant categories during upstream training, introducing noise influenced by these unrelated categories into the feature extraction process.
To address this problem, we modify and improve upon the completely frozen pretrained backbone network paradigm. According to previous few-shot fine-tuning studies, fine-tuning all parameters of the backbone network fails to yield satisfactory results. Inspired by the SVF fine-tuning algorithm [42], which employs singular value decomposition for backbone network fine-tuning, we identify a viable solution: restricting the number of learnable parameters in the backbone network to suit few-shot scenarios.
As illustrated in Figure 2, we adopt a unified two-stage adapter fine-tuning pipeline instead of fully freezing the backbone. In meta-training, adapter parameters and decoder parameters are jointly optimized using episodic training data to improve support–query correlation modeling. In meta-testing, only the adapter parameters are updated within each episode, and support-set augmentation is used to construct pseudo-query pairs for supervised adaptation without violating the test-time label constraints. This design preserves parameter efficiency while improving adaptation from pretraining classes to novel categories.
Figure 2. Two-stage backbone fine-tuning for few-shot segmentation.

3.2. Feature Activation Adapter Module

We propose the Feature Activation Adapter (FAA) module, as illustrated in Figure 3 and Figure 4. For query features F q and support features F s from the backbone network, we derive the category prototype P using F s and the support mask M s . We then process the support features F s , support mask M s , and prototype P through our proposed adapter module. Through feature enhancement and low-dimensional adaptive learning, we obtain the activated category-specific features F s * and F q * . Subsequently, we add F s * and F q * to the original features F s and F q , respectively, and feed them to the next encoder layer to achieve fine-tuning of the backbone network. We update only the parameters within the adapter while keeping the pretrained parameters in the backbone network frozen, enabling the base segmentation model to effectively adapt to new categories.
Figure 3. Feature Activation Adapter module structure diagram.
Figure 4. Diagram of the feature activation adapter structure.
Figure 3 illustrates the structure of the Feature Activation Adapter module, which comprises three key components: prototype generation, feature activation, and low-dimensional adaptive learning. The prototype generation component extracts category prototype vectors from intermediate layer features. The feature activation component enhances category-relevant regions in the feature maps based on information from the prototype vectors. The low-dimensional adaptive learning module introduces learnable parameters to capture correlation information between dual-branch features. The entire learning process follows a dimension reduction and then dimension restoration pattern; dimension reduction filters high-dimensional noise from the backbone network, while dimension restoration recovers the channel dimensions of feature maps for integration back into the backbone network.
For clarity, we explicitly define all symbols used in the FAA formulation. Let F s ∈ R c × h × w and F q ∈ R c × h × w denote support and query features, respectively, M s ∈ R h × w denote the support mask (downsampled to the feature resolution), c denote the channel dimension, and h and w denote the spatial dimensions.
Finally, we inject the adapter-enhanced feature into the encoder using a residual update:
F out = F + β · F *
where F is the original backbone feature, F * is the adapter output, and β is a learnable scaling factor controlling the injection strength.
Figure 4 details the specific architecture of the FAA module. For prototype generation, we take the support features F s ∈ R c × h × w and corresponding masks M s ∈ R h × w as inputs (where c denotes the feature dimension and h and w represent the spatial dimensions, with M s downsampled to match the feature resolution). The model filters background vectors through spatial multiplication between support features F s and masks M s and then applies average pooling to foreground feature vectors to obtain the current layer’s category prototype P ∈ R c . This process is mathematically defined as follows:
P = Mean ( F s ⊙ M s )
where ⊙ denotes the Hadamard (element-wise) product and Mean ( · ) computes the spatial average only over non-zero mask positions, yielding a global foreground prototype vector.
With the prototype P established, we proceed to feature activation to capture the most category-relevant features. As shown in Figure 4, given a class prototype P, we activate category-related feature regions to enhance foreground-background discriminability. First, we compute the similarity map between F s and P:
sim - map ( x , y ) = F ( x , y ) · P | | F ( x , y ) | | · | | P | |
where F ( x , y ) ∈ R c is the feature vector at spatial location ( x , y ) , · denotes the vector dot product, and | | · | | denotes the L 2 norm. Therefore, sim - map ( x , y ) ∈ [ − 1 , 1 ] measures cosine similarity between the local features and the class prototype.
Using this similarity activation matrix, category-enhanced intermediate features are obtained by
F mid = F ⊙ sim-map
where sim-map is broadcast along the channel dimension before element-wise multiplication. Note that both support and query features are activated with the same prototype in an episode; the equations above use support features for notation simplicity.
We emphasize that both query features F q and support features F s undergo the same activation process using the identical prototype P. The previous description used F s as an illustrative example.
Following the aforementioned processing, we obtain the initially activated features F mid . However, the model’s capacity for encoding task-specific information remains insufficient at this stage. Additionally, a distribution discrepancy exists between F mid and the original features F, and this discrepancy amplifies with increasing network depth. To address these challenges, our adapter module incorporates a low-dimensional learnable component that indirectly adjusts low-dimensional information within the backbone network while filtering high-dimensional noise. Given the limited training samples available, this module contains substantially fewer parameters compared with the entire model, thereby mitigating overfitting risks.
Specifically, the module consists of a down-projection linear layer (parameters W down ∈ R d × r ) for feature dimension compression and an up-projection linear layer (parameters W up ∈ R r × d ) for feature dimension restoration, where r denotes the hidden dimension:
F * = ReLU ( F mid · W down ) · W up

3.3. Adapter-Based Fine-Tuning for Training Phase

Although the paradigm of freezing pretrained backbone models has achieved considerable success, directly applying parameters pretrained for image classification to few-shot image segmentation fails to adequately address the prior bias problem.
Our algorithm addresses this limitation by inserting Feature Activation Adapter modules into the pretrained backbone network and fine-tuning a small subset of parameters within these adapters. This approach prevents overfitting while enabling the model to achieve better generalization when learning new tasks and to more accurately capture correlations between the support and query features. As illustrated in Figure 5, our method fine-tunes the parameters of the Feature Activation Adapter module while keeping the original backbone network parameters frozen. This design, referred to as adapter fine-tuning, serves two primary functions: preserving rich semantic cues from the pretrained backbone and facilitating learning for novel class segmentation tasks within the adapter, where support set information guides the segmentation of query targets.
Figure 5. Training phase framework diagram.
Following established research paradigms, we employ multi-scale attention pooling to extract prototypes from support features after the backbone network. We then concatenate the obtained prototypes with query features and finally generate prediction results through a decoder. The MAP process is formulated as follows:
Prototype = Mean ( F s ⊙ M s )
where ⊙ denotes spatial multiplication and Mean represents average pooling. This equation indicates that we compute the average of the feature vectors only at non-zero positions of M s . Subsequently, we expand the prototype to match the dimensions of the query features, facilitating subsequent concatenation operations.
During the training phase of few-shot segmentation, we utilize a substantial number of episodes as training data. Therefore, we also train the decoder parameters in the downstream network to adapt to the image features extracted by the fine-tuned backbone network.

3.4. Test-Phase Fine-Tuning via Data Augmentation

In conventional few-shot segmentation frameworks, models typically perform direct inference with frozen parameters during the testing phase without undergoing fine-tuning. However, this approach often yields suboptimal performance due to domain discrepancies between novel classes and base classes, combined with intra-class diversity. This constitutes the fundamental novel class adaptation challenge in few-shot segmentation.
To address this limitation, we propose a test-phase adaptive fine-tuning strategy based on support set data augmentation. This approach enables online optimization of model parameters through the generation of pseudo-query samples while strictly adhering to the task independence assumption of few-shot learning, thereby eliminating data leakage risks.
During the testing phase, each episode comprises randomly sampled support and query sets. To prevent cross-task information leakage, the model must complete training and inference independently within each task, prohibiting cross-task parameter updates or data reuse. Furthermore, test-phase fine-tuning faces an additional challenge: under extremely scarce data conditions, query set labels remain strictly unavailable. While some existing methods attempt to generate query pseudo-labels based on prediction confidence from current algorithms, this approach suffers from a critical limitation where fine-tuning outcomes becomes heavily dependent on the pseudo-label quality.
To overcome this constraint, our algorithm introduces a data augmentation-based pseudo-query sample generation strategy during testing. We apply data augmentation techniques to image-label pairs from the support set, thereby creating supervisory signals for the fine-tuning process.
As illustrated in Figure 6, our proposed test-phase fine-tuning strategy comprises two main components. First, we perform in-episode online fine-tuning using the augmented pseudo-query set. Second, we utilize the fine-tuned model to generate predictions for genuine query images and subsequently compute segmentation metrics.
Figure 6. Test-phase fine-tuning framework diagram.
We base our fine-tuning strategy design on the assumption that the two branches of the few-shot image segmentation algorithm exhibit certain symmetry. Specifically, we hypothesize that the neural network demonstrates consistent prediction patterns for images belonging to the same category. This theoretical foundation enables us to utilize the support set to generate labeled pseudo-query sets for fine-tuning purposes (see Algorithm 1).
Algorithm 1 Test-phase fine-tuning procedure
Require:  
Support image I s , support mask M s , query image I q , fine-tuning iterations N
Ensure:  
Segmentation mask M q for query image I q , and compute segmentation metric IoU
  1:
for each episode ( I s , I q , M s , M q )  do
  2:
   Step 1: Generate pseudo-query image I q * and its label mask M q * from I s and M s using data augmentation methods
  3:
   for  i = 1 to N do
  4:
     Predict segmentation mask M q ′ * for pseudo-query image I q * using test-phase fine-tuned model
  5:
     Compute cross-entropy loss L c e between prediction M q ′ * and pseudo-query label M q *
  6:
     Compute gradients and optimize trainable parameters using SGD optimizer
  7:
   end for
  8:
   Step 2: Predict segmentation mask M q for genuine query image using optimized model
  9:
   Compute segmentation metric IoU for this episode
10:
end for
To validate the feasibility of this assumption, we visualize the prediction outcomes from both branches of the few-shot network. Figure 7 illustrates the segmentation results for both support and query images using the same model. The left three columns demonstrate that when mis-segmented regions appear in the support segmentation, similar segmentation errors manifest in the query segmentation. The right three columns reveal that under-segmented regions in the support segmentation correspond to incomplete segmentation areas in the query segmentation.
Figure 7. Comparative visualization of dual-branch outputs in few-shot segmentation model.
These findings provide empirical evidence supporting the existence of symmetry between the two branches of our algorithm. Consequently, we implement an indirect, supervised online fine-tuning approach during the testing phase that leverages the support set.

3.5. Loss Function

We employ the cross-entropy loss as the primary loss function for model training. The theoretical advantage of this loss function lies in its intrinsic relationship with the Kullback–Leibler divergence, enabling effective quantification of information discrepancy between the model’s predicted distribution and the true conditional distribution. For segmentation tasks involving C semantic categories, the mathematical formulation of the cross-entropy loss is expressed as follows:
L c e = − 1 N ∑ i = 1 N ∑ c = 1 C y i , c log ( p i , c )
where N represents the total number of pixel samples, y i , c denotes the ground-truth label indicating whether the ith pixel belongs to category c, and p i , c represents the model’s estimated probability for that category. Through gradient backpropagation via the chain rule, this loss function drives iterative updates of network parameters toward the true distribution direction.
Compared with traditional loss functions such as the mean squared error, cross-entropy loss demonstrates superior gradient stability in class-imbalanced scenarios. Its penalty for incorrect predictions increases logarithmically with probability deviation, effectively preventing the model from converging to local optima. For pixel-level prediction tasks, this loss function achieves a balance between fine-grained supervision and global optimization by computing the loss values independently for each pixel and then averaging them globally.
Notably, the synergistic design with the Softmax activation function ensures the output probabilities satisfy the normalization constraints while maintaining smoothness of the loss landscape. This optimization paradigm based on entropy minimization essentially transforms the segmentation problem into a conditional probability density estimation process in the feature space, providing theoretical guarantees for supervised learning in few-shot semantic segmentation scenarios.

4. Experiments and Analysis

In this section, we evaluate the performance of the proposed BAFNet framework through comprehensive experiments and comparative analysis.

4.1. Set-Up

We begin by introducing the benchmark datasets and evaluation metrics employed in our experimental framework.

4.1.1. Datasets

Following established practices in the few-shot segmentation literature, we evaluated BAFNet’s performance on two standard benchmark datasets: PASCAL-5 i [49] and COCO-20 i [50]. PASCAL-5 i is constructed from PASCAL VOC 2012, with additional annotations from SDS. For cross-validation purposes, the 20 categories in PASCAL-5 i were divided into four folds, each containing 5 categories. COCO-20 i , built upon MS COCO, presents a more challenging dataset with 80 categories similarly partitioned into four folds, each comprising 20 categories. For each fold in both datasets, we sampled 1000 support-query image pairs, following the methodologies of MSANet [18], BAM [11], and PFENet [15] for fine-tuning and validation.
Furthermore, to verify our method’s generalization capability for industrial defect segmentation, we conducted extended few-shot defect segmentation experiments on the Magnetic Tile Defect Dataset [51]. This meticulously constructed, well-annotated industrial defect detection benchmark dataset simulates real assembly line manufacturing processes by capturing images of given magnetic tiles under various lighting conditions. The dataset contains 1344 images with cropped regions of interest for magnetic tile defects. It encompasses four defect categories: blowhole, crack, fray, and uneven. Each defect image has corresponding pixel-level annotations in the form of binary segmentation masks, where defective pixels are labeled white (255) and background regions (normal areas) are labeled black (0), as illustrated in Figure 8.
Figure 8. Examples of defect images and masks in MT dataset.
We partitioned the dataset into three folds according to sample distribution, with the specific category assignments for query and support sets detailed in Table 2.
Table 2. Category settings for query and support in three folds of MT Defect Dataset.

4.1.2. Evaluation Metrics

Following the established paradigm in few-shot semantic segmentation, where each training and testing episode contains only one target category, we treated all pixels belonging to the target as the foreground and the remaining pixels as the background. Consequently, we employed the mean intersection over union (mIoU) and foreground-background intersection over union (FB-IoU) as the most appropriate performance evaluation metrics.
The intersection over union (IoU) calculates the ratio between the intersection and union of the predicted and ground-truth regions for a specific category. In few-shot segmentation tasks, we primarily compute the IoU for foreground categories. The segmentation IoU for a single image can be derived from four essential elements in the prediction results, expressed by
IoU = Interaction Union = TP FN + FP + TP
where true positive (TP) represents pixel regions correctly predicted as the foreground, reflecting the model’s precision in capturing target features; true negative (TN) represents dual correct identification of background regions, demonstrating the model’s effectiveness in suppressing background information; false positive (FP) represents pixels incorrectly predicted as the foreground; and false negative (FN) represents foreground pixels that remain unsegmented. The mean intersection over union (mIoU) represents the average of the IoU results across all foreground categories. Values approaching one indicate superior segmentation performance, calculated as follows:
mIoU = 1 n + 1 ∑ i = 0 n IoU i
where n denotes the total number of categories in the fold.
The foreground-background intersection over union (FB-IoU) computes the average between the foreground IoU and background IoU. Similarly, values closer to one indicate stronger foreground-background discrimination capability and prediction masks more closely aligned with the ground-truth masks. The calculation formula is
FB-IoU = 1 2 ( IoU f g + IoU b g )
where IoU f g and IoU b g represent the foreground and background IoU results, respectively.
While the mIoU provides a global evaluation considering segmentation results across different foreground categories and demonstrates robust performance against class imbalance, the FB-IoU only distinguishes between the foreground and background without accounting for inter-class variations. Moreover, since background pixels typically dominate the majority, even classifying all pixels as background pixels can yield favorable FB-IoU results. Therefore, we primarily adopted the mIoU as the main performance metric for few-shot segmentation tasks, with the FB-IoU serving as a secondary evaluation indicator for comparing different algorithms.

4.1.3. Implementation Details

We conducted our experiments using the PyTorch deep learning framework with the Python 3.8 interpreter. The computational infrastructure employed a server platform comprising 4 NVIDIA RTX 3090 GPUs for parallel computing, an i9-12900KF CPU, and 64 GB of DDR5 memory, ensuring efficient and stable large-scale tensor operations. To ensure comparability with state-of-the-art mainstream algorithms, we adopted VGG-16 and ResNet-50 as backbone network benchmarks, both initialized with ImageNet pretrained weights and maintained through transfer learning strategies that froze the pretrained parameters to preserve generalization advantages in feature representation.
For the training strategy, we employed the stochastic gradient descent optimizer for parameter space exploration, with the momentum coefficient set to 0.9 and weight decay coefficient configured to be 0.0001. We executed 200 training epochs for the PASCAL-5i and MT Defect Dataset, while implementing a 50-epoch training strategy for COCO-20i due to its larger data scale. The batch size was set to 8 during training, while the single-sample inference mode was adopted during testing to simulate real-world few-shot segmentation requirements. All experimental procedures were modularly implemented through PyCharm IDE.
To optimize the learning rate adjustment throughout training, we integrated two distinct strategies: linear warm-up and polynomial decay. Polynomial decay reduces the learning rate by multiplying by ( 1 − c u r r e n t i t e r p o w e r m a x i t e r ) , where the power equals 0.9. During the initial training phase (first half of the first epoch), the learning rate linearly increased from b a s e l r × 0.1 to b a s e l r , where b a s e l r represents the initial learning rate (set to 0.05). Subsequently, the learning rate adjustment strategy switched to polynomial decay, gradually decreasing from the initial learning rate toward zero.
For the test fine-tuning phase, we set the learning rate to 1.25 × 10 − 4 to emulate the learning rate during later training stages. The data augmentation methods employed during testing primarily included random rotation, Gaussian blur, and horizontal flipping.
To improve reproducibility and provide a clearer summary of the optimization configuration, we additionally report the key hyperparameter settings in Table 3.
Table 3. Hyperparameter settings used in this work.

4.2. Comparative Analysis with State-of-the-Art Methods

Table 4 presents the segmentation performance of our proposed BAFNet model on the PASCAL-5i dataset. Our approach builds upon the BAM framework by incorporating multi-stage adaptive fine-tuning, and we compare its performance against other advanced methods. In the table, boldface indicates the best performance, while underlining denotes the second-best performance.
Table 4. Quantitative experimental mIoU (%) results on the PASCAL-5 i dataset.
Table 4 shows consistent gains of BAFNet across both backbones and shot settings. With VGG16, BAFNet improved over BAM by +1.27% (one-shot) and +1.38% (five-shot), and remained competitive with or superior to HDMNet (+0.58% in one-shot and +0.84% in five-shot). With ResNet50, BAFNet outperformed BAM by +1.55% (one-shot) and +1.45% (five-shot) and achieved comparable one-shot performance to HDMNet while surpassing it by +0.56% in five-shot performance. These results confirm that, with minimal additional trainable parameters, adapter-based fine-tuning improved support-guided query segmentation in a stable and backbone-agnostic manner.
Table 5 presents the mIoU metrics of our proposed BAFNet model on the COCO-20i dataset. When employing the VGG16 backbone network, BAFNet achieved a 2.02% mIoU improvement over the BAM baseline in the one-shot setting. In the five-shot scenario, our method demonstrated performance gains ranging from 0.02% to 10.69% (specifically, +0.02% over SANet and +2.05% over BAM). These results indicate that our algorithm provided significant improvements compared with the baseline model under the VGG16 configuration, while achieving comparable performance to advanced methods in the five-shot setting.
Table 5. Quantitative experimental mIoU (%) results on the COCO-20 i dataset.
When utilizing the ResNet50 backbone network, BAFNet showed mIoU improvements between 0.58% and 8.8% in the one-shot setting (specifically, +0.58% over MIANet and +1.77% over BAM), demonstrating noticeable enhancement compared with the state-of-the-art MIANet method. In the five-shot scenario, BAFNet achieved performance gains ranging from 1.25% to 6% (specifically, +1.25% over MIANet and +1.74% over BAM), indicating substantial improvements over both the advanced MIANet algorithm and the baseline BAM method.
Table 6 presents the mIoU metrics of our proposed BAFNet model on the MT dataset. When employing the VGG16 backbone network, BAFNet achieved a 4.69% mIoU improvement over the BAM baseline in the one-shot setting. In the five-shot scenario, our method demonstrated a 4.82% performance gain. These results indicate that our algorithm provided significant improvements compared with the baseline method under the VGG16 configuration.
Table 6. Quantitative experimental mIoU (%) results on the MT dataset.
When utilizing the ResNet50 backbone network, BAFNet showed mIoU improvements ranging from 4.74% to 9.13% in the one-shot setting. In the five-shot scenario, our method achieved performance gains between 5.52% and 9.35%. These experimental outcomes demonstrate that our approach maintained excellent adaptability for industrial defect detection and segmentation tasks.
Table 4, Table 5 and Table 6 demonstrate that our BAFNet model achieved excellent segmentation performance across all three datasets, employing both VGG16 and ResNet50 backbone networks under both the one-shot and five-shot settings. Although the COCO-20i dataset presented greater challenges due to its more complex images and required the adapter to learn more intricate information, our proposed BAFNet model maintained robust and stable performance in few-shot semantic segmentation tasks. Compared with the baseline BAM model, we observed significant improvements while also achieving enhanced mIoU metrics relative to advanced models including MIANet and SANet. Our BAFNet model demonstrated outstanding segmentation capability in both complex scenarios and industrial defect segmentation applications.
Table 7 presents the comparative experimental results of FB-IoU performance for our BAFNet model on the PASCAL-5i, COCO-20i, and MT datasets. Our proposed method demonstrated substantial advantages compared with current mainstream few-shot segmentation approaches. On the PASCAL-5i dataset with the VGG16 backbone, BAFNet achieved FB-IoU improvements of 0.41–4.18% in the one-shot setting (specifically, +0.41% over EFTNet and +1.43% over BAM), with performance gains of 0.38–4.17% in the five-shot scenario (specifically, +0.38% over EFTNet and +1.27% over BAM). When utilizing the ResNet50 backbone, we observed FB-IoU improvements of 0.29–6.76% in the one-shot experiments (specifically, +0.29% over EFTNet and +1.56% over BAM) while maintaining performance advantages of 0.27–5.53% under five-shot conditions (specifically, +0.27% over EFTNet and +1.55% over BAM).
Table 7. FB-IoU performance comparison experiment.
On the COCO-20i dataset with the VGG16 backbone, our algorithm achieved comparable performance to the advanced methods in both the one-shot and five-shot settings. With the ResNet50 backbone, BAFNet demonstrated a comparable FB-IoU to EFTNet in the one-shot setting while achieving a 1.51% improvement over EFTNet in the five-shot condition. For the MT dataset with both the VGG16 and ResNet50 backbones, our method showed significant performance enhancements compared with the baseline methods in both the one-shot and five-shot scenarios.
Using the FB-IoU as an evaluation metric in Table 7 provides supplementary assessment of the model generalization capability. The BAFNet model, which incorporates Feature Activation Adapter modules and implements multi-stage fine-tuning strategies based on the baseline BAM framework, achieved state-of-the-art results under the FB-IoU evaluation metric. This validates the effectiveness of our proposed method and its constituent modules. Across all three datasets, our BAFNet model demonstrated superior segmentation performance.

4.3. Learning Curve Analysis on PASCAL and COCO

To provide a clearer view of the optimization behavior, we visualized the training and validation curves on both PASCAL-5i and COCO-20i, including the PASCAL-loss, PASCAL-mIoU, COCO-loss, and COCO-mIoU, as shown in Figure 9.
Figure 9. Training and validation learning curves on PASCAL-5i and COCO-20i, including PASCAL-loss, PASCAL-mIoU, COCO-loss, and COCO-mIoU.
Based on the loss curves, both datasets showed a clear downward trend as training proceeded, indicating that the optimization process converged stably. The validation loss remained generally higher than the training loss, which is expected in few-shot settings due to the class split between meta-train and meta-test episodes. Importantly, no persistent divergence was observed, suggesting that the proposed adapter-based strategy maintained good optimization stability while avoiding severe overfitting.
Based on the mIoU curves, both the training and validation mIoU increased progressively and then entered a mild plateau stage, which is consistent with normal convergence behavior. Compared with PASCAL-5i, COCO-20i exhibited relatively larger fluctuations during optimization, reflecting its higher scene complexity and broader intra-class variations. Nevertheless, the overall upward trend of the COCO-mIoU validates that BAFNet can still learn transferable support-query matching patterns under more challenging conditions.
Overall, these four curves provide complementary evidence that BAFNet achieved stable optimization dynamics, a controlled generalization gap, and consistent performance gains across datasets of different difficulty levels.

4.4. Qualitative Results and Visualization

We now present qualitative comparisons between BAFNet and other baseline approaches through visual analysis of the segmentation results.

4.4.1. Experimental Visualization Across Multiple Episodes

To visually demonstrate the effectiveness of our method, we conducted visualization experiments across multiple episodes on testing categories. Figure 10 presents the corresponding segmentation masks for the target categories generated by different approaches. In addition to comparing the segmentation results with the baseline methods, we also evaluated the outcomes after test-phase fine-tuning to comprehensively assess the effectiveness of our proposed model.
Figure 10. Visualization of qualitative experimental results.
As shown in Figure 10, the first row displays support images with their ground-truth masks highlighted in blue. The second row shows query images with their corresponding ground-truth masks highlighted in green. The third row presents the segmentation results from the baseline method. The fourth and fifth rows display our method’s segmentation results before and after test-phase fine-tuning, respectively, highlighted in red.
In the first column, the bottle category faced significant interference from the monitor displayed in the query image. Other methods clearly succumbed to this interference, failing to correctly capture the bottle in the corner while mistakenly focusing on the image shown on the monitor. Our method after training-phase fine-tuning successfully segmented the bottle in the query image, though it incorrectly segmented the bottle displayed on the monitor as foreground. Subsequent test-phase fine-tuning enabled the model to exclude interference from the monitor and correctly segment the target.
In the fourth column, the cow category query image contained distracting objects in the background. The baseline method in the third row was clearly affected by this interference, mistakenly segmenting the distracting objects as foreground. Our method after training-phase fine-tuning only optimized the segmentation edges while still being affected by similar objects. Finally, test-phase fine-tuning enhanced the model’s recognition capability for the cow category, successfully eliminating interference from distracting objects and achieving correct segmentation results.
Overall, our method demonstrates that the first stage effectively enhances the model’s ability to capture support-query similarities compared with the baseline model, while the second stage successfully focuses on novel categories, exhibiting superior generalization capability to new classes.

4.4.2. Feature Map Activation Visualization

To demonstrate the effectiveness of our proposed method, we conducted feature map visualization experiments in this study. As shown in Figure 11, the three rows in the sequence represent the support set images, baseline model, and our proposed method, while the four columns display the visualization results for different category feature maps. The entire backbone network comprised five layers with multiple downsampling operations, making the visualization results of the deep-layer feature maps less interpretable. Therefore, we selected the output features from the second layer for visualization.
Figure 11. Visualization of activation feature maps.
Our experimental results indicate that, compared with the feature maps generated by the baseline model, the feature maps processed through our feature activation method demonstrated significant activation in the target foreground regions. This enhanced activation enabled subsequent networks to focus more effectively on the target category features during feature extraction.

4.4.3. Query Prototype t-SNE Visualization

We validated the effectiveness of our proposed method through prototype space visualization analysis. Using t-SNE technology to perform dimensionality reduction and visualization mapping of query prototypes from the decoder output, we systematically compared the differences in the prototype distribution characteristics between the baseline model and our improved approach.
Figure 12 presents the comparative results, where the three columns represent the backbone network, baseline model, and our method, while the four rows correspond to the four folds from Fold0 to Fold3, with each fold containing five categories of foreground targets for segmentation.
Figure 12. Visualization of t-SNE results for query prototypes.
The experimental results demonstrate that, compared with the baseline model, prototypes of the same category became more compact in our approach. Our method generated more spatially discriminative prototypes that could more clearly distinguish between prototypes of the same category, as evidenced by the red and blue points in Fold2 and the red and green points in Fold3.
The similarity-based Feature Activation Adapter mechanism we constructed improved the structural characteristics of the prototype space; inter-class feature distances were significantly expanded, while intra-class distributions became more compact, forming well-bounded clustering effects. Compared with the inter-class overlap and intra-class dispersion observed in the baseline model, our improved solution achieved prototype representation reconstruction and discriminative enhancement through the synergistic action of the similarity metric module and low-dimensional adaptive learning module.
This optimization effect demonstrated consistency across multiple test folds, and this compact reconstruction of the prototype space effectively enhanced the segmentation performance of the few-shot segmentation model.

4.4.4. Heat Map Visualization

We employed gradient-weighted class activation mapping (Grad-CAM) [59] to visualize the attention regions of our model. By integrating gradient information of the target categories with feature maps from convolutional layers, we generated heat maps that highlighted the most critical regions for classification decisions. As shown in Figure 13, the left three columns correspond to class activation maps for natural and indoor scene images, while the right three columns display activation maps for three industrial defect images. Our observations demonstrate that the proposed method achieved superior class activation focus on the target segmentation regions across all scenarios.
Figure 13. Visual comparison of CAM attention maps for natural scenes, indoor scenes, and industrial defect images.
As evidenced by the visualization results in Figure 13, the proposed two-stage fine-tuning strategy with adapters enabled our method to not only capture target objects from unseen categories more accurately while significantly mitigating the negative impact of irrelevant background information but also successfully identify target instances when the baseline model failed to focus on critical regions. These capabilities allowed our approach to maintain better focus on novel category targets, thereby enhancing the few-shot semantic segmentation performance metrics.

5. Discussion

In this section, we discuss the effectiveness of BAFNet through comprehensive analysis.

5.1. Ablation Study

We designed systematic ablation experiments to quantitatively evaluate the contributions of key modules in BAFNet, specifically focusing on meta-training phase fine-tuning and meta-testing phase fine-tuning. Our experiments were conducted under the one-shot setting on the PASCAL-5i dataset. Table 8 presents the IoU metrics for each fold and the final mIoU. The complete model (after multi-stage fine-tuning) achieved an mIoU of 65.68%, representing a 1.27% improvement over the baseline model (BAM model before fine-tuning). The training phase backbone fine-tuning strategy alone contributed a 0.87% performance gain (64.41% → 65.28%), while the testing phase fine-tuning provided an additional 0.4% improvement (65.28% → 65.68%).
Table 8. Key module ablation study results.

5.2. Analysis of Learnable Parameters in Feature Adapter

To investigate the impact of internal layer dimensions in the Feature Activation Adapter module on algorithm performance, we conducted ablation experiments under the one-shot learning paradigm using controlled variable methods. We set the hidden layer dimension of the learning module to r and performed experiments with different values of r, using the mIoU as the quantitative evaluation metric. As shown in Figure 14, the model achieved peak performance of 65.12% when r = c / 8 , where c represents the channel number of activated features in the adapter, demonstrating the effectiveness of the feature enhancement module. The performance curve exhibited non-monotonic characteristics. When r < c / 8 , excessively small dimensions led to insufficient model expressiveness, while when r > c / 8 , each additional single layer caused performance degradation due to overfitting and catastrophic forgetting of the risks associated with excessively large fine-tuning feature dimensions.
Figure 14. Adapter key parameter analysis results.

5.3. Analysis of Test-Phase Fine-Tuning Parameters

To examine the impact of the test-phase fine-tuning parameters on algorithm performance, we conducted experiments under the one-shot setting, investigating the effects of fine-tuning iterations and the number of pseudo-query sets. As illustrated in Figure 15, excessive fine-tuning iterations led to significant performance degradation, as overly scarce fine-tuning samples within episodes increased the likelihood of overfitting. Similarly, while different augmentation strategies provided some variation, generating excessive numbers of pseudo-query sets still carried overfitting risks. Our experiments achieved optimal performance of 65.68% with five fine-tuning iterations and two augmented pseudo-query images. Excessive fine-tuning yielded negative returns, increasing the time consumption per iteration while decreasing the segmentation metrics.
Figure 15. Test-phase fine-tuning strategy parameter ablation study.

6. Analysis of Trainable Parameters

We conducted a comprehensive comparison between full fine-tuning and adapter-based fine-tuning on the BAM framework, with experiments designed under the one-shot setting on the PASCAL-5i dataset. The comparison thoroughly examined both the number of trainable parameters and the corresponding performance, as detailed in Table 9.
Table 9. Comparison of trainable parameters and one-shot segmentation metrics.
The results demonstrate that our method achieved performance comparable to the advanced HDMNet approach during the meta-training phase while utilizing only a minimal number of parameters. After test-phase fine-tuning, the performance further improved by 0.4%. Full fine-tuning, while consuming substantial computational resources, introduced overfitting and catastrophic forgetting issues that compromised the effective original information in the backbone network, ultimately degrading segmentation performance.
Our proposed BAFNet model achieved state-of-the-art few-shot segmentation performance while maintaining the most efficient parameter utilization, effectively balancing parameter efficiency with high performance.
Computational Efficiency Analysis. To further substantiate the claims on efficiency, we additionally report the wall-clock runtime and GPU memory usage of representative settings on the BAM framework. As shown in Table 10, our adapter-based meta-training introduced only a marginal training-time overhead compared with BAM (13 h → 13.5 h) while achieving better segmentation performance. Moreover, the episode-level meta-test adaptation required only 1 h in total and used substantially lower GPU memory than full fine-tuning.
Table 10. Runtime and GPU memory usage comparison.
These results, together with the trainable-parameter comparison in Table 9, indicate that BAFNet provides a favorable trade-off among accuracy, parameter efficiency, and practical deployment cost.
Limitations and Future Directions. Despite the strong empirical performance, BAFNet still has several limitations. First, the method may be sensitive to noisy or weakly representative prototypes in challenging episodes. When the support foreground is ambiguous or contaminated by background interference, prototype quality can degrade and may weaken support–query matching reliability. One promising direction is to improve prototype representativeness by introducing more informative prototype construction strategies, such as cluster-based prototype aggregation and joint foreground–background prototype modeling.
Second, pseudo-query-based test-time fine-tuning may increase class shift risk in some cases. This risk mainly stems from the extremely limited query context and the current augmentation strategy, which may not always generate sufficiently diverse and semantically faithful pseudo-query samples. Future work will investigate stronger data generation mechanisms (e.g., diffusion-based augmentation) and more robust adaptation constraints to reduce overfitting and improve stability under distribution shift.

7. Conclusions

This paper systematically investigated the limitations of traditional few-shot semantic segmentation algorithms in fine-tuning pretrained backbone networks. To address these challenges, we proposed a novel few-shot image segmentation algorithm that incorporates parameter-efficient Feature Activation Adapter structures into the backbone network. This approach achieved performance improvements while introducing only minimal additional learnable parameters.
Our method not only adjusts adapter parameters during the meta-training phase to enhance the model’s understanding of support-query correlations and segmentation target recognition but also employs a data augmentation-based approach during meta-testing to generate pseudo-query sets. This enables supervised targeted fine-tuning for learning semantic information of novel categories.
Through extensive experiments on PASCAL-5i, COCO-20i, and industrial defect datasets, the results demonstrate that our BAFNet model achieved state-of-the-art segmentation performance while maintaining the most efficient parameter utilization. Compared with mainstream few-shot segmentation methods, our model exhibited superior capabilities in feature similarity learning and novel class generalization.
Ablation studies validated the effectiveness of each model component, confirming the importance of Feature Activation Adapter modules for enhanced feature understanding. Furthermore, experimental results indicate that thanks to the adapter fine-tuning characteristics, our algorithm generated more concentrated prototypes that effectively bridged the semantic relationship between support and query features, leading to more accurate query target segmentation. The proposed method demonstrated excellent few-shot segmentation performance for both general images in complex scenes and industrial defect segmentation scenarios.
From a broader perspective, the parameter-efficient and staged adaptation paradigm represented by BAFNet opens a promising direction for few-shot segmentation. Nevertheless, several limitations remain. The current data augmentation strategy is still relatively simple; the number of online test-time fine-tuning iterations and the learning rate are manually specified hyperparameters; and the FAA module design and insertion positions are relatively fixed. Future research should extend beyond incremental refinement of existing components by relaxing the assumptions of static images and closed-world settings, extending to multimodal inputs, sequential data, and open environments, and integrating more deeply with the rapidly evolving foundation-model ecosystem. We believe these directions can further advance few-shot learning toward more general, efficient, and robust real-world deployment.

Author Contributions

Conceptualization, Y.S. and Y.Z.; methodology, Y.S., Y.Z., Y.W. (Yubo Wang), Y.W. (Ying Wei) and G.Y.; software, Y.S. and Y.W. (Yubo Wang); validation, Y.S., Y.Z., Y.W. (Yubo Wang), Y.W. (Ying Wei) and G.Y.; formal analysis, Y.S., Y.W. (Yubo Wang) and Y.Z.; investigation, Y.S., Y.W. (Yubo Wang) and Y.Z.; resources, Y.S., Y.W. (Yubo Wang) and Y.Z.; data curation, Y.S. and Y.Z.; writing—original draft preparation, Y.S.; writing—review and editing, Y.S., Y.Z. and Y.W. (Ying Wei); visualization, Y.S. and Y.Z.; supervision, Y.W. (Ying Wei) and G.Y.; project administration, Y.W. (Ying Wei) and G.Y.; funding acquisition, Y.W. (Ying Wei) and G.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by National Nature Science Foundation of China (grant Nos. 61871106 and 62441231), Key R&D projects of Liaoning Province, China (grant No. 2024JH2/102500015), Fundamental Research Funds for the Central Universities of Ministry of Education (grant No. N25BSS034).

Data Availability Statement

The data presented in this study are openly available in PASCAL-5i [43] and COCO-20i [44] at https://link.springer.com/chapter/10.1007/978-3-319-10602-1_48 [43,44].

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2015; pp. 3431–3440. [Google Scholar]
  2. Huang, Z.; Wang, X.; Huang, L.; Huang, C.; Wei, Y.; Liu, W. Ccnet: Criss-cross attention for semantic segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2019; pp. 603–612. [Google Scholar]
  3. Deng, J.; Dong, W.; Socher, R.; Li, L.J.; Li, K.; Fei-Fei, L. Imagenet: A large-scale hierarchical image database. In Proceedings of the 2009 IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2009; pp. 248–255. [Google Scholar]
  4. Liu, B.; Yu, X.; Yu, A.; Zhang, P.; Wan, G.; Wang, R. Deep few-shot learning for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2018, 57, 2290–2304. [Google Scholar] [CrossRef] [Scilit]
  5. Jiang, W.; Huang, K.; Geng, J.; Deng, X. Multi-scale metric learning for few-shot learning. IEEE Trans. Circuits Syst. Video Technol. 2020, 31, 1091–1102. [Google Scholar] [CrossRef] [Scilit]
  6. Zhou, X.; Liang, W.; Shimizu, S.; Ma, J.; Jin, Q. Siamese neural network based few-shot learning for anomaly detection in industrial cyber-physical systems. IEEE Trans. Ind. Inform. 2020, 17, 5790–5798. [Google Scholar] [CrossRef] [Scilit]
  7. Liu, S.; Shi, Q.; Zhang, L. Few-shot hyperspectral image classification with unknown classes using multitask deep learning. IEEE Trans. Geosci. Remote Sens. 2020, 59, 5085–5102. [Google Scholar] [CrossRef] [Scilit]
  8. Yan, L.; Li, F.; Zhang, L.; Zheng, X. Discriminant space metric network for few-shot image classification. Appl. Intell. 2023, 53, 17444–17459. [Google Scholar] [CrossRef] [Scilit]
  9. Zheng, Z.; Feng, X.; Yu, H.; Li, X.; Gao, M. BDLA: Bi-directional local alignment for few-shot learning. Appl. Intell. 2023, 53, 769–785. [Google Scholar] [CrossRef] [Scilit]
  10. Wang, B.; Li, L.; Verma, M.; Nakashima, Y.; Kawasaki, R.; Nagahara, H. Match them up: Visually explainable few-shot image classification. Appl. Intell. 2023, 53, 10956–10977. [Google Scholar] [CrossRef] [Scilit]
  11. Lang, C.; Cheng, G.; Tu, B.; Han, J. Learning what not to segment: A new perspective on few-shot segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2022; pp. 8057–8067. [Google Scholar]
  12. Wang, K.; Liew, J.H.; Zou, Y.; Zhou, D.; Feng, J. Panet: Few-shot image semantic segmentation with prototype alignment. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2019; pp. 9197–9206. [Google Scholar]
  13. Liu, B.; Jiao, J.; Ye, Q. Harmonic feature activation for few-shot semantic segmentation. IEEE Trans. Image Process. 2021, 30, 3142–3153. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Li, G.; Jampani, V.; Sevilla-Lara, L.; Sun, D.; Kim, J.; Kim, J. Adaptive prototype learning and allocation for few-shot segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2021; pp. 8334–8343. [Google Scholar]
  15. Tian, Z.; Zhao, H.; Shu, M.; Yang, Z.; Li, R.; Jia, J. Prior guided feature enrichment network for few-shot segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2020, 44, 1050–1065. [Google Scholar] [CrossRef] [Scilit]
  16. Zheng, Z.; Huang, G.; Yuan, X.; Pun, C.M.; Liu, H.; Ling, W.K. Quaternion-valued correlation learning for few-shot semantic segmentation. IEEE Trans. Circuits Syst. Video Technol. 2022, 33, 2102–2115. [Google Scholar] [CrossRef] [Scilit]
  17. Liu, Y.; Liu, N.; Cao, Q.; Yao, X.; Han, J.; Shao, L. Learning non-target knowledge for few-shot semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2022; pp. 11573–11582. [Google Scholar]
  18. Iqbal, E.; Safarov, S.; Bang, S. Msanet: Multi-similarity and attention guidance for boosting few-shot segmentation. arXiv 2022, arXiv:2206.09667. [Google Scholar]
  19. Zhang, S.; Wu, T.; Wu, S.; Guo, G. CATrans: Context and Affinity Transformer for Few-Shot Segmentation. In Proceedings of the International Joint Conference on Artificial Intelligence, Vienna, Austria, 23–29 July 2022. [Google Scholar]
  20. Chang, Z.; Lu, Y.; Ran, X.; Gao, X.; Zhao, H. Simple yet effective joint guidance learning for few-shot semantic segmentation. Appl. Intell. 2023, 53, 26603–26621. [Google Scholar] [CrossRef] [Scilit]
  21. Lang, C.; Tu, B.; Cheng, G.; Han, J. Beyond the Prototype: Divide-and-Conquer Proxies for Few-Shot Segmentation. In Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence (IJCAI), Vienna, Austria, 23–29 July 2022; pp. 1024–1030. [Google Scholar] [CrossRef] [Scilit]
  22. Girshick, R. Fast r-cnn. In Proceedings of the IEEE International Conference on Computer Vision; IEEE: New York, NY, USA, 2015; pp. 1440–1448. [Google Scholar]
  23. Requeima, J.; Gordon, J.; Bronskill, J.; Nowozin, S.; Turner, R.E. Fast and flexible multi-task classification using conditional neural adaptive processes. In Proceedings of the Advances in Neural Information Processing Systems 32, Vancouver, BC, Canada, 8–14 December 2019. [Google Scholar]
  24. Shen, Z.; Liu, Z.; Qin, J.; Savvides, M.; Cheng, K.T. Partial is better than all: Revisiting fine-tuning strategy for few-shot learning. In Proceedings of the AAAI Conference on Artificial Intelligence, Online, 2–9 February 2021; Volume 35, pp. 9594–9602. [Google Scholar]
  25. Li, X.; Yang, X.; Ma, Z.; Xue, J.H. Deep metric learning for few-shot image classification: A review of recent developments. Pattern Recognit. 2023, 138, 109381. [Google Scholar] [CrossRef] [Scilit]
  26. Antonelli, S.; Avola, D.; Cinque, L.; Crisostomi, D.; Foresti, G.L.; Galasso, F.; Marini, M.R.; Mecca, A.; Pannone, D. Few-shot object detection: A survey. ACM Comput. Surv. (CSUR) 2022, 54, 1–37. [Google Scholar] [CrossRef] [Scilit]
  27. Chang, Z.; Lu, Y.; Ran, X.; Gao, X.; Wang, X. Few-shot semantic segmentation: A review on recent approaches. Neural Comput. Appl. 2023, 35, 18251–18275. [Google Scholar] [CrossRef] [Scilit]
  28. Finn, C.; Abbeel, P.; Levine, S. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the International Conference on Machine Learning, Sydney, Australia, 6–11 August 2017; PMLR: New York, NY, USA, 2017; pp. 1126–1135. [Google Scholar]
  29. Wortsman, M.; Ehsani, K.; Rastegari, M.; Farhadi, A.; Mottaghi, R. Learning to learn how to learn: Self-adaptive visual navigation using meta-learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2019; pp. 6750–6759. [Google Scholar]
  30. Rusu, A.A.; Rao, D.; Sygnowski, J.; Vinyals, O.; Pascanu, R.; Osindero, S.; Hadsell, R. Meta-learning with latent embedding optimization. arXiv 2018, arXiv:1807.05960. [Google Scholar]
  31. Nichol, A.; Achiam, J.; Schulman, J. On first-order meta-learning algorithms. arXiv 2018, arXiv:1803.02999. [Google Scholar]
  32. Li, Z.; Zhou, F.; Chen, F.; Li, H. Meta-sgd: Learning to learn quickly for few-shot learning. arXiv 2017, arXiv:1707.09835. [Google Scholar]
  33. Ritter, S.; Wang, J.; Kurth-Nelson, Z.; Jayakumar, S.; Blundell, C.; Pascanu, R.; Botvinick, M. Been there, done that: Meta-learning with episodic recall. In Proceedings of the International Conference on Machine Learning, Stockholm, Sweden, 10–15 July 2018; PMLR: New York, NY, USA, 2018; pp. 4354–4363. [Google Scholar]
  34. Xiao, G.; Tian, S.; Yu, L.; Zhou, Z.; Zeng, X. Siamese few-shot network: A novel and efficient network for medical image segmentation. Appl. Intell. 2023, 53, 17952–17964. [Google Scholar] [CrossRef] [Scilit]
  35. Sung, F.; Yang, Y.; Zhang, L.; Xiang, T.; Torr, P.H.; Hospedales, T.M. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2018; pp. 1199–1208. [Google Scholar]
  36. Jamal, M.A.; Qi, G.J. Task agnostic meta-learning for few-shot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2019; pp. 11719–11727. [Google Scholar]
  37. Chen, Z.; Fu, Y.; Chen, K.; Jiang, Y.G. Image block augmentation for one-shot learning. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 3379–3386. [Google Scholar]
  38. Chen, Z.; Fu, Y.; Wang, Y.X.; Ma, L.; Liu, W.; Hebert, M. Image deformation meta-networks for one-shot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2019; pp. 8680–8689. [Google Scholar]
  39. Shaban, A.; Bansal, S.; Liu, Z.; Essa, I.; Boots, B. One-Shot Learning for Semantic Segmentation. In Proceedings of the British Machine Vision Conference (BMVC), London, UK, 4–7 September 2017; pp. 167.1–167.13. [Google Scholar] [CrossRef] [Scilit]
  40. Zhang, X.; Wei, Y.; Yang, Y.; Huang, T.S. Sg-one: Similarity guidance network for one-shot semantic segmentation. IEEE Trans. Cybern. 2020, 50, 3855–3865. [Google Scholar] [CrossRef] [Scilit]
  41. Liu, W.; Zhang, C.; Lin, G.; Liu, F. Crnet: Cross-reference networks for few-shot segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2020; pp. 4165–4173. [Google Scholar]
  42. Sun, Y.; Chen, Q.; He, X.; Wang, J.; Feng, H.; Han, J.; Ding, E.; Cheng, J.; Li, Z.; Wang, J. Singular value fine-tuning: Few-shot segmentation requires few-parameters fine-tuning. Adv. Neural Inf. Process. Syst. 2022, 35, 37484–37496. [Google Scholar]
  43. Liu, J.; Bao, Y.; Xie, G.S.; Xiong, H.; Sonke, J.J.; Gavves, E. Dynamic prototype convolution network for few-shot semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2022; pp. 11553–11562. [Google Scholar]
  44. Xu, W.; Huang, H.; Cheng, M.; Yu, L.; Wu, Q.; Zhang, J. Masked cross-image encoding for few-shot segmentation. In Proceedings of the 2023 IEEE International Conference on Multimedia and Expo (ICME); IEEE: New York, NY, USA, 2023; pp. 744–749. [Google Scholar]
  45. Peng, B.; Tian, Z.; Wu, X.; Wang, C.; Liu, S.; Su, J.; Jia, J. Hierarchical dense correlation distillation for few-shot segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2023; pp. 23641–23651. [Google Scholar]
  46. Xie, G.S.; Liu, J.; Xiong, H.; Shao, L. Scale-aware graph neural network for few-shot semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2021; pp. 5475–5484. [Google Scholar]
  47. Min, J.; Kang, D.; Cho, M. Hypercorrelation squeeze for few-shot segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2021; pp. 6941–6952. [Google Scholar]
  48. Xu, Q.; Zhao, W.; Lin, G.; Long, C. Self-calibrated cross attention network for few-shot segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2023; pp. 655–665. [Google Scholar]
  49. Zhao, Y.; Price, B.; Cohen, S.; Gurari, D. Objectness-Aware Few-Shot Semantic Segmentation. arXiv 2021, arXiv:2004.02945. [Google Scholar]
  50. Lin, T.Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft COCO: Common Objects in Context. In Proceedings of the Computer Vision—ECCV 2014; Fleet, D., Pajdla, T., Schiele, B., Tuytelaars, T., Eds.; Springer: Cham, Switzerland, 2014; pp. 740–755. [Google Scholar]
  51. Zhu, Z.; Zhu, P.; Zeng, J.; Qian, X. A surface fatal defect detection method for magnetic tiles based on semantic segmentation and object detection: IEEE ITAIC (ISSN: 2693-2865). In Proceedings of the 2022 IEEE 10th Joint International Information Technology and Artificial Intelligence Conference (ITAIC); IEEE: New York, NY, USA, 2022; Volume 10, pp. 2580–2586. [Google Scholar]
  52. Bao, X.; Qin, J.; Sun, S.; Wang, X.; Zheng, Y. Relevant intrinsic feature enhancement network for few-shot semantic segmentation. In Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada, 20–27 February 2024; Volume 38, pp. 765–773. [Google Scholar]
  53. Cheng, G.; Lang, C.; Han, J. Holistic prototype activation for few-shot segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 45, 4650–4666. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  54. Ye, M.; Zhang, T. SANet: Similarity aggregation and semantic fusion for few-shot semantic segmentation. Appl. Intell. 2025, 55, 119. [Google Scholar] [CrossRef] [Scilit]
  55. Liu, H.; Peng, P.; Chen, T.; Wang, Q.; Yao, Y.; Hua, X.S. Fecanet: Boosting few-shot semantic segmentation with feature-enhanced context-aware network. IEEE Trans. Multimed. 2023, 25, 8580–8592. [Google Scholar] [CrossRef] [Scilit]
  56. Yang, Y.; Chen, Q.; Feng, Y.; Huang, T. Mianet: Aggregating unbiased instance and general information for few-shot semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2023; pp. 7131–7140. [Google Scholar]
  57. Luo, X.; Tian, Z.; Zhang, T.; Yu, B.; Tang, Y.Y.; Jia, J. Pfenet++: Boosting few-shot semantic segmentation with the noise-filtered context-aware prior mask. IEEE Trans. Pattern Anal. Mach. Intell. 2023, 46, 1273–1289. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  58. Li, J.; Wang, Y.; Gao, Z.; Wei, Y. EFTNet: An efficient fine-tuning method for few-shot segmentation. Appl. Intell. 2024, 54, 9488–9507. [Google Scholar] [CrossRef] [Scilit]
  59. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV); IEEE: New York, NY, USA, 2017; pp. 618–626. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.