Auto-Context R-CNN

Bo Li, Tianfu Wu, Lun Zhang, Rufeng ChuarXiv 2018

Introduction

Modern object detection frameworks like Faster R-CNN typically focus on features extracted from within a proposed bounding box. However, human perception relies heavily on environmental context to identify objects, especially when they are small, blurry, or partially occluded. Auto-Context R-CNN addresses this by introducing the RoICtxMining operator, an end-to-end learnable module that adaptively mines contextual information from the regions surrounding an object.

The RoICtxMining Operator

The core of the proposed architecture is a novel operator that extends standard RoI pooling methods. Instead of a single feature vector for the object, the model constructs a 3x3 spatial layout centered on the object proposal.

The RoICtxMining operator defines a 3x3 grid around the central Object-RoI to select the most discriminative context features.

The process follows four main steps:

  1. Spatial Grid Definition: A 3x3 grid is established where the center cell is the object-RoI and the eight neighbors represent surrounding spatial contexts (e.g., top-left, bottom).
  2. Context Candidate Generation: Within each of the eight neighbor cells, a pool of candidate context-RoIs is generated.
  3. Adaptive Selection: A class-agnostic sub-network evaluates these candidates and selects the single most "discriminative" context-RoI for each cell. This allows the model to focus on relevant nearby objects or background cues.
  4. Feature Fusion: The features from the central object and the eight mined context regions are concatenated, providing a rich, context-aware representation for final classification and regression.

Experimental Results

The model was evaluated across several benchmarks, including PASCAL VOC, MS COCO, and KITTI.

Performance Gains

On the MS COCO dataset, Auto-Context R-CNN achieved a 6.9% mAP improvement over the R-FCN baseline. The most significant gains were observed in small object detection, where mAP nearly doubled from 8.9% to 15.5%. Furthermore, the model achieved top rankings on the KITTI pedestrian and cyclist detection leaderboards at the time of its release.

Robustness and Adversarial Defense

A unique advantage of this approach is its inherent resistance to adversarial attacks. Because the model relies on the surrounding context rather than just the pixels within the bounding box, it is harder to fool with localized adversarial patches.

Example of the 3x3 context mining layout on a real-world image, showing how the model identifies relevant surrounding regions.

In experiments where the center of an object was obscured or replaced with an adversarial patch, Auto-Context R-CNN maintained a performance of 51.5% mAP, significantly outperforming the 35.0% mAP of the standard R-FCN.

Discussion and Future Work

Auto-Context R-CNN demonstrates that "looking outside the box" provides a significant boost in both accuracy and robustness. While the current implementation increases feature dimensionality, future work could optimize the fusion process. Integrating more advanced base operators like RoIAlign or Deformable Convolutions could further enhance the precision of the mined context.

Summary updated

BibTeX
@misc{li2018auto,
  author = {Bo Li and Tianfu Wu and Lun Zhang and Rufeng Chu},
  title = {{Auto-Context R-CNN}},
  year = {2018},
  eprint = {1807.02842},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.02842},
}
Figure