Pushing the Limit of Fine-Tuning for Few-Shot Learning: Where Feature Reusing Meets Cross-Scale Attention

Ying-Yu Chen, Jun-Wei Hsieh, Xin Li, Ming-Ching Chang

Introduction

Few-Shot Learning (FSL) remains a significant challenge in computer vision, requiring models to generalize to new classes from only a handful of labeled examples. The prevailing paradigm involves fine-tuning a model pre-trained on a large-scale dataset like ImageNet. However, standard fine-tuning often fails to fully exploit the rich hierarchical features present in deep networks and struggles to maintain consistency across different spatial scales.

This research identifies two primary bottlenecks in current FSL methods:

  1. Feature Underutilization: Conventional architectures typically only propagate the final output of a residual or transformer block. This practice discards valuable fine-grained information contained in the intermediate layers of the block, which is particularly detrimental when training data is scarce.
  2. Scale Inconsistency: Models often struggle to reconcile local textures with global semantic structures, a problem exacerbated in cross-domain scenarios where visual distributions differ significantly from the pre-training data.

Proposed Methodology: Feature Strengthening and Weighting

The authors propose a robust two-stage architecture designed to maximize feature reuse and cross-scale synergy.

Intra-Block Fusion (IBF)

To address feature underutilization, the Intra-Block Fusion (IBF) module is introduced. Instead of relying solely on the terminal layer of a convolutional block, IBF employs a $1 \times 1$ convolution to aggregate features from all layers within the block. This mechanism serves as a "feature repair" tool, ensuring that informative signals from earlier layers are preserved even if the final layer's representation is noisy due to the limited sample size.

Cross-Scale Attention (CSA)

The Cross-Scale Attention (CSA) module harmonizes information across different network stages. By treating feature maps from various resolutions as queries, keys, and values in an attention mechanism, the model can identify and amplify consistent patterns across scales. This ensures that local details are contextualized within the global image structure.

The overall architecture of the proposed framework, illustrating the flow from the CNN backbone through feature strengthening (IBF and CSA) to feature weighting and nearest centroid classification.

Feature Weighting and Classification

Following feature strengthening, the model applies a weighting scheme ($W_1$ to $W_4$) to the multi-scale features. These are then concatenated and passed through a fully connected (FC) layer before final classification using a Nearest Centroid approach. This pipeline is further enhanced by a meta-testing phase that utilizes data augmentation to help the model adapt to entirely new visual distributions.

Experimental Results

The proposed method was evaluated across a wide array of benchmarks, demonstrating superior performance in both in-domain and cross-domain tasks.

  • In-Domain Performance: On the FC100 dataset, the model achieved a significant breakthrough, reaching 73.07% accuracy in the 5-way 1-shot setting—a 3.15% improvement over the previous state-of-the-art (PMF).
  • Cross-Domain Robustness: The model set new records on the Meta-Dataset, outperforming existing methods by an average of 3.77% across ten diverse domains, including satellite imagery and medical scans.
Qualitative comparison of attention maps. The proposed method (Ours) demonstrates more precise localization and better capture of global object structure compared to the PMF baseline.

Qualitative analysis via Grad-CAM heatmaps reveals that the integration of CSA allows the model to focus more accurately on the target objects, effectively bridging the gap between local textures and global shapes.

Conclusion

By rethinking the fine-tuning process through the lenses of feature reuse and cross-scale attention, this work pushes the boundaries of what is possible in Few-Shot Learning. The success of IBF and CSA suggests that "re-mining" existing architectural features is a powerful alternative to increasingly complex meta-learning algorithms. Future work will explore the application of these principles to dense prediction tasks such as semantic segmentation and crowd counting.

Summary updated

BibTeX
@inproceedings{chen2024pushing,
  author = {Ying-Yu Chen and Jun-Wei Hsieh and Xin Li and Ming-Ching Chang},
  title = {{Pushing the Limit of Fine-Tuning for Few-Shot Learning: Where Feature Reusing Meets Cross-Scale Attention}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i10.29024},
}
Figure