Shape-based Figure-Ground Organization in Vision Transformers

Matthias Tangemann, Benjamin Lo, Zygmunt Pizlo, Kaleem Siddiqi, Dirk B. Walther, Sven J. DickinsonNeurIPS 2026

TL;DR

For years, computer vision orthodoxy held that deep neural networks are glorified texture detectors, easily fooled when you swap an elephant's skin for a tabby cat's fur. This paper reveals that modern Vision Transformers (ViTs) spontaneously learn to separate foreground objects from their backgrounds using genuine, Gestalt-like shape cues—much like the human brain does. By testing 25 different models on synthetic optical puzzles, the authors show that machine vision is quietly developing a remarkably human-like sense of geometry.

What Problem Does This Paper Address?

Imagine driving at night and seeing a strange silhouette in the road. Long before your brain recognizes what it is, a mid-level visual process called figure-ground organization separates the object (the figure) from the road (the ground). Humans do this effortlessly using geometric rules—known as Gestalt principles—like noticing whether a region is convex or completely surrounded.

Recent studies noticed that Vision Transformers naturally group foreground objects together in their internal representations, even without explicit segmentation training. But how are they doing it? Given that classic convolutional neural networks (CNNs) famously rely on superficial local textures rather than global shapes, it was an open question whether ViTs were genuinely learning geometric rules or just leaning on clever texture shortcuts and center-of-the-image biases.

Methods

To peek inside the models without altering what they already know, the authors used a classic, lightweight diagnostic: zero-shot linear probing across 25 frozen, pre-trained ViTs (spanning supervised object recognition, CLIP-style vision-language alignment, masked image modeling like MAE/BEiT, and self-distillation like DINO).

  1. Train on reality: They extracted patch-level features from every layer of a frozen ViT using natural photographs and trained a simple logistic regression classifier (a linear probe) to predict whether each image patch belonged to the foreground or background. (Patches straddling the boundary were masked out).
  2. Test on illusions: Here is the clever part—they took those exact probes, trained only on normal photos, and tested them zero-shot on synthetic, cue-controlled images. First, they replaced all natural textures with random patterns or solid colors. Next, they generated abstract, unrecognizable shapes that isolated specific Gestalt cues: surroundedness, convexity, symmetry, and parallelism.
Figure 1: (left) We extract patch representations from frozen, pre-trained ViTs and fit linear probes to predict figure-ground assignment on natural images, excluding patches that span both foreground and background (shown in black). We evaluate probes on both natural images and cue-controlled stimuli where textures are randomly replaced. (right) Probes for most models are largely unaffected by disrupting texture information, indicating the use of shape cues. Baselines rule out architectural biases and trivial strategies based on region area and location.

To ensure the models weren't cheating, the authors compared them against randomly initialized networks and trivial baselines (like always guessing the center of the image, or picking the smallest textured region).

Datasets

  • MSRA-10K: Used for training and i.i.d. testing of the linear probes, containing natural photographs with a single, dominant foreground object.
  • Describable Textures Dataset (DTD): Used to overwrite natural object and background regions with random textures.
  • Cue-Controlled Synthetic Benchmark: Newly introduced by the authors to isolate mid-level vision cues. It adapts abstract shapes from the idsprites dataset (for surroundedness) and procedurally generates novel stimuli using parabolic arcs (convexity), classic Bahnsen-style Bézier columns (symmetry), and Gaussian-process stripes (parallelism), carefully balanced to defeat center-bias heuristics.

Key Insights and Ideas

  • Texture destruction doesn't break figure-ground: If ViTs only cared about texture, swapping a bird's feathers and the sky for random wallpaper should wreck the probe's accuracy. For most ViTs, the probes generalized seamlessly—even when the foreground object itself was split into two clashing colors.
  • ViTs play by (some) Gestalt rules: Without ever seeing abstract geometric art during probe training, models strongly favored surrounded and convex regions as the "figure," proving they don't rely on recognizing familiar object outlines. Symmetry, however, barely registered—curiously echoing debates in human psychophysics over how weak symmetry actually is for figure-ground assignment.
  • Middle layers do the heavy lifting: Figure-ground separation isn't an input-level quirk or a final-layer classification byproduct; it peaks in the middle layers of the transformer, mirroring "mid-level" processing in biological vision.
  • Scale and pre-training matter: Larger models (ViT-L) consistently utilized shape cues better than smaller ones (ViT-B). Furthermore, Masked Image Models (like BEiT-3) excelled at shape-based organization, whereas standard supervised object-recognition models (with the notable exception of DeiT-III) stumbled when textures were replaced with flat colors.
