Cross-dataset Training for Class Increasing Object Detection

Yongqiang Yao, Yan Wang, Yu Guo, Jiaojiao Lin, Hongwei Qin, Junjie YanarXiv 2020

Overview

This research introduces a flexible framework for training a single object detection model across multiple, independently labeled datasets without requiring exhaustive re-labeling. By employing a novel Dataset-aware Focal Loss and semantic Label Mapping, the authors demonstrate that a model can learn the union of object classes from disparate sources—such as COCO and WIDER FACE—while maintaining performance levels comparable to models trained on those datasets individually.

What Problem Does This Paper Address?

In computer vision, increasing data typically improves performance, but labeling is prohibitively expensive. If a developer wants a single model to detect both faces (from a face dataset) and general objects like cars or chairs (from a general dataset), the traditional approach requires manual re-labeling of faces in the general dataset and general objects in the face dataset.

Cross-dataset training allows a model to learn from disparate datasets like COCO and WIDER FACE simultaneously.

Without this manual effort, "naive" joint training fails due to conflicting negatives. For instance, in a face-only dataset, a human body is considered "background" (a negative sample). Conversely, in a general object dataset, that same body is a "positive" sample. Training on both simultaneously sends contradictory signals to the model, leading to significant performance degradation.

Methods

The proposed strategy to enable cross-dataset training consists of two primary components integrated into a RetinaNet architecture:

The architecture utilizes a Dataset-aware Focal Loss to handle missing labels across different datasets.
  1. Label Mapping: Before training begins, the authors merge semantically identical or highly similar classes across datasets (e.g., merging "pedestrian" from one dataset with "person" from another) to create a unified "hybrid" label space.
  2. Dataset-aware Focal Loss: This is the core technical contribution. Standard loss functions penalize a model if it detects an object not present in the ground truth. The authors modify the Focal Loss so that negative samples are not shared across conflicting datasets.
    • If an image originates from the "Face" dataset, the loss function only calculates penalties for the "Face" class.
  3. It "ignores" (sets the loss to zero) any predictions for "Car" or "Chair" on that specific image, as it is unknown whether those objects are present but unlabeled.
  4. Crucially, positive samples are shared; a face is treated as a face regardless of its dataset of origin.

The framework was validated using both ResNet-50 and MobileNetV2 backbones to ensure efficacy across high-capacity and mobile-friendly architectures.

Key Insights and Results

The researchers evaluated their method using major benchmarks including COCO, PASCAL VOC, WIDER FACE, and WIDER Pedestrian.

The Power of "Ignore"

The most significant insight is that "unlabeled" should not be treated as "negative." By treating classes outside a dataset's specific domain as "unknown" rather than "absent," the model learns from incomplete data without confusion.

Performance Benchmarks

The cross-dataset models were compared against "solo" models trained on single datasets:

  • COCO + FACE: On the COCO minival set, the cross-dataset model achieved 35.2 AP, nearly identical to the solo COCO model's 35.4 AP.
  • WIDER FACE: The model maintained high precision across "Easy," "Medium," and "Hard" subsets (e.g., 95.23 AP on Easy), matching specialized face detectors.
  • WIDER Pedestrian: Cross-dataset training actually improved performance, rising from 50.0 AP to 51.44 AP when merged with COCO and WIDER FACE data, likely due to the increased variety of negative samples provided by the diverse backgrounds in COCO.

Conclusion and Future Work

This approach allows for efficient "class increasing" detection. Companies needing to add new object classes only need to label those specific classes on new images, rather than re-processing entire historical databases.

While effective for conflicting negatives, the authors note that domain adaptation techniques might be necessary if datasets are extremely different (e.g., satellite vs. street-level imagery). Future work includes extending the system to handle 360-degree face detection by treating different orientations as distinct classes, moving toward life-long learning systems that continuously ingest new data.

Summary updated

BibTeX
@misc{yao2020cross,
  author = {Yongqiang Yao and Yan Wang and Yu Guo and Jiaojiao Lin and Hongwei Qin and Junjie Yan},
  title = {{Cross-dataset Training for Class Increasing Object Detection}},
  year = {2020},
  eprint = {2001.04621},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.04621},
}
Figure