Abstract
The cost volume, capturing the similarity of possible correspondences across two input images, is a key ingredient in state-of-the-art optical flow approaches. When sampling for correspondences to build the cost volume, a large neighborhood radius is required to deal with large displacements, introducing a significant computational burden. To address this, a sequential strategy is usually adopted, where correspondence sampling in a local neighborhood with a small radius suffices. However, such sequential approaches, instantiated by either a pyramid structure over a deep neural network's feature hierarchy or by a recurrent neural network, are slow due to the inherent need for sequential processing of cost volumes. In this paper, we propose dilated cost volumes to capture small and large displacements simultaneously, allowing optical flow estimation without the need for the sequential estimation strategy. To process the cost volume to get pixel-wise optical flow, existing approaches employ 2D or separable 4D convolutions, which we show either suffer from high GPU memory consumption, inferior accuracy, or large model size. Therefore, we propose using 3D convolutions for cost volume filtering to address these issues. By combining the dilated cost volumes and 3D convolutions, our proposed model DCVNet not only exhibits real-time inference (71 fps on a mid-end 1080ti GPU) but is also compact and obtains comparable accuracy to existing approaches.
Introduction
Optical flow estimation—the task of determining pixel-level motion between consecutive video frames—is a fundamental challenge in computer vision. The current state-of-the-art relies on the construction of a cost volume, a data structure that stores the similarity between a pixel in one frame and all potential corresponding locations in the next.
Historically, capturing large displacements required a massive search window, leading to prohibitive computational costs. To circumvent this, models like PWC-Net utilize coarse-to-fine pyramids, while RAFT employs recurrent neural networks (RNNs) for iterative refinement. While effective, these sequential strategies create a significant inference bottleneck. DCVNet addresses this by introducing a parallelized approach that captures multi-scale motion in a single feedforward pass.
Methodology
Dilated Cost Volumes
The core innovation of DCVNet is the Dilated Cost Volume. Inspired by dilated convolutions used in semantic segmentation, the model samples the search neighborhood at varying strides (dilation factors). Instead of a single dense search window, DCVNet constructs multiple cost volumes simultaneously. For instance, one volume might sample immediate neighbors (dilation=1), while another samples every 16th pixel (dilation=16). This allows a compact $9 \times 9$ search window to effectively cover a range of up to 512 pixels.
3D Convolutional Filtering
To process these volumes efficiently, DCVNet utilizes 3D convolutions within a U-Net architecture. This approach avoids the high memory consumption of 4D convolutions and the accuracy trade-offs of 2D methods. The filtering stage learns to resolve ambiguities across the concatenated dilated volumes and produces pixel-wise optical flow.
Interpolation and Supervision
Rather than directly regressing raw coordinates, the network outputs interpolation weights. The final flow is computed as a weighted average of the discrete displacements captured by the dilated volumes. Training is guided by a dual loss function: a standard $L_1$ loss on the final flow and a Cross-Entropy loss that encourages the interpolation weights to peak at the ground-truth displacement.
Experimental Results
DCVNet was evaluated on industry-standard benchmarks including Scene Flow, MPI Sintel, and KITTI 2012/2015.
- Performance: The model achieves real-time inference, processing Sintel-resolution images at 30 fps and reaching up to 71 fps on a mid-range NVIDIA 1080ti. This is significantly faster than iterative models like RAFT.
- Accuracy: On KITTI 2012, DCVNet achieved an Average End-Point Error (AEPE) of 1.6, outperforming established models like PWC-Net and FlowNet2.
- Efficiency: With only 7.87 million parameters, the model is highly compact, making it suitable for resource-constrained deployments.
Conclusion
DCVNet demonstrates that the sequential refinement paradigm is not the only path to high-accuracy optical flow. By leveraging dilated cost volumes and 3D convolutions, the model achieves a superior balance of speed and precision. While challenges remain in handling extreme non-rigid deformations and heavy occlusions, DCVNet provides a robust framework for real-time motion estimation in complex environments.
Summary updated