RAFT-Stereo: Multilevel Recurrent Field Transforms for Stereo Matching

TL;DR

RAFT-inspired multi-scale ConvGRU architecture achieves high-precision, real-time stereo matching with 29% error reduction on Middlebury.

cs.CV 🔴 Advanced 2021-09-16 25 views
Lahav Lipson Zachary Teed Jia Deng
deep learning stereo matching optical flow ConvGRU multi-scale

Key Findings

Methodology

This paper introduces RAFT-Stereo, a novel stereo matching framework inspired by RAFT optical flow network. It employs multi-level convolutional GRUs to propagate information efficiently across the image at different resolutions. The architecture includes a feature extractor, a correlation pyramid built via dot-product similarity restricted to same-row pixels, and a multi-scale recursive update mechanism. The correlation volume is constructed using a single matrix multiplication, replacing computationally expensive 3D convolutions. The model iteratively refines disparity estimates through cross-connected GRUs at 1/8, 1/16, and 1/32 resolutions, enabling high-resolution, real-time inference. Training uses an exponentially weighted L1 loss, and the model demonstrates superior performance and generalization across ETH3D, Middlebury, and KITTI datasets.

Key Results

  • On Middlebury, RAFT-Stereo reduces 1px error by 29%, achieving the best performance with a 4.74% error rate, outperforming all previous end-to-end deep models. ETH3D results show a 2.44% bad 1-pixel error, surpassing the next best by 9.3%. On KITTI-2015, the error rate is 5.74%, ranking second among published methods. The model trained solely on synthetic data generalizes remarkably well to real-world datasets, demonstrating robust cross-domain performance.
  • The multi-scale recursive GRU design enhances the model’s ability to capture global context, especially in textureless or large scenes. The iterative refinement process allows for flexible trade-offs between speed and accuracy, supporting full-resolution dense disparity estimation. Ablation studies confirm that multi-level updates and correlation pyramid significantly contribute to the accuracy and robustness of the method.

Significance

This work addresses the high computational cost of traditional 3D convolution-based stereo networks by introducing an efficient, scalable architecture that maintains state-of-the-art accuracy. Its strong generalization from synthetic to real data reduces reliance on extensive labeled datasets, facilitating deployment in practical applications like autonomous driving and robotics. The integration of optical flow ideas into stereo matching opens new avenues for high-resolution, real-time depth estimation, pushing the frontier of deep stereo algorithms.

Technical Contribution

The key technical innovation is the integration of multi-scale ConvGRU modules with a simplified correlation volume constructed via matrix multiplication, enabling high-resolution, real-time stereo matching without 3D convolutions. The architecture’s recursive multi-level update mechanism allows effective global context aggregation while maintaining computational efficiency. This approach bridges the gap between optical flow and stereo matching, providing a unified, scalable framework with excellent generalization and inference speed.

Novelty

This is the first work to incorporate multi-scale ConvGRU units into stereo matching, inspired by RAFT optical flow, replacing costly 3D convolutions with a matrix multiplication-based correlation volume. The multi-resolution recursive update strategy and correlation pyramid enable efficient, high-accuracy disparity estimation at full resolution. This novel combination of ideas significantly advances the state-of-the-art in both efficiency and generalization, setting new benchmarks.

Limitations

  • Despite improvements, the model may still struggle with extreme textureless regions or severe lighting conditions, where local cues are insufficient. Large scenes with limited recursion steps might affect global consistency. The reliance on synthetic training data, although effective, may introduce biases in certain real-world scenarios. Further work is needed to enhance robustness under adverse conditions and extend scalability to ultra-high resolutions.

Future Work

Future directions include integrating self-supervised learning to reduce dependence on synthetic data, exploring adaptive recursion strategies for scene complexity, and extending the architecture to multi-view or multi-modal setups. Improving robustness in challenging environments and optimizing for even higher resolutions or lower latency are also promising avenues.

AI Executive Summary

RAFT-Stereo introduces a novel deep architecture inspired by RAFT optical flow, designed for high-precision, real-time stereo matching. Traditional stereo methods often rely on computationally intensive 3D convolutional networks to process cost volumes, limiting their scalability and speed. In contrast, this work proposes a lightweight, efficient framework that leverages multi-scale convolutional GRUs to propagate information across the image at multiple resolutions. The core innovation lies in replacing 3D convolutions with a single matrix multiplication to construct the correlation volume, significantly reducing computational overhead. The architecture employs a multi-level recursive update mechanism, where hidden states at 1/8, 1/16, and 1/32 resolutions interact through cross-connections, enabling the model to capture both local details and global context effectively. This design allows the model to perform full-resolution disparity estimation with high accuracy and speed, suitable for practical deployment.

Deep Analysis

Background

