Manuscript Offprint
arXiv:2610.33704E3tereo: Improving Stereo Matching at Depth Boundaries with Learned Geometric Edges
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
E Stereo: Improving Stereo Matching at Depth Boundaries with Learned Geometric Edges
Qi Xiong Qinghua Zhao Yongqiang Xie
Xidian University Hefei University
xiongqi@stu.xidian.edu.cn, zhaoqh@hfuu.edu.cn, yqxie@xidian.edu.cn
Abstract
Depth boundaries remain a major source of error in stereo matching. For IGEV on Scene Flow, geometric edge pixels account for only 6% of evaluated pixels but about half of the total absolute disparity error. Photometric edges can respond to texture changes without corresponding depth discontinuities, making them unreliable cues for boundary refinement. We propose Stereo, which learns geometric edges from disparity supervision and combines these boundary cues with the backbone disparity and image details to predict full-resolution disparity corrections. The same edge map also emphasizes boundary errors during training, while joint optimization allows the edge predictor to adapt to disparity refinement. On the Scene Flow dataset, Stereo reduces end-point error (EPE) at depth boundaries by 9.5% ~ 14.3% across RAFT-Stereo, IGEV, and MonSter, while also reducing overall EPE. After fine-tuning, our IGEV-based model improves upon IGEV on all eleven reported metrics across ETH3D, KITTI 2012, and KITTI 2015. The source code will be made publicly available upon acceptance.
Recent stereo methods have improved disparity estimation [7, 13, 17, 19, 22, 40]. Previous work has addressed boundary accuracy through image-guided disparity refinement [18], joint stereo matching and edge detection [32], and supervision that accounts for multiple disparity modes at edge pixels [45]. Nevertheless, our evaluation of seven existing stereo methods on Scene Flow [25] shows that disparity errors remain higher at depth boundaries than in non-boundary regions. Figure 1(a) shows mean end-point error

(a) EPE versus distance to depth boundaries.

MonSter
IGEV
(b) Disparity error maps of MonSter and IGEV.
Figure 1. Disparity errors at depth boundaries.
(EPE) as a function of pixel distance to the nearest depth boundary. Across these methods, error peaks at the boundaries and drops to roughly one quarter of that level just one pixel away. Figure 1(b) illustrates these errors for MonSter [7] and IGEV [40] on the same scene. In each column, the input left image and estimated disparity appear in the lower-right and upper-right insets, respectively, providing scene context for the main error map, where brighter colors indicate larger disparity errors. The green dashed boxes highlight the same region, where both methods exhibit bright error responses. These observations motivate our focus on depth boundaries.
Photometric edges do not necessarily indicate depth discontinuities. For example, contours depicted on a flat picture can produce strong image edges without corresponding

Figure 2. Overview of Stereo.
changes in scene depth. Guidance based on such responses may therefore emphasize appearance changes rather than geometric boundaries. We propose Stereo, in which GeoEdgeNet learns to predict geometric edges using labels derived from ground-truth disparity, without requiring additional edge annotations.
Boundary locations alone do not specify the direction or magnitude of disparity corrections. GeoRestore therefore combines the predicted edges with the backbone disparity and full-resolution image details to estimate a disparity residual. The same edge map also increases disparity error penalties at predicted boundaries during training. Rather than freezing a separately pretrained edge predictor, we jointly optimize edge prediction and disparity estimation so that the edge representation remains supervised by geometry while adapting to its use in disparity refinement.
On the Scene Flow dataset, E Stereo reduces EPE at depth boundaries by 13.4%, 14.3%, and 9.5% for RAFT-Stereo [22], IGEV, and MonSter, respectively, while lowering their overall EPE from 0.72 to 0.67, 0.47 to 0.43, and 0.37 to 0.35 pixels. For IGEV, EPE at depth boundaries decreases from 3.77 to 3.23 pixels. Under the same training and evaluation protocols, E Stereo underperforms IGEV in zero-shot evaluation but outperforms it after fine-tuning. The fine-tuned model improves upon IGEV on all eleven reported metrics across ETH3D, KITTI 2012, and KITTI 2015. For example, ETH3D Bad1.0 (Noc) decreases from 1.12% to 0.48%, and KITTI 2015 D1-all (All) decreases from 1.59% to 1.53%.
2. Related Work
Recent stereo matching methods improve disparity estimation through cost-volume construction, iterative refinement, and auxiliary priors.
Cost-Volume-Based Stereo Matching. Cost-volume-based methods construct matching costs from learned image features and aggregate them to estimate disparity [1, 4, 15, 16, 39, 47]. Representative approaches include PSM-Net [4], which captures multi-scale context through spatial pyramid pooling; GwcNet [15], which constructs group-wise correlation volumes; and ACVNet [39], which uses attention to filter matching information. Coarse-to-fine methods further reduce computation by progressively narrowing the disparity search range [11, 30]. Related transformer-based approaches model dense correspondences through attention [14, 21, 44]. Other aggregation and correlation designs exploit local structure to improve matching and detail recovery, including adaptive aggregation in AANet [43], bilateral aggregation in BANet [41], and motif correlations in MoCha-Stereo [5]. We use learned geometric edges to guide disparity refinement.
Iterative Stereo Matching. Iterative methods progressively refine disparity estimates through repeated updates [9, 19, 22, 33, 40, 42, 46, 50]. RAFT-Stereo [22] uses a recurrent update operator with multi-level correlation features, while IGEV and IGEV++ [40, 42] incorporate geometry encoding volumes to improve initialization and subsequent updates. CREStereo [19] adopts cascaded recurrent refinement, and other methods improve matching representations or the update process [9, 46, 48, 50]. Selective-Stereo [34] and DLNR [49] further exploit frequency information to recover disparity details. A related optimization-based approach, NMRF-Stereo [12], learns a Markov random field to preserve sharp disparity transitions. Our method uses predicted geometric edges for full-resolution disparity refinement and training.
Prior-Guided Stereo Matching. Auxiliary priors provide complementary information for stereo matching in ambiguous regions. Monocular depth and pretrained visual representations have been incorporated to strengthen matching features and disparity estimation [2, 6, 7, 13, 17, 23, 38], while selective expert models improve robustness across diverse scenes [36]. LoS [20] exploits local structure, and StereoNet [18] uses image-guided refinement to recover high-resolution disparity. ADL [45] models multiple disparity modes at edge pixels during training. EdgeStereo [32] uses photometric edges to guide disparity estimation and regularization. However, appearance con-tours can occur within a continuous surface and need not correspond to depth discontinuities. Our framework learns geometric edges from disparity supervision and uses the same predicted map for residual disparity refinement and boundary-focused training.
3. Method
Improving disparity at depth boundaries requires identifying relevant boundaries, converting these cues into disparity corrections, and optimizing the cues for their downstream use. As shown in Fig. 2, Stereo addresses these requirements through a shared geometric edge map. GeoEdgeNet learns boundary cues from disparity supervision, and GeoRestore combines them with the backbone disparity and image details to predict full-resolution residual corrections. Joint training retains geometric edge supervision while using the same map to guide refinement and emphasize boundary errors.
3.1. GeoEdgeNet
GeoEdgeNet targets boundaries associated with disparity structure rather than all visible image contours. Appearance changes within a continuous surface can produce image edges that are irrelevant to depth discontinuities. We therefore derive the supervision target from ground-truth disparity , defining the binary geometric edge map as
where measures second-order disparity changes and is the indicator function. These labels approximate depth boundaries from disparity structure without additional edge annotations.
As shown in Fig. 3, GeoEdgeNet predicts this target from shared backbone features and the left image. It combines responses across feature scales and then uses full-resolution image detail to refine their spatial localization.
The stereo backbone applies a shared image encoder to , where denote image height and width, as shown in Fig. 2. GeoEdgeNet reuses the left-image features , where denotes the spatial reduction factors. Each feature tensor has channels, determined by the stereo backbone.
To combine boundary cues from different feature scales, each , , passes through two convolutional layers to produce single-channel edge logits, which are bilinearly upsampled to . The resulting scale-wise edge logits are denoted by . Each is multiplied by a learnable scalar coefficient , and the four weighted maps are concatenated along the channel dimension:

