[Paper Review] Beyond Max-Margin: Class Margin Equilibrium for Few-shot Object Detection
This paper proposes Class Margin Equilibrium (CME), a novel method for few-shot object detection that resolves the conflict between feature representation and classification by balancing max-margin and min-margin objectives. CME uses a decoupled classification head, class margin loss during base training, and adversarial feature disturbance during fine-tuning to achieve margin equilibrium, significantly improving detection accuracy by up to 5% over state-of-the-art methods on Pascal VOC and MS-COCO datasets.
Few-shot object detection has made substantial progressby representing novel class objects using the feature representation learned upon a set of base class objects. However,an implicit contradiction between novel class classification and representation is unfortunately ignored. On the one hand, to achieve accurate novel class classification, the distributions of either two base classes must be far away fromeach other (max-margin). On the other hand, to precisely represent novel classes, the distributions of base classes should be close to each other to reduce the intra-class distance of novel classes (min-margin). In this paper, we propose a class margin equilibrium (CME) approach, with the aim to optimize both feature space partition and novel class reconstruction in a systematic way. CME first converts the few-shot detection problem to the few-shot classification problem by using a fully connected layer to decouple localization features. CME then reserves adequate margin space for novel classes by introducing simple-yet-effective class margin loss during feature learning. Finally, CME pursues margin equilibrium by disturbing the features of novel class instances in an adversarial min-max fashion. Experiments on Pascal VOC and MS-COCO datasets show that CME significantly improves upon two baseline detectors (up to $3\sim 5\%$ in average), achieving state-of-the-art performance. Code is available at https://github.com/Bohao-Lee/CME .
Motivation & Objective
- To address the implicit contradiction in few-shot object detection where max-margin for classification conflicts with min-margin for representation.
- To optimize both feature space partitioning and novel class reconstruction in a unified framework.
- To achieve margin equilibrium by balancing the trade-off between inter-class separation and intra-class compactness for novel classes.
- To improve few-shot detection performance across one-stage and two-stage detectors using a plug-and-play module.
Proposed method
- CME decouples localization features from classification features using a fully connected layer to prevent localization bias from distorting class margins.
- During base training, a class margin loss is applied to maximize the distance between base class features, preserving margin space for novel classes.
- During fine-tuning, a feature disturbance module is introduced that truncates gradient maps to simulate adversarial perturbations on novel class features.
- The disturbance process is optimized in a min-max fashion, encouraging robustness and equilibrium in class margins.
- The method is applied as a plug-in to existing detectors, enhancing both one-stage and two-stage architectures.
Experimental results
Research questions
- RQ1How can the conflicting objectives of inter-class separation (max-margin) and intra-class compactness (min-margin) be balanced in few-shot object detection?
- RQ2Can adversarial feature regularization improve both novel class representation and classification performance simultaneously?
- RQ3Does preserving margin space during base training lead to better generalization for novel classes?
- RQ4To what extent can margin equilibrium improve few-shot detection beyond existing max-margin or min-margin approaches?
Key findings
- CME achieves a 3.8% average improvement over baseline detectors on Pascal VOC for 1-shot to 5-shot settings, with up to 9.8% gain on 5-shot detection.
- On MS-COCO, CME improves AP by 5.3% at 10-shot and 2.8% at 30-shot compared to the SOTA baseline MPSR.
- The method outperforms state-of-the-art methods including MetaDet, Meta R-CNN, and Viewpoint Estimation across multiple few-shot settings.
- CME demonstrates consistent gains across both one-stage and two-stage detectors, validating its generalization as a plug-and-play module.
- The ablation study confirms that both the class margin loss and feature disturbance module are essential for achieving margin equilibrium and performance gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.