Testing Whether the Pixels Constrain the Answer: Confidence Weights for Stereo Self-Training on Blank Surfaces

Stereo networks estimate depth by finding the same scene point in a left and right image. They are increasingly adapted to new environments by self-training: a slowly updated "teacher" copy of the network labels unlabeled images, and a "student" learns from those labels. Each pixel's label is scaled by a confidence weight between 0 and 1. The best current weights measure stability. If the teacher gives the same disparity (the left-right pixel offset that encodes depth) at several image scales and across its refinement iterations, the label is trusted. On a blank wall, a road surface, or sky, that logic breaks. The matching cost is flat, so nothing pushes the network away from whatever smooth guess it produces, and a wrong plane can be perfectly stable. Stability-based weighting then gives full confidence to hallucinated geometry, and self-training reinforces it.

We propose replacing "is the prediction stable?" with "does the prediction respond to the image evidence?" We warp the right image by a small, known, smooth disparity bump and check, pixel by pixel, whether the teacher's output moves by the injected amount. Where the image has texture, a network that is genuinely matching will track the bump. On a uniform surface, warping changes almost no pixel values, so the network cannot see the bump and its response is near zero. This response ratio directly measures whether the data identifies the disparity at that pixel. It becomes the continuous weight on the pseudo-label (the teacher's label). Pixels it flags as unidentifiable receive a soft, differentiable planarity term instead of a misleading label.

Core Claim

A confidence weight for stereo pseudo-labels should measure how sensitive the teacher is to controlled changes in the input, not how stable it is under them. Our central empirical claim is that the response ratio can tell genuine convergence apart from false convergence on textureless surfaces, and that stability measures cannot. We further claim that the response ratio needs no recurrent architecture and no foundation model. It then routes supervision cleanly: matched pixels get the teacher's label, and unmatched pixels get a geometric prior whose strength rises as identifiability falls.

Formally, let $d(p)$ be the teacher's disparity at left pixel $p$. Let $d_b(p)$ be its disparity after the right image is resampled so that the true disparity at every pixel increases by a smooth bump $b(p)$ with an amplitude of 1–2 pixels. The response ratio and weight are

$$r(p) = \frac{1}{K}\sum_{k=1}^{K} \frac{d_{b_k}(p) - d(p)}{b_k(p)}, \qquad w(p) = \exp\!\left(-\frac{|r(p) - 1|}{\sigma}\right).$$

Here $K$ is the number of random bumps (we expect 2–4 to suffice), and $\sigma$ sets how quickly confidence decays as the response departs from the ideal value of 1. A pixel with $r \approx 1$ is identified by the data. A pixel with $r \approx 0$ is driven by the network's prior and its neighbors. A pixel with $r \gg 1$ is unstable.

Positioning Against Prior Work

The proposal is motivated most directly by Consistency-aware Self-Training for Iterative-based Stereo Matching (CST-Stereo). CST-Stereo weights pseudo-labels by disparity variance across three resolutions and by oscillation across the final recurrent refinement steps. It reports D1-all of 1.50% on KITTI 2015 and a 48% rise in end-point error when the filters are removed. That result establishes that soft weighting matters. However, both of its signals reward agreement, and a flat cost landscape produces agreement for free. Its iteration signal also requires a recurrent network. Our weight is computed from two or more feed-forward passes, so it applies to any matcher.

Two adaptation methods constrain the design because they show what hard masking costs. Digging Into Uncertainty-based Pseudo-label for Robust Stereo Matching (UCFNet) estimates uncertainty from cost-volume variance and discards uncertain pixels. DualNet: Robust Self-Supervised Stereo Matching with Pseudo-Label Supervision prunes labels with left-right checks and morphological filtering before distribution-level distillation. Both remove exactly the low-texture regions we care about, and UCFNet's cost-variance signal itself degenerates when the cost is flat. Self-adapting Confidence Estimation for Stereo learns confidence from reprojection, agreement, and uniqueness cues. Its authors report severe degradation on textureless and slanted surfaces, because warping one uniform patch onto another yields near-zero photometric error. Our test turns that failure into the signal: the absence of photometric change is what reveals non-identifiability. It is the network's response, not the photometric error, that we measure.

The fallback prior builds on P2Net: Patch-Match and Plane-Regularization for Unsupervised Indoor Depth Estimation. P2Net shows that a piecewise-planar loss on untextured regions prevents training collapse, reaching Abs Rel 0.147 on NYUv2. It does so with offline Felzenszwalb superpixels and an unweighted, hard planar constraint. We exploit a simpler fact: a 3D plane produces disparity that is affine in image coordinates. Penalizing the second derivatives of disparity is therefore an exact planarity prior that needs no segmentation. We weight that penalty by $(1-w)$ and soften it at image edges, so it fades where the data takes over.

The heavy alternatives use frozen foundation models to fill textureless regions. MonSter: Marry Monodepth to Stereo Unleashes Power aligns a monocular depth network to stereo, and All-in-One: Transferring Vision Foundation Models into Stereo Matching routes features from DINO, SAM, and Depth Anything. These are strong systems, but they are supervised architectures, not self-training weights. We treat them as an upper-reference comparison and as a possible complement, not as a competitor in the lightweight setting.

Research Program

The work has three parts.