Figure 3. Architecture of GeoEdgeNet.
Here, denotes channel-wise concatenation.
The coefficients control the contribution of each feature scale. A spatial attention module complements this scale weighting with location-dependent weights predicted from . A convolutional fusion layer then combines the weighted responses into one logit map, and bilinear upsampling restores the original image size:
where denotes element-wise multiplication with A shared across channels.
To refine boundary localization with full-resolution image detail, we apply three residual updates conditioned on . Starting from , each update concatenates the current edge logits with to form a four-channel tensor in . The convolutional edge update module predicts a single-channel residual, which is added to . A sigmoid function converts the logits after the third update into the geometric edge prediction:
(4)
Each value of E represents a predicted geometric edge probability. Ground-truth disparity defines the supervision target during training, while inference requires only the left image and its shared backbone features.
3.2. GeoRestore
A geometric edge map indicates potential depth boundaries but does not specify the direction or magnitude of disparity corrections. GeoRestore addresses this gap by conditioning the correction on both the boundary cues and the disparity estimate to be refined. As shown in Fig. 2, it receives the backbone disparity after the final recurrent update and upsampling, denoted by .
The three inputs provide complementary information. The backbone disparity supplies the current local geometry, E indicates potential depth boundaries, and provides full-resolution appearance details for localizing disparity transitions. We concatenate into
Table 1. Frozen-predictor and jointly trained configurations on Scene Flow. Results are reproduced from Tab. 5.
| Configuration | EPE | EPE | Params (M) |
|---|---|---|---|
| Pretrained, frozen GeoEdgeNet | 0.46 | 3.53 | 14.90 |
| Jointly trained full model | 0.43 | 3.23 | 12.78 |
a tensor in , where is the maximum disparity.
The correction module converts these inputs into a residual in the original disparity units. GeoRestore retains the backbone estimate as the base and adds the predicted residual to obtain the final disparity
Here, denotes channel-wise concatenation. GeoRestore is applied once after the backbone's final update, and is the final disparity estimate of Stereo.
We implement with five convolutional layers with successive dilation rates 1, 2, 4, 8, 1 to aggregate neighborhood information while preserving spatial resolution. Each layer is followed by instance normalization and a leaky ReLU activation. A final convolution produces the single-channel residual. This convolution is zero-initialized, and refinement starts with and .
3.3. Joint Training
A separately pretrained and frozen edge predictor provides fixed guidance but cannot adapt its parameters to disparity refinement. We therefore jointly train GeoEdgeNet, the stereo backbone, and GeoRestore, retaining geometric edge supervision while allowing disparity refinement to update the edge predictor. As shown in Tab. 1, the joint configuration reduces from 3.53 to 3.23 compared with the frozen-predictor configuration.
The predicted map connects the two tasks by conditioning GeoRestore and weighting disparity errors. Let , with , denote the stereo backbone's disparity predictions, where is the number of recurrent updates. The prediction precedes these updates, and is supplied to GeoRestore.
Geometric edge supervision anchors to the disparity-derived labels in Eq. (1). We supervise GeoEdgeNet's final edge logits with
where denotes binary cross-entropy evaluated from logits. For sparse ground truth, missing disparity values are filled before label construction, and edge supervision is restricted to originally annotated pixels.
To focus disparity training on predicted boundaries, we use the pixel weights . The stop-gradient operator sg blocks gradients to through this weighting path. The stereo disparity loss applies these weights to pixel-wise absolute errors of . The prediction has a sequence weight of 1, while after update has weight for , where is a fixed decay coefficient.
GeoRestore's corrected output receives edge-weighted disparity supervision with a larger edge coefficient of 6,
where denotes element-wise multiplication. This coefficient increases the relative emphasis on boundary errors during refinement. Gradients reach GeoEdgeNet through its input to GeoRestore and are also retained through in the restoration weight. Both disparity supervision terms are evaluated only at pixels with valid ground truth.
The total objective is . It jointly optimizes the shared image encoder, stereo backbone, GeoEdgeNet, and GeoRestore. Geometric edge supervision retains the boundary prediction objective, while restoration supervision allows the edge predictor to adapt to disparity correction. Ground-truth disparity and loss computation are required only during training.
4. Experiments
4.1. Experimental Setup
Datasets. We use Scene Flow [25] for pre-training and evaluation, with 35,454 training stereo pairs and 4,370 test stereo pairs providing dense ground-truth disparity. The real-world datasets are ETH3D [29], Middlebury 2014 [28], KITTI 2015 [26], and KITTI 2012 [10].
Metrics. On the Scene Flow dataset, we report end-point error (EPE) and EPE at depth boundaries (EPE ). For fine-tuned test-set evaluation, we submit predicted disparity maps to the official evaluation servers and report the returned Bad1.0 and RMSE metrics for ETH3D, D1-bg and D1-all for KITTI 2015, and Out-2 and Out-3 for KITTI 2012. The Middlebury comparison uses the official Bad2.0 and Bad4.0 metrics, but our official test results are not reported in this version. Zero-shot errors are computed locally using thresholds of 3 pixels on KITTI, 2 pixels on Middlebury at quarter and half resolution, and 1 pixel on ETH3D.
To assess the quality of geometric edge guidance, we also evaluate edge predictions against the geometric edge labels using precision, recall, and F1, with a matching tolerance of one pixel. Precision and recall measure the fractions of predicted and labeled edge pixels that are matched, respectively, and F1 is their harmonic mean. Zero-shot error rates are computed on the full real-world training sets.
Table 2. Results on four real-world datasets. All metrics are reported as percentages (%), except RMSE, which is reported in pixels. “All” denotes all evaluated pixels, while “Noc” denotes non-occluded pixels. Results for competing methods are taken from official leaderboards or the corresponding publications. marks methods using large-scale pre-trained foundation models, which are included for reference. Among methods without a foundation prior, the best and second-best results are highlighted in red and yellow, respectively.
| Method | ETH3D | Middlebury | KITTI 2015 | KITTI 2012 | Runtime (ms) ↓ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Bad1.0 Noc ↓ | Bad1.0 All ↓ | RMSE Noc ↓ | Bad2.0 Noc ↓ | Bad2.0 All ↓ | Bad4.0 All ↓ | D1-bg Noc ↓ | D1-all Noc ↓ | D1-bg All ↓ | D1-all All ↓ | Out-2 Noc ↓ | Out-2 All ↓ | Out-3 Noc ↓ | Out-3 All ↓ | ||
| Cost-volume methods | |||||||||||||||
| GwcNet [15] | 6.42 | 6.95 | 0.69 | - | - | - | 1.61 | 1.92 | 1.74 | 2.11 | 2.16 | 2.71 | 1.32 | 1.70 | 320 |
| GANet [47] | 6.22 | 6.86 | 0.75 | - | - | - | 1.34 | 1.63 | 1.48 | 1.81 | 1.89 | 2.50 | 1.19 | 1.60 | 1800 |
| AdaStereo [35] | 3.09 | 3.34 | 0.44 | 13.7 | 19.8 | 10.9 | 2.39 | 2.83 | 2.59 | 3.08 | - | - | - | - | 410 |
| CasStereo [11] | - | - | - | 18.8 | 26.0 | 18.5 | - | - | - | - | - | - | - | - | - |
| LEAStereo [8] | - | - | - | 7.15 | 12.1 | 6.33 | 1.29 | 1.51 | 1.40 | 1.65 | 1.90 | 2.39 | 1.13 | 1.45 | 300 |
| ACVNet [39] | 2.58 | 2.86 | 0.45 | 13.6 | 19.5 | 12.6 | 1.26 | 1.52 | 1.37 | 1.65 | 1.83 | 2.35 | 1.13 | 1.47 | 200 |
| Iterative methods | |||||||||||||||
| RAFT-Stereo [22] | 2.44 | 2.60 | 0.36 | 4.74 | 9.37 | 6.42 | 1.44 | 1.69 | 1.58 | 1.82 | 1.92 | 2.42 | 1.30 | 1.66 | 380 |
| CREStereo [19] | 0.98 | 1.09 | 0.28 | 3.71 | 8.13 | 5.05 | 1.33 | 1.54 | 1.45 | 1.69 | 1.72 | 2.18 | 1.14 | 1.46 | 410 |
| DLNR [49] | - | - | - | 3.20 | 6.98 | 4.77 | 1.42 | 1.61 | 1.60 | 1.76 | - | - | - | - | - |
| Selective-IGEV [34] | 1.23 | 1.56 | 0.29 | 2.51 | 6.04 | 3.74 | 1.22 | 1.44 | 1.33 | 1.55 | 1.59 | 2.05 | 1.07 | 1.38 | 240 |
| LoS [20] | 0.91 | 1.03 | 0.31 | 4.20 | 8.03 | 5.07 | 1.29 | 1.52 | 1.42 | 1.65 | 1.69 | 2.12 | 1.10 | 1.38 | 190 |
| NMRF-Stereo [12] | - | - | - | - | - | - | 1.18 | 1.46 | 1.28 | 1.57 | 1.59 | 2.07 | 1.01 | 1.35 | 90 |
| IGEV [40] | 1.12 | 1.51 | 0.34 | 4.83 | 8.16 | 5.79 | 1.27 | 1.49 | 1.38 | 1.59 | 1.71 | 2.17 | 1.12 | 1.44 | 180 |
| IGEV++ [42] | 1.14 | 1.58 | 0.34 | 3.23 | 7.19 | 4.85 | 1.20 | 1.42 | 1.31 | 1.51 | 1.56 | 2.03 | 1.04 | 1.36 | 280 |
| Edge-guided methods | |||||||||||||||
| EdgeStereo [32] | 6.76 | 7.12 | 0.81 | 18.7 | 24.5 | 15.7 | 1.69 | 1.89 | 1.84 | 2.08 | 2.32 | 2.88 | 1.46 | 1.83 | 320 |
| Stereo (Ours) | 0.48 | 0.82 | 0.21 | - | - | - | 1.19 | 1.42 | 1.31 | 1.53 | 1.58 | 2.03 | 1.00 | 1.32 | 190 |
| Foundation-model-based methods (for reference) | |||||||||||||||
| CroCo-Stereo [37] | 0.99 | 1.14 | 0.30 | 7.29 | 11.1 | 6.75 | 1.30 | 1.51 | 1.38 | 1.59 | - | - | - | - | 930 |
| MonSter [7] | 0.46 | 0.72 | 0.20 | 2.64 | 6.14 | - | 1.05 | 1.33 | 1.13 | 1.41 | 1.36 | 1.75 | 0.84 | 1.09 | 450 |
EPE and the per-image statistics use fixed random subsets of 50 images each from KITTI 2012 and KITTI 2015, five Middlebury 2014 images at half resolution, and 100 Scene Flow test images, together with all 27 ETH3D images.
Implementation details. For pre-training, we implement Stereo with RAFT-Stereo [22], IGEV [40], and MonSter [7]. GeoEdgeNet reuses the encoder features from each backbone. We train for 200k steps with batch size 8 and crop size , using 22 recurrent updates during training and 32 during inference. The coefficients of and are fixed at 0.5 and 0.1. The disparity losses use edge-weighting coefficients of 3 and 6, and the geometric edge label threshold is 1.0. All experiments use eight NVIDIA RTX 5090 GPUs and mixed-precision training.
IGEV serves as the reference backbone for zero-shot evaluation, fine-tuning, and ablation. Our IGEV-based model is implemented in the official IGEV code and keeps every training and inference setting of IGEV unchanged: the Scene Flow schedule (200k steps, batch size 8, crop size , 22 recurrent updates during training and 32 during inference), the optimizer, learning-rate schedule, and augmentation, and the fine-tuning data mixtures.
For fine-tuning, we initialize our IGEV-based model from its Scene Flow checkpoint and retain the same loss coefficients and geometric edge label threshold. For KITTI

