Degraded Polygons Raise Fundamental Questions of Neural Network Perception

Leonard Tang, Dan Ley · OpenReview

Abstract

It is well-known that modern computer vision systems often exhibit behaviors misaligned with those of humans: from adversarial attacks to image corruptions, deep learning vision models suffer in a variety of settings that humans capably handle. In light of these phenomena, here we introduce another, orthogonal perspective studying the human-machine vision gap. We revisit the task of recovering images under degradation, first introduced over 30 years ago in the Recognition-by-Components theory of human vision. Specifically, we study the performance and behavior of neural networks on the seemingly simple task of classifying regular polygons at varying orders of degradation along their perimeters. To this end, we implement the Automated Shape Recoverability Test for rapidly generating large-scale datasets of perimeter-degraded regular polygons, modernizing the historically manual creation of image recoverability experiments. We then investigate the capacity of neural networks to recognize and recover such degraded shapes when initialized with different priors. Ultimately, we find that neural networks' behavior on this simple task conflicts with human behavior, raising a fundamental question of the robustness and learning capabilities of modern computer vision models.

Introduction

Despite the remarkable success of deep learning in computer vision, models often exhibit behaviors that diverge sharply from human perception. These models are frequently susceptible to adversarial perturbations and often rely on local textures rather than global shapes. To better understand this "perception gap," we revisit a foundational concept from cognitive science: Irving Biederman’s Recognition-by-Components (RBC) theory.

In the 1980s, Biederman demonstrated that humans rely on "non-accidental properties" (NAPs)—specifically vertices or corners—to mentally reconstruct and recognize objects. When corners are removed, human recognition performance drops significantly compared to when midsegments (edges) are removed. This study investigates whether modern neural networks share this human bias for corners or if they perceive geometric structures through a fundamentally different lens.

The Automated Shape Recoverability Test (ASRT)

To rigorously test these theories at scale, we developed the Automated Shape Recoverability Test (ASRT). This pipeline modernizes the manual, small-scale experiments of the 20th century by generating a massive benchmark of 1.26 million black-and-white sketches.

The dataset consists of regular polygons ranging from triangles to octagons. Each shape is subjected to two distinct types of perimeter degradation across nine levels of intensity (10% to 70% of the perimeter removed):

  1. Corner Degradation: Erasing the areas surrounding the vertices.
  2. Edge Degradation: Erasing the midsections of the lines connecting the vertices.

By isolating these geometric features, we can determine which components are most critical for a model's classification decisions.

Experimental Framework

We evaluated several prominent architectures, including ResNet-18, ResNet-50, MLP-Mixer, and Vision Transformers (ViT). To understand the influence of prior knowledge, we compared models pretrained on ImageNet (natural images) against those pretrained on FractalDB (mathematically generated fractal shapes). All models were fine-tuned on "whole" polygons before being tested on the degraded variants.

The Great Inversion: Key Insights

Our experiments revealed a striking phenomenon we term "The Great Inversion." While humans find it easier to recognize shapes with intact corners, neural networks—specifically ResNets and MLP-Mixers—exhibit the exact opposite behavior. These models struggle significantly more when edges are missing, even if the corners remain perfectly intact.

Edge-Dependency and Local Features

For many models, a shape with missing edges is often unrecognizable. For instance, an ImageNet-pretrained ResNet-18 showed near 0% accuracy on pentagons with 50% edge degradation, despite maintaining high accuracy when corners were removed. This suggests that these models are not learning the global concept of a "polygon" or "closure," but are instead relying on specific local linear features to identify shapes. If the continuous line of an edge is broken, the model's internal representation fails, even though a human can easily "connect the dots."

Architectural Variations

Architecture plays a role in how this gap manifests. Vision Transformers (ViT) demonstrated a more balanced performance decay across both degradation types. This suggests that the global attention mechanism inherent in ViTs may make them slightly less dependent on local edge features compared to the local receptive fields of Convolutional Neural Networks (CNNs).

The Role of Pretraining

Pretraining on FractalDB improved robustness toward missing corners compared to ImageNet pretraining. However, these models remained poor at identifying edge-degraded shapes. Paradoxically, while fractal pretraining helps with certain degradations, it actually widens the overall gap between machine and human perception strategies.

Conclusion

The divergence between human and machine performance on simple polygons raises fundamental questions about the robustness of modern vision models. If a model cannot recognize a square simply because its midsegments are missing, its understanding of geometry is fundamentally fragile.

Future research should focus on developing pretraining objectives that emphasize non-accidental properties like vertices and symmetry. Furthermore, exploring "Gestalt closure"—the ability to perceive a whole shape from fragmented parts—may be essential for aligning computer vision more closely with the robust nature of human perception.

Summary updated

BibTeX
@inproceedings{tang2023degraded,
  author = {Leonard Tang and Dan Ley},
  title = {{Degraded Polygons Raise Fundamental Questions of Neural Network Perception}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=LE4AN1FGjJ},
}
Figure