The Surprising Effectiveness of Diffusion Models for Optical Flow and Monocular Depth Estimation
Saurabh Saxena, Charles Herrmann, Junhwa Hur, Abhishek Kar, Mohammad Norouzi, Deqing Sun, David J. Fleet
TL;DR
This paper demonstrates that denoising diffusion models can effectively perform optical flow and monocular depth estimation without task-specific architectures or losses, and can provide Monte Carlo uncertainty via sampling. It introduces DDVM, a simple image-to-image diffusion framework trained with multi-task self-supervised pretraining and a synthetic+real supervised pipeline, augmented by infilling, step-unrolled denoising, and coarse-to-fine refinement to handle noisy ground truth. The approach achieves state-of-the-art zero-shot and competitive finetuned results on benchmarks such as NYU depth v2 ($REL=0.074$) and KITTI flow ($\text{Fl-all}=3.26\%$), while also capturing multi-modality and enabling missing-value imputation. These findings suggest diffusion models can serve as a generic, effective framework for dense vision tasks, with practical benefits in uncertainty quantification and potential for 3D scene generation conditioned on text or images.
Abstract
Denoising diffusion probabilistic models have transformed image generation with their impressive fidelity and diversity. We show that they also excel in estimating optical flow and monocular depth, surprisingly, without task-specific architectures and loss functions that are predominant for these tasks. Compared to the point estimates of conventional regression-based methods, diffusion models also enable Monte Carlo inference, e.g., capturing uncertainty and ambiguity in flow and depth. With self-supervised pre-training, the combined use of synthetic and real data for supervised training, and technical innovations (infilling and step-unrolled denoising diffusion training) to handle noisy-incomplete training data, and a simple form of coarse-to-fine refinement, one can train state-of-the-art diffusion models for depth and optical flow estimation. Extensive experiments focus on quantitative performance against benchmarks, ablations, and the model's ability to capture uncertainty and multimodality, and impute missing values. Our model, DDVM (Denoising Diffusion Vision Model), obtains a state-of-the-art relative depth error of 0.074 on the indoor NYU benchmark and an Fl-all outlier rate of 3.26\% on the KITTI optical flow benchmark, about 25\% better than the best published method. For an overview see https://diffusion-vision.github.io.
