Stereo Geometry Transformer

Junpeng Jing, Yihan Wang, Zhelun Shen, Rolandos Alexandros Potamias, Stefanos Zafeiriou, Jiankang DengarXiv 2026

TL;DR

Stereo Geometry Transformer (SGT) is a 0.7-billion-parameter vision transformer that performs stereo matching—estimating 3D depth from a pair of left and right images—entirely at full image resolution. By identifying the iterative refinement stage as the main performance bottleneck and introducing a stabilized loss function (SMoL), the authors successfully scale up standard transformers to achieve state-of-the-art accuracy, including a 42.3% reduction in zero-shot error on the ETH3D leaderboard.

Zero-shot stereo reconstruction in real-world scenes showing fine structures like plant leaves and metal grilles.

What Problem Does This Paper Address?

To turn two 2D camera views into a 3D scene, stereo matching algorithms must find corresponding pixels between the left and right images and measure their horizontal shift (disparity).

Historically, deep learning methods have relied on convolutional neural networks (CNNs) and 3D/4D "cost volumes" to score potential pixel matches. Because cost volumes eat up massive amounts of memory, these methods are forced to operate at reduced spatial resolutions (often a quarter of the original image size) and then upsample the result. Unsurprisingly, this blurs out thin structures—like plant leaves, fences, or metal grilles—and softens sharp object boundaries.

Recent transformer-based methods have tried to break free from cost volumes, but they either remain small and operate at half resolution (like WAFT-Stereo) or drop explicit geometric constraints altogether (like NBS). Simply making these transformers bigger doesn't work out of the box: naive scaling leads to unstable training. SGT tackles how to effectively scale standard vision transformers for full-resolution stereo matching while keeping training stable.

Methods

SGT (around 0.7B parameters) keeps the geometric guidance simple and processes everything—dense features, recurrent hidden states, and disparity maps—at full image resolution across three stages:

  1. Feature Extraction: A shared, pretrained Depth Anything v2 (DAv2) encoder extracts features from both images, which are decoded into full-resolution matching features and an initial recurrent state.
  2. Initial Estimation: Adopting a "classification-before-refinement" approach, a smaller transformer (ViT-S, 12 blocks) predicts a per-pixel probability distribution over 80 disparity intervals (0 to 800 pixels) directly at full resolution. No extra upsampling tricks are needed.
  3. Iterative Refinement: Over 4 iterations, SGT warps the right-view features using the current disparity estimate and feeds them into a large transformer updater (ViT-L, 24 blocks) alongside a lightweight local convolutional branch to predict residual disparity updates.

The Secret Sauce (SMoL Loss):
When scaling up the refinement transformer, the authors found that the standard Mixture-of-Laplace (MoL) loss caused sharp spikes in training loss. They traced this to the uncertainty-prediction head, which shares features with disparity prediction. Their fix, Simplified Mixture-of-Laplace (SMoL), applies channel-wise LayerNorm to the recurrent state to tame feature magnitudes and simplifies the mixture weights to a single relative logit. This small change stabilizes optimization and unlocks reliable scaling.

Datasets

  • Training: A massive mixture of ~9.35 million annotated stereo pairs from 15 diverse synthetic and real-world datasets (including SceneFlow, CREStereo, TartanAirV2, Dynamic Replica, and others). All target evaluation datasets were strictly excluded for zero-shot testing.
  • Evaluation: Tested on four standard real-world benchmarks—KITTI 2012, KITTI 2015, ETH3D, and Middlebury—as well as video stereo benchmarks (Dynamic Replica and Infinigen SV). No new datasets were introduced.

Key Insights and Ideas

  • Refinement is the bottleneck, not initialization: Increasing the granularity of the initial disparity classification drastically improved the initial guess (dropping ETH3D Bad-1 error from 66.97% to 4.00%), yet the final accuracy barely budged. The refinement network simply lacked the capacity to capitalize on better initializations.
  • Bigger updaters beat finer tokens: Intuition might suggest using smaller, finer image patches to capture pixel-level stereo details. However, experiments showed that finer tokenization didn't consistently help, whereas scaling up the refinement transformer's parameter count (from ViT-S to ViT-L) yielded steady, reliable gains.
  • Mixed-resolution adaptation prevents forgetting: Fine-tuning only on high-resolution crops (2M pairs) improved Middlebury accuracy but hurt KITTI and ETH3D. Training on a mixed-resolution schedule (720×1280 for high-res datasets, 640×640 for the rest) preserved high-res gains without sacrificing performance elsewhere.
Training stability of MoL vs. SMoL showing SMoL avoiding late-stage loss spikes.

Key Results

  • Zero-Shot Generalization: SGT achieved the best or joint-best results on 8 of 10 metrics across KITTI, ETH3D, and Middlebury. On Middlebury, it cut Bad-2 error by 13.2% (quarter-res) and 25.8% (half-res) compared to the strongest baselines. On the ETH3D test leaderboard, it reduced zero-shot Bad-1-Noc error by 42.3% relative to MatchAttention, and even outperformed all fine-tuned baselines on the strict Bad-0.5 metric.
  • In-Domain (Fine-Tuned): SGT topped 10 of 12 KITTI metrics (e.g., 10.2% lower KITTI 2012 Bad-2-All than WAFT-Stereo) and achieved the lowest Bad-1-Noc (0.13%) on ETH3D and Bad-4-All (1.59%) on Middlebury.
  • Video Stereo: Despite having no dedicated temporal modeling module, SGT outperformed specialized video stereo methods, reducing temporal error (TEPE) by 30.7% on Dynamic Replica and 24.8% on Infinigen SV compared to Stereo Any Video.

Limitations and Future Work

The authors note three main areas for future exploration:

  1. Further Scaling: Investigating whether these accuracy gains continue when scaling models to 1B or even 10B parameters.
  2. Data Gaps: High-resolution stereo pairs and scenes with transparent objects are still underrepresented in the 9.35M training mixture, limiting generalization in those edge cases.
  3. Inference Speed: This work focused on scaling and accuracy; making a 0.7B-parameter full-resolution transformer run fast enough for real-time applications remains an open challenge.

Summary updated

BibTeX
@misc{jing2026stereo,
  author = {Junpeng Jing and Yihan Wang and Zhelun Shen and Rolandos Alexandros Potamias and Stefanos Zafeiriou and Jiankang Deng},
  title = {{Stereo Geometry Transformer}},
  year = {2026},
  eprint = {2612.01501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.01501},
}
Figure