Figure 4. Overall EPE and boundary on the Scene Flow test set before and after adding our components.
2012 and KITTI 2015, we fine-tune for 50k steps using the combined training sets of the two datasets. For ETH3D, following CREStereo and GMStereo, we fine-tune for 300k steps using a mixture of TartanAir, CREStereo, Scene Flow, Sintel Stereo, InStereo2k, and ETH3D. For Middlebury 2014, we use the same mixture with ETH3D replaced by Middlebury 2014. Geometric edge labels are derived from the ground-truth disparity of the training data.
4.2. Comparison with Existing Methods
Pre-training Performance on Scene Flow. To evaluate whether Stereo improves disparity estimation across dif-
Table 3. Results before and after adding our components to three stereo backbones on Scene Flow.
| Backbone | EPE | EPE | Params (M) | Time (ms) |
|---|---|---|---|---|
| RAFT-Stereo [22] | 0.72 0.67 | 5.14 4.45 | 11.12 11.30 | 380 390 |
| IGEV [40] | 0.47 0.43 | 3.77 3.23 | 12.60 12.78 | 180 190 |
| MonSter [7] | 0.37 0.35 | 3.27 2.96 | 388.69 388.87 | 450 460 |
Table 4. Zero-shot stereo matching results on real-world datasets.
| Dataset | Threshold (px) | Bad-τ (%) ↓ | |
|---|---|---|---|
| IGEV | Stereo | ||
| KITTI 2012 | 3 | 5.14 | 5.59 |
| KITTI 2015 | 3 | 6.04 | 6.25 |
| Middlebury Quarter | 2 | 6.21 | 6.80 |
| Middlebury Half | 2 | 7.08 | 7.43 |
| ETH3D | 1 | 3.61 | 3.97 |
ferent stereo matching networks, we incorporate its three components into RAFT-Stereo [22], IGEV [40], and MonSter [7], and compare each implementation with its corresponding baseline on the Scene Flow test set. As shown in Tab. 3, our components reduce both EPE and across all three networks. Each table entry gives the baseline value followed by the value with our components. decreases from 5.14 to 4.45 for RAFT-Stereo, from 3.77 to 3.23 for IGEV, and from 3.27 to 2.96 for MonSter, corresponding to reductions of , , and , respectively. Overall EPE also decreases from 0.72 to 0.67, from 0.47 to 0.43, and from 0.37 to 0.35, respectively. These consistent improvements support using learned geometric edges to guide disparity refinement and training across different stereo matching networks.
We further compare our implementations with existing methods, as shown in Fig. 4. Our IGEV-based implementation achieves an EPE of 0.43 and an of 3.23, compared with 0.44 and 3.66 for Selective-IGEV [34]. Our best-performing implementation, built on MonSter, achieves an EPE of 0.35 and an of 2.96, compared with 0.45 and 3.07 for NMRF-Stereo [12]. FoundationStereo [38] achieves lower errors on both metrics. The improvement over MonSter shows that our framework also benefits a foundation-model-based backbone.
Fine-Tuning Performance on Real-World Datasets. Using IGEV as the reference backbone without a foundation-model prior, we evaluate Stereo after fine-tuning on real-world datasets. Official test results for Middlebury 2014 are currently unavailable because its online submission service is disabled . Tab. 2 reports the available official test results on ETH3D, KITTI 2015, and KITTI
The official submission page is https://vision.middlebury.edu/stereo/submit3/. We will submit our predictions and add the official test results once the service reopens.
Table 5. Ablation results on the Scene Flow test set.
| Configuration | EPE | Params (M) | Time (ms) | |
|---|---|---|---|---|
| Progressive component addition | ||||
| IGEV baseline | 0.47 | 3.77 | 12.60 | 180 |
| + edge-weighted loss (GT edges) | 0.46 | 3.68 | 12.60 | 180 |
| + GeoEdgeNet | 0.45 | 3.42 | 12.74 | 186 |
| + GeoRestore | 0.43 | 3.23 | 12.78 | 190 |
| Additional ablations | ||||
| GeoEdgeNet only | 0.46 | 3.65 | 12.74 | 186 |
| No edge input | 0.46 | 3.81 | 12.78 | 190 |
| Fixed GeoEdgeNet | 0.46 | 3.53 | 14.90 | 190 |
- Stereo improves over its IGEV baseline on all eleven reported ETH3D and KITTI metrics. Specifically, on ETH3D, Bad1.0 (Noc) decreases from to . The improvement also extends to KITTI, with D1-all (All) decreasing from to on KITTI 2015 and Out-3 (Noc) decreasing from to on KITTI 2012. Although these official test evaluations do not report , the improvements show that using geometric edges to guide disparity refinement and training also improves overall disparity estimation after fine-tuning on real-world datasets.
Among methods without a foundation-model prior, our model outperforms Selective-IGEV [34] on all eleven reported ETH3D and KITTI metrics. It also outperforms IGEV++ [42] on all three ETH3D metrics and matches or improves on it on six of the eight KITTI metrics. MonSter [7], which uses a pre-trained foundation model, is included for reference.
Zero-Shot Performance on Real-World Datasets. We evaluate the Scene Flow checkpoints of IGEV and Stereo on the training sets of the real-world datasets without fine-tuning, as shown in Tab. 4. Bad- measures the percentage of pixels with disparity error above pixels. Under matched training and evaluation protocols, Stereo yields higher error rates than IGEV in all five settings. For example, the error rate increases from 5.14% to 5.59% on KITTI 2012 and from 3.61% to 3.97% on ETH3D.
The gains on Scene Flow do not carry over to direct evaluation on real-world images, whereas target-domain fine-tuning yields improvements over IGEV. Although the edge supervision is derived from disparity, GeoEdgeNet predicts edges from image features, and GeoRestore uses the left image together with disparity and predicted edges. These learned mappings may remain sensitive to differences between synthetic and real images. The observed contrast is consistent with sensitivity to domain shift, although it does not isolate the contributions of edge prediction, residual refinement, and training weights to the transfer gap.
4.3. Ablation Study
Contribution of each component. We evaluate whether emphasizing boundary errors and using geometric edges
Table 6. Edge prediction quality, disparity accuracy, and computational cost are compared across edge sources on Scene Flow.
| Edge source | Precision ↑ | Recall ↑ | F1 ↑ | EPE ↓ | Params (M) | Time (ms) | |
|---|---|---|---|---|---|---|---|
| Sobel | 0.456 | 0.627 | 0.528 | 0.49 | 3.86 | 12.64 | 182 |
| Canny | 0.456 | 0.589 | 0.514 | 0.47 | 3.79 | 12.64 | 183 |
| Frozen RCF [24] | 0.633 | 0.729 | 0.677 | 0.51 | 4.12 | 27.44 | 193 |
| GeoEdgeNet | 0.818 | 0.847 | 0.832 | 0.43 | 3.23 | 12.78 | 190 |
for residual correction improve disparity estimation. On the Scene Flow test set, Tab. 5 compares successive IGEV-based configurations with ground-truth edge weighting, predicted edge weighting, and GeoRestore. First, applying the edge-weighted loss with weights constructed from ground-truth geometric edge labels reduces from 3.77 to 3.68. Adding GeoEdgeNet and using its predicted geometric edges for weighting further reduces to 3.42. Finally, adding GeoRestore reduces to 3.23 and overall EPE from 0.45 to 0.43.
Auxiliary prediction versus explicit edge use. “GeoEdgeNet only” adds auxiliary edge prediction to IGEV without using the predictions for disparity weighting or refinement. Its is 3.65, compared with 3.77 for IGEV and 3.42 when predicted edges also weight disparity errors. This comparison supports explicitly using the predicted edges beyond auxiliary supervision alone.
Edge guidance for disparity correction. In the “No edge input” configuration, the geometric edge input to GeoRestore is set to zero. increases from 3.23 to 3.81, supporting the role of geometric edge input in the evaluated refinement configuration.
Frozen versus jointly trained edge prediction. “Fixed GeoEdgeNet” uses a separately pretrained and frozen edge predictor. It yields an EPE of 0.46 and an of 3.53, compared with 0.43 and 3.23 for the jointly trained full model. The joint configuration therefore provides more effective guidance for disparity estimation in this comparison.
4.4. Depth Boundary Analysis
Comparison of edge sources. To assess how well different edge sources identify geometric boundaries and support disparity estimation, we compare GeoEdgeNet with Sobel [31], Canny [3], and frozen RCF [24]. Sobel detects local image intensity changes using fixed gradient filters. Canny suppresses noisy responses and links thin edges into contours. RCF is a pre-trained neural network for image edge detection whose weights are kept fixed in this comparison. We evaluate precision, recall, and F1 against reference geometric edges with a matching tolerance of one pixel. Precision measures the fraction of predicted edge pixels matched to reference edges, recall measures the fraction of reference edge pixels recovered, and F1 balances the two. Together, these metrics quantify unwanted edge responses and missed geometric boundaries, complementing the disparity errors. Parameter counts and runtimes refer to the complete stereo models, with the GeoEdgeNet row corresponding to Stereo.