立体匹配作为深度估计的基础任务,经历了从传统匹配成本优化到深度学习的演变。早期方法如SGBM通过优化匹配代价实现较快的推理,但在纹理缺失和复杂场景中表现有限。深度学习方法如GCNet、PSMNet引入3D卷积处理成本体,显著提升精度,但计算成本高,难以扩展到高分辨率场景。光流网络如RAFT通过迭代优化实现高效推理,为立体匹配提供了启示,但两者在架构设计上存在差异。近年来,研究关注模型的泛化能力和实时性,出现多尺度融合和轻量化方案,但仍面临效率与精度的权衡问题。

Core Problem

现有深度立体匹配模型多依赖复杂的3D卷积,计算成本高,限制了高分辨率实时推理的能力。同时,模型泛化能力不足,难以在不同数据集间保持性能。如何设计一种高效、泛化强且支持全分辨率推理的架构,成为关键难题。这关系到自动驾驶、机器人等实际应用的落地需求,亟需突破传统方法的瓶颈。

Innovation

提出多尺度递归ConvGRU架构,结合单矩阵乘法构建相关体,避免3D卷积的高成本。引入多层次信息融合机制,使模型在保持高精度的同时实现快速推理。借鉴光流中的迭代优化思想,将其迁移到立体匹配中,增强模型的全局感知能力。该架构支持全分辨率推理,显著提升泛化能力和应用范围,突破了以往模型在效率和精度上的限制。

Methodology

  • �� 特征提取:用残差网络提取左右图像的深层特征,构建多尺度特征金字塔。• 相关金字塔:通过点积计算相似度,限制在同一行,构建多层次相关体。• 相关索引:利用当前视差估计,线性插值索引相关金字塔,获取局部相关特征。• 多尺度GRU:在不同尺度(1/8、1/16、1/32)上并行更新隐藏状态,交叉连接增强信息流。• 逐步细化:递归多尺度GRU逐步优化视差,最后用凸组合实现全分辨率输出。• 损失函数:采用指数加权的L1距离,逐步优化视差估计。

Experiments

在ETH3D、Middlebury、KITTI等公开数据集上进行评估,模型在合成数据预训练后,进行微调或直接测试。验证多尺度递归机制对性能的贡献,比较3D卷积方法,展示效率和精度优势。通过消融实验确认多尺度GRU和相关金字塔的重要性,分析在纹理缺失、光照变化等场景中的鲁棒性。模型在不同场景下表现出优异的泛化能力,验证其实用性。

Results

在Middlebury上,误差降低29%,达到1px误差率为4.74%,优于所有端到端模型。ETH3D误差为2.44%,领先第二名9.3%。KITTI误差率为5.74%,排名第二。模型在合成数据训练后,展现出极强的跨域泛化能力,超越多数依赖真实标注的模型。多尺度递归显著提升模型对大场景和纹理缺失区域的适应性,验证了其在实际应用中的潜力。

Applications

该模型适用于自动驾驶、无人机导航、机器人视觉等场景,能在高分辨率图像中快速获得精确深度信息。其高效推理支持实时场景感知,降低硬件成本。未来可结合多传感器融合,提升复杂环境下的鲁棒性,为智能交通和自动化工业提供技术基础。

Limitations & Outlook

模型在极端光照或纹理极度缺失的场景中仍可能出现误差,尤其在超大场景中递归次数有限可能影响全局一致性。多尺度GRU增加计算复杂度,需进一步优化。训练依赖合成数据,实际应用中需结合少量真实标注进行微调。未来需增强模型的鲁棒性和适应性,提升在极端环境下的表现。

Plain Language Accessible to non-experts

想象你在一家工厂里,工人们需要把不同的零件拼装在一起。传统的方法就像用一台大机器逐个检查每个零件是否匹配,既慢又费力。现在,工厂引入了一套聪明的机器人,它可以在不同的工作站之间快速传递信息,逐步改进拼装方案。这个机器人用一种特别的方式,把信息在多个层级上传递,就像在不同的楼层上都有助手帮忙,最后只用一台简单的机器就能完成整个拼装任务。这个方法不仅快,还能在复杂的场景中找到更准确的拼接点,就像在复杂的机械零件中找到正确的拼接位置一样。它的秘密在于用多层次的“助手”协作,逐步细化每个细节,最终实现高效、精确的拼装。

Abstract

We introduce RAFT-Stereo, a new deep architecture for rectified stereo based on the optical flow network RAFT. We introduce multi-level convolutional GRUs, which more efficiently propagate information across the image. A modified version of RAFT-Stereo can perform accurate real-time inference. RAFT-stereo ranks first on the Middlebury leaderboard, outperforming the next best method on 1px error by 29% and outperforms all published work on the ETH3D two-view stereo benchmark. Code is available at https://github.com/princeton-vl/RAFT-Stereo.

cs.CV