Using Shape To Categorize: Low-Shot Learning With an Explicit Shape Bias

Stefan Stojanov, Anh Thai, James M. Rehg

Abstract

It is widely accepted that reasoning about object shape is important for object recognition. However, the most powerful object recognition methods today do not explicitly make use of object shape during learning. In this work, motivated by recent developments in low-shot learning, findings in developmental psychology, and the increased use of synthetic data in computer vision research, we investigate how reasoning about 3D shape can be used to improve low-shot learning methods' generalization performance. We propose a new way to improve existing low-shot learning approaches by learning a discriminative embedding space using 3D object shape, and using this embedding by learning how to map images into it. Our new approach improves the performance of image-only low-shot learning approaches on multiple datasets. We also introduce Toys4K, a 3D object dataset with the largest number of object categories currently available, which supports low-shot learning.

Introduction

Modern deep learning models, particularly Convolutional Neural Networks (CNNs), are notoriously "texture-biased." They often rely on surface patterns and colors rather than the underlying geometry that humans use to categorize objects. This bias becomes a significant hurdle in the "low-shot" regime, where a model must learn a new category from just one or a few examples.

In contrast, developmental psychology shows that human infants possess a "shape bias," allowing them to rapidly learn that a "chair" is defined by its structure, regardless of its material or color. This paper addresses the challenge of mathematically injecting this human-like shape bias into machine learning models to improve their ability to generalize to novel objects from limited data.

Methodology

The authors propose a multi-stage approach to force a shape bias into an image-based model by aligning its representations with a 3D shape-aware space.

Overview of the proposed multi-stage approach for learning a shape-biased embedding space and mapping images into it.
  1. Shape Embedding Space: A point cloud encoder (DGCNN) is trained on 3D data from "base" classes to create a high-dimensional space where objects with similar shapes are clustered together.
  2. Image-to-Shape Mapping: A ResNet18 image encoder is trained to map 2D renders of objects into this pre-defined 3D shape embedding space.
  3. Dual Loss Functions: To ensure the mapping is accurate and preserves structural relationships, two losses are employed:
  4. $L_1$ (Alignment): Minimizes the Euclidean distance between an image's embedding and its corresponding 3D shape's embedding.
  5. $L_2$ (Pairwise Distance): Ensures that the relative distances between different objects in the image space match those in the 3D shape space, preventing embedding collapse and preserving the manifold structure.

Datasets and Toys4K

The study utilizes standard 3D benchmarks adapted for low-shot learning, such as ModelNet40-LS and ShapeNet-LS. Crucially, the authors introduce Toys4K, a new dataset containing 4,179 3D objects across 105 categories. This dataset nearly doubles the category count of ShapeNet and focuses on objects common in a child's environment, providing a more robust and challenging benchmark for studying developmental-inspired AI.

Key Results and Insights

Shape as a Generalization Superpower

Models trained purely on 3D point clouds (acting as an "oracle") significantly outperform those trained on 2D images when tested on novel categories. By aligning image encoders to this 3D space, the authors achieved a notable performance boost. For instance, on ModelNet40-LS, the shape-biased version of "SimpleShot" improved 1-shot 5-way accuracy from 58.99% to 61.91%.

Correlation with 3D Reasoning

A key finding is that shape-biased image models show a much higher correlation with pure 3D models than standard image models do. This confirms that the method successfully shifts the network's reasoning to be more shape-centric.

Correlation between point cloud (oracle) accuracy and image accuracy, showing that shape-biased models (left) align more closely with 3D reasoning than standard image models (right).

The Importance of Structure

Simply matching an image to a shape ($L_1$ loss) is insufficient. The pairwise distance loss ($L_2$) is critical for the model to understand how different shapes relate to one another. The benefits of this explicit shape bias become even more apparent as the task difficulty increases (e.g., moving from 5-way to 20-way classification).

Conclusion

While the reliance on synthetic data presents a "domain gap" when moving to real-world photographs with complex lighting and occlusions, this work demonstrates that an explicit shape bias is a powerful tool for low-shot generalization. Future research may explore applying this framework to real-world 2D-to-3D reconstruction or tasks like robotic manipulation where 3D structural understanding is paramount.

Summary updated

BibTeX
@inproceedings{stojanov2021using,
  author = {Stefan Stojanov and Anh Thai and James M. 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