The first is a diagnostic study, the part on which everything else rests. We use UnrealStereo: Controlling Hazardous Factors to Analyze Stereo Vision, which has dense ground truth and explicit textureless labels, along with the manually annotated hazardous regions of Middlebury 2014. On these we compute candidate weights from a SceneFlow-pretrained teacher:

  • the CST-Stereo scale and iteration signals;
  • cost-curve peak sharpness, where a cost volume exists;
  • local image gradient magnitude along the epipolar direction;
  • the response ratio.

For each weight we measure the "confident-wrong" rate: the fraction of textureless pixels with weight above 0.8 whose error exceeds 3 pixels. We also measure each weight's ranking quality against true error, using the area under the sparsification curve.

The second part is the self-training method. We use an exponential-moving-average teacher and a student, with the regression loss scaled by $w$ and the second-derivative planarity term scaled by $(1-w)$. We will design the bump families carefully. Bumps must be smooth and of small amplitude, so that resampling the right image does not create its own occlusion artifacts. Occluded pixels, identified by a left-right check on the teacher, are excluded from $r$ rather than scored.

The third part is cost and transfer. We report the extra teacher passes per training step. We also test the method on a recurrent matcher (IGEV-Stereo/RAFT-Stereo) and on a feed-forward matcher, where CST-Stereo's iteration signal cannot be computed.

Baselines

The naive reference is the SceneFlow-pretrained network evaluated with no adaptation. Its companion is the same network self-trained with uniform weights, which shows how much any weighting matters.

The strongest directly comparable method is CST-Stereo, because it is the best published continuous-weight self-training scheme for stereo, and our claim is specifically that its stability signals fail on textureless surfaces. Its reported number is D1-all 1.50% on KITTI 2015 (versus 1.55% for Selective-IGEV), from Consistency-aware Self-Training for Iterative-based Stereo Matching. We will reimplement its weights inside our own pipeline, with the same backbone, unlabeled data, schedule, and a matched hyperparameter search budget, so that only the weight differs. Beating it means a lower error on the textureless-masked subsets of Middlebury and ETH3D and on Booster, with overall KITTI D1-all no worse.

The hard-masking baselines are UCFNet-style uncertainty thresholding and DualNet-style left-right plus morphological pruning, each run in the same pipeline. DualNet reports 2.92% D1-all on KITTI 2015 and 3.05 Bad 1.0 on ETH3D, according to DualNet.

We include two ablations that isolate the key ingredient. The first adds the planarity term but drives it with CST weights instead of the response ratio. This separates the value of the identifiability signal from the value of the prior. The second uses the response ratio with no planarity term (low-weight pixels simply receive little loss). This shows whether routing to a prior is necessary.

On Booster, no reported result was found on Lacuna for CST-Stereo, UCFNet, DualNet, MonSter, or AIO-Stereo. The only reference points there are the reported over-40% bad-2 rates for deep models and a RAFT-Stereo mean absolute error falling from 17.08 to 7.56 pixels after supervised fine-tuning, from Open Challenges in Deep Stereo: the Booster Dataset. We will therefore run all baselines ourselves on Booster.

Why not just…?

Why not just weight pseudo-labels by local image texture? This is the real threat. Gradient magnitude along the epipolar direction is cheap and also goes to zero on blank walls. The response ratio should differ in two places. The first is repetitive texture, which has strong gradients but ambiguous matches. The second is weakly textured pixels that the network resolves correctly from wider context, as the axial-attention gains of Context-Enhanced Stereo Transformer suggest is possible. The texture weight is a full baseline in both the diagnostic study and self-training. If it matches the response ratio on the confident-wrong rate and on downstream error, we will report that the cheap proxy suffices, and our contribution reduces to the planarity routing.

Why not just keep CST-Stereo's stability weights, since they already work? They do work on average, but the hypothesis is that their failure is concentrated exactly where it is hardest to see. The UnrealStereo diagnostic tests this directly. If CST weights already show a low confident-wrong rate on textureless pixels, the false-convergence gap is not real and the proposal's premise fails.

Why not just add monocular depth priors as MonSter does? On benchmarks with labels, MonSter will very likely remain stronger in absolute terms. We report it as an upper reference rather than claim to beat it. The question here is different: whether a matcher can safely adapt to an unlabeled domain without a large frozen backbone, which MonSter does not attempt. We will also test whether response-ratio weighting improves MonSter-style alignment by choosing better anchor pixels. That is a complement, not a replacement.

Why not just use P2Net's superpixel planar loss on low-confidence pixels? Hard superpixels force planes across occluding contours. The second-derivative term achieves the same planarity without segmentation and fades continuously where the data takes over. We compare the two directly on NYUv2-style indoor data.

Proposed Experiments

The decisive check is the UnrealStereo diagnostic. Our prediction is that, at extreme texturelessness, the response ratio's confident-wrong rate falls substantially below both the CST signals and the texture baseline. Failure on that measure falsifies the core claim regardless of later results.

Self-training then adapts SceneFlow-pretrained models to unlabeled KITTI 2015, Middlebury 2014, ETH3D, and Booster training images. We report D1-all on KITTI, Bad 2.0 and end-point error on Middlebury, Bad 1.0 on ETH3D, and Bad 2.0 and mean absolute error on Booster, each split into textureless and textured pixels. Two further predictions follow. On the textured subset, all soft weights should perform similarly. On the textureless subset, CST weighting should improve less over the unadapted model than our method does, and may even degrade it as adaptation proceeds, which would show the reinforcement of hallucinated planes over training steps. We will track textureless error per epoch to make that dynamic visible.

Finally, we run the full method on a feed-forward matcher where CST's iteration signal does not exist. This tests whether the approach applies across architectures, as claimed.