Few-Shot Learning for Road Object Detection

Anay Majee, Kshitij Agrawal, Anbumani Subramanian

Abstract

Few-shot learning is a problem of high interest in the evolution of deep learning. In this work, we consider the problem of few-shot object detection (FSOD) in a real-world, class-imbalanced scenario. For our experiments, we utilize the India Driving Dataset (IDD), as it includes a class of less-occurring road objects in the image dataset and hence provides a setup suitable for few-shot learning. We evaluate both metric-learning and meta- learning based FSOD methods, in two experimental settings: (i) representative (same-domain) splits from IDD, that evaluates the ability of a model to learn in the context of road images, and (ii) object classes with less-occurring object samples, similar to the open-set setting in real-world. From our experiments, we demonstrate that the metric-learning method outperforms meta- learning on the novel classes by (i) 11.2 mAP points on the same domain, and (ii) 1.0 mAP point on the open-set. We also show that our extension of object classes in a real-world open dataset offers a rich ground for few-shot learning studies.

Introduction

Deep learning models for object detection typically require thousands of labeled examples per class to achieve high accuracy. However, real-world road scenes follow a "long-tail" distribution where common objects like cars and pedestrians are abundant, while rare objects like cranes, tractors, or street carts are infrequently encountered. This paper addresses the challenge of Few-Shot Object Detection (FSOD): enabling a model to learn novel classes from just 10–50 examples without degrading performance on previously learned base classes.

The Long-Tail Problem in Autonomous Driving

The India Driving Dataset (IDD) provides a unique environment for studying FSOD due to its high class imbalance and unstructured nature. Unlike standard datasets like KITTI, IDD captures the extreme variability of real-world traffic, where a few classes dominate the sample count while many others form a sparse tail.

Class distribution in the IDD dataset showing the long-tail nature of road objects.

As shown in the distribution above, classes like 'motorcycle' and 'car' are highly prevalent, while categories such as 'bicycle' or 'trailer' have significantly fewer samples. This imbalance necessitates methods that can generalize from very few samples.

Methodology

The study compares two primary approaches to few-shot learning:

  1. Metric Learning (TFA/FsDet): This Two-stage Fine-tuning Architecture first trains on base classes and then fine-tunes on a balanced set of base and novel classes. It replaces the standard linear classification layer with a cosine similarity head, which helps the model learn distinguishable features and prevents "catastrophic forgetting" of the original classes.
  2. Meta-Learning: Methods like Meta-RCNN use auxiliary networks to "learn how to learn." These networks generate class-specific feature vectors from a "support set" of images, which are then used to re-weight or augment features in the main detection pipeline.

Dataset Extension and Novel Classes

A key contribution of this work is the manual re-categorization of the generic vehicle-fallback class in IDD into five specific rare categories: street-cart, tractor, water tanker, excavator, and crane. This creates a realistic "open-set" testing ground for few-shot algorithms.

A street cart, one of the rare novel classes manually labeled for few-shot evaluation.

Key Results and Insights

The experimental results indicate that simplicity often scales better in complex road environments:

  • Performance Lead: The metric-learning approach (TFA) outperformed meta-learning on novel classes by 11.2 mAP points in same-domain tests and by 1.0 mAP point in the open-set scenario.
  • Base Class Stability: TFA showed the lowest degradation in performance on common classes (like cars and buses) after learning the rare ones, making it more viable for deployment in safety-critical driving systems.

The authors attribute the struggle of meta-learning models to the low inter-class distance between road objects. Many categories share visual primitives (e.g., wheels, metallic frames), leading to high confusion rates—such as a 40% confusion between water tankers and cars. Because these objects share so many visual primitives, few-shot learners struggle to find the unique features that separate a truck from a specialized utility vehicle.

Conclusion

While metric-learning approaches like TFA show promise, distinguishing between visually similar categories remains a significant challenge. Future research should focus on better feature separation techniques to help models identify the unique characteristics of specialized utility vehicles in cluttered, unstructured environments.

Summary updated

BibTeX
@inproceedings{majee2021few,
  author = {Anay Majee and Kshitij Agrawal and Anbumani Subramanian},
  title = {{Few-Shot Learning for Road Object Detection}},
  booktitle = {MetaDL @ AAAI},
  year = {2021},
  url = {https://openreview.net/forum?id=Oio9pxiYAj},
}
Figure