TL;DR
This paper tackles the "shot-unstable" problem in few-shot object detection (FSOD), where models perform well on either low-shot or high-shot scenarios but not both. They introduce a novel approach that uses distribution calibration for low-shot learning to enrich class variation and distribution regularization guided by ImageNet features for high-shot learning to align feature distributions, achieving state-of-the-art results across various shot regimes.
What Problem Does This Paper Address?
Few-shot object detection (FSOD) aims to train object detectors with very limited labeled data for new object categories. While many knowledge transfer methods have shown promise, they often suffer from "shot-instability." This means a model that excels when only a few examples (low-shot) are available might perform poorly when more examples (high-shot) are provided, and vice versa. The authors argue this instability stems from two distinct challenges that dominate different shot regimes:
- Low-shot regime: The primary challenge is the lack of inner-class variation. With only a few examples, the model struggles to learn the full diversity within a novel object class.
- High-shot regime: As more data becomes available and the model approaches real-world variance, the main hurdle becomes the misalignment between the learned feature distributions and the true distributions of the novel classes.
Existing methods often fail to address these two distinct issues simultaneously, leading to the observed shot-instability.
Methods
The paper proposes a two-pronged strategy to overcome shot-instability by effectively transferring knowledge:
- Distribution Calibration (for Low-Shot):
- Shift Compensation: Before calibrating novel class distributions, they first address potential shifts in base class distributions that can occur during fine-tuning. This is done by a weighted average of the existing base class distribution and the current training data.
- Calibration: The core idea is to align the biased novel class distributions with the more robust distributions learned from base classes. They identify the k-nearest base classes to a novel class and use their statistics (mean and covariance) to recalibrate the novel class's distribution.
- Synthetic Sample Generation: After calibrating the novel class distribution, they generate synthetic training samples from this improved distribution. These synthetic samples, along with real samples, are used to train the detection head, effectively enriching the inner-class variation.
- Distribution Regularization (for High-Shot):
- ImageNet Guidance: They leverage the rich semantic information present in ImageNet pre-trained features. Instead of directly using ImageNet features as a teacher (which they found less effective), they introduce a regularization loss.
- Regularization Loss: This loss encourages the features learned by the fine-tuned detector to be close to the features extracted from the same input by the original ImageNet pre-trained backbone. This implicitly aligns the learned feature distributions with those learned from a massive, diverse dataset, mitigating misalignment issues.
These two strategies can be combined to improve performance across both low-shot and high-shot scenarios.
Datasets
The proposed method was evaluated on two standard benchmarks:
- PASCAL VOC: Used for both base training and few-shot evaluation. The dataset was split into base and novel classes.
- MS COCO: Also used for base training and few-shot evaluation, with a different split of base and novel classes compared to VOC.
Key Insights and Ideas
- Shot-Dependent Challenges: The most crucial insight is that the fundamental challenges in FSOD change significantly with the number of available shots. Low-shot requires enriching variation, while high-shot requires aligning distributions.
- Leveraging Base Class Knowledge: The distribution calibration method effectively uses the knowledge learned from abundant base classes to compensate for the lack of variation in novel classes, a common issue in low-shot learning.
- ImageNet as a Regularizer: Using ImageNet pre-trained features not as a direct teacher but as a regularizer for the fine-tuning process is a novel way to guide feature learning and combat distribution misalignment in high-shot scenarios.
- Synergy of DC and DR: The distribution calibration (DC) and distribution regularization (DR) methods are not mutually exclusive and can be combined to achieve superior performance, demonstrating their complementary nature.
Key Results
The proposed method, termed "EffTrans," achieved state-of-the-art results on both PASCAL VOC and MS COCO benchmarks.
- PASCAL VOC: Significantly outperformed the baseline TFA method in both low-shot (shot<5) and high-shot (shot≥5) settings. It also achieved competitive results compared to other existing FSOD methods.
- MS COCO: Demonstrated new state-of-the-art performance in low-shot settings and competitive results in high-shot settings.
- Shot-Stability: The method showed improved stability across different shot numbers, unlike previous methods that excelled in only one regime.
- Ablation Studies: Confirmed the effectiveness of both distribution calibration and shift compensation for low-shot performance, and distribution regularization for high-shot performance. The ablation studies also provided insights into the optimal choice of the hyperparameter k for distribution calibration, which varies depending on the shot regime.
Limitations and Future Work
- Hyperparameter Sensitivity: The paper acknowledges that parameters like α in distribution calibration and k (number of nearest base classes) require careful tuning, with optimal values varying across shot regimes and datasets.
- Gaussian Assumption: The distribution calibration assumes Gaussian distributions for class features, which might be a simplification for complex real-world data.
- Future Work: The authors suggest that their proposed strategies can be further explored and integrated with other advanced FSOD techniques. The successful combination of DC and DR suggests potential for further research into synergistic knowledge transfer mechanisms.
Summary updated