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.
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.
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."
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.
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