Figure 3: Figure-ground predictions based on layer 12 from BeiT-3-L [60]. The probe generalizes from natural images to randomized textures with hardly any loss in performance, providing support for shape-based figure-ground cues used by the model.

Key Results

  • Natural vs. Texturized: On natural MSRA-10K images, all 25 models easily beat the ~0.80 accuracy of the spatial-center prior, clustering near 0.96–0.98 accuracy. When textures were randomized zero-shot, top models (e.g., BEiT-3-L, EVA-02-L, DINOv3-L) maintained >0.95 accuracy with virtually zero drop.
  • Isolated Gestalt Cues: On synthetic surroundedness stimuli, many models achieved near-perfect zero-shot accuracy (>0.95, vs. ~0.72 spatial baseline). Convexity showed a clear, above-baseline bias (~0.60–0.73 vs. ~0.53 baseline). Parallelism yielded modest biases (~0.55–0.65), while symmetry hovered flatly at 0.50 (chance).
Figure 4: Zero-shot performance of the figure-ground probes on cue-controlled test sets. The results shows strong biases towards surrounded and convex regions, a weaker role of parallelism and no clear evidence for the use of symmetry.
  • Decodability vs. Usage: When the authors trained fresh probes directly on convexity, symmetry, and parallelism stimuli, accuracies jumped dramatically (approaching 0.90–1.00). This means ViTs compute features like symmetry internally, even if they don't wire them into their default figure-ground intuition.

Limitations and Future Work

  • Linear probes have blind spots: Because the study intentionally restricts itself to patch-wise linear probes, a negative result only means the cue isn't linearly accessible at the patch level; a non-linear readout might still extract it.
  • Correlation, not downstream causation: Showing that middle layers encode figure-ground geometry doesn't prove that the network actually uses that representation to make final classification or reasoning decisions.
  • Human comparisons: The parallels to Gestalt psychology are currently qualitative. Future work directly benchmarking these ViT probes against human behavioral data on identical stimuli could turn modern vision encoders into powerful computational testbeds for studying human perception.

Summary updated

Abstract

Rich perceptual structure emerges in modern vision encoders. Several studies have shown that the internal representation in many vision transformers separates foreground objects from the background, however, little is known about the visual cues that have been learned by these models. In this work, we study whether figure-ground organization in a broad range of 25 vision transformers relies on generalizable shape cues, rather than on superficial texture statistics. To do so we train linear probes to classify patches as figure or ground, and evaluate them zero-shot on synthetic stimuli where individual cues are systematically manipulated. For a broad range of vision encoders, we find that probes are robust to the random replacement of textures in the input image, suggesting that the emerging figure-ground organization relies on shape cues. Probes also generalize in a zero-shot fashion to synthetic images where individual shape cues, recognizability and spatial priors are controlled for. Our experiments reveal a strong influence of surroundedness and convexity cues, while results for parallelism and symmetry are more nuanced. More detailed analyses reveal stronger evidence for shape-based cues in larger models, that models trained for object-recognition tend to be less robust to texture changes and that figure-ground information emerges most prominently in middle layers. Taken together, our study demonstrates that emerging figure-ground organization in recent vision encoders relies strongly on generalizable shape cues, advancing our understanding of the internal processing in vision transformers, and opening an exciting avenue for computational research on human visual perception.
BibTeX
@inproceedings{tangemann2026shape,
  author = {Matthias Tangemann and Benjamin Lo and Zygmunt Pizlo and Kaleem Siddiqi and Dirk B. Walther and Sven J. Dickinson},
  title = {{Shape-based Figure-Ground Organization in Vision Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qAhI3duUBt},
}
Figure