An Empirical Method to Quantify the Peripheral Performance Degradation in Deep Networks

Calden Wloka, John K. TsotsosarXiv 2020

TL;DR

Deep learning models are often assumed to be "translation invariant," meaning they should recognize an object regardless of its position in an image. This paper proves that's not quite true: standard CNN architectures suffer from significant performance drops near image borders and corners due to how they handle edges (padding), a phenomenon the authors call "spatial anisotropy."

What Problem Does This Paper Address?

In theory, a Convolutional Neural Network (CNN) should be equally good at detecting a cat in the center of a photo as it is at the very edge. However, convolutions have a "border problem." When a filter slides over the edge of an image, it hangs off into undefined space. To fix this, we use padding (like adding a border of zeros), but this creates a "non-veridical" or artificial representation that gets worse as the network gets deeper.

Figure 1: Diagram of the growth in the region of an in- put image (bottom layer) with undefined convolution results (shown in dark grey) over successive applications of convo- lutions. Figure adapted from [22].

This issue is often hidden by "photographer bias"—the tendency for humans to put important objects in the center of the frame. Because standard benchmarks like MS-COCO are heavily biased toward centered objects, we haven't fully realized how much performance degrades at the periphery.

Figure 2: A plot of the sum of binary object masks from the MS-COCO 2017 validation set after resizing all images in the set to 640 × 640 pixels. Darker values correspond to a greater density of annotated objects overlapping that loca- tion. It is clear that objects are most frequently located just below the image center, and rarely appear along the image border (particularly the upper corners).

Methods

The authors developed a rigorous methodology to quantify this degradation using Mask R-CNN as their test subject.

Instead of just moving an object around a static background (which can introduce weird context clues), they used a "probe location" strategy. They took high-resolution background scenes and inserted a single target object at a fixed "insertion location." They then generated various 800x800 crops of that scene. By shifting the crop window, they could place the target object at precise (x, y) offsets relative to the image border without changing the object's local context.

Example of shifting the field of view to place a bird at different offsets from the image boundary.

Datasets

  • Target Objects: 284 unique objects across 14 categories (animals, vehicles, etc.) extracted from the MS-COCO 2017 validation set.
  • Backgrounds: 34 high-resolution (min 1600x1600) natural scenes.
  • Composite Dataset: A total of 15,920 test images were generated by parametrically controlling object size and border offset. To ensure realism, objects were only placed in "contextually valid" regions (e.g., planes in the sky, not on grass).
Insertion regions defined for a mountain background to ensure conceptual consistency.

Key Insights and Ideas

  • The Corner "Dead Zone": Performance degradation isn't uniform. It is significantly worse in the corners of the image, where the padding effects from both the x and y axes compound.
  • Size Matters: Small objects are the primary victims. Because they occupy fewer pixels, a larger percentage of their features fall into the "degraded" peripheral zone. Large objects are more robust because their central pixels provide enough signal to anchor a correct detection.
  • Padding as a Signal: While padding is meant to help, recent research suggests networks actually use zero-padding as a "coordinate system" to learn absolute spatial positions, which might interfere with true translation invariance.
  • The 75-Pixel Rule: For an 800x800 image, the performance deficit for small objects was measurable up to 75 pixels away from the border. This means over a third of the image area could be considered a "sub-optimal" zone.

Key Results

  • Prediction Rate Drop: For the smallest objects (5% of image size), there was a 10-15% drop in the valid prediction rate near the boundary compared to the center.
  • Confidence Scores: Even when the network correctly identified an object at the edge, it was significantly less "confident" in its prediction.
  • IoU Stability: Interestingly, the Intersection over Union (IoU)—a measure of segmentation accuracy—remained relatively stable. This suggests that if the network manages to detect the object, the Mask R-CNN's RoIAlign component does a decent job of drawing the mask, even at the edges.
  • Vanishing Deficit: For large objects (18% of image size), the peripheral deficit almost entirely disappeared (less than 2% drop), confirming that central features can compensate for edge degradation.

Limitations and Future Work

The study focused exclusively on the default pre-trained Mask R-CNN with standard zero-padding. The authors acknowledge that different padding strategies (like reflection padding) or explicitly retraining networks to be aware of these anisotropies might yield different results.

Additionally, the task was a "binary" detection task (is the object there or not?). Future work could explore how edge degradation affects more nuanced tasks, like fine-grained attribute recognition (e.g., "is this fruit bruised?") or visual question answering, where internal details of the object are critical.

Summary updated

BibTeX
@misc{wloka2020empirical,
  author = {Calden Wloka and John K. Tsotsos},
  title = {{An Empirical Method to Quantify the Peripheral Performance Degradation in Deep Networks}},
  year = {2020},
  eprint = {2012.02749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.02749},
}
Figure