Weakly supervised foreground learning for weakly supervised localization and detection

Chen-Lin Zhang, Yin Li, Jianxin Wu

TL;DR

This paper introduces "Weakly Supervised Foreground Learning" (WSFL), a novel task that learns object masks from image-level labels. By leveraging this learned foreground information, the authors achieve state-of-the-art results in weakly supervised object localization (WSOL) and detection (WSOD), demonstrating its significant utility and transferability.

What Problem Does This Paper Address?

Modern deep learning models, especially in computer vision, thrive on massive amounts of accurately annotated data. However, obtaining such detailed annotations (like pixel-level masks or bounding boxes) is expensive and time-consuming. This scarcity motivates research into "weakly supervised" methods, which aim to learn from less precise labels, such as image-level class labels.

Specifically, the paper tackles two related problems:

  • Weakly Supervised Object Localization (WSOL): Identifying the location of an object in an image using only its class label.
  • Weakly Supervised Object Detection (WSOD): Detecting and classifying multiple objects in an image, again, using only image-level labels.

While existing weakly supervised methods have made progress, they often struggle with accuracy or require computationally intensive approaches. The authors argue that a key missing piece is the ability to learn "foreground masks" – essentially, a binary map indicating which pixels belong to an object versus the background – without explicit mask supervision. They propose that if such foreground masks could be learned effectively, it would significantly boost performance in both WSOL and WSOD.

Methods

The core contribution is the Weakly Supervised Foreground Learning (WSFL) task and a corresponding pipeline. The WSFL pipeline operates in two main phases:

  1. Training Phase:
    • Pseudo Foreground Mask Generation: Since ground truth masks are unavailable, the system first generates "pseudo" bounding boxes using an object co-localization method called DDT (Deep Descriptor Transformation), which itself only requires image-level labels. These pseudo bounding boxes are then used to create high-resolution pseudo foreground masks.
  2. Low-Resolution Conversion: To make the process computationally feasible for large datasets, these high-resolution masks are converted into low-resolution versions.
  3. Low-Resolution Pixel Classification: A standard image classification backbone (like ResNet or VGG) is adapted by replacing its final layers with a convolutional layer to output a low-resolution mask. This model is trained using the generated low-resolution pseudo masks as supervision, minimizing a binary cross-entropy loss.
  4. Testing Phase:
    • The trained WSFL model predicts low-resolution foreground masks for new images.
  5. For WSOL: These predicted masks are combined with Class Activation Maps (CAM) to generate bounding box predictions.
  6. For WSOD: The predicted masks are used to derive "objectness" scores for object proposals, acting as an additional supervisory signal during training.

The key novelty lies in learning foreground masks from image-level labels without any explicit mask supervision, and then effectively using these learned masks to improve downstream tasks.

Datasets

The paper evaluates its WSFL framework on standard datasets for both WSOL and WSOD:

  • WSOL:
    • ImageNet-1k: A large-scale dataset with incomplete bounding box annotations for training.
  • CUB-200: A dataset of bird images with ground truth bounding box annotations.
  • WSOD:
    • PASCAL VOC2007: A widely used object detection benchmark.

The authors emphasize that their WSFL model is trained without using ground truth bounding boxes or masks, except for specific baseline comparisons (e.g., "HR GT" and "LR GT" in tables) to establish context.

Key Insights and Ideas

  • Foreground Masks are Crucial: The paper strongly demonstrates that explicit foreground/background information (even in low-resolution or noisy forms) significantly boosts performance in both WSOL and WSOD, often more than other forms of weak supervision.
  • WSFL is Feasible and Well-Posed: Contrary to claims that WSOL is an ill-posed problem without location annotations, the authors show that learning foreground masks (WSFL) is a well-posed task and can be effectively achieved with weak supervision.
  • Low-Resolution is Key for Scalability: Converting high-resolution pseudo masks to low-resolution ones is critical for enabling training on large-scale datasets like ImageNet, which would be computationally prohibitive with full-resolution segmentation models.
  • WSFL as a General-Purpose Feature: The learned foreground masks from WSFL act as a powerful, transferable feature that can be applied to various downstream tasks without task-specific fine-tuning.
  • WSFL Outperforms Saliency Methods: When compared to weakly supervised saliency detection methods, WSFL produces more complete object masks and better handles multiple objects of the same category, suggesting its learned features are more robust for object-centric tasks.

Key Results

  • WSOL: Achieved state-of-the-art results, including 72.97% CorLoc accuracy on CUB-200 and 55.7% mAP on VOC2007. The WSFL model with a ResNet50 backbone achieved 72.97% CorLoc on CUB-200 and 56.56% CorLoc on ImageNet-1k, outperforming previous methods.
  • WSOD: WSFL provided significant gains when used as extra supervision for existing WSOD methods like OICR and MIST, improving mAP by up to 3.3% and 1.4% respectively with ground truth masks, and 1.3% and 0.5% with WSFL-generated masks.
  • Transferability: WSFL models demonstrated excellent transfer ability, performing well on target datasets (like CUB-200) even when trained on ImageNet without fine-tuning, showing only small performance drops.

Limitations and Future Work

  • "Person" Category Bias: The WSFL model trained on ImageNet struggles with the "person" category because it's not present in the training set, leading to people being misclassified as background. This bias needs to be addressed.
  • CAM Post-processing Issues: For WSOL, while WSFL predicts good foreground masks, the subsequent CAM post-processing can fail to distinguish nearby objects.
  • Future Work: The authors plan to explore better backbones for WSFL, investigate methods to remove biases, and apply WSFL to other tasks like weakly supervised semantic segmentation. They also aim to improve proposal scoring for WSOD using WSFL.

Summary updated

BibTeX
@article{zhang2023weakly,
  author = {Chen-Lin Zhang and Yin Li and Jianxin Wu},
  title = {{Weakly supervised foreground learning for weakly supervised localization and detection}},
  journal = {Pattern Recognition},
  year = {2023},
  doi = {10.1016/j.patcog.2022.109279},
}
Figure