Figure 5. Qualitative comparison of edge sources on Scene Flow, ETH3D, and Middlebury. The Scene Flow green boxes highlight appearance contours absent from the reference geometric edge map. GeoEdgeNet suppresses several of these responses.
As shown in Tab. 6, GeoEdgeNet achieves the highest precision, recall, and F1, together with the lowest overall and boundary disparity errors. Its precision is 0.818, compared with 0.633 for RCF, indicating a smaller fraction of predictions unmatched to the reference geometric boundaries. Its F1 increases to 0.832 from RCF's 0.677, while is 3.23, compared with 3.79 for Canny and 4.12 for RCF. These results support the use of learned geometric edges under the evaluated configurations. However, RCF has higher F1 than Canny but larger boundary disparity error, indicating that edge detection quality alone does not determine the effectiveness of disparity guidance.
Fig. 5 illustrates the distinction between appearance contours and geometric boundaries. In the green boxes of the Scene Flow example, Sobel and RCF respond to contours within pictures on planar surfaces, including contours absent from the reference geometric edge map. These responses describe image content rather than corresponding depth discontinuities. GeoEdgeNet suppresses several such internal responses while retaining the surrounding geometric boundaries, although some appearance responses remain. This example illustrates why boundary guidance should be evaluated against disparity structure rather than image contours alone.
Error versus distance to depth boundaries. To exam-
Left Image
RAFT-Stereo
IGEV
IGEV++
Selective-IGEV
E Stereo(Ours)

