Introduction
Few-shot object detection (FSOD) aims to detect novel objects using only a limited number of training examples by leveraging knowledge from data-rich base classes. However, a fundamental "representation-classification contradiction" often limits performance. While traditional classification objectives favor a Max-Margin approach—maximizing the distance between base classes—this can be detrimental to the representation of novel classes. Since novel class features are often reconstructed from base class components, excessive separation can lead to sparse and fragmented novel class distributions in the feature space.
Methodology: Class Margin Equilibrium (CME)
To address this contradiction, the authors propose Class Margin Equilibrium (CME). This framework seeks a "Goldilocks" zone where base classes remain discriminative without compromising the feature space's ability to represent novel categories. CME consists of three primary modules:
- Feature Filtering: Localization and classification information are often entangled in convolutional features. CME employs a fully connected layer to decouple these, preventing localization-heavy features from "polluting" the class margins.
- Class Max-Margin Loss: During the initial base training phase, a specialized loss function reserves adequate "margin space" in the feature landscape, ensuring room for future novel class distributions to inhabit.
- Adversarial Feature Disturbance: During the meta-finetuning phase, an adversarial min-max strategy is introduced. By calculating gradient maps to identify the most discriminative pixels and then "truncating" or erasing them, the model is forced to learn robust, diverse representations rather than over-fitting to a few specific features.
Experimental Results
The CME approach was evaluated on the Pascal VOC and MS COCO benchmarks, consistently outperforming established baselines like Meta YOLO and MPSR across various "shot" counts (1, 2, 3, 5, and 10 images).
- Pascal VOC: CME achieved significant gains, improving mAP by 3% to 5% across various splits. For instance, in the 5-shot setting of Novel Set 1, CME reached 44.8 mAP, a substantial increase over Meta YOLO's 33.9.
- MS COCO: On the challenging 10-shot setting, CME improved Average Precision (AP) by 5.3% over the MPSR baseline.
Qualitative analysis via t-SNE visualizations confirms the effectiveness of the equilibrium strategy. As shown below, CME produces tighter and more distinct clusters for novel classes compared to baseline methods, which often struggle with inter-class confusion (e.g., distinguishing a "Cow" from a "Sheep").
Conclusion
The Class Margin Equilibrium (CME) framework demonstrates that maximizing margins is not always optimal for few-shot learning. By balancing the needs of base class classification and novel class representation through adversarial disturbance and feature decoupling, CME sets a new state-of-the-art for FSOD. While challenges remain in extreme 1-shot scenarios, the principle of margin equilibrium provides a robust path forward for low-data regime object detection.
Summary updated