[Paper Review] Revisiting Stereo Depth Estimation From a Sequence-to-Sequence Perspective with Transformers
This paper proposes STTR, a stereo depth estimation method that reformulates the problem as a sequence-to-sequence matching task using Transformers, replacing traditional cost volume construction. By leveraging self- and cross-attention with relative position encoding and optimal transport-based matching, STTR enables flexible disparity range estimation, detects occlusions with confidence scores, and enforces uniqueness constraints, achieving state-of-the-art performance on synthetic and real-world benchmarks with minimal parameters and strong zero-shot generalization.
Stereo depth estimation relies on optimal correspondence matching between pixels on epipolar lines in the left and right images to infer depth. In this work, we revisit the problem from a sequence-to-sequence correspondence perspective to replace cost volume construction with dense pixel matching using position information and attention. This approach, named STereo TRansformer (STTR), has several advantages: It 1) relaxes the limitation of a fixed disparity range, 2) identifies occluded regions and provides confidence estimates, and 3) imposes uniqueness constraints during the matching process. We report promising results on both synthetic and real-world datasets and demonstrate that STTR generalizes across different domains, even without fine-tuning.
Motivation & Objective
- To overcome the limitations of fixed disparity range constraints in deep learning-based stereo depth estimation.
- To enable end-to-end learning of dense pixel correspondence with geometric constraints such as uniqueness and occlusion detection.
- To provide confidence estimates for disparity predictions to improve downstream scene understanding.
- To develop a memory-efficient Transformer-based architecture that generalizes across domains without fine-tuning.
- To replace cost volume construction with attention-based dense matching for improved robustness and flexibility.
Proposed method
- STTR uses a shared feature extractor to generate image embeddings from left and right stereo images.
- It applies a Transformer encoder with alternating self- and cross-attention to compute dense, explicit pixel-wise matches across epipolar lines.
- Relative pixel distance encoding is injected into feature descriptors to improve matching discrimination and resolve ambiguity.
- The method employs optimal transport theory to enforce uniqueness in matching, preventing multiple pixels from being assigned to the same point in 3D space.
- A context adjustment layer refines raw disparity predictions using contextual information from the left image across epipolar lines.
- A memory-efficient implementation enables training on standard hardware by optimizing attention computation and feature resolution.
Experimental results
Research questions
- RQ1Can a sequence-to-sequence Transformer-based approach outperform cost volume-based methods in stereo depth estimation while relaxing the fixed disparity range constraint?
- RQ2Can attention mechanisms with relative position encoding effectively replace handcrafted cost volumes in dense stereo matching?
- RQ3Can the model detect occluded regions and provide confidence estimates without additional supervision?
- RQ4Does the model generalize across domains (e.g., synthetic to real-world) without fine-tuning?
- RQ5Can a Transformer-based architecture achieve competitive performance with fewer parameters and lower memory usage?
Key findings
- STTR achieves state-of-the-art performance on the Scene Flow, MPI Sintel, KITTI 2015, Middlebury 2014, and SCARED benchmarks without any domain-specific fine-tuning.
- The model generalizes effectively to real-world datasets such as KITTI 2015 and Middlebury 2014 when trained only on synthetic Scene Flow data.
- STTR reports a median absolute error of 0.76 px on Scene Flow and 0.82 px on KITTI 2015, outperforming prior methods in both metrics.
- The model uses only 2.5M parameters, making it one of the most parameter-efficient stereo networks, outperforming even NAS-optimized models like LEAStereo.
- Inference memory usage is significantly lower than PSMNet and AANet, with STTR requiring only 3.8 GB for a 960×576 image at max disparity 192.
- The model achieves 5.77 Hz inference speed on 960×576 resolution at max disparity 192, with a 2.0 GB memory footprint for the lightweight variant.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.