arXiv:2610.38600cs.CVOct 2026

Manuscript Offprint

arXiv:2610.38600

Data Scaling Laws in Stereo Matching: From In-domain Fitting to Cross-domain Generalization

Tong Zhao, Di Liang, Yiming Zeng, Bo Xu, Yingzhi Tang, Chen Bai

Tong Zhao ∗^{*}

Di Liang

Yiming Zeng

Bo Xu

Yingzhi Tang

Chen Bai

XPENG Motors

∗^{*} Project Lead

Figure

Figure 1. Data scaling laws in stereo matching. Left: In-domain disparity error vs. amount of pixels with label in training datasets. Both the individual and mixed datasets show the power law →\rightarrow saturation trend when scaling up data size. Right: The corresponding zero-shot generalization error on KITTI112. Cross-domain performance cannot be scaled up by increasing training data. Diversity contributes more.

Abstract

In the era of large models, stereo matching is developing towards generalizable foundation models trained on million-scale synthetic images. However, how model performance scales up with synthetic data is still underexplored. In this work, we preliminarily investigate the in-domain and cross-domain data scaling laws in stereo matching. A realistic synthetic dataset, named XStereo, containing 200 thousand samples is first built to serve as a high-quality benchmark for data scaling research. In-domain training on five large-scale datasets demonstrate a two-regime scaling behavior with data, transitioning from the standard power law to saturation, where the critical transition point is approximately invariant under a fixed model. Cross-domain performance exhibits a substantially weaker and less predictable dependence on the source-domain data scale. The distribution and coverage diversity are more effective for diminishing domain gaps. More instructive suggestions are provided for high-efficiency data construction and training. The insightful findings are significant.

icant verification and extension of the existing scaling laws in both language and vision, paving the way to efficient and stronger stereo matching. The XStereo dataset is public at https://huggingface.co/datasets/Tong-Zhao/XStereo.

1. Introduction

Stereo matching is a foundational 3D vision task that estimates pixel correspondences between two parallel-viewed images, which has been widely applied in AR/VR [3, 28] and especially the most recent embodied AI systems [2, 9, 20] due to its reliable and superior depth recovery capability [17, 34, 40]. In the past decades, research about stereo matching follows the paradigm of pre-training on small-scale synthetic images and then fine-tune or zero-shot on the target natural domains, among which Scene Flow [22], KITTI [7, 23], ETH3D [30], and Middlebury [29] are the most popular. Exploring algorithm optimization and in-domain/cross-domain performance on such tiny datasets is tricky and has severely hindered the progress of this field.

Some recent research has hopefully altered this trend by training larger models on more diverse domains at the million scale. FoundationStereo [42] is a remarkable work that introduces the FSD dataset with 1.6 million samples. It enhances distribution diversity by prominent domain randomization, together with a self-curation process to improve quality. Besides the FSD, they also mix the other six public datasets during training to suppress sim-to-real gap, verifying that significant performance improvements can be achieved by training on larger scales. However, most existing synthetic pipelines render images either by placing assets with random location, size, and texture(e.g. CREStereo [18]), or repeatedly sampling by moving only the foreground objects(e.g. StereoReplica [15]). Although stereo matching highly relies on local texture feature, whether the mismatch of texture pattern and global semantics from natural scenarios brings domain gaps should be further validated. Rendering high quality images with similar conditions in the physical world intuitively contributes to generalization. Moreover, the image synthesis procedure is feed-forward without evaluating data diversity and redundancy, which are exactly crucial for efficient data generation and training.

Apart from data quality, investigating the scaling behavior of disparity error is also significant. Existing work with large-scale training simply mixes multiple datasets [8], but the mechanism of how the model performs under distinct data distribution and scale is still mysterious. In recent years, scaling laws have been extensively studied, especially in Large Language Models (LLMs) [1, 10, 11, 25, 27], where model performance is observed to follow predictable power-law relationships within a certain range w.r.t. both training data, model size, and computation. Following this law, eminent LLMs and Vision Language Models (VLMs) with billion parameters trained on trillion tokens are developed. Therefore, clarifying these quantitative relationships in stereo matching not only facilitates building fundamental guidelines for high-efficiency data and training pipelines, but also bridging with other fields, thus consolidating the unified scaling laws in deep learning.

In this work, we extensively conduct in-domain and cross-domain experiments on large-scale synthetic and natural datasets to empirically penetrate the data scaling law in stereo matching. First, for benchmarking purposes, we create a stereo rendering pipeline that generates high-fidelity images. The constructed XStereo dataset, containing 200K samples from 162 realistic scenarios, enables independently controllable scene diversity and sample density. We randomly sample nested sub-datasets with incremental sizes from four synthetic datasets and their mixture, which are then trained on a fixed matching model with sufficient steps to ensure convergence. The pre-trained models are then tested on natural datasets. It is found that both independent and mixed trainings present a piece-wise power scaling law. We exploit this characteristic to assess sample redundancy for model learning. Zero-shot generalization converges faster at small scales, and distribution gaps between distinct domains inherently exist. More phenomena and characteristics are sufficiently discussed, providing valuable references for future research on efficient stereo matching.

Our key observations and contributions are:

• We establish an experimental methodology for studying data scaling in stereo matching, and show that in-domain error exhibits a reproducible power-law regime followed by rapid saturation across multiple synthetic datasets.

• We identify a stable data frontier separating the two regimes given the fixed model. An Effective Fitting Utilization metric is introduced to measure data redundancy.

• In-domain scaling is untransferable to cross-domain generalization. Enlarging source-domain data provides diminishing gains, whereas distribution diversity has a stronger effect.

• We introduce XStereo, a physically realistic stereo matching dataset scalable in both scenario and sample.

References (44)