Efficient Coarse-to-Fine Non-Local Module for the Detection of Small Objects

Hila Levi, Shimon Ullman

TL;DR

This paper introduces an "Efficient Non-Local" (ENL) module that significantly improves the detection of small objects by applying non-local reasoning in a coarse-to-fine manner along the top-down stream of a neural network. This novel approach is more memory-efficient than previous methods, allowing it to be applied effectively to high-resolution feature maps and leading to a 1-2 AP improvement on the COCO dataset.

What Problem Does This Paper Address?

Detecting small objects in images is a notoriously difficult task in computer vision. Standard object detection models often struggle with small objects because they lack sufficient contextual information or the fine-grained details needed for accurate localization. While "non-local" modules have shown promise in capturing long-range dependencies within an image, their high computational and memory demands have limited their application, particularly to the high-resolution feature maps crucial for small object detection. Existing methods typically apply these modules either at the end of the bottom-up feature extraction or between already detected objects, missing opportunities for a more integrated, coarse-to-fine reasoning process.

Methods

The core contribution of this paper is the Efficient Non-Local (ENL) module. The authors first acknowledge the limitations of the standard Non-Local (NL) module, primarily its high memory and computational cost, which makes it infeasible for high-resolution feature maps. They address this by:

  • Reordering Matrix Operations: By strategically reordering matrix multiplications within the NL module, they achieve a significant reduction in memory and operations. This allows the module to be applied to lower-resolution feature maps without prohibitive costs.
  • Incorporating Relative Spatial Information: The ENL module is enhanced by integrating relative spatial encoding. This allows the module to consider not just the appearance of features but also their spatial relationships, which is crucial for understanding context and relationships between objects.
  • Coarse-to-Fine Application: Instead of applying the module at a single stage, the authors propose applying it sequentially along the top-down stream of the network. This means the module operates on feature maps of increasing resolution. This coarse-to-fine approach allows information to flow from larger, easier-to-detect objects to smaller, related objects, and also enables small objects to reason among themselves.

Datasets

The models were trained and evaluated on the COCO dataset. Specifically:

  • Training: COCO train2017 (118K images)
  • Evaluation: COCO val2017 (5K images)

The standard COCO metrics, AP (mean average precision) and APsmall (mean average precision for small objects, area < 32²), were used for evaluation.

Key Insights and Ideas

  • Coarse-to-Fine Reasoning is Key for Small Objects: The paper strongly suggests that applying relational reasoning in a coarse-to-fine manner, moving from lower to higher resolution feature maps, is particularly effective for detecting small objects. This allows contextual information from larger objects to guide the detection of smaller ones.
  • Efficiency Enables Wider Application: The ENL module's efficiency is a game-changer. By drastically reducing memory and computational requirements, it unlocks the potential of non-local reasoning for high-resolution feature maps, which are essential for capturing the details of small objects.
  • Spatial Relationships Matter: Explicitly incorporating relative spatial information into the non-local module significantly enhances its ability to understand scene context and object relationships, leading to better detection performance.
  • Top-Down Stream is a Natural Fit: Applying the reasoning module along the top-down stream, rather than just the bottom-up stream, allows for a more natural flow of semantic information from high-level features to lower-level details.

Key Results

The proposed ENL module, when integrated into Faster R-CNN and Mask R-CNN pipelines, demonstrated significant improvements:

  • Faster R-CNN: Achieved a 1-2 APsmall point improvement over the baseline Faster R-CNN and a 1 AP improvement over a variant using a non-local module on the bottom-up stream.
  • Mask R-CNN: Showed 1-2 APsmall point improvement for both bounding box prediction and mask evaluation.
  • Qualitative Results: The paper presents compelling visual examples showing how the ENL module successfully detects small objects in dense scenes, instances that were missed by baseline methods. It also highlights how the module leverages semantic clues from larger objects (e.g., a person holding an object) to detect smaller, related items.

Limitations and Future Work

  • Computational Cost for Training: While the ENL module is efficient for inference, the original NL module's extreme memory demands still make training with it on high-resolution feature maps infeasible. The paper notes that their analysis is performed in evaluation mode due to these demands.
  • Generalizability: The authors suggest that the ENL module's efficiency and ability to integrate relative spatial information make it a promising candidate for a wide range of applications beyond object detection, including semantic segmentation, image restoration, and image generation, particularly within encoder-decoder frameworks. This indicates a broad scope for future research.

Summary updated

BibTeX
@inproceedings{levi2019efficient,
  author = {Hila Levi and Shimon Ullman},
  title = {{Efficient Coarse-to-Fine Non-Local Module for the Detection of Small Objects}},
  booktitle = {BMVC},
  year = {2019},
  url = {https://openreview.net/forum?id=FvAVb9dsmg},
}
Figure