NeurIPS 2026 Workshop · Physical World Models

Do Deep Stereo Models Learn Shape Priors?

State-of-the-art stereo networks still misplace the edges of simple polygons, even after training on them. HDiT-Stereo samples disparity together with a boundary distance field, and puts those edges where they belong.

Boundary errors, scene by scene

Black pixels are disparity errors above 2 px. Pick one of 24 test scenes drawn at random from our 1000-scene test set; the baselines are fine-tuned on our data. Hover over any map, or drag on a touch screen, to magnify the same spot in every method.

Show
HDiT-Stereo sample
True disparity ·
Left
Right
Magnified 3×
Abstract

Localizing object boundaries is important for embodied visual systems, since small boundary errors can change the inferred geometry of physical surfaces. We study whether deep stereo models produce boundaries consistent with simple shape priors when local image and disparity cues are weak. We create a synthetic stereo dataset consisting of objects drawn from a highly constrained family of shapes, with randomized depth, slant, color and texture. Despite the simplicity of this shape space, we find that several state-of-the-art stereo models retain systematic boundary errors, even when finetuned or trained from scratch on the dataset. We then introduce a simple generative stereo model that jointly predicts disparity and a distance field representing object boundaries. The model improves boundary localization and produces contours that adhere more closely to the underlying shape space. These results expose limitations in the boundary predictions of current stereo architectures when local evidence is weak, and motivate further study of whether generative models can better combine regional grouping evidence with global geometric structure.

Dataset

Turn the difficulty up

Every object is a planar regular polygon with up to eight sides, rendered exactly by our generator. We control how much local evidence a boundary has through three factors. Change them below; the scene geometry stays the same, so only the chosen factor changes. With the same texture and no depth gap, nothing local marks where the front object ends.

Appearance
Surface slant
Depth separation
Scene
Left
Right
True disparity
0

Shown at 256 px for display; the training and test sets use 128 px.

Method

HDiT-Stereo samples disparity and boundaries together

We adapt the hourglass diffusion transformer (HDiT) to stereo. Starting from noise, it denoises two maps on the left-image grid: disparity, and an unsigned distance field whose zero level set marks the object boundaries. The denoiser is conditioned on per-view image features and on two left–right correlation volumes, one from a small trainable CNN and one from frozen DINOv2 features.

Pipeline: left and right images feed a per-view encoder, a shared photometric encoder and a frozen DINOv2 semantic encoder; their features are summed and condition an HDiT denoiser that turns noisy disparity and noisy UDF into clean disparity and UDF.
Flame and snowflake mark trainable and frozen components. The model has 23.4 M trainable parameters, close to MonSter's 23.0 M.
Results

Most accurate on every boundary metric

Boundary & contourGlobal
MethodTrainingBound. EPEChamferHausd. 99EPEBad-2 %
RAFT-Stereofrom scratch0.7920.3451.370.1181.71
Selective-IGEVfine-tuned0.8030.3441.350.1251.73
MonSterfine-tuned0.7950.3551.440.1301.74
DEFOM-Stereofine-tuned0.8310.3651.590.1441.83
FoundationStereozero-shot4.0862.61411.984.26128.70
HDiT-Stereo Basemean of 100.8360.3551.590.1921.80
HDiT-Stereomean of 100.7360.3091.290.1471.50

Mean over 1000 test scenes; all errors in pixels, lower is better. Each baseline is shown in its stronger training regime on our data (from scratch or fine-tuned); zero-shot versions of the four are an order of magnitude worse. Base is trained on disparity alone, without the boundary field or correlation encoders. Full table in the paper.

Figure–ground ambiguity

Two valid readings, two modes

When two overlapping objects share texture and depth, the images do not say which one owns the shared edge, and people often see such displays flip. Disparity is identical under both readings; only the boundaries differ.

Across 100 samples of the scene below, HDiT-Stereo's disparity stays the same while its boundary fields split into two clusters, each next to one of the two valid answers. A model that outputs one disparity map cannot represent this.

Four sampled disparity maps that look the same, and four boundary fields that alternate between two contour arrangements; a t-SNE plot of 100 boundary samples shows two clusters, each near one of the two true contour maps.
Left: four samples. Disparity is stable; the boundary field alternates between the two valid readings. Right: t-SNE of 100 boundary samples, with the two true contour maps marked by stars. This does not happen in every ambiguous scene; the paper reports how often both readings appear.