Abstract
Few-shot fine-grained image classification is challenged by significant spatial misalignment between support and query images. We present a novel spatial alignment framework that integrates foreground enhancement with a hierarchical two-stage alignment process. By addressing both global pose variations (long-range) and local part misalignments (short-range), the proposed method achieves state-of-the-art performance on several fine-grained benchmarks, including CUB-200-2011 and Stanford Cars.
Introduction
Fine-grained image classification requires distinguishing between subtle sub-categories, such as specific bird species or car models. In few-shot scenarios, where only a handful of labeled examples are available, this task becomes exceptionally difficult. A primary bottleneck identified in this work is spatial misalignment. Support and query images often feature objects in different poses, scales, or orientations. Standard deep learning models struggle to compare features when discriminative parts (e.g., a bird's beak or a car's headlight) appear in disparate spatial locations. Previous methods often relied on simple global transformations that failed to capture complex local variations.
Proposed Method
The proposed architecture employs a "coarse-to-fine" alignment strategy consisting of three integrated components:
- Foreground Object Enhancement (FOE): To mitigate the impact of noisy backgrounds, FOE utilizes deformable convolutions and soft attention masks to highlight the primary object and suppress irrelevant environmental features. This cleaning of the feature map is a prerequisite for accurate spatial matching.
- Long-range Semantic Correspondence (LSC): This module addresses global pose and scale variations (e.g., "where is the head?"). By computing a semantic correlation matrix, LSC dynamically reconstructs a transformed support feature to match the spatial distribution of the query.
- Short-range Spatial Manipulation (SSM): Following global alignment, SSM performs pixel-level refinement (e.g., "is the beak tilted?"). It predicts fine-grained coordinate offsets to ensure precise alignment of local features for final comparison.
Experimental Results
The framework was evaluated on four standard benchmarks: CUB-200-2011 (birds), Stanford Dogs, Stanford Cars, and NABirds.
- State-of-the-Art Accuracy: On the CUB dataset, the model achieved 77.77% 1-shot accuracy using a ResNet-12 backbone, surpassing previous leaders like DeepEMD (75.65%). Significant gains were also observed on Stanford Cars, reaching 70.13% (up from 67.95%).
- Cross-Domain Robustness: The researchers tested the model's ability to generalize by training on CUB and testing on NABirds. The model maintained a strong lead, proving that the learned alignment strategy is category-agnostic.
Conclusion
This work demonstrates that hierarchical spatial alignment is crucial for few-shot fine-grained classification. By combining foreground enhancement with long- and short-range alignment, the model effectively handles complex pose variations. While the two-stage alignment increases computational complexity, the performance gains across multiple datasets validate the effectiveness of the coarse-to-fine strategy. Future work may explore extending this spatial precision to tasks like few-shot object detection or segmentation.
Summary updated