Figure 6. Qualitative disparity comparisons on Scene Flow in the top two rows and ETH3D in the bottom two rows.
ine where our components improve disparity estimates, we group Scene Flow test pixels by their distance to the nearest depth boundary. As shown in Fig. 7, we compare RAFT-Stereo, IGEV, and MonSter with their corresponding E Stereo implementations. Distance zero denotes the geometric edge pixels. Our components reduce EPE at these pixels across all three backbones.
For IGEV, geometric edge pixels occupy only 6.0% of the evaluated pixels but contribute about half of the total absolute disparity error. Adding our components reduces EPE at these pixels from 3.77 to 3.23, corresponding to a 14.3% reduction, and also reduces EPE by 4.2% one pixel away. Farther from the boundaries, some distance groups have small EPE increases of up to 0.02 pixels, while overall EPE decreases from 0.47 to 0.43. This analysis shows that the improvement is concentrated near depth boundaries and contributes to better overall disparity accuracy.
Qualitative results. To inspect disparity estimates near depth boundaries, we compare the IGEV implementation of E Stereo with RAFT-Stereo, IGEV, IGEV++, and Selective-IGEV on examples from Scene Flow and ETH3D. As shown in Fig. 6, the highlighted regions reveal differences in object separation and the completeness of thin structures. On Scene Flow, E Stereo represents the foreground structure in the first-row red box more completely than IGEV and separates the wheel spokes in the second-row green box more clearly than RAFT-Stereo. On the ETH3D, the fine-tuning preserves more individual railing bars in the third-row green box and produces a more continuous horizontal pipe in the fourth-row red box than IGEV. These examples complement the distance analysis by illustrating clearer boundaries and more complete thin structures in the displayed disparity estimates.

