TL;DR
MLG-Stereo introduces a multi-stage local-global enhancement framework that brings the powerful zero-shot generalization of Vision Transformers (ViTs) to stereo matching without sacrificing fine-grained local details. By systematically injecting global context into the feature encoder, cost volume, and recurrent optimization stages, it overcomes the resolution sensitivity of ViTs and achieves state-of-the-art performance on major benchmarks like Middlebury and KITTI.
What Problem Does This Paper Address?
Stereo matching—estimating the pixel-wise depth or "disparity" between a pair of rectified images—is a cornerstone of 3D computer vision. Traditionally, Convolutional Neural Networks (CNNs) have dominated this space because their local perception fields excel at capturing fine geometric details and handling arbitrary image resolutions. However, CNNs struggle in "ill-posed" regions like textureless plains, repetitive patterns, or occlusions due to their lack of a global receptive field.
Recently, Vision Transformers (ViTs) and Vision Foundation Models (VFMs) have entered the scene, offering robust global context and incredible zero-shot capabilities. But they come with a catch: ViTs are highly sensitive to image resolution and often smooth over fine local details. Furthermore, existing ViT-based stereo networks restrict their global modeling to the initial feature extraction phase, leaving the subsequent cost volume and disparity refinement stages relying purely on localized windows.
MLG-Stereo bridges this gap by creating a pipeline that offers the best of both worlds: the robust holistic understanding of ViTs and the sharp detail preservation of CNNs.
Methods
The authors propose MLG-Stereo, a systematic pipeline-level design consisting of three core components that inject local-global enhancement across every stage of the network:
- Multi-Granularity Feature Network (MGFN): To bypass the fixed-resolution constraints of pretrained VFMs (like DINOv2), MGFN splits input images into multi-scale patches alongside the full-resolution image. A shared-weight hierarchical architecture processes these inputs, fusing local fine-grained geometric details with high-level global semantics. This allows the network to natively handle arbitrary input resolutions during inference.
- Local-Global Cost Volume (LGCV): Standard global cost volumes are computationally prohibitive due to memory bottlenecks. LGCV solves this by using latent token compression to project the variable-length disparity dimension into a compact hidden space. It then applies bidirectional spatial and disparity attention to aggregate global matching information within hardware-affordable limits, running parallel to a traditional local 3D-CNN cost volume.
- Local-Global Guided Recurrent Unit (LGRU): Instead of updating disparities using only local cost volume lookups, the LGRU uses a cross-attention mechanism to explicitly inject the global matching priors from the GCV into the recurrent optimization loop. This guides the local refinement process and prevents the optimization from getting stuck in local optima.
Datasets
The model was pre-trained on synthetic datasets:
- SceneFlow (35,454 training pairs)
- Virtual KITTI 2 (21,260 outdoor driving scene pairs)
It was subsequently evaluated and fine-tuned on standard real-world benchmarks:
- Middlebury (MiddEval v3): High-resolution indoor scenes with challenging lighting.
- KITTI 2012 & KITTI 2015: Real-world autonomous driving datasets with sparse LiDAR ground truth.
Key Insights and Ideas
- Global Context Belongs Everywhere: Restricting global attention to the encoder is a bottleneck. By carrying global context into the cost volume and the update loops, the network can resolve local ambiguities (like a blank wall or a repeated fence pattern) using holistic scene structure.
- Latent Space Compression is Key for Scaling: Computing full cross-attention across large cost volumes causes memory to explode. Compressing the disparity dimension into learnable latent tokens makes global cost aggregation computationally feasible for high-resolution images.
- Faster Convergence via Better Guidance: Because the recurrent update unit (LGRU) is globally guided, it doesn't have to blindly search local neighborhoods. It corrects its optimization trajectory immediately, matching or exceeding baseline accuracy in significantly fewer iterations.
Key Results
MLG-Stereo achieved top-tier performance across all evaluated public leaderboards:
- Middlebury Benchmark: The model outperformed recent leading methods like AIO-Stereo and FoundationStereo by 25.42% and 4.35% respectively on the strict
Bad 2.0metric (percentage of pixels with an error greater than 2 pixels). - KITTI 2015: It achieved the lowest
D1-allerror at the time of submission, outperforming AIO-Stereo by 11.69%. - Efficiency: Thanks to the LGRU design, MLG-Stereo requires only 4 iterations to match the performance that baseline models achieve after a full update cycle, demonstrating rapid convergence.
Limitations and Future Work
Despite its strong performance, the reliance on a heavy, full-sized DINOv2 backbone introduces significant computational overhead and inference latency, making it difficult to deploy on resource-constrained edge devices (e.g., real-time robotics or automotive hardware).
Additionally, extremely complex ill-posed zones—such as intricate, thin structures that are heavily occluded—remain a challenge because the generic VFM backbone lacks explicit depth-oriented geometric priors. The authors note that future work will focus on model lightweighting (via knowledge distillation and sparsification) and integrating depth-specific foundation models like Depth Anything 3 to provide sharper geometric guidance.
Summary updated