Global Contextual Dependency Network for Object Detection

Junda Li, Chunxu Zhang, Bo YangFuture Internet 2022

TL;DR

This paper introduces the Global Contextual Dependency Network (GCDN), a novel plug-and-play module for two-stage object detectors. GCDN enhances object detection by explicitly modeling global contextual dependencies, leading to improved recognition of featureless objects and reduced false positives, as demonstrated on the MS-COCO dataset.

What Problem Does This Paper Address?

Modern object detection systems, particularly two-stage detectors, rely heavily on local visual features extracted from Regions of Interest (RoIs). While effective, this approach often overlooks crucial global contextual information. This context—the relationship of an object to its surroundings and other objects in the scene—is vital for accurately identifying objects, especially those with ambiguous or incomplete visual cues (e.g., a partially visible tennis racket). Without this global understanding, detectors can struggle with featureless objects or be prone to false detections influenced by background clutter. The paper aims to bridge this gap by incorporating global contextual dependencies into existing two-stage detectors.

Methods

The core of the proposed solution is the Global Contextual Dependency Network (GCDN), designed as a modular addition to existing object detection frameworks. GCDN comprises two main components:

  • Context Representation Module (CRM): This module is responsible for generating multi-scale context representations from the backbone CNN's feature maps. It achieves this by applying average pooling over different-sized regions (scales) of the global context feature map. This allows the network to capture contextual information at various spatial resolutions, catering to objects of different sizes.
  • Context Dependency Module (CDM): Multiple CDMs work in parallel, each focusing on a single scale of context representation generated by the CRM. Each CDM takes local RoI features and a corresponding single-scale context representation as input. It then uses an attention mechanism to compute "affinity" between RoI features and context features, effectively reallocating context information to the RoI. This process generates single-scale contextual RoI features.

Finally, the contextual RoI features from all parallel CDMs are concatenated and then fused with the original RoI features. This combined representation is then used for classification and bounding box regression. The authors also propose a "lite" version of GCDN to reduce computational cost.

Datasets

The primary dataset used for training and evaluation is MS-COCO 2017. This dataset is noted for its rich contextual information and contains 80 object categories of varying sizes. The authors trained their models on the 118K training images and evaluated them on the 5K validation images.

Key Insights and Ideas

  • Global context is crucial: The paper strongly emphasizes that local features alone are insufficient for robust object detection, and global contextual dependencies play a significant role in improving accuracy, especially for challenging cases.
  • Multi-scale context matters: Objects appear at various scales, and capturing contextual information across these scales is essential. The CRM effectively addresses this by generating multi-scale context representations.
  • Attention for context aggregation: The CDM's use of an attention mechanism to selectively aggregate context based on affinity between RoI and context features is a key innovation for effectively leveraging global information.
  • GCDN as a plug-and-play module: The framework's design as a modular component that can be easily integrated into existing two-stage detectors makes it highly practical and broadly applicable.

Key Results

The GCDN consistently improved the performance of two-stage detectors on the MS-COCO 2017 dataset.

  • With ResNet-50-FPN, GCDN achieved a 1.5% AP improvement.
  • With ResNet-50-Mask R-CNN, GCDN achieved a 1.2% AP improvement.
  • The improvements were particularly significant for medium-sized objects (APm), suggesting that these objects, which may have less distinct local features, benefit most from contextual information.
  • Ablation studies showed that both the CRM and CDM contribute positively to the overall performance, with the attention mechanism in CDM yielding a notable improvement.
  • The lite version of GCDN also demonstrated significant gains (1.1% AP improvement over FPN baseline) with minimal impact on inference speed.

Limitations and Future Work

  • Computational Cost: While the lite version addresses this, the full GCDN still adds computational overhead. The authors mention their next step is to "efficiently capture global contextual dependencies," implying further optimization is desired.
  • Focus on Two-Stage Detectors: The current work focuses on enhancing two-stage detectors. Future work could explore its applicability to single-stage detectors.
  • Implicit Spatial Relationships: The paper states that GCDN "captures global contextual dependencies and integrates spatial relationships into visual relationships implicitly." Explicitly modeling spatial relationships could be a direction for future research.

Summary updated

BibTeX
@inproceedings{li2022global,
  author = {Junda Li and Chunxu Zhang and Bo Yang},
  title = {{Global Contextual Dependency Network for Object Detection}},
  booktitle = {Future Internet},
  year = {2022},
  url = {https://openreview.net/forum?id=AhBx6RFGTJ},
}
Figure