Do Deep Stereo Models Learn Shape Priors?

Linbo Tang, Aneel Damaraju, Todd ZicklerarXiv 2026 · arXiv

TL;DR

This paper investigates whether deep stereo models can internalize "shape priors" to accurately predict object boundaries when visual cues like texture or color are weak. The authors demonstrate that current state-of-the-art models fail to exploit simple geometric regularities, and they propose HDiT-Stereo—a generative diffusion model that jointly predicts disparity and boundary distance fields—to significantly improve boundary localization and handle scene ambiguity.

What Problem Does This Paper Address?

For robots and autonomous systems, knowing exactly where an object ends and the background begins is critical. Even small errors at these boundaries can lead to a complete misunderstanding of physical geometry.

In stereo vision, we calculate depth by matching pixels between two views. However, this process often fails at boundaries due to "weak evidence":

  • Camouflage: The object and background have similar colors or textures.
  • Textureless regions: There are no distinct features to match between images.
  • Occlusions: Parts of the background are visible in only one camera view.

While humans use "shape priors"—an internal understanding of what shapes usually look like—to "fill in the blanks," it remains unclear if deep learning models do the same. This paper tests whether high-capacity models can learn to exploit simple geometric regularities (like the straight edges of a polygon) to produce crisp, accurate boundaries when local image data is ambiguous.

Figure 2: Dataset examples. Shapes are slanted planar regular polygons up to degree eight with randomized appearance. Difficulty is controlled by similarity in object appearance, object slant, and object depth. The extreme case (bottom right) provides no local evidence for much of the objects’ boundaries, requiring nonlocal shape information for successful grouping.

Methods

The authors introduce HDiT-Stereo, a generative framework based on the Hourglass Diffusion Transformer (HDiT). Unlike standard models that deterministically map images to a single disparity map, HDiT-Stereo treats stereo estimation as a denoising process.

Key technical components include:

  • Joint Prediction: The model doesn't just predict disparity ($d$); it jointly generates an Unsigned Distance Field (UDF) ($u$). The UDF represents the distance to the nearest object boundary, providing an explicit target for the model to learn shape and contour.
  • Triple Encoding: The model is conditioned on the stereo pair via three encoders:
  • Per-View Encoder: Captures global image context.
  • Shared Photometric Encoder: A CNN that builds a cost volume to capture local matching evidence.
  • Shared Semantic Encoder: Uses a frozen DINOv2 model to provide high-level contextual features.
  • Generative Denoising: Starting from pure noise, the model iteratively refines the disparity and UDF fields. This allows the model to represent a distribution of possible geometries rather than a single "average" (and often blurred) result.
Figure 3: Overview of HDiT-Stereo. Per-view image features and correspondence features from a trainable photometric encoder and a frozen DINOv2 semantic encoder condition an HDiT denoiser. From noise the model jointly generates disparity and an unsigned boundary distance field through iterative denoising. Flame and snowflake symbols indicate trainable and frozen components.

Datasets

The authors argue that real-world datasets are too "noisy" at boundaries to act as a clean test. Instead, they developed a procedural synthetic dataset:

  • Shapes: Slanted planar regular polygons (up to degree eight).
  • Randomization: Depths, slant angles, colors, and textures (including patterns from the Describable Textures Dataset) are randomized.
  • Purpose: Because the shape space is so constrained, any failure to produce a perfect polygonal boundary indicates a failure of the model to learn the underlying "shape prior."

Key Insights and Ideas

  • Deterministic Models Struggle with Priors: Even when trained from scratch on simple polygons, standard models like RAFT-Stereo or Selective-IGEV produce "rounded" or "distorted" corners when texture is weak. They fail to internalize the "straight-edge" regularity of the dataset.
  • Generative Models Handle Ambiguity: In cases where the geometry is truly ambiguous (e.g., two identical shapes overlapping), standard models produce a single, incorrect "averaged" boundary. HDiT-Stereo can produce bimodal outputs, representing both valid interpretations across different samples.
  • Uncertainty as a Feature: Because the model is generative, the variance between multiple samples serves as a built-in uncertainty map. The authors show that pixels with high sample variance are highly correlated with actual errors, allowing the system to "know when it doesn't know."
Figure 5: Sample variation identifies unreliable predictions. Left: Mean disparity error versus sample standard deviation, binned separately for boundary and interior pixels across all test scenes. Higher uncertainty indicates larger errors. Right: Mean error among pixels retained by predicted uncertainty (orange) or ground-truth error (gray). Removing uncertain pixels substantially reduces error without requiring ground truth for selection. Computed on a 100-scene test subset, and the dashed line is RAFT-Stereo on the same subset.

Key Results

  • Boundary Accuracy: HDiT-Stereo outperformed all baselines (including FoundationStereo and MonSter) on boundary-specific metrics like Boundary EPE, Chamfer distance, and Hausdorff distance.
  • Shape Fidelity: In a test of "recovered shape IoU" (Intersection over Union), HDiT-Stereo achieved the highest scores, indicating its contours adhered most closely to the true polygonal shapes.
  • Global Performance: While the focus was on boundaries, the model remained competitive on global metrics, showing that improving boundary localization doesn't have to come at the cost of overall depth accuracy.
Figure 4: Recovered foreground shapes. For each scene, the upper row shows disparity maps with ground truth on the left; the lower row shows recovered foreground shapes overlaid on ground truth. Dark regions indicate agreement, orange regions indicate disagreement, and solid black lines mark ground-truth contours. Our model achieves the highest shape IoU.

Limitations and Future Work

  • Computational Cost: As a diffusion model, HDiT-Stereo is significantly slower than "single-pass" regression models. It requires ~0.318s per image compared to ~0.02s for baselines. The authors suggest model distillation or faster samplers as future solutions.
  • Complexity Scaling: The current study uses simple polygons. It remains to be seen how well these generative priors scale to the "infinite" variety of complex, non-planar shapes found in the real world.
  • Supervision Requirements: The model requires ground-truth boundary distance fields (UDFs) during training, which may be difficult to obtain for real-world sensor data.

Summary updated

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.
BibTeX
@misc{tang2026do,
  author = {Linbo Tang and Aneel Damaraju and Todd Zickler},
  title = {{Do Deep Stereo Models Learn Shape Priors?}},
  year = {2026},
  eprint = {2611.25113},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25113},
}
Figure