Piecewise classifier mappings: Learning fine-grained learners for novel categories with few examples

Xiu-Shen Wei, Peng Wang, Lingqiao Liu, Chunhua Shen, Jianxin Wu · DOI

Introduction

Standard deep learning models typically require thousands of labeled images to achieve high accuracy. In contrast, humans possess the remarkable ability to identify novel, rare categories—such as specific bird species—after seeing only one or two examples. Bridging this gap is the goal of Few-Shot Fine-Grained (FSFG) recognition. This task is particularly challenging because fine-grained categories are distinguished by subtle, localized differences (e.g., beak shape or wing patterns), and the scarcity of data makes traditional high-dimensional feature learning prone to severe overfitting.

Proposed Methodology

The authors introduce a novel end-to-end framework designed to overcome the "parameter explosion" typically associated with mapping high-dimensional features in few-shot learning. The architecture is divided into two primary stages: representation learning and classifier mapping.

Bilinear Feature Learning

To capture the intricate details necessary for fine-grained tasks, the model utilizes a Bilinear CNN (BCNN). By computing the outer product of feature maps, BCNNs effectively model the interactions between different spatial parts of an image. While this produces highly descriptive features, it results in a massive, high-dimensional vector that is difficult for standard meta-learners to process.

Piecewise Classifier Mapping

The core innovation of this work is the Piecewise Mapping Network. Instead of attempting a global mapping from a high-dimensional feature vector to a classifier—which would require an unmanageable number of parameters—the model treats the bilinear feature as a collection of sub-vectors. Each sub-vector, representing an implicit "part" of the object, is mapped to a corresponding sub-classifier via a small, non-linear Multi-Layer Perceptron (MLP). These sub-classifiers are then concatenated to form the final global category classifier.

The Piecewise Classifier Mapping framework: (I) Representation learning via Bilinear CNNs and (II) the piecewise mapping of sub-vectors to form category classifiers.

This approach provides significant parameter economy. For a feature of dimension $d^2$, a global linear mapping requires $O(d^4)$ parameters, whereas the piecewise approach reduces this to $O(d^3)$, acting as a structural regularizer that prevents overfitting on small support sets.

Experimental Evaluation

The researchers evaluated the proposed method on three classic fine-grained benchmarks: CUB Birds, Stanford Dogs, and Stanford Cars. For each dataset, categories were split into disjoint auxiliary (training) and novel (testing) sets to ensure the model learned a generalizable mapping function rather than memorizing specific classes.

Fine-grained examples from the CUB Birds, Stanford Dogs, and Stanford Cars datasets, illustrating the subtle inter-class differences the model must learn to distinguish.

Key Results

The piecewise mapping approach consistently outperformed established few-shot baselines like Prototypical Networks and Relation Networks. On the CUB Birds 1-shot task, the model achieved 42.10% accuracy, a significant improvement over the 39.68% achieved by the next best baseline.

Ablation studies confirmed that non-linearity in the sub-mappings (using 3-layer MLPs) is crucial for performance. Furthermore, t-SNE visualizations demonstrated that the classifiers generated by the piecewise mapping were significantly better at clustering novel categories in the feature space compared to global mapping alternatives.

Conclusion and Future Work

By exploiting the inherent part-based structure of bilinear features, Piecewise Classifier Mappings provide a robust and parameter-efficient solution for few-shot fine-grained recognition. While the method handles high dimensionality effectively, future research may explore the use of compact bilinear features to reduce computational overhead further and investigate the integration of prior domain knowledge to enhance generalization to even more diverse novel categories.

Summary updated

BibTeX
@article{wei2018piecewise,
  author = {Xiu-Shen Wei and Peng Wang and Lingqiao Liu and Chunhua Shen and Jianxin Wu},
  title = {{Piecewise classifier mappings: Learning fine-grained learners for novel categories with few examples}},
  journal = {IEEE Trans. Image Process.},
  year = {2018},
  doi = {10.1109/tip.2019.2924811},
}
Figure