Towards Partial Supervision for Generic Object Counting in Natural Scenes

Hisham Cholakkal, Guolei Sun, Salman H. Khan, Fahad Shahbaz Khan, Ling Shao, Luc Van GoolIEEE TPAMI 2019

TL;DR

This paper introduces novel "partial supervision" techniques for object counting in natural scenes, significantly reducing annotation costs. They propose two frameworks, LC and RLC, that leverage a dual-branch architecture (classification and density) to achieve state-of-the-art performance with less supervision than existing methods.

What Problem Does This Paper Address?

Counting objects in natural images is a crucial task for scene understanding, but existing methods require extensive annotations. Traditional approaches either need bounding boxes for every object instance (instance-level supervision) or precise counts for all objects in an image (image-level supervision). For large datasets with many object categories and numerous instances per image, these annotation requirements become prohibitively expensive and time-consuming. This paper tackles this challenge by proposing a "partially supervised" setting that drastically lowers the annotation burden.

Methods

The core of the proposed solution is a dual-branch architecture consisting of:

  1. Image Classification Branch: This branch predicts the presence or absence of object categories. It's trained using standard multi-label classification losses.
  2. Density Branch: This branch predicts category-specific density maps, which are then used to estimate object counts.

The paper introduces two frameworks based on this architecture:

  • Lower-Count (LC) Supervision: This framework uses image-level supervision, but crucially, only requires counts up to a "lower-count range" (typically 1-4 instances) for all object categories. This leverages the human ability to "subitize" small numbers of objects quickly. The density branch is trained with a novel loss function that includes spatial and count-related terms, using a "hard spatial-guidance" mechanism derived from the classification branch to generate pseudo-ground truth masks.
  • Reduced Lower-Count (RLC) Supervision: This framework further reduces supervision by requiring lower-count annotations for only a subset of object categories, while the remaining categories only have image-level class labels. To handle this, the RLC framework introduces:
  • Weight Modulation Layer: This layer adapts convolution weights from the image classification branch to generate category-specific density maps, transferring knowledge from categories with count annotations to those without.
  • Category-Independent Density Map: An auxiliary sub-branch predicts a density map for the total object count in an image, irrespective of category. This helps in scenarios where category-specific counts might be missed.

Datasets

The proposed methods were evaluated on several standard datasets:

  • PASCAL VOC 2007: Used for training and evaluation, including a specific count-test split.
  • COCO (Microsoft Common Objects in Context): A large-scale dataset with 80 object categories, used for training and evaluation.
  • Visual Genome: Another large-scale dataset with a very large number of object categories (hundreds), used to demonstrate scalability.

Key Insights and Ideas

  • Leveraging "Subitizing": The core idea of using "lower-count" annotations (1-4 objects) is inspired by human perception and significantly reduces annotation effort for images with many instances.
  • Dual-Branch Synergy: Combining an image classification branch with a density branch allows for effective localization cues (from classification) to guide density map generation, even with limited supervision.
  • Knowledge Transfer for Unseen Categories: The RLC framework's weight modulation layer is a clever way to transfer learned counting patterns from annotated categories to unannotated ones, enabling generalization.
  • Category-Independent Total Count: The addition of a total count prediction sub-branch in RLC is crucial for robustly estimating the overall number of objects in complex scenes, especially when category-specific counts might be imperfect.
  • Density Maps for Instance Segmentation: The paper demonstrates that the density maps generated by the LC framework can be used to improve weakly supervised instance segmentation, showing the broader utility of their approach.

Key Results

  • State-of-the-Art Performance: Both LC and RLC frameworks achieve performance comparable to or exceeding state-of-the-art methods that use higher levels of supervision (e.g., instance-level or full image-level counts).
  • Significant Annotation Reduction: The proposed methods drastically reduce annotation costs, particularly for large-scale datasets. For instance, the RLC framework can achieve competitive results even when count annotations are only available for a subset of categories.
  • Improved Instance Segmentation: The LC framework's density maps improve weakly supervised instance segmentation, achieving a relative gain of 17.8% in Average Best Overlap (ABO) on PASCAL VOC 2012.
  • Scalability: The RLC framework demonstrates strong performance on large-scale datasets like Visual Genome, showcasing its ability to handle hundreds of object categories.

Limitations and Future Work

  • Lower-Count Range Definition: While the paper suggests t=5 as an optimal balance, the exact definition of the "lower-count range" might still require some tuning.
  • RLC Generalization: While RLC shows impressive generalization to unannotated categories, its performance might still be influenced by the quality and quantity of annotations for the "known" subset of categories.
  • Future Work: The paper suggests exploring more sophisticated knowledge transfer mechanisms and further investigating the application of density maps for other vision tasks. The authors also highlight the potential for further reducing annotation costs by exploring even sparser supervision strategies.

Summary updated

BibTeX
@misc{cholakkal2019towards,
  author = {Hisham Cholakkal and Guolei Sun and Salman H. Khan and Fahad Shahbaz Khan and Ling Shao and Luc Van Gool},
  title = {{Towards Partial Supervision for Generic Object Counting in Natural Scenes}},
  year = {2019},
  eprint = {1912.06448},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.06448},
}
Figure