(a) EPE (px)
Figure 7. EPE versus distance to depth boundaries across three stereo backbones.
5. Conclusion
We presented E Stereo, which uses a shared geometric edge map learned from disparity supervision to guide full-resolution residual disparity refinement and edge-weighted supervision. Our analysis quantifies the concentration of disparity errors at depth boundaries. On Scene Flow, E Stereo reduces boundary EPE by 9.5%–14.3% across RAFT-Stereo, IGEV, and MonSter, while also reducing overall EPE. After fine-tuning, its IGEV-based implementation improves upon IGEV on all eleven reported metrics across ETH3D, KITTI 2012, and KITTI 2015. Direct transfer from Scene Flow to real-world datasets remains a limitation, despite the improvements obtained after fine-tuning.
References
[1] Antyanta Bangunharcana, Jae Won Cho, Seokju Lee, In So Kweon, Kyung-Soo Kim, and Soohyun Kim. Correlate-and-excite: Real-time stereo matching via guided cost volume excitation. In 2021 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 2021. 2
[2] Luca Bartolomei, Fabio Tosi, Matteo Poggi, and Stefano Mattoccia. Stereo anywhere: Robust zero-shot deep stereo matching even where either stereo or mono fail. In Proceedings of the Computer Vision and Pattern Recognition Conference (CVPR), 2025. 2
[3] John Canny. A computational approach to edge detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-8(6):679–698, 1986. 7
[4] Jia-Ren Chang and Yong-Sheng Chen. Pyramid stereo matching network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. 2
[5] Ziyang Chen, Yongjun Zhang, Wenting Li, Bingshu Wang, Yong Zhao, and CL Chen. Motif channel opened in a white-box: Stereo matching via motif correlation graph. arXiv preprint arXiv:2411.12426, 2024. 2
[6] Junda Cheng, Wenjing Liao, Zhipeng Cai, Longliang Liu, Gangwei Xu, Xianqi Wang, Yuzhou Wang, Zikang Yuan, Yong Deng, Jinliang Zang, Yangyang Shi, Jinhui Tang, and Xin Yang. Monster++: Unified stereo matching, multi-view stereo, and real-time stereo with monodepth priors, 2025. 2
[7] Junda Cheng, Longliang Liu, Gangwei Xu, Xianqi Wang, Zhaoxing Zhang, Yong Deng, Jinliang Zang, Yurui Chen, Zhipeng Cai, and Xin Yang. Monster: Marry monodepth to stereo unleashes power. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025. 1, 2, 5, 6
[8] Xuelian Cheng, Yiran Zhong, Mehrtash Harandi, Yuchao Dai, Xiaojun Chang, Hongdong Li, Tom Drummond, and Zongyuan Ge. Hierarchical neural architecture search for deep stereo matching. Advances in Neural Information Processing Systems, 33, 2020. 5
[9] Miaojie Feng, Junda Cheng, Hao Jia, Longliang Liu, Gangwei Xu, and Xin Yang. Mc-stereo: Multi-peak lookup and cascade search range for stereo matching. arXiv preprint arXiv:2311.02340, 2023. 2
[10] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In Conference on Computer Vision and Pattern Recognition (CVPR), 2012. 1, 4
[11] Xiaodong Gu, Zhiwen Fan, Siyu Zhu, Zuozhuo Dai, Feitong Tan, and Ping Tan. Cascade cost volume for high-resolution multi-view stereo and stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020. 2, 5
[12] Tongfan Guan, Chen Wang, and Yun-Hui Liu. Neural markov random field for stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024. 2, 5, 6
[13] Tongfan Guan, Jiaxin Guo, Chen Wang, and Yun-Hui Liu. Bridgedepth: Bridging monocular and stereo reasoning with
latent alignment. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2025. 1, 2
[14] Weiyu Guo, Zhaoshuo Li, Yongkui Yang, Zheng Wang, Russell H Taylor, Mathias Unberath, Alan Yuille, and Yingwei Li. Context-enhanced stereo transformer. In European Conference on Computer Vision, 2022. 2
[15] Xiaoyang Guo, Kai Yang, Wukui Yang, Xiaogang Wang, and Hongsheng Li. Group-wise correlation stereo network. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 2, 5
[16] Xianda Guo, Chenming Zhang, Youmin Zhang, Wenzhao Zheng, Dujun Nie, Matteo Poggi, and Long Chen. Light-stereo: Channel boost is all you need for efficient 2d cost aggregation. In ICRA, 2025. 2
[17] Hualie Jiang, Zhiqiang Lou, Laiyan Ding, Rui Xu, Minglang Tan, Wenjie Jiang, and Rui Huang. Defom-stereo: Depth foundation model based stereo matching. In IEEE International Conference on Computer Vision and Pattern Recognition (CVPR), 2025. 1, 2
[18] Sameh Khamis, Sean Fanello, Christoph Rhemann, Adarsh Kowdle, Julien Valentin, and Shahram Izadi. Stereonet: Guided hierarchical refinement for real-time edge-aware depth prediction. In Proceedings of the European Conference on Computer Vision (ECCV), 2018. 1, 2
[19] Jiankun Li, Peisen Wang, Pengfei Xiong, Tao Cai, Ziwei Yan, Lei Yang, Jiangyu Liu, Haoqiang Fan, and Shuaicheng Liu. Practical stereo matching via cascaded recurrent network with adaptive correlation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. 1, 2, 5
[20] Kunhong Li, Longguang Wang, Ye Zhang, Kaiwen Xue, Shunbo Zhou, and Yulan Guo. Los: Local structure-guided stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024. 2, 5
[21] Zhaoshuo Li, Xingtong Liu, Nathan Drenkow, Andy Ding, Francis X. Creighton, Russell H. Taylor, and Mathias Unberath. Revisiting stereo depth estimation from a sequence-to-sequence perspective with transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2021. 2
[22] Lahav Lipson, Zachary Teed, and Jia Deng. Raft-stereo: Multilevel recurrent field transforms for stereo matching. In International Conference on 3D Vision (3DV), 2021. 1, 2, 5, 6
[23] Chuang-Wei Liu, Qijun Chen, and Rui Fan. Playing to vision foundation model's strengths in stereo matching. IEEE Transactions on Intelligent Vehicles, 2024. 2
[24] Yun Liu, Ming-Ming Cheng, Xiaowei Hu, Kai Wang, and Xiang Bai. Richer convolutional features for edge detection. In CVPR, 2017. 7
[25] N. Mayer, E. Ilg, P. Häusser, P. Fischer, D. Cremers, A. Dosovitskiy, and T. Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In IEEE International Conference on Computer Vision and Pattern Recognition (CVPR), 2016. 1, 4
[26] Moritz Menze and Andreas Geiger. Object scene flow for autonomous vehicles. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2015. 4
[27] Moritz Menze, Christian Heipke, and Andreas Geiger. Joint 3d estimation of vehicles and scene flow. In ISPRS Workshop on Image Sequence Analysis (ISA), 2015. 1
[28] Daniel Scharstein, Heiko Hirschmüller, York Kitajima, Greg Krathwohl, Nera Nesic, Xi Wang, and Porter Westling. High-resolution stereo datasets with subpixel-accurate ground truth. In Proceedings of the German Conference on Pattern Recognition (GCPR), 2014. 4
[29] Thomas Schöps, Johannes L. Schönberger, Silvano Galliani, Torsten Sattler, Konrad Schindler, Marc Pollefeys, and Andreas Geiger. A multi-view stereo benchmark with high-resolution images and multi-camera videos. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. 4
[30] Zhelun Shen, Yuchao Dai, and Zhibo Rao. Cfnet: Cascade and fused cost volume for robust stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2021. 2
[31] Irwin Sobel and G. M. Feldman. An isotropic image gradient operator. 1990. 7
[32] Xiao Song, Xu Zhao, Liangji Fang, Hanwen Hu, and Yizhou Yu. Edgestereo: An effective multi-task learning network for stereo matching and edge detection. International Journal of Computer Vision, 128(4), 2020. 1, 2, 5
[33] Vladimir Tankovich, Christian Häne, Sean Fanello, Yinda Zhang, Shahram Izadi, and Sofien Bouaziz. Hitnet: Hierarchical iterative tile refinement network for real-time stereo matching. arXiv preprint arXiv:2007.12140, 2020. 2
[34] Xianqi Wang, Gangwei Xu, Hao Jia, and Xin Yang. Selective-stereo: Adaptive frequency information selection for stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024. 2, 5, 6
[35] Yun Wang, Kunhong Li, Longguang Wang, Junjie Hu, Dapeng Oliver Wu, and Yulan Guo. Adstereo: Efficient stereo matching with adaptive downsampling and disparity alignment. IEEE Transactions on Image Processing, 2025. 5
[36] Yun Wang, Longguang Wang, Chenghao Zhang, Yongjian Zhang, Zhanjie Zhang, Ao Ma, Chenyou Fan, Tin Lun Lam, and Junjie Hu. Learning robust stereo matching in the wild with selective mixture-of-experts. arXiv preprint arXiv:2507.04631, 2025. 2
[37] Philippe Weinzaepfel, Thomas Lucas, Vincent Leroy, Yohann Cabon, Vaibhav Arora, Romain Brégier, Gabriela Csurka, Leonid Antsfeld, Boris Chidlovskii, and Jérôme Revaud. CroCo v2: Improved Cross-view Completion Pretraining for Stereo Matching and Optical Flow. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023. 5
[38] Bowen Wen, Matthew Trepte, Joseph Aribido, Jan Kautz, Orazio Gallo, and Stan Birchfield. Foundationstereo: Zero-shot stereo matching. CVPR, 2025. 2, 6
[39] Gangwei Xu, Junda Cheng, Peng Guo, and Xin Yang. Attention concatenation volume for accurate and efficient stereo
matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. 2, 5
[40] Gangwei Xu, Xianqi Wang, Xiaohuan Ding, and Xin Yang. Iterative geometry encoding volume for stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023. 1, 2, 5, 6
[41] Gangwei Xu, Jiaxin Liu, Xianqi Wang, Junda Cheng, Yong Deng, Jinliang Zang, Yurui Chen, and Xin Yang. Banet: Bilateral aggregation network for mobile stereo matching. arXiv preprint arXiv:2503.03259, 2025. 2
[42] Gangwei Xu, Xianqi Wang, Zhaoxing Zhang, Junda Cheng, Chunyuan Liao, and Xin Yang. IGEV++: Iterative multi-range geometry encoding volumes for stereo matching. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025. 2, 5, 6
[43] Haofei Xu and Juyong Zhang. Aanet: Adaptive aggregation network for efficient stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020. 2
[44] Haofei Xu, Jing Zhang, Jianfei Cai, Hamid Rezatofighi, Fisher Yu, Dacheng Tao, and Andreas Geiger. Unifying flow, stereo and depth estimation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023. 2
[45] Peng Xu, Zhiyu Xiang, Chengyu Qiao, Jingyun Fu, and Tianyu Pu. Adaptive multi-modal cross-entropy loss for stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024. 1, 2
[46] Jiaxi Zeng, Chengtang Yao, Lidong Yu, Yuwei Wu, and Yunde Jia. Parameterized cost volume for stereo matching. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023. 2
[47] Feihu Zhang, Victor Prisacariu, Ruigang Yang, and Philip HS Torr. Ga-net: Guided aggregation net for end-to-end stereo matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. 2, 5
[48] Haoliang Zhao, Huizhou Zhou, Yongjun Zhang, Yong Zhao, Yitong Yang, and Ting Ouyang. Eai-stereo: Error aware iterative network for stereo matching. In Proceedings of the Asian Conference on Computer Vision (ACCV), 2022. 2
[49] Haoliang Zhao, Huizhou Zhou, Yongjun Zhang, Jie Chen, Yitong Yang, and Yong Zhao. High-frequency stereo matching network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023. 2, 5
[50] Jingyi Zhou, Peng Ye, Haoyu Zhang, Jiakang Yuan, Rao Qiang, Liu YangChenXu, Wu Cailin, Feng Xu, and Tao Chen. Consistency-aware self-training for iterative-based stereo matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025. 2