When Few-Shot Learning Meets Video Object Detection

Zhongjie Yu, Gaoang Wang, Lin Chen, Sebastian Raschka, Jiebo Luo

TL;DR

This paper introduces the first systematic study of Few-Shot Video Object Detection (FSVOD), moving beyond static images to leverage temporal information. The authors propose a new benchmark based on ImageNet VID and a simple yet effective two-stage fine-tuning method called "Thaw" that balances the critical trade-off between model insufficiency and overfitting.

What Problem Does This Paper Address?

While few-shot learning (FSL) has seen massive success in image classification and detection, video remains a "frontier." Detecting objects in video is harder because it requires spatial-temporal localization across frames, and annotating bounding boxes for every frame in a video is prohibitively expensive.

Existing meta-learning approaches (which learn to learn via "episodes") are often too computationally expensive to apply to the thousands of frames found in video datasets. Furthermore, standard transfer-learning methods that work for images often fail in video because video features are more complex. The authors identify two core challenges:

  1. Overfitting: With only a few video clips, a model quickly "memorizes" the specific samples instead of generalizing.
  2. Insufficiency: If the initial training data (the "base" classes) isn't diverse enough, the frozen feature extractor simply won't have the "vocabulary" to describe novel objects.

Methods

The authors adopt a transfer-learning framework using MEGA (a state-of-the-art video object detector) as their backbone. They replace the standard softmax classifier with a cosine similarity-based classifier, which is more effective at de-correlating feature spaces for different classes in few-shot scenarios.

They compare three adaptation strategies:

  • Joint: Fine-tune the entire network (backbone + head) on the few-shot data. This often leads to catastrophic overfitting.
  • Freeze: Keep the backbone (feature extractor) frozen and only train the detection head. This prevents overfitting but suffers from "insufficiency" if the backbone hasn't learned enough general features.
  • Thaw (Proposed): A two-stage approach. First, the model is trained with a frozen backbone to give the detection head a stable initialization. Then, the backbone is "thawed" (unfrozen) and the entire network is fine-tuned jointly. This allows the model to learn novel features without immediately distorting the pre-trained weights.

Datasets

The authors curated a new benchmark derived from the ImageNet VID dataset:

  • Classes: 30 total (25 base classes for pre-training, 5 novel classes for few-shot testing).
  • Strong Base Dataset: Includes both ImageNet VID (videos) and ImageNet DET (images) to provide a robust feature extractor.
  • Weak Base Dataset: A subset containing only "perfect" videos (one object, one class) to test how models perform when initial knowledge is limited.
  • Evaluation: 1, 2, and 3-shot scenarios (where a "shot" is an entire video clip, not just a single frame).

Key Insights and Ideas

  • The "Opposite" Finding: In image-based few-shot detection, freezing the backbone is almost always better. However, the authors found that on "weak" video datasets, Joint training actually beats Freeze. This suggests that video features are so complex that the backbone must be updated to recognize novel objects.
  • Temporal Info is Essential: The research proves that treating a video as a collection of independent images (image-based FSL) is vastly inferior. Using temporal aggregation (looking at multiple frames) provides a massive performance boost.
  • The Balancing Act: The "Thaw" method acts as a middle ground, using the stability of the "Freeze" method to initialize the model before allowing the flexibility of "Joint" training to solve the insufficiency problem.

Key Results

  • Superior Performance: The "Thaw" method consistently outperformed both Joint and Freeze baselines across all splits.
  • Weak Dataset Gains: On the 1-shot weak base dataset, Thaw achieved 20.05% mAP, significantly higher than Joint (17.92%) and Freeze (17.02%).
  • Strong Dataset Gains: On the 3-shot strong base dataset, Thaw reached 51.38% mAP.
  • Video vs. Image: In an ablation study, the video-based approach (41.85% mAP) more than doubled the performance of the image-based approach (19.73% mAP) on the same 1-shot data, highlighting the importance of temporal cues.

Limitations and Future Work

The authors acknowledge that while transfer learning is more efficient than meta-learning, video models are still computationally heavy. The "Thaw" method requires careful scheduling of when to unfreeze the backbone.

Future directions suggested include:

  • Exploring more sophisticated ways to "thaw" layers (e.g., progressive unfreezing).
  • Testing the framework on even more complex, "in-the-wild" video datasets beyond ImageNet VID.
  • Integrating more advanced temporal modeling architectures as backbones.

Summary updated

BibTeX
@inproceedings{yu2022when,
  author = {Zhongjie Yu and Gaoang Wang and Lin Chen and Sebastian Raschka and Jiebo Luo},
  title = {{When Few-Shot Learning Meets Video Object Detection}},
  booktitle = {ICPR},
  year = {2022},
  url = {https://openreview.net/forum?id=Iv637SplIU},
}
Figure