DIP: Deep Inverse Patchmatch for High-Resolution Optical Flow

Zihua Zheng, Ni Nie, Zhi Ling, Pengfei Xiong, Jiangyu Liu, Hao Wang, Jiankun LiCVPR 2022 · DOI

Abstract

DIP (Deep Inverse Patchmatch) is a memory-efficient, end-to-end deep learning framework designed for high-resolution optical flow estimation. By integrating a novel "inverse propagation" Patchmatch scheme, it achieves state-of-the-art accuracy on benchmarks like KITTI 2015 while consuming significantly less memory and computation time than previous leading methods like RAFT.

Introduction: The Memory Bottleneck in High-Resolution Flow

Optical flow estimation—the task of determining 2D pixel displacement between consecutive frames—is fundamental to computer vision. Recent "all-pairs" correlation volume methods, such as RAFT, have achieved remarkable performance. However, these methods construct a 4D correlation volume that scales quadratically ($O(N^2)$) with the number of pixels.

As the industry moves toward high-resolution imagery (1080p, 4K), these global volumes become "memory monsters," often exceeding the capacity of high-end GPUs. While coarse-to-fine strategies offer a memory-saving alternative, they frequently lose small, fast-moving objects during downsampling. DIP addresses this by maintaining the precision of dense correlation methods without the prohibitive memory cost.

Figure 1: Comparison of memory usage and flow quality between RAFT, SCV, and DIP. DIP achieves higher detail with significantly lower memory consumption.

Methods: Deep Inverse Patchmatch

The core innovation of DIP is the integration of the classic Patchmatch algorithm into a modern deep learning pipeline. Patchmatch relies on the principle of spatial coherence: a good match for a pixel is likely a good match for its neighbor. This reduces the search space from the entire image to just a few neighboring candidates and a small local window.

Inverse Propagation

The primary technical contribution is the "Inverse Propagation" scheme. In standard propagation, the model must shift the flow and warp features in every iteration, creating a computational bottleneck. DIP proposes shifting and stacking target features once during an initialization stage.

Figure 2: Comparison of (a) standard propagation and (b) the proposed inverse propagation. Inverse propagation decouples complex operations, allowing for faster iterative refinement.

In subsequent iterations, the model only needs to perform a single warping operation on these pre-shifted features. This decoupling significantly speeds up the iterative process and turns a serial bottleneck into a parallelizable initialization step.

Local Search and Multi-scale Updates

DIP replaces the random search of traditional Patchmatch with a fixed-radius local search module, providing stability for gradient-based training. The architecture operates across 1/16 and 1/4 scales, utilizing a GRU-based recurrent decoder to iteratively refine the flow field.

Key Results and Performance

DIP demonstrates exceptional accuracy and efficiency across multiple benchmarks, including Sintel and KITTI 2015:

  • State-of-the-Art Accuracy: At the time of publication, DIP ranked 1st on the KITTI 2015 benchmark and 2nd on Sintel Clean among published methods.
  • KITTI 2015 Performance: It achieved an F1-all score of 13.73%, representing a 21% error reduction compared to the previous best-published result (17.4%).
  • Efficiency: DIP consumes approximately 2x less memory than RAFT. On 1080p images, it is 10x faster than Sparse Global Correlation (SCV) methods while preserving finer details, such as thin branches or bicycle spokes.
  • Generalization: The model shows strong "zero-shot" generalization, outperforming specifically tuned models when tested on KITTI after training only on synthetic data. This suggests the Patchmatch structure acts as a powerful geometric regularizer.

Conclusion and Future Work

DIP successfully bridges the gap between high-precision dense correlation and memory efficiency. While it excels at high resolutions, it faces challenges in regions of heavy motion blur where neighborhood propagation can break down. Future research aims to incorporate non-local attention mechanisms to handle such occlusions and blur, and to extend the inverse Patchmatch scheme to related tasks like multi-view stereo.

Summary updated

BibTeX
@inproceedings{zheng2022dip,
  author = {Zihua Zheng and Ni Nie and Zhi Ling and Pengfei Xiong and Jiangyu Liu and Hao Wang and Jiankun Li},
  title = {{DIP: Deep Inverse Patchmatch for High-Resolution Optical Flow}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.00872},
}
Figure