Manuscript Offprint
arXiv:2611.09458Left-Right-Consistent Iterative Stereo Matching via Cross-Injection
Abstract
State-of-the-art stereo matching models predominantly predict the disparity of only the left (reference) view. However, applications such as per-eye AR/VR rendering, novel view synthesis, or two-view depth fusion require disparity for both views, and need those two maps to agree. The usual workaround of running the network a second time on the horizontally flipped and swapped pair gives two independent predictions that can be inconsistent, especially on transparent surfaces, in textureless regions, and at occlusion boundaries. We introduce cross-injection (CI), a lightweight extension for iterative (refinement-based) models that can be added to any pretrained left-only iterative matcher. It couples the two passes by injecting the explicit, signed left-right inconsistency as an additional input cue at every step of the refinement stage. We empirically show that CI substantially reduces left-right disagreement on every benchmark (more than halving it on Booster for FoundationStereo), while largely preserving sharp object boundaries. Furthermore, using two state-of-the-art stereo matching models, we show that CI also reduces the single-view disparity error, making it a worthwhile extension even if only left disparity is needed.
1. Introduction
A growing number of vision systems need geometrically consistent disparity for both cameras of a stereo rig, not just for a reference view. Per-eye passthrough rendering on AR/VR headsets reprojects and composites each eye with its own depth [8], so any left-right disagreement introduces noticeable artifacts [12]. Stereoscopic content must also keep disparity within a viewing-comfort zone [23]. Novel view synthesis from a stereo pair renders new viewpoints from the two input views [66], so where the two disparity maps disagree the composite tears and ghosts at occlusion boundaries. Two-view depth fusion likewise yields doubled geometry wherever the two estimates disagree. These examples demonstrate the need not just for two accurate depth maps, but also consistent ones.
GitHub: https://github.com/facebookresearch/stereo_crossinjection

Figure 1. Sample predictions with and without our proposed cross-injection (CI) extension. CI can be added to any iterative stereo matcher (here FoundationStereo [57]) and substantially improves left-right consistency between two otherwise independent inference passes (left example); it also reduces per-view failure modes (right example). Here, we show two examples from the Booster dataset [39] where inconsistent predictions arise mainly on reflective and transparent surfaces. Additional visualizations are shown in Figs. 4, 5 and 6.
State-of-the-art stereo matchers, however, typically predict only the left (reference) disparity, a convention encouraged by benchmarks that score only the left view [14, 35, 41, 42]. In practice, the standard way to obtain the right disparity from such a network is to horizontally flip and swap the input pair, re-posing the right view as a left-view problem, and run the same weights a second time. The two passes are coupled only implicitly through the image content; nothing enforces that their outputs agree. As a result, they often diverge in textureless regions, at occlusion boundaries, and on transparent or reflective surfaces, where each pass locks onto a different plausible depth (Fig. 1, left example, middle row).
This is the gap we address in this paper: making the left and right predictions agree without sacrificing single-view accuracy. Rather than a fundamental redesign (a symmetric, both-view architecture trained from scratch), we propose a lightweight extension that reuses the strong pretrained left-only matchers the field already provides. It attaches to any such matcher with a RAFT-style [28, 45] refinement module and adds left-right consistency through fine-tuning alone, so it transfers to new base models as they appear. In summary, our main contributions are as follows:
-
We propose cross-injection, a lightweight extension for refinement-based left-only stereo matching models. Unlike prior in-network consistency mechanisms, we inject explicit disparity inconsistency directly into the GRU update. Our extension is zero-initialized, leaving the pretrained matcher's predictions unchanged at the start of fine-tuning, so the coupling is learned entirely by fine-tuning.
-
We supervise this coupling with a left-right consistency loss under per-pixel bidirectional gradient routing, and show it preserves sharp edges better than a naive symmetric one.
-
We demonstrate that our method substantially improves left-right consistency for two state-of-the-art stereo matching architectures [36, 57].
-
We show that CI is also at least as accurate as a matched fine-tuning control in 14 of 15 benchmark-model combinations, and clearly better in most, making it a worthwhile extension even if only left-view prediction is required.
Both-view prediction and left-right consistency. Predicting both disparities with symmetric occlusion reasoning has a long history [3, 32, 43] and recurs in deep networks via symmetric occlusion CNNs [24], bidirectional cross-attention transformers [26, 60], and parallax attention [52]. The left-right disparity consistency loss originates with Godard et al. [15], building on photometric self-supervision [13], and recurs in later self-supervised depth and stereo models [38, 64]; related methods instead use a left-right consistency check to select reliable proxy labels [48, 51, 65], and unsupervised adaptation of a pretrained matcher relies on confidence-filtered proxy labels or photometric losses [46, 47]. In unsupervised optical flow, the two flow directions likewise provide a forward-backward consistency loss [34] and occlusion masks [34, 54]. These consistency objectives are usually self-supervised and symmetric.
Consistency inside the network. Classically, the left-right check is a post-hoc occlusion filter [11, 19, 40, 50]; learned variants instead use cross-view signals during estimation via feature constancy [27], warping-error refinement [6], attention cost volumes [58], cross-view-completion pretraining [55, 56], or auxiliary cross-view geometric constraints [16]. Closest to our refiner are LRCR [21] and the refine-and-distill model of Pilzer et al. [37], which also feed left-right disagreement back into refinement. LRCR, however, turns this comparison into a learned soft-attention map that flags only where to refine; Pilzer et al. instead derive their inconsistency as an image-space cycle-reconstruction error in a monocular model and turn it into a self-distillation signal (a stop-gradient pulls a student sub-network toward the refined disparity). By contrast, we inject the explicit, signed disparity inconsistency (where, by how much, and in which direction the views disagree) as a parameter-free cue into a GRU update through a zero-initialized encoder.
Stop-gradient consistency targets. A symmetric consistency loss makes each of two predictions a target for the other, so it can be minimized by co-adapting both toward a degenerate mutual agreement rather than by correcting either. Mutual learning [63] keeps this in check by also anchoring each peer network to ground-truth labels; a pure consistency objective has no such anchor, so the standard remedy is a stop-gradient. It prevents the analogous collapse in Siamese self-supervised learning [9, 17] and underpins consistency-based semi-supervised learning via a detached teacher [44]. The same one-directional, detached signal recurs in stereo and flow: self-training in optical flow, where confident predictions supervise unreliable ones [29, 30], stereo-to-monocular distillation from a fixed, pretrained stereo teacher [18], and the self-distillation of Pilzer et al. [37]. We adopt the same principle, but apply it per pixel and in both directions within a single weight-shared model: each view's left-right consistency gradient updates only the other view, and the warp field is detached so the loss cannot be reduced by sliding the sampling location instead of correcting the disparity (Sec. 3.2).
3. Approach
Our main contribution is a lightweight cross-injection refiner (Sec. 3.1) that couples the left and right disparity predictions during iterative refinement; we train it with a left-right consistency loss (Sec. 3.2) that supervises the same coupling at the output, using bidirectional gradient routing. The two are complementary: the refiner consumes the per-pixel left-right inconsistency as an input cue, while the loss penalizes its magnitude during training, so the same geometric quantity is addressed by both the architecture and the objective.

Figure 2. Overview of the proposed cross-injection architecture. Two refinement passes (the left pass and the flipped-swapped right pass), whose feature encoders and GRU share weights, each iteratively update their own disparity. At every step, each pass receives its own masked left-right inconsistency with respect to the other view (Fig. 3, Eq. 2) as an additional input cue, injected through a zero-initialized encoder. Because the encoder emits zero at initialization, augmenting an already-trained refiner with cross-injection reproduces its original (uncoupled) behavior exactly, and the cross-view correction is learned by fine-tuning.

Figure 3. Illustration of the proposed cross-injection mechanism. The detached partner prediction is horizontally flipped and warped into the frame of the own prediction, using the own disparity as the shift field (Eq. 2), and subtracted from the own prediction. The resulting signed inconsistency ("consistency vector") is passed explicitly to the refiner's GRU block. We do this with a tensor of shape : the two channels are (i) the signed inconsistency with zeros at non-co-visible pixels, and (ii) the binary co-visibility mask derived from warping. This way, the model can distinguish non-visibility from perfect consistency.
3.1. Stereo Refinement via Cross-Injection
Our extension applies to any iterative (refinement-based) stereo matcher trained to predict left disparities only [28, 36, 57]. The right disparity is obtained as in Sec. 1 by flipping and swapping the input pair and flipping the prediction back. Each pass refines its disparity with a RAFT-style [28, 45] convolutional GRU that gathers correlation features at the current estimate and emits an increment; the
passes share weights but not state and interact only through the correlation volume, so agreement would be encouraged only indirectly by the disparity loss (Eq. 8). Cross-injection instead tells each pass, at every step and pixel, where and by how much it disagrees with the other view, so it can act on the disagreement during refinement.
Writing for a pixel of the grid, each network pass starts from an initial disparity and refines it over steps into , , giving and for the two passes (iteration index dropped where unambiguous). Disparities are non-negative; a left pixel corresponds to the right pixel and a right pixel to the left pixel .
Consistency estimation. We compare the two views in disparity space with a horizontal bilinear sampler that warps a source map along a shift field with sign ,
with out-of-grid samples set to zero. Sampling the other view's disparity in the current view's frame and subtracting gives the per-pixel left-right inconsistency
(2)
which is zero where the views agree. It is only meaningful at co-visible pixels, so we restrict it with a mask of non-occluded pixels that have an in-bound match,
(3) and symmetrically for . Here flags non-occluded pixels, obtained from by a standard single-view uniqueness (z-buffer) test [11, 43]: each pixel is forward-warped to the other view and, on collision, only the nearest (largest-disparity) pixel survives; a 1-pixel erosion of this mask discards unreliable pixels near object boundaries. During cross-injection (Fig. 3), the mask is recomputed at each step from the current detached disparity and treated as constant.
Cross-injection. The refiner consumes the masked inconsistency as an extra input to the GRU's finest-resolution update features. The coupling is bidirectional and symmetric: each view receives its own inconsistency at every step. The partner view's disparity enters this cue with a stop-gradient, so cross-injection carries no gradient between the two passes while each pass still receives the other's disparity as an input cue (Fig. 3). The mask m itself is appended as a second channel so the model can distinguish "not visible in both views" from "views agree," which would otherwise both appear as zeros. The masked inconsistency tensor of shape is concatenated to the last layer of the GRU refinement block through a zero-initialized encoder. In the case of FoundationStereo, this increases the layer's feature dimension from 384 to 386. Appendix C ablates the three choices that define this cue (signed vs. unsigned, explicit vs. learned, and masked vs. unmasked) and finds that the sign is what matters: only the signed residual substantially improves left-right consistency, while the mask changes little.
Three properties make cross-injection attractive. It is lightweight: the inconsistency is computed without learned parameters (a warp, a subtraction, and a mask) and injected through a small zero-initialized encoder (only 0.01% of the FoundationStereo base model's parameters). It couples two otherwise independent passes: the left and flipped-swapped right runs interact only through this signal, turning two single-view refinements into a binocular one. And it can be added after training: the zero-initialized encoder emits zero at initialization, so attaching cross-injection leaves the pretrained model's predictions unchanged, and the coupling is learned by fine-tuning.
3.2. Left-Right Consistency Loss
Cross-injection lets the refiner read the left-right inconsistency (Eq. 2); the loss closes the loop by penalizing its magnitude during training [15]. A physically correct stereo solution must satisfy the geometric constraint that two pixels in correspondence carry the same disparity (c=0); turning this into a training signal (i) couples the two model passes, (ii) lets a view with ground truth supervise a view that has none (e.g. left-only annotations), and (iii) regularizes the prediction beyond what the supervised disparity
term provides. The plain constraint, however, is symmetric: it pulls both predictions toward each other, so it can be satisfied by co-adapting both toward a mutually consistent but inaccurate compromise rather than by correcting either. We restrict the loss to co-visible pixels with the mask m (Eq. 3) and route each direction's gradient through a per-pixel stop-gradient.
Base consistency term. Let denote the mask-weighted mean of a residual r under a non-negative per-pixel weight w,
for a non-empty mask w. The naive, symmetric consistency loss is the masked mean inconsistency magnitude, averaged over the two views,
Here the gradient of (Eq. 2) flows into both views: each residual updates the unwarped map, the sampled values, and the sampling location of the warp, pulling the two endpoints of every correspondence toward each other. This is the variant we ablate against: it improves left-right agreement, but agreement can be met by co-smoothing both predictions, which blurs depth boundaries and occluded regions (Sec. 4).
Bidirectional gradient routing. In each direction we detach one view together with the warp field, so that the only gradient path is through the bilinearly sampled values of the other view,
(6)
where is the stop-gradient. In the left map is held fixed and the gradient updates only the right map; is its mirror image. The loss combines both directions, each restricted to its co-visible pixels,
The reason to detach one side is the degeneracy noted in Sec. 2: a symmetric agreement loss makes each prediction a target for the other, so it can be lowered by co-adapting both toward a mutually consistent compromise rather than by correcting either. Where the data does not pin down the predictions, two maps can agree simply by being wrong in the same way. Detaching one side turns this mutual objective into a one-directional regression: the loss can then be lowered only by moving the updated view onto the detached view's current value, not by degrading both. Because the routing is applied in both directions, neither view is privileged: a symmetric, mutual arrangement in the spirit of deep mutual learning [63], but driven by a per-pixel stop-gradient rather than peer mimicry. The stop-gradient also covers in its second role as the warp index that sets where the partner map is read, since a differentiable index would otherwise let the loss lower the residual by sliding the read location onto a coincidentally matching pixel rather than by correcting depth.
The supervised disparity term (Eq. 8) keeps the predictions from collapsing globally and, on samples where only one view is labeled, anchors that view, so that the consistency term moves mainly the unlabeled one into agreement; but where that supervision is weak (depth boundaries, occlusions, and the unlabeled view) the symmetric loss still drifts toward the blurred consensus, which we confirm in Sec. 4.
Full objective. The supervised disparity loss is the standard masked error against ground truth, pooled over both views wherever ground truth exists,
where is a binary mask selecting pixels with valid ground truth. Some training datasets label both views and others only one; on the latter, the unlabeled view is supervised by the consistency term alone. For FoundationStereo, both terms are applied at every refinement step:
where weights the consistency term (swept in Appendix D) and the per-step decay follows the base models' original implementations [36, 57]. For , whose intermediate predictions are at quarter resolution, the disparity term is the model's native multi-resolution sequence loss and the consistency term is applied to the final full-resolution prediction only.
4. Experiments
We validate our method in two parts: a component ablation on FoundationStereo (Sec. 4.1) that isolates the effect of each component, and a generalization study (Sec. 4.2) that applies the full method to additional pretrained stereo matching models. In both we report single-view disparity accuracy alongside left-right consistency, evaluated zero-shot on benchmarks unseen during training.
Metrics. We report bad-pixel rates BP-x (percentage of valid pixels whose disparity error exceeds x px) and, on KITTI, the standard D1 error. Binocular agreement is measured by LR-BP-1: the percentage of left-view pixels whose predicted match falls inside the right image and at which the left disparity and the right disparity sampled at that match disagree by more than 1 px, computed per image and averaged over images; this requires no ground truth. Occluded pixels are not excluded: for a correct prediction they disagree by roughly the occlusion width, so they add a floor close to the occluded fraction of the image (for FoundationStereo on Middlebury-H, 9.89 overall against 2.00 on ground-truth non-occluded pixels), which compresses relative differences on Middlebury. To localize where the consistency coupling helps or hurts, we additionally score two ground-truth regions of interest at the sub-pixel BP-0.5 threshold. Edges are pixels within 2 px of a depth discontinuity, itself defined as a disparity jump larger than 2 px between adjacent pixels with valid ground truth, the region where oversmoothing and edge fattening concentrate. Occlusions are valid pixels that fail a left-right ground-truth consistency check (forward-matched disparities disagreeing by more than 1 px), and are therefore reported only where both views have ground truth. Disparity and region-of-interest metrics are averaged over both views on datasets with two-sided ground truth (Middlebury, Booster) and over the reference view otherwise.
4.1. Ablation Study
To assess the contribution of the components proposed in Sec. 3, we ablate our method with a cumulative study, starting from the left-only pretrained FoundationStereo [57] checkpoint and switching on one component at a time during fine-tuning (Tab. 1). Beyond disparity accuracy and left-right consistency, we report targeted region-of-interest metrics at depth boundaries (edges) and in occluded areas to surface any regressions introduced by the consistency coupling. All variants share an identical schedule and the same subset of FoundationStereo's original training data (Appendix A, Supplementary Materials). We evaluate cross-dataset generalization on five unseen benchmarks: Middlebury [41], ETH3D [42], KITTI-12 [14], KITTI-15 [35], and Booster [39]. To reduce per-step noise we report the mean and standard deviation over six checkpoints from the final 10k steps rather than a single snapshot.
Starting from a baseline (a) that predicts both views without any left-right coupling, we add the left-right consistency loss (b), then the cross-injection refiner (c), both jointly (d), and finally the bidirectional gradient routing (e). The consistency loss and the refiner together drive the two views into much closer agreement (d) (see green highlights in Tab. 1), but this symmetric coupling oversmooths depth boundaries and occluded regions (red highlights).
Table 1. Ablation experiment for component validation. All runs are fine-tuning runs based on FoundationStereo. Checkmarks indicate which components each run uses: LR-consistency loss (LR), cross-injection (CI) refiner, and bidirectional stop-gradient routing (SG). All metrics are reported as mean±std of six checkpoints created during the last 10k steps of training. Findings: LR consistency improves with the loss alone (b), only slightly with CI alone (c), and substantially when both are combined (d). However, CI with a symmetric consistency loss leads to (slight) oversmoothing on edges and degradation of occluded predictions. SG largely recovers this regression at the cost of slightly lower LR consistency. Annotation: Per column, bold = best; red / green mark the most salient degradation/improvement trends in the metric category compared to the baseline.
| Ablation | Disparity Error | Left-Right Consistency | Edge/Occlusion Error | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Middleb.-HBP-2 | ETH3DBP-1 | KITTI-15D1 | Middleb.-HLR-BP-1 | ETH3DLR-BP-1 | KITTI-15LR-BP-1 | Booster-HLR-BP-1 | Middleb.-HEdg. BP-0.5 | Middleb.-HOcc. BP-0.5 | Booster-HOcc. BP-0.5 | |
| (a) | ||||||||||
| (b) ✓ | ||||||||||
| (c) ✓ | ||||||||||
| (d) ✓ | ||||||||||
| (e) ✓ ✓ | ||||||||||
Table 2. Cross-injection improvements generalize to different base models. For each base model we report three rows: the public checkpoint, a matched fine-tune under the identical recipe but without cross-injection ("+ FT (no CI)"), and our cross-injection fine-tune. The middle row is the control: it isolates what CI contributes from what simply training longer on our data mixture contributes. Findings: against the matched control, CI improves left-right consistency on every benchmark for all three base models, with the largest relative effect on Booster, which is built around transparent and specular surfaces (for S²M²-XL, KITTI-12 is marginally larger). Disparity error (both views where GT is available) also improves against the control on all but one of the fifteen accuracy cells (S²M²-L Booster-H). Bold: best per base model.
| Model | Middlebury-H | ETH3D | KITTI-12 | KITTI-15 | Booster-H | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| BP-2 | LR-BP-1 | BP-1 | LR-BP-1 | D1 | LR-BP-1 | D1 | LR-BP-1 | BP-2 | LR-BP-1 | |
| FoundationStereo | 2.77 | 9.89 | 0.65 | 5.59 | 2.73 | 12.20 | 2.88 | 10.23 | 10.70 | 8.84 |
| FoundationStereo + FT (no CI) † | 2.78 | 10.00 | 0.68 | 4.99 | 2.64 | 11.78 | 2.80 | 10.12 | 9.27 | 7.86 |
| FoundationStereo + CI † | 2.68 | 9.03 | 0.61 | 3.26 | 2.49 | 7.09 | 2.69 | 5.34 | 9.24 | 3.60 |
| S²M²-L ‡ | 4.11 | 10.05 | 0.92 | 4.24 | 3.18 | 12.44 | 3.12 | 7.66 | 14.68 | 16.27 |
| S²M²-L + FT (no CI) | 3.63 | 10.08 | 0.89 | 3.77 | 2.35 | 9.81 | 2.57 | 6.85 | 11.17 | 11.60 |
| S²M²-L + CI | 3.47 | 9.51 | 0.64 | 3.03 | 2.16 | 7.27 | 2.44 | 5.43 | 11.86 | 7.90 |
| S²M²-XL ‡ | 2.98 | 9.58 | 0.64 | 5.05 | 4.12 | 16.26 | 2.97 | 8.56 | 7.00 | 8.31 |
| S²M²-XL + FT (no CI) | 2.95 | 9.42 | 0.63 | 4.02 | 2.10 | 11.58 | 2.31 | 7.37 | 6.54 | 5.86 |
| S²M²-XL + CI | 2.81 | 9.05 | 0.53 | 3.21 | 2.00 | 7.58 | 2.24 | 5.38 | 6.53 | 3.92 |
†: As Tab. 1 (a) and (e), but the final checkpoint instead of the six-checkpoint mean, for comparability with external models.
‡: The S²M² checkpoints are those published by the authors on GitHub. The models used to report the SOTA benchmark metrics on Middlebury are not released.
The refiner alone (c) improves consistency only modestly (Booster-H LR-BP-1 7.8 → 6.8), presumably because nothing in the objective rewards acting on the cue; together with the loss (d), the disagreement is more than halved (3.2), well beyond either component alone, consistent with their complementary roles (Sec. 3). The bidirectional gradient routing (e) removes this side effect: all three region-of-interest columns return to within 0.25 points of the uncoupled baseline (inside the checkpoint-to-checkpoint spread in every case), against the consistent 1.0 to 1.25 point regression of the symmetric loss (d), while the left-right consistency gains are largely preserved; this constitutes our full method. Notably, even row (b), the loss alone with no architectural change at inference, already improves left-right consistency,
most clearly on KITTI-15 (10.3 → 5.6), so coupling the two views in one backward pass is itself a useful regularizer.
4.2. Generalization to Other Base Models
Having validated each component on FoundationStereo, we now ask whether CI is a general recipe for iterative stereo matching or an artifact of a single architecture. We apply CI to S²M² [36], one of the few top-ranked methods on the Middlebury leaderboard that releases a public checkpoint and uses a GRU-style recurrent refiner. Beyond availability, S²M² is a deliberately demanding test case because it relies far less on iterative refinement, running only 3 update iterations instead of 32, which leaves cross-injection a much smaller window in which to couple the two views. We evaluate the two publicly released sizes, S²M²-L and S²M²-XL, fine-tuning each from its released checkpoint with the same cross-injection recipe as in Sec. 4.1; per-model training configs are given in Appendix A. We fine-tune each model only on a subset of 's own original training data, introducing no data was not already trained on, so that the gains reflect the method rather than additional supervision.
Tab. 2 shows that cross-injection reproduces the FoundationStereo pattern on both sizes. Against the matched control (the identical fine-tuning recipe with cross-injection and the consistency loss switched off), left-right consistency improves on every benchmark for both models, most strongly on Booster, whose transparent and specular surfaces are a classic source of left-right disagreement (11.6 → 7.9 for -L and 5.9 → 3.9 for -XL, about a third), and on KITTI-12 (9.8 → 7.3 and 11.6 → 7.6). Single-view accuracy does not suffer: disparity error is held or improved on all but one benchmark across both sizes, often substantially (ETH3D BP-1 0.89 → 0.64 for -L); the sole regression is a 0.7-point rise on Booster BP-2 for -L. That these improvements transfer to models running an order of magnitude fewer refinement steps, and under a strictly smaller training set than the original, suggests that cross-injection couples the two views through a mechanism that is not specific to one architecture or data regime.
4.3. Qualitative Results
In Figs. 4, 5 and 6, we show qualitative samples for three of the benchmark datasets used. We selected samples where CI makes a visible difference compared to standard FoundationStereo. Clear consistency improvements are evident for transparent and reflective surfaces (Figs. 4a, 5a, 5c). Interestingly, when resolving ambiguity the model commits to the first physical layer most of the time, even though this behavior is not enforced by the training data. CI also resolves other failures that occur in independent single-view passes, e.g. challenging cases caused by lens flare (Fig. 4b), reflections (Fig. 4c), or textureless regions (Fig. 5b).
We also do not wish to conceal the drawbacks of our method: for example, one can observe a slightly reduced level of detail in high-frequency signal (the background shrubs in Fig. 4b). We further observed an occasional failure mode for FoundationStereo + CI on KITTI-15, where thin vertical structures such as street lamps are “smeared” when located in front of the sky. This pattern already occurs for standard FoundationStereo and cannot be reproduced by -XL (neither the original nor the fine-tuned version). This leads us to conclude that CI is not the cause of the failure mode, but rather amplifies it.
5. Discussion
Why does coupling both views improve single-view accuracy? Beyond test-time agreement, the coupling appears to aid training in three ways: First, it extends super-
vision: many stereo datasets label only the left view, so the right pass is otherwise trained only indirectly; coupling the two views turns single-view labels into a learning signal for both. Second, it acts as a geometric regularizer: requiring the two per-view disparities to agree constrains otherwise under-determined predictions. Appendix F shows the constraint acting where it should: the change concentrates where the two views disagree and vanishes where they already agree, offset by a mild regression at occluded pixels, where the constraint does not apply. Third, the coupling is soft: the signed inconsistency is provided as an input cue rather than a hard constraint, allowing the model to rely on it where it is trustworthy and ignore it where it is not. More broadly, this suggests that supervising only the left view may be the wrong default even when only left-view disparity is sought: future stereo models may benefit from supervising both views in one form or another, whether through coupled per-view passes (such as cross-injection) or a fully symmetric design.
Limitations. CI assumes a RAFT-style iterative refinement stage; it does not apply to single-shot cost-volume regressors, nor to models built on transformer attention or cross-view completion without a recurrent refiner, and future architectures may move away from the iterative paradigm. We study CI mainly in a fine-tuning setting. It also works when training from scratch (Appendix E), but its disparity error converges more slowly at first: the consistency term is unreliable early in training, when both views are still far from correct. A ramp-up or a trust-weighted consistency loss [46] may close this gap, which we leave to future work. Lastly, CI needs two passes and recomputes the warp and co-visibility mask at every step, so its runtime grows with the iteration count (Appendix B).
Outlook. A natural next step is to push consistency upstream of the refiner. Cross-injection couples the two passes only during iterative refinement; the initial disparity that seeds each pass is still decoded independently from its own matching volume, leaving the refiner to reconcile two starting points that need not agree. Making that initialization left-right consistent would give both passes a coherent starting point and could compound the gains we report. Some architectures are especially well-suited to this: 's optimal-transport matching yields a (near) doubly stochastic assignment. We note that the transpose of such an assignment already encodes the reverse, right-to-left correspondence, so both views' initial disparities can in principle be read from a single volume. The open challenge is to obtain such symmetric initial predictions without sacrificing per-view accuracy to the added constraint; combined with cross-injection in the refinement stage, this points toward stereo matchers that are left-right consistent end to end.

(a) electro_2s
(b) playground_2l
(c) facade_1s
Figure 4. FoundationStereo zero-shot predictions on selected ETH3D [42] samples with and without our cross-injection method. Even though we are not addressing the ambiguity for transparent objects directly, left/right predictions are more consistent in which visible layer to predict (a). The CI model also successfully corrects major (b) and minor (c) disagreements between the views. Background shrubs in (b) lose some degree of detail.

(a) Tablet_im3
(b) Pillow_im5
(c) Washer1_im1
(d) Blender_im5
Figure 5. FoundationStereo zero-shot predictions on selected Booster [39] (half resolution) samples with and without our cross-injection method. CI corrects errors caused by reflections (a), transparency (b+c) and other random failure modes (d).

(a) 000041
(b) 000064
Figure 6. FoundationStereo zero-shot predictions on selected KITTI-15 [35] samples with and without our cross-injection method. (a) shows occasional “smearing” effects on thin vertical structures such as traffic signs or street lamps in front of the sky. Interestingly, this failure mode was already present in FoundationStereo, but our method seems to amplify it. (b) shows an example where both models predict equally sharp edges on road signs and high frequency details (vegetation).
References
[1] Wei Bao, Wei Wang, Yuhua Xu, Yulan Guo, Siyu Hong, and Xiaohu Zhang. InStereo2k: A large real dataset for stereo matching in indoor scenes. Science China Information Sciences, 2020. 11
[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 CVPR, 2025. 2
[3] Peter Belhumeur. A Bayesian approach to binocular stereopsis. IJCV, 1996. 2
[4] Daniel Butler, Jonas Wulff, Garrett Stanley, and Michael J. Black. A naturalistic open source movie for optical flow evaluation. In ECCV, 2012. 11
[5] Yohann Cabon, Naila Murray, and Martin Humenberger. Virtual KITTI 2. arXiv:2001.10773, 2020. 11
[6] Rohan Chabra, Julian Straub, Christopher Sweeney, Richard Newcombe, and Henry Fuchs. StereoDRNet: Dilated residual StereoNet. In CVPR, 2019. 2
[7] Jia-Ren Chang and Yong-Sheng Chen. Pyramid stereo matching network. In CVPR, 2018. 2
[8] Gaurav Chaurasia, Arthur Nieuwoudt, Alexandru-Eugen Ichim, Richard Szeliski, and Alexander Sorkine-Hornung. Passthrough+: Real-time stereoscopic view synthesis for mobile mixed reality. Proc. ACM Comput. Graph. Interact. Tech., 2020. 1
[9] Xinlei Chen and Kaiming He. Exploring simple Siamese representation learning. In CVPR, 2021. 2
[10] Ziyang Chen, Wei Long, He Yao, Yongjun Zhang, Bingshu Wang, Yongbin Qin, and Jia Wu. MoCha-Stereo: Motif channel attention network for stereo matching. In CVPR, 2024. 2
[11] Geoffrey Egnal and Richard Wildes. Detecting binocular half-occlusions: Empirical comparisons of five approaches. IEEE TPAMI, 2002. 2, 4
[12] Trishia El Chemaly, Mohit Goyal, Tinglin Duan, Vrushank Phadnis, Sakar Khattar, Bjorn Vlaskamp, Achin Kulshrestha, Eric Lee Turner, Aveek Purohit, Gregory Neiswander, and Konstantine Tsotsos. Mind the GAP: Geometry aware passthrough mitigates cybersickness. In CHI Extended Abstracts, 2025. 1
[13] Ravi Garg, Vijay Kumar BG, Gustavo Carneiro, and Ian Reid. Unsupervised CNN for single view depth estimation: Geometry to the rescue. In ECCV, 2016. 2
[14] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the KITTI vision benchmark suite. In CVPR, 2012. 1, 5
[15] Clément Godard, Oisin Mac Aodha, and Gabriel Brostow. Unsupervised monocular depth estimation with left-right consistency. In CVPR, 2017. 2, 4
[16] Rui Gong, Weide Liu, Zaiwang Gu, Xulei Yang, and Jun Cheng. Learning intra-view and cross-view geometric knowledge for stereo matching. In CVPR, 2024. 2
[17] Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi
Munos, and Michal Valko. Bootstrap your own latent: A new approach to self-supervised learning. In NeurIPS, 2020. 2
[18] Xiaoyang Guo, Hongsheng Li, Shuai Yi, Jimmy Ren, and Xiaogang Wang. Learning monocular depth by distilling cross-domain stereo networks. In ECCV, 2018. 2
[19] Heiko Hirschmüller. Stereo processing by semiglobal matching and mutual information. IEEE TPAMI, 2008. 2
[20] Hualie Jiang, Zhiqiang Lou, Laiyan Ding, Rui Xu, Minglang Tan, Wenjie Jiang, and Rui Huang. DEFOM-Stereo: Depth foundation model based stereo matching. In CVPR, 2025. 2
[21] Zequn Jie, Pengfei Wang, Yonggen Ling, Bo Zhao, Yunchao Wei, Jiashi Feng, and Wei Liu. Left-right comparative recurrent model for stereo matching. In CVPR, 2018. 2, 14
[22] Alex Kendall, Hayk Martirosyan, Saumitro Dasgupta, Peter Henry, Ryan Kennedy, Abraham Bachrach, and Adam Bry. End-to-end learning of geometry and context for deep stereo regression. In ICCV, 2017. 2
[23] Hak Gu Kim, Minho Park, Sangmin Lee, Seongyeop Kim, and Yong Man Ro. Visual comfort aware-reinforcement learning for depth adjustment of stereoscopic 3D images. In AAAI, 2021. 1
[24] Ang Li and Zejian Yuan. SymmNet: A symmetric convolutional neural network for occlusion detection. In BMVC, 2018. 2
[25] 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 CVPR, 2022. 2, 11
[26] Zhaoshuo Li, Xingtong Liu, Nathan Drenkow, Andy Ding, Francis Creighton, Russell Taylor, and Mathias Unberath. Revisiting stereo depth estimation from a sequence-to-sequence perspective with transformers. In ICCV, 2021. 2
[27] Zhengfa Liang, Yiliu Feng, Yulan Guo, Hengzhu Liu, Wei Chen, Linbo Qiao, Li Zhou, and Jianfeng Zhang. Learning for disparity estimation through feature constancy. In CVPR, 2018. 2
[28] Lahav Lipson, Zachary Teed, and Jia Deng. RAFT-Stereo: Multilevel recurrent field transforms for stereo matching. In 3DV, 2021. 1, 2, 3
[29] Pengpeng Liu, Irwin King, Michael Lyu, and Jia Xu. DDFlow: Learning optical flow with unlabeled data distillation. In AAAI, 2019. 2
[30] Pengpeng Liu, Michael Lyu, Irwin King, and Jia Xu. Self-flow: Self-supervised learning of optical flow. In CVPR, 2019. 2
[31] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In ICLR, 2019. 11
[32] David Marr and Tomaso Poggio. Cooperative computation of stereo disparity. Science, 1976. 2
[33] Nikolaus Mayer, Eddy Ilg, Philip Hausser, Philipp Fischer, Daniel Cremers, Alexey Dosovitskiy, and Thomas Brox. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In CVPR, 2016. 11
[34] Simon Meister, Junhwa Hur, and Stefan Roth. UnFlow: Unsupervised learning of optical flow with a bidirectional census loss. In AAAI, 2018. 2
[35] Moritz Menze and Andreas Geiger. Object scene flow for autonomous vehicles. In CVPR, 2015. 1, 5, 8
[36] Junhong Min, Youngpil Jeon, Jimin Kim, and Minyong Choi. S2M2: Scalable stereo matching model for reliable depth estimation. In ICCV, 2025. 2, 3, 5, 6
[37] Andrea Pilzer, Stéphane Lathuilière, Nicu Sebe, and Elisa Ricci. Refine and distill: Exploiting cycle-inconsistency and knowledge distillation for unsupervised monocular depth estimation. In CVPR, 2019. 2
[38] Matteo Poggi, Fabio Tosi, and Stefano Mattoccia. Learning monocular depth estimation with unsupervised trinocular assumptions. In 3DV, 2018. 2
[39] Pierluigi Zama Ramirez, Alex Costanzino, Fabio Tosi, Matteo Poggi, Samuele Salti, Stefano Mattoccia, and Luigi Di Stefano. Booster: a benchmark for depth from images of specular and transparent surfaces. IEEE TPAMI, 2024. 1, 5, 8
[40] Daniel Scharstein and Richard Szeliski. A taxonomy and evaluation of dense two-frame stereo correspondence algorithms. IJCV, 2002. 2
[41] Daniel Scharstein, Heiko Hirschmüller, York Kitajima, Greg Krathwohl, Nera Nešić, Xi Wang, and Porter Westling. High-resolution stereo datasets with subpixel-accurate ground truth. In GCPR, 2014. 1, 5
[42] Thomas Schöps, Johannes 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 CVPR, 2017. 1, 5, 8
[43] Jian Sun, Yin Li, Sing Bing Kang, and Heung-Yeung Shum. Symmetric stereo matching for occlusion handling. In CVPR, 2005. 2, 4
[44] Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. In NeurIPS, 2017. 2
[45] Zachary Teed and Jia Deng. RAFT: Recurrent all-pairs field transforms for optical flow. In ECCV, 2020. 1, 2, 3
[46] Alessio Tonioni, Matteo Poggi, Stefano Mattoccia, and Luigi Di Stefano. Unsupervised adaptation for deep stereo. In ICCV, 2017. 2, 7
[47] Alessio Tonioni, Fabio Tosi, Matteo Poggi, Stefano Mattoccia, and Luigi Di Stefano. Real-time self-adaptive deep stereo. In CVPR, 2019. 2
[48] Fabio Tosi, Filippo Aleotti, Matteo Poggi, and Stefano Mattoccia. Learning monocular depth estimation infusing traditional stereo knowledge. In CVPR, 2019. 2
[49] Jonathan Tremblay, Thang To, and Stan Birchfield. Falling Things: A synthetic dataset for 3D object detection and pose estimation. In CVPR Workshops, 2018. 11
[50] Jure Žbontar and Yann LeCun. Stereo matching by training a convolutional neural network to compare image patches. JMLR, 2016. 2
[51] Hengli Wang, Rui Fan, Peide Cai, and Ming Liu. PVStereo: Pyramid voting module for end-to-end self-supervised stereo matching. IEEE RA-L, 2021. 2
[52] Longguang Wang, Yulan Guo, Yingqian Wang, Zhengfa Liang, Zaiping Lin, Jungang Yang, and Wei An. Parallax
attention for unsupervised stereo correspondence learning. IEEE TPAMI, 2022. 2
[53] Xianqi Wang, Gangwei Xu, Hao Jia, and Xin Yang. Selective-Stereo: Adaptive frequency information selection for stereo matching. In CVPR, 2024. 2
[54] Yang Wang, Yi Yang, Zhenheng Yang, Liang Zhao, Peng Wang, and Wei Xu. Occlusion aware unsupervised learning of optical flow. In CVPR, 2018. 2
[55] Philippe Weinzaepfel, Vincent Leroy, Thomas Lucas, Romain Brégier, Yohann Cabon, Vaibhav Arora, Leonid Antsfeld, Boris Chidlovskii, Gabriela Csurka, and Jérôme Revaud. CroCo: Self-supervised pre-training for 3D vision tasks by cross-view completion. In NeurIPS, 2022. 2
[56] 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 ICCV, 2023. 2
[57] Bowen Wen, Matthew Trepte, Joseph Aribido, Jan Kautz, Orazio Gallo, and Stan Birchfield. FoundationStereo: Zero-shot stereo matching. In CVPR, 2025. 1, 2, 3, 5, 11
[58] Gangwei Xu, Junda Cheng, Peng Guo, and Xin Yang. Attention concatenation volume for accurate and efficient stereo matching. In CVPR, 2022. 2
[59] Gangwei Xu, Xianqi Wang, Xiaohuan Ding, and Xin Yang. Iterative geometry encoding volume for stereo matching. In CVPR, 2023. 2
[60] Haofei Xu, Jing Zhang, Jianfei Cai, Hamid Rezatofighi, Fisher Yu, Dacheng Tao, and Andreas Geiger. Unifying flow, stereo and depth estimation. IEEE TPAMI, 2023. 2
[61] Guorun Yang, Xiao Song, Chaoqin Huang, Zhidong Deng, Jianping Shi, and Bolei Zhou. DrivingStereo: A large-scale dataset for stereo matching in autonomous driving scenarios. In CVPR, 2019. 11
[62] Lihe Yang, Bingyi Kang, Zilong Huang, Zhen Zhao, Xiaogang Xu, Jiashi Feng, and Hengshuang Zhao. Depth anything V2. In NeurIPS, 2024. 15
[63] Ying Zhang, Tao Xiang, Timothy Hospedales, and Huchuan Lu. Deep mutual learning. In CVPR, 2018. 2, 5
[64] Yiran Zhong, Yuchao Dai, and Hongdong Li. Self-supervised learning for stereo matching with self-improving ability. arXiv:1709.00930, 2017. 2
[65] Chao Zhou, Hong Zhang, Xiaoyong Shen, and Jiaya Jia. Unsupervised learning of stereo matching. In ICCV, 2017. 2
[66] Tinghui Zhou, Richard Tucker, John Flynn, Graham Fyffe, and Noah Snavely. Stereo magnification: Learning view synthesis using multiplane images. ACM TOG, 2018. 1
Supplementary Materials
A. Training Details
Cross-injection is applied via fine-tuning: we start from each model's publicly released left-only checkpoint, attach the cross-injection refiner with the injection pathway zero-initialized (an exact no-op at initialization, so step 0 reproduces the base model), and fine-tune the full network. All runs use AdamW [31] with and no weight decay, gradient checkpointing (required by the two weight-shared per-view passes and the joint refinement loop), and random crops. The disparity term is each base model's native sequence loss; to it we add the left-right consistency loss (coefficient 0.5) with the bidirectional gradient routing of Sec. 3 and no trust weighting, and for the SM models the base model's occlusion, confidence, and matching-cost terms are kept active. Tab. S.1 lists the per-model settings.
Update order. The two passes can be coupled in two ways at each refinement step: (a) a Jacobi scheme, which computes both inconsistencies from the previous step's disparities and updates both passes simultaneously (as illustrated in Fig. 2); or (b) a Gauss-Seidel scheme, which updates the left pass first and computes the right pass's inconsistency from the freshly updated left disparity. We ablated this using FoundationStereo, and the two schemes performed indistinguishably: all disparity and LR-BP-1 columns of Tab. 1 agreed within one checkpoint standard deviation. Therefore, all reported results in this paper use the Jacobi scheme. It avoids recomputing the right view's cue within a step and allows both updates to run in parallel, making it slightly more efficient.
Matched fine-tune controls. Each "+ CI" row of Tab. 2 is paired with a control trained under the identical recipe (same starting checkpoint, learning rate, schedule, data mixture, augmentation, batch size and number of updates), with only the cross-injection refiner and the left-right consistency loss removed. The control still predicts both views with two weight-shared passes and still receives the random flip-and-swap augmentation (probability 0.5), so the sole difference is the coupling between the two passes. This is what allows a gain to be attributed to cross-injection rather than to the additional fine-tuning: the public checkpoints were trained on different mixtures, so "fine-tuned beats not fine-tuned" would otherwise be the confound. For FoundationStereo the control is exactly row (a) of the ablation in Tab. 1; for SM it is a dedicated run per model size.
Training data. The FoundationStereo fine-tune and the ablation of Sec. 4.1 use a subset of FoundationStereo's original training mixture: the FoundationStereo Dataset [57], SceneFlow [33], FallingThings [49], Virtual KITTI2 [5], and Sintel [4], omitting CREStereo [25] and InStereo2K [1]. The SM fine-tunes use a subset of SM's original mixture (the FoundationStereo Dataset [57], SceneFlow [33], FallingThings [49], Virtual KITTI2 [5], and DrivingStereo [61]), introducing no data the base model was not already trained on. None of the five evaluation benchmarks (Middlebury, ETH3D, KITTI-12, KITTI-15, Booster) appears in any training mixture. The runs differ in scale, precision, and schedule. FoundationStereo is fine-tuned in bf16 at an effective batch of 128 (32 H100 GPUs) for 50k steps, with a step-drop from to over the final 10k. Both SM models train in fp32, also at an effective batch of 128 on 32 GPUs, for 4000 optimizer updates with a cosine schedule at a peak learning rate of . SM-XL halves the per-GPU batch and compensates with two gradient-accumulation steps, so all SM arms see the same effective batch and the same number of updates.
Reporting point. For every SM row we report the final step, for both the control and the cross-injection arm. This is deliberate: the cosine is defined over exactly the number of updates the run performs, so the learning rate anneals and the run ends at its operating point rather than being truncated mid-flight. No snapshot is selected on the evaluation benchmarks for either arm. The single free choice is the schedule length, fixed once from a preliminary longer run and then applied identically to all four SM arms; because it is shared, it cannot favor cross-injection over its control. We verified that the comparison does not depend on this choice: cross-injection improves left-right consistency over the matched control at every evaluated step of both runs (15/15 for SM-L, 12/12 for SM-XL), and improves at least four of the five disparity columns at all but two of those steps.
Table S.1. Fine-tuning configuration for the models in Tab. 2. Each column applies to both the cross-injection run and its matched no-CI control, which differ only in the cross-injection refiner and the left-right consistency loss. All runs start from the public left-only checkpoint with the cross-injection pathway zero-initialized and fine-tune the full network on 320 × 736 crops. The S²M² cosine is defined over exactly the number of updates performed, so the learning rate anneals and the final step is the reported one.
| FS | S²M²-L | S²M²-XL | |
|---|---|---|---|
| Optimizer | AdamW, , wd = 0 | ||
| Peak LR | |||
| LR schedule | step-drop | cosine | cosine |
| Optimizer updates | 50k | 4k | 4k |
| Precision | bf16 | fp32 | fp32 |
| GPUs (×bs/GPU) | 32 × 4 | 32 × 4 | 32 × 2 |
| Grad. accumulation | 1 | 1 | 2 |
| Effective batch | 128 | 128 | 128 |
B. Inference Time Breakdown
Cross-injection’s cost is proportional to the refinement budget, since the warp and the co-visibility mask are recomputed for both views at every step. Tab. S.2 measures it at 480 × 640 in fp32 (the frozen monocular branch stays fp16), batch 1, on a single A100, from the released checkpoints. The co-visibility test gathers over an index set whose size depends on the predicted disparities, so we time a stereo pair the network can actually solve rather than noise. Any method that predicts both views runs the network twice, so the reference point is the two-pass baseline, not a single pass. The second pass costs exactly what the first one does (+100%), and cross-injection then adds 215 ms on top of 896 ms, +23.9%; repeated measurements vary by about a point. Against a single left-only pass the full method is 2.5×, of which 2.0× is the second pass that any both-view predictor requires.
Table S.2. What cross-injection costs at inference, and what that is a fraction of. Wall-clock at 480 × 640 in fp32 (the frozen monocular branch stays fp16), batch 1, on one A100-SXM4-80GB; median of 36 CUDA-event-timed runs per configuration, the configurations interleaved round-robin so that GPU clock drift cannot be mistaken for overhead. 1 pass predicts left disparity only. 2 passes is the standard way to obtain both views (two weight-shared, uncoupled passes) and is the baseline cross-injection should be judged against, because any both-view predictor pays it: the second pass costs what the first one does (+100%). Cross-injection is then charged per refinement step, which is why the same mechanism costs five to seven times less, relative to the two-pass baseline, on models that iterate three times instead of 32.
| Model | 1 pass (ms) | 2 passes (ms) | + CI (ms) | CI overhead | |
|---|---|---|---|---|---|
| vs. 2 passes | vs. 1 pass | ||||
| FoundationStereo (32 iters) | 447 | 896 | 1111 | +23.9% | +148% |
| S²M²-L (3 iters) | 141 | 283 | 298 | +5.2% | +111% |
| S²M²-XL (3 iters) | 240 | 480 | 498 | +3.6% | +107% |
Inference time breakdown. Refinement is 58% of a FoundationStereo pass, and cross-injection adds 3.3 ms per iteration and view end to end, of which 0.33 ms is the warp, 1.60 ms the co-visibility mask, and 1.31 ms the widened GRU input, compared with 7.0 ms for one GRU update (Tab. S.3). The mask, not the warp, is what the cue costs, because the uniqueness test scatters over a data-dependent index set. Dropping the mask channel (Appendix C) would not remove this cost, since the mask also zeroes the residual at non-co-visible pixels. Because the charge is per step, the same mechanism costs roughly five to seven times less on S²M², which runs three iterations instead of 32: +5.2% for L and +3.6% for XL, against +23.9%.
Latency-accuracy trade-off. The iteration count is a free knob at inference, so the question the overhead raises is which model is better at equal latency. Cross-injection at is better than the baseline at on disparity error and on left-right consistency, on both benchmarks, at 84% of its runtime (739 against 882 ms); for consistency alone, already suffices, at 56% of the runtime (Tab. S.4). The per-step overhead is more than repaid by needing fewer steps. On ETH3D, the uncoupled baseline even drifts apart as it iterates (LR-BP-1 4.98 → 5.59 from K=4 to 32), while cross-injection keeps converging (3.46 → 3.24). On every column the two tables share, the baseline's K=32 row reproduces Tab. 2 exactly; the CI row differs by at most 0.03 because it is evaluated in fp32 here rather than bf16.
Cost-volume symmetry. In the FoundationStereo architecture, part of the second pass can be avoided outright. The right view's group-wise correlation volume is exactly a gather from the left one, cv[d, w+d], which we verified reproduces the flipped construction bit-for-bit; taking it instead of rebuilding removes the second feature extraction and volume construction, roughly 82 down to 4 ms, or 8.8% of a two-view forward. Only the raw correlation transposes, however: the concatenation volume is rebuilt, and the 3D-UNet filtering, the context encoder and the whole refinement loop are conditioned on the view's own features and run twice either way. The filtering alone costs 92.5 ms per view (Tab. S.3), more than the transpose saves. A design that also shared the aggregation, decoding both views from a single volume (Sec. 5), could roughly double the saving, but no more: refinement is 58% of a pass and each view must refine its own disparity field.
Table S.3. Inference time breakdown. Per-stage GPU time for FoundationStereo at 32 refinement iterations, under the conditions of Tab. S.2; CUDA events are recorded inline and resolved after a single synchronization, so no stage boundary stalls the stream. Columns are the three configurations of Tab. S.2. Refinement accounts for most of a pass, which is why a per-step cost is material for this model. Per iteration and per view, the cue costs 0.33 ms of warp and 1.60 ms of co-visibility mask, against 7.0 ms for one GRU update: the injected cue is a cheap tensor operation, not a second network, and the mask, not the warp, is what it costs. The sum of stages falls 0.8–1.6% short of the independently measured end-to-end time, which bounds the unattributed time.
| Stage (ms) | 1 pass | 2 passes | + CI |
|---|---|---|---|
| Feature extraction (both images) | 54.6 | 111.7 | 113.4 |
| stem | 0.311 | 0.610 | 0.613 |
| Cost-volume construction | 22.4 | 48.3 | 49.3 |
| Cost-volume filtering (3D UNet) | 92.5 | 185.0 | 184.7 |
| Initial disparity decode | 0.125 | 0.250 | 0.251 |
| Geometry-encoding pyramid | 1.97 | 3.94 | 3.92 |
| other (volume stage) | 0.009 | 0.018 | 0.017 |
| Context encoder | 11.0 | 22.1 | 22.0 |
| Refinement: geometry lookup | 16.4 | 33.0 | 32.1 |
| Refinement: GRU update | 222.5 | 447.6 | 531.6 |
| Refinement: upsampling head | 17.6 | 35.3 | 34.5 |
| + CI: partner warp | - | - | 21.3 |
| + CI: co-visibility mask | - | - | 102.6 |
| other (refinement) | 0.308 | 0.635 | 4.83 |
| Sum of stages | 439.8 | 888.4 | 1101.3 |
| End-to-end | 447.1 | 896.5 | 1110.6 |
Table S.4. Accuracy against latency. Latency is measured at 480 × 640 as in Tab. S.2, accuracy at each benchmark's native resolution. Cross-injection at K=16 is better than the baseline at K=32 on every column shown, at a lower latency: the extra per-step cost is more than repaid by needing fewer steps. On the columns shared with Tab. 2, the K=32 rows reproduce it; the CI row differs by at most 0.03 because it is evaluated in fp32 here.
| Model | Latency (ms) | Middlebury-H | ETH3D | ||
|---|---|---|---|---|---|
| BP-2 | LR-BP-1 | BP-2 | LR-BP-1 | ||
| FoundationStereo (K = 4) | 469 | 3.43 | 10.54 | 0.50 | 4.98 |
| FoundationStereo (K = 8) | 514 | 3.12 | 10.13 | 0.44 | 4.92 |
| FoundationStereo (K = 16) | 635 | 2.91 | 10.13 | 0.44 | 5.49 |
| FoundationStereo (K = 24) | 780 | 2.84 | 10.13 | 0.43 | 5.57 |
| FoundationStereo (K = 32) | 882 | 2.77 | 9.89 | 0.43 | 5.59 |
| + CI (K = 4) | 494 | 3.15 | 9.54 | 0.41 | 3.46 |
| + CI (K = 8) | 562 | 2.94 | 9.19 | 0.38 | 3.34 |
| + CI (K = 16) | 739 | 2.72 | 9.05 | 0.37 | 3.28 |
| + CI (K = 24) | 907 | 2.71 | 9.04 | 0.36 | 3.24 |
| + CI (K = 32) | 1099 | 2.71 | 9.03 | 0.36 | 3.24 |
C. Additional Cue Ablations
In this section we take a closer look at which consistency cue is injected. Our cue differs from an LRCR-style alternative in three choices, which we ablate separately (Tab. S.5): (1) signed vs. unsigned residual, (2) explicit residual vs. learned map, and (3) masked vs. unmasked. As a reference, “no cue” is the same recipe with the cross-injection refiner removed. The learned variant follows the paradigm of LRCR [21], where a learned module infers the disagreement from the two disparity maps rather than subtracting them directly and injecting the residual. Concretely, it stacks the view’s own disparity and the warped partner disparity into two channels, normalizes both by the quarter-resolution disparity range, and maps them through three convolutions (32 hidden channels, ReLU) and a sigmoid to a single attention channel in [0, 1]. It is not the exact LRCR method, for which no public implementation is available to benchmark against, but an adaptation of its cue to our refiner-based injection, trained under our recipe with the consistency loss active so that the injected channel is the only thing that varies. Among other differences, LRCR routes the left-right consistency signal to the cost volume rather than the refiner stage, it uses no consistency loss term, and it reports no consistency metrics. Tab. S.5 shows that the sign is the choice that matters. Against the same recipe with nothing injected, the signed residual lowers LR-BP-1 by 17–46% on ETH3D, KITTI-15 and Booster and by 3% on Middlebury, whereas the unsigned residual helps substantially only on Booster (11–12%; at most 4% elsewhere) and the learned map changes consistency by at most about 3%. Without the sign, making the cue explicit helps little (unsigned vs. learned), and dropping the co-visibility mask changes LR-BP-1 by at most 0.09 for the signed cue; both matter far less than the sign. On Middlebury, BP-2 stays within 2.61–2.71, with the signed variants at the upper end; on ETH3D the signed variants are best (0.58–0.59 against 0.62–0.67). In our setup (i.e., refiner-based injection), only the signed residual substantially improves left-right consistency.
Table S.5. What the injected channel has to carry. All variants share the recipe of Tab. 1(e), including the bidirectional gradient routing, and differ only in the content of the cross-injection channel, so each pair of rows that differs in one column isolates one factor. “no cue” is the same recipe with the cross-injection refiner removed, i.e., the consistency loss with nothing injected (Tab. 1(b) with bidirectional gradient routing; not a row of that table). “learned” is a learned attention map inspired by LRCR [21], adapted to our refiner-based injection (see text). Finding: only the signed residual substantially improves left-right consistency over injecting nothing (17–46% lower LR-BP-1 on ETH3D, KITTI-15 and Booster, 3% on Middlebury). The unsigned residual helps substantially only on Booster (11–12%; at most 4% elsewhere), the learned map barely at all, and the co-visibility mask changes little. Values are means over training steps 40k–50k; lower is better; bold = best per column.
| Variant | channel | cue carries | LR consistency | Disparity | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| sign | expl. | mask | Middleb.-HLR-BP-1 | ETH3DLR-BP-1 | KITTI-15LR-BP-1 | Booster-HLR-BP-1 | Middleb.-HBP-2 | ETH3DBP-1 | ||
| no cue | - | - | - | - | 9.36 | 4.99 | 6.68 | 6.77 | 2.61 | 0.66 |
| learned | 9.48 | 4.93 | 6.61 | 6.62 | 2.69 | 0.67 | ||||
| learned + mask | ✓ | 9.42 | 5.00 | 6.50 | 6.54 | 2.63 | 0.64 | |||
| unsigned | ✓ | 9.42 | 4.82 | 6.63 | 6.03 | 2.65 | 0.63 | |||
| unsigned + mask | ✓ | ✓ | 9.38 | 4.79 | 6.61 | 5.95 | 2.61 | 0.62 | ||
| signed | c | ✓ | ✓ | 9.06 | 3.29 | 5.53 | 3.65 | 2.71 | 0.59 | |
| signed + mask (ours) | c, m | ✓ | ✓ | ✓ | 9.06 | 3.24 | 5.44 | 3.64 | 2.68 | 0.58 |
Relation to LRCR’s own ablation. LRCR reports the opposite ordering between subtraction and learned map. Its non-attention variant, which “replaces the learned attention maps with a simple subtraction on the two disparity maps,” is worse than the learned map on every metric reported at the final recurrent step. The two results are compatible. In LRCR the subtraction is substituted for the attention map, so a signed quantity is used where a [0, 1] gate is expected and its sign has no natural interpretation, and it is concatenated onto the cost volume, where a negative value competes with matching costs. In a RAFT-style refiner the same quantity enters as an input feature that the update operator can act on, and the sign becomes the useful part.
D. Consistency Loss Coefficient Ablation
The consistency loss coefficient (Eq. 9) is fixed at 0.5 everywhere in this paper. This value was chosen through a sweep (see Tab. S.6), changing that one coefficient and nothing else and running the full 50k schedule at every point. Left-right consistency improves monotonically across the whole range and has not saturated at ; disparity error does not, and 0.5 is where the two meet. Below it, consistency degrades steeply (Booster LR-BP-1 3.64 6.78 at ) while disparity error on Middlebury, ETH3D and KITTI-15 changes by at most 0.10; only Booster BP-2 favors a smaller weight (9.00 at against 9.29); above it the trade turns bad, with buying 0.7 Booster LR-BP-1 and paying 1.3 Booster BP-2 alongside clear oversmoothing at boundaries and occlusions (+3.3 Middlebury edge, +3.0 Middlebury occlusion and +2.8 Booster occlusion BP-0.5 relative to 0.5).
Table S.6. Sensitivity to the consistency-loss weight . Every row shares the recipe of Tab. 1(e) and differs only in (Eq. 9); the 0.5 row is that run. The 0 row is Tab. 1(c): the same cross-injection refiner with the consistency loss switched off. Finding: left-right consistency improves monotonically across the full range and has not saturated at , but disparity error and the edge/occlusion ROIs turn over: they hold or improve up to (except Booster BP-2, which favors smaller weights) and degrade beyond it. The chosen is the knee of that trade-off (the largest weight whose consistency gain is essentially free) and is also the minimum of three of the four disparity columns. Values are means over training steps 40k–50k; lower is better; bold = best per column.
| Left-Right Consistency | Disparity Error | Edge/Occlusion Error | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Middleb.-H LR-BP-1 | ETH3D LR-BP-1 | KITTI-15 LR-BP-1 | Booster-H LR-BP-1 | Middleb.-H BP-2 | ETH3D BP-1 | KITTI-15 D1 | Booster-H BP-2 | Middleb.-H Edg. BP-0.5 | Middleb.-H Occ. BP-0.5 | Booster-H Occ. BP-0.5 | |
| 0 (no loss) | 9.63 | 4.81 | 9.67 | 6.78 | 2.72 | 0.68 | 2.81 | 9.00 | 32.34 | 33.66 | 51.26 |
| 0.1 | 9.50 | 4.59 | 7.30 | 5.53 | 2.72 | 0.67 | 2.80 | 9.17 | 32.31 | 33.78 | 51.25 |
| 0.25 | 9.29 | 3.64 | 6.27 | 4.24 | 2.72 | 0.64 | 2.78 | 9.10 | 32.17 | 33.30 | 50.68 |
| 0.5 (ours) | 9.06 | 3.24 | 5.44 | 3.64 | 2.68 | 0.58 | 2.71 | 9.29 | 32.29 | 33.58 | 51.37 |
| 1.0 | 8.78 | 2.95 | 4.44 | 3.21 | 2.79 | 0.60 | 2.72 | 9.64 | 33.01 | 34.69 | 53.10 |
| 2.0 | 8.47 | 2.60 | 3.63 | 2.94 | 3.07 | 0.71 | 2.75 | 10.58 | 35.61 | 36.58 | 54.12 |
E. Training from Scratch
We view the ability to retrofit cross-injection onto an already-trained matcher as a strength of the method, and it is therefore how we apply it throughout this paper. It is not a requirement, however: Fig. S.1 shows a matched from-scratch pair, demonstrating that the coupling works when the whole network is trained end to end as well. Both arms start from random initialization (except for the frozen, pretrained Depth Anything V2 [62] monocular branch, as in FoundationStereo), run 100k steps at an effective batch of 128 on the FoundationStereo mixture of Sec. A, and share every hyperparameter, augmentation and random seed, differing only in the cross-injection refiner and the consistency loss. As expected, convergence in disparity error is slower in early training, which we attribute to the consistency term being unreliable while both views are still badly matched. This could in principle be compensated by trust weighting (downweighting pixels at which the predicted and ground-truth disparities disagree), which we did not explore in this setting. In later training the disparity errors of the two variants largely align, and on Booster, cross-injection is clearly ahead, while left-right consistency is substantially better with cross-injection throughout. Note that 100k steps is only half of FoundationStereo's original 200k-step schedule and that we train on a subset of its data composition, so neither run is comparable to the public checkpoint.

Figure S.1. Cross-injection trained from scratch. A matched pair trained end to end for 100k steps and differing only in the cross-injection refiner and the consistency loss, shown on four benchmarks at all 20 evaluated steps. Color is the benchmark and line style is the arm (solid with cross-injection, dashed its matched control), so each solid/dashed pair of one color is a controlled comparison. The left panel reports each benchmark's own disparity metric (legend), the right panel LR-BP-1 throughout. The dotted line marks the learning-rate drop at 80k and the shaded band the final 20k. Right: on every benchmark the solid curve lies below its dashed control at every step. Left: cross-injection starts above its control and closes the gap over the run. Vertical axes are logarithmic. These two runs are comparable only to each other.
F. Where the Single-View Change Comes From
Sec. 4 reports that cross-injection holds or improves single-view accuracy. This appendix asks where in the image that change occurs. We compare the full method against its matched control (rows (e) and (a) of Tab. 1) over the same six checkpoints from 40k to 50k.
We define five image regions of interest, each derived from ground truth and the input image alone. Occluded and out of view are the two factors of the co-visibility mask of Eq. 3 evaluated on ground-truth disparity: a pixel is out of view when its match falls outside the frame, and occluded when it has an in-frame match but fails the single-view uniqueness test. Depth edges use the definition of Sec. 4, a 2 px band around a disparity jump larger than 2 px. Textureless pixels are those whose mean squared horizontal second luminance difference, over a window of 1% of image width, falls below 2 on the 0–255 scale. Remainder is the complement of the other four. The regions overlap slightly, so this is a decomposition by category rather than a partition, and the shares sum to a little over 100%.
Regions are scored at BP-2, computed from separate predictions and pooled over pixels rather than averaged per image, so the all-valid-pixels row differs slightly from Tab. 1 ( against ). Only Middlebury and Booster provide two-sided ground truth, and the decomposition is scored over both views, so they are the only benchmarks it covers. Each effect is reported beside a noise figure: the same comparison between control checkpoints, which contain no cross-injection. We only draw conclusions where an effect is at least twice its noise.
Cross-injection redistributes error rather than reducing it uniformly. One effect is clearly larger than the noise on both benchmarks: a mild regression in occluded regions; out-of-view pixels stay within their noise on both. This is likely influenced by the loss: the newly introduced term (Eq. 7) applies only to co-visible pixels, which therefore receive more signal during backpropagation. A second explanation is that prediction errors may lead to inaccurate co-visibility masks, so that cross-injection is fed residuals computed against falsely matched pixels in the partner view. Tab. 1, whose occlusion region is defined differently (a left-right ground-truth check, scored at BP-0.5), shows a change in the same direction that stays within its checkpoint spread (33.39 33.58 on Middlebury, 51.12 51.37 on Booster). On Middlebury, depth edges and the remainder both improve by more than twice their noise, consistent with CI acting mainly on co-visible pixels. Edges are scored here at BP-2, which targets large errors such as flying pixels, whereas Tab. 1 reports BP-0.5, which targets subtle edge smoothing. Textureless carries no conclusion: it is at the noise level on Middlebury and below twice it on Booster, and its size differs greatly between the two benchmarks, 72.9% of Booster against 22.4% of Middlebury, because the threshold is absolute.
Table S.7. Single-view error change by region. Change in BP-2 (percentage points) for the full method against its matched control (rows (e) and (a) of Tab. 1) as the mean over the same six checkpoints; negative is better. Share is the fraction of valid-ground-truth pixels the region covers, exact over the full evaluation set. Noise is the same comparison between control checkpoints, which contain no cross-injection. Bold marks effects at least twice the noise. The rows overlap and do not sum to the all-valid-pixels row.
| Region | Middlebury-H | Booster-H | ||||
|---|---|---|---|---|---|---|
| share % | Δ BP-2 | noise | share % | Δ BP-2 | noise | |
| all valid pixels | 100.0 | -0.079 | 0.033 | 100.0 | +0.065 | 0.088 |
| textureless | 22.4 | -0.202 | 0.202 | 72.9 | +0.137 | 0.073 |
| depth edges | 9.7 | -0.045 | 0.020 | 0.9 | -0.083 | 0.101 |
| occluded | 6.7 | +0.562 | 0.013 | 1.9 | +0.293 | 0.093 |
| out of view | 4.0 | -0.170 | 0.247 | 5.6 | -0.194 | 0.674 |
| remainder | 62.0 | -0.064 | 0.005 | 25.1 | -0.110 | 0.097 |
Table S.8. Where does cross-injection change the error? Non-occluded valid left-view pixels, split by whether the control's left and right predictions agree with each other ( px), for rows (e) and (a) of Tab. 1, pooled over the six checkpoint pairs. Values are mean absolute disparity error in pixels, for the control and under cross-injection, and their difference (+CI minus control; negative is better). Noise is the same comparison between control checkpoints, which contain no cross-injection. Because the groups are defined by the control's predictions, is biased by the grouping; the text tests this.
| Pixel group | share % | control | +CI | noise | |
|---|---|---|---|---|---|
| Middlebury-H | |||||
| consistent ( px) | 96.8 | 0.254 | 0.260 | +0.006 | 0.002 |
| inconsistent | 3.2 | 5.259 | 5.036 | -0.223 | 0.017 |
| Booster-H | |||||
| consistent ( px) | 94.7 | 1.319 | 1.313 | -0.006 | 0.055 |
| inconsistent | 5.3 | 16.845 | 14.505 | -2.341 | 1.158 |
Does cross-injection correct or entrench pixels that are consistent but wrong? Left-right consistency and accuracy are not the same property: the two views can agree on the same wrong disparity, and there the difference cross-injection injects is zero, so the cue cannot repair the pixel; and because the consistency term is already satisfied, it can only resist the disparity term's attempt to move either view off the shared value. Sec. 3 raises this as the reason a plain symmetric constraint is insufficient; Tab. S.8 measures it. In practice that resistance is not measurable: the error is unchanged in the consistent group and drops in the inconsistent one. Cross-injection is therefore a targeted correction, not a general accuracy improvement, and since the pixels where the control's two views disagree are only about 3% (Middlebury) and 5% (Booster) of the non-occluded valid left-view pixels, the whole-image change in Tab. S.7 is correspondingly small. On Middlebury, among pixels where the control's error exceeds 1 px, cross-injection lowers the mean error by 4.9% where the control's left and right predictions disagree and by 1.9% where they agree; the next paragraph tests how much of this is selection.
Testing for sampling bias. Grouping pixels by the control's own predictions biases the comparison in cross-injection's favor: inside a group selected for the control being wrong, part of that error is random, and cross-injection does not repeat it. Repeating the analysis with the groups defined by cross-injection's predictions instead turns the bias in the control's favor. For pixels that are consistent but wrong, the sign then flips (Middlebury , Booster ), so we find no reliable effect there: cross-injection neither repairs nor entrenches these pixels. On inconsistent pixels, cross-injection remains at least as accurate as the control even with the bias against it (Middlebury 2.8%, Booster 0.3% lower mean error), so the improvement there is not a selection artifact; its size, however, depends on which arm defines the groups, most strongly on Booster.