Using Shape to Categorize: Low-Shot Learning with an Explicit Shape Bias

Stefan Stojanov, Ngoc Anh Thai, James Matthew Rehg

TL;DR

This paper introduces a novel method to improve low-shot object recognition by explicitly incorporating 3D shape information into image-based learning. By training an image encoder to map images into a discriminative shape embedding space, the approach significantly boosts generalization performance on unseen object categories, outperforming purely image-based methods. The authors also introduce "Toys4K," a new large-scale 3D object dataset designed to facilitate low-shot learning research.

What Problem Does This Paper Address?

Traditional deep learning models for object recognition often rely heavily on visual texture rather than shape, as demonstrated by studies on ImageNet-trained CNNs. However, developmental psychology suggests that shape plays a crucial role in how humans, especially infants, learn new object categories from limited examples – a task analogous to few-shot learning. While 3D shape has been used for object recognition, its integration into low-shot image recognition, particularly for generalizing to novel categories, has been underexplored. This paper aims to bridge this gap by investigating how explicit shape bias can enhance low-shot image classification performance.

Methods

The core of the proposed method involves learning a discriminative embedding space using 3D object shape information. This is achieved in two main steps:

  1. Training a Shape Embedding Space: A point cloud encoder ($f_p$) is trained using cross-entropy loss on a dataset of 3D object models (base classes). This creates a highly discriminative embedding space for object shapes.
  2. Learning an Image-to-Shape Mapping: An image encoder ($f_i$) is then trained to map 2D images into the previously learned shape embedding space. This is done by minimizing two loss functions:
  3. L1 Loss: Minimizes the Euclidean distance between image embeddings and their corresponding shape embeddings.
  4. L2 Loss: Constrains the pairwise distances between image embeddings to match the pairwise distances of their corresponding shape embeddings. This helps preserve the metric properties of the shape space.

During inference (low-shot phase), prototypes are formed by averaging both image and shape embeddings of support set objects. Query images are then mapped to the shape space using the trained image encoder ($f_i$) and classified based on their proximity to these prototypes.

Datasets

  • ModelNet40-LS: A subset of ModelNet40, used for training and evaluation.
  • ShapeNet55-LS: A subset of ShapeNetCore.v2, also used for training and evaluation.
  • Toys4K: A newly introduced 3D object dataset. It contains 4,179 3D objects across 105 categories, designed to be diverse and relevant to infant development. This dataset is notable for having the largest number of object categories among existing 3D object datasets suitable for low-shot learning, enabling more challenging many-way classification experiments.

Key Insights and Ideas

  • Shape Bias is Crucial for Low-Shot Generalization: The study provides strong empirical evidence that explicitly incorporating shape information significantly improves low-shot classification performance, especially in the challenging one-shot setting.
  • Shape Embeddings are More Discriminative: Point cloud-based embeddings are shown to be more discriminative than image-based embeddings for object categorization, suggesting that shape captures more fundamental category information.
  • Mapping Images to Shape Space is Key: The challenge lies not just in having shape data, but in learning an image encoder that can accurately map images into this discriminative shape embedding space, allowing for generalization to novel classes.
  • Toys4K Enables More Challenging Benchmarking: The introduction of Toys4K, with its large number of categories, allows for more robust evaluation of low-shot learning methods, particularly for many-way classification tasks.

Key Results

  • Performance Improvement: The proposed shape-biased approach consistently outperforms purely image-based low-shot learning methods across multiple datasets (ModelNet40-LS, ShapeNet55-LS, and Toys4K). For instance, on ModelNet40-LS, the shape-biased SimpleShot achieved up to a 6% improvement in one-shot accuracy compared to the image-only SimpleShot.
  • Shape-Only vs. Shape-Biased Image: Shape-only models (using point clouds directly) achieve higher accuracy than image-only models, and the shape-biased image models achieve performance close to the shape-only models, demonstrating the effectiveness of the learned mapping.
  • Impact of L2 Loss: The pairwise distance loss (L2) is shown to be crucial for learning a better approximation of the shape embedding space, leading to improved performance compared to using only the L1 loss.
  • Toys4K Performance: Experiments on Toys4K highlight its challenging nature, with many-way classification tasks showing significant performance drops, underscoring the need for robust methods like the proposed shape-biased approach.

Limitations and Future Work

  • Reliance on Synthetic Data: The current work relies heavily on synthetic 3D data. While synthetic data is increasingly adopted and offers advantages for controlled experiments, its direct transferability to real-world scenarios with complex textures and lighting remains a challenge. Future work could explore methods to bridge the sim-to-real gap more effectively.
  • Averaging for Prototype Formation: The current method averages shape and image embeddings to form class prototypes. The authors suggest that exploring alternative strategies for combining these modalities, beyond simple averaging, could lead to further improvements, especially when shape information is not available during the low-shot testing phase.
  • Improving Image-to-Shape Mapping: While the proposed method shows significant gains, there is still room for improvement in the accuracy of the image-to-shape mapping. Further research into more sophisticated mapping architectures or training strategies could yield even better results.
  • Exploiting Other Biases: The paper suggests that exploiting other natural biases of the visual world, beyond shape, could be a fruitful direction for future research in few-shot learning.

Summary updated

BibTeX
@inproceedings{stojanov2021using,
  author = {Stefan Stojanov and Ngoc Anh Thai and James Matthew Rehg},
  title = {{Using Shape to Categorize: Low-Shot Learning with an Explicit Shape Bias}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=5OnbNoOQT-Z},
}
Figure