Weak-shot Object Detection through Mutual Knowledge Transfer

Xuanyi Du, Weitao Wan, Chong Sun, Chen LiCVPR 2023

Abstract

Weak-shot Object Detection (WSHOD) methods exploit a fully-annotated source dataset to facilitate detection performance on a target dataset containing only image-level labels for novel categories. To bridge the gap between these datasets, we propose a framework to transfer object knowledge between the source (S) and target (T) datasets in a bi-directional manner. We introduce a novel Knowledge Transfer (KT) loss that distills objectness and class entropy from a source-trained proposal generator to optimize a multiple instance learning (MIL) module on the target dataset. Furthermore, we propose a Consistency Filtering (CF) method to reliably remove inaccurate pseudo-labels by evaluating the stability of the MIL module under noise injection. By mutually transferring knowledge iteratively, our method significantly improves detection performance on public benchmarks without increasing model parameters or inference complexity.

Introduction

Training standard object detectors requires massive amounts of human-annotated bounding boxes, which are expensive and time-consuming to produce. Weakly Supervised Object Detection (WSOD) attempts to train detectors using only image-level labels (e.g., "there is a dog in this image"). However, WSOD often fails because models tend to focus on the most "discriminative parts" of an object (like a bird’s head) rather than the whole body.

Weak-shot Object Detection (WSHOD) bridges this gap by using a fully annotated "source" dataset to assist a "target" dataset. The challenge lies in the fact that categories in the two datasets usually do not overlap. Previous methods struggled to transfer knowledge effectively without introducing "class ambiguity," where the model assigns multiple labels to the same object proposal.

Methodology

Overview of the Mutual Knowledge Transfer framework showing the bi-directional flow between source and target datasets.

The proposed framework consists of two main bi-directional components:

1. Knowledge Transfer (KT) Loss (Source → Target)

The model uses a Proposal Generator (PG) trained on the source data to guide a Multiple Instance Learning (MIL) module on the target data. The KT loss distills both "objectness" and class entropy. This forces the MIL module to be decisive, ensuring that each proposal has a clear, dominant category prediction rather than a mix of several classes, effectively regularizing the learning process.

2. Consistency Filtering (CF) (Target → Source)

To refine the PG, the model generates "pseudo-labels" (predicted boxes) on the target dataset. To ensure these boxes are high-quality, we introduce a stability test. Random noise is injected into the feature maps of a predicted box; if the prediction remains stable despite the noise, it is likely a complete object. If the prediction changes drastically, it is likely a fragment or background. These stable boxes are then used to retrain the PG in an iterative cycle.

Experimental Results

The method was evaluated on standard benchmarks, using Pascal VOC 2007 as the target dataset and COCO-60 or ILSVRC-179 as source datasets.

Qualitative detection results comparing the proposed method (bottom row) with baselines (top row), showing improved localization of whole objects.

Key Performance Metrics:

  • State-of-the-Art Accuracy: On the VOC 2007 test set (using COCO-60 as source), the method achieved 62.9% mAP, outperforming the previous best method (TraMaS) by 2.0%.
  • Localization Quality: The model achieved 79.3% CorLoc, a 2.7% improvement over previous benchmarks. This indicates the model is significantly better at finding the whole object rather than just discriminative parts.
  • Efficiency: Because Knowledge Transfer and Consistency Filtering only occur during training, the final detector maintains the inference speed of a standard Faster R-CNN.

Conclusion and Future Work

This research demonstrates that a bi-directional transfer scheme creates a virtuous cycle that significantly boosts WSHOD performance. The "aha moment" for Consistency Filtering is the realization that object fragments are semantically "thin" and more susceptible to noise than robust, complete objects.

While the current Consistency Filtering method prioritizes precision over recall, future work could explore adaptive filtering thresholds or apply this mutual transfer logic to zero-shot scenarios where no image-level labels are available for target categories.

Summary updated

BibTeX
@inproceedings{du2023weak,
  author = {Xuanyi Du and Weitao Wan and Chong Sun and Chen Li},
  title = {{Weak-shot Object Detection through Mutual Knowledge Transfer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=1fATDj2tEB},
}
Figure