Abstract
Traditional fine-grained visual categorization (FGVC) relies on fixed label sets, making it difficult to scale to real-world scenarios where new categories emerge constantly. This paper introduces One-Shot Fine-Grained Instance Retrieval (OSFGIR), a framework designed to identify unseen fine-grained objects without category-specific training. By leveraging a dual-stream network (CN-Nets) and a coarse-to-fine retrieval pipeline, the proposed method achieves high accuracy and sub-second query times on a massive 300K-image benchmark.
Introduction
Fine-grained recognition involves distinguishing between highly similar sub-categories, such as specific bird species or car models. While deep learning has excelled in closed-set FGVC, these models struggle with "open-world" scenarios where the target classes are not known during training. To address this, we propose shifting the paradigm from classification to retrieval. In the OSFGIR setting, a model is trained on an auxiliary dataset of known species to learn robust features, which are then used to find matches for entirely new species in a large-scale database.
The OSFGIR Framework
The core of the proposed system is a pipeline that balances feature discriminativeness with retrieval efficiency.
Convolutional and Normalization Networks (CN-Nets)
To extract features that capture both specific details and broader context, we developed CN-Nets, a dual-stream architecture:
- Conv-Net: A standard stream utilizing Global Average Pooling (GAP) to identify the most discriminative parts of an object, such as a bird's beak or a car's headlight.
- Norm-Net: A parallel stream that incorporates a Batch Normalization (BN) layer before final pooling. This suppresses peak activations, encouraging the network to attend to larger spatial regions and contextual cues.
The final representation is a concatenation of these two streams, providing a holistic yet detailed feature vector.
Coarse-to-Fine Retrieval Pipeline
Searching a database of hundreds of thousands of images requires an efficient multi-stage approach:
- Coarse Retrieval: A compact 32-dimensional feature is used to rapidly narrow the search space to the top 10,000 candidates and identify the broad domain (e.g., Birds vs. Cars).
- Fine-Grained Retrieval: The full CN-Nets features are applied to the candidate set, often utilizing cropped foreground regions to maximize precision.
- Query Expansion (QE): The system refines results by averaging the features of the top-ranked matches and performing a second, more targeted search.
The OSFGIR-378K Benchmark
To evaluate the system, we introduced OSFGIR-378K, a large-scale dataset comprising 301,038 images across 1,985 species.
The dataset merges several fine-grained collections (CUB-200-2011, BirdSnap, Car196, CompCar, and Food-101) and includes 70,000 "distractor" images to test robustness against noise. Crucially, the auxiliary training set (AD) contains no overlapping species with the retrieval test set, ensuring a true one-shot evaluation.
Key Insights and Results
Our experiments yielded several significant findings:
- The BN Effect: Batch Normalization acts as a powerful regularizer in retrieval. By preventing the model from over-fitting to tiny, high-contrast patches, it ensures the feature extractor remains "context-aware."
- Superior Performance: On the OSFGIR-378K benchmark, our framework achieved a Mean Average Precision (MAP) of 26.31% (with Query Expansion), significantly outperforming standard architectures like ResNet-152 (14.7%).
- Real-Time Viability: Despite the complexity of the task, the coarse-to-fine architecture maintains an average online query time of approximately 270ms.
Conclusion
One-Shot Fine-Grained Instance Retrieval offers a scalable alternative to traditional classification for open-set problems. By combining the detail-oriented Conv-Net with the context-aware Norm-Net, and employing a multi-stage retrieval strategy, we demonstrate that it is possible to identify unseen fine-grained categories with high precision and efficiency.
Summary updated