Warped Diffusion: Solving Video Inverse Problems with Image Diffusion Models

Giannis Daras, Weili Nie, Karsten Kreis, Alex Dimakis, Morteza Mardani, Nikola Borislavov Kovachki, Arash Vahdat

While image diffusion models (DMs) like Stable Diffusion XL have reached incredible levels of photorealism, extending them to video remains a massive challenge. Applying an image model frame-by-frame to a video usually results in a "shimmering" mess because the model generates slightly different details for every frame, causing severe flickering. Conversely, some methods suffer from "texture-sticking," where a pattern stays fixed to the camera lens even as the object it belongs to moves.

Existing solutions often involve training massive video-specific models, which are computationally expensive and sometimes less robust than their image-based counterparts. A recent alternative, "noise warping," tries to keep frames consistent by warping the starting noise. However, this only works if the neural network is perfectly "equivariant"—meaning if you warp the input, the output warps exactly the same way. In reality, standard neural networks and latent spaces are not perfectly equivariant, leading to temporal drift and inconsistency.

Warped Diffusion is a novel framework that allows state-of-the-art image diffusion models to solve video inverse problems—such as inpainting and super-resolution—with remarkable temporal consistency, bypassing the need for expensive video-specific training.

Methodology

The authors tackle the temporal consistency problem through three key technical innovations:

  1. Function Space Perspective: Instead of viewing images as discrete grids of pixels, they treat them as continuous functions. This allows them to define warping transformations (like optical flow) mathematically across the entire image domain.
  2. Gaussian Process (GP) Noise: Standard "white noise" used in diffusion is discrete and spatially independent. If you warp white noise, you get a new set of random values that look nothing like the original. By using Gaussian Processes (sampled efficiently via Random Fourier Features), the authors create noise that is spatially correlated and can be sampled at any continuous coordinate, making it "warp-friendly."
  3. Equivariance Self-Guidance: This is the core contribution. During the sampling process, the model doesn't just generate the next frame blindly. It uses a post-hoc guidance step that penalizes the difference between the current frame's prediction and the warped version of the previous frame's prediction.
Equivariance Self-Guidance Diagram

This self-guidance "forces" the model to be consistent with its own past, effectively correcting the network's natural lack of equivariance at inference time. The authors show that a standard model like SDXL can be easily fine-tuned to handle this correlated GP noise in about 24 hours on a small cluster (using a subset of the COYO-700M dataset).

Key Insights

The "aha moment" of this paper is realizing that simply warping the input noise isn't enough. Because neural networks have internal biases (like fixed kernels in convolutions), they don't respond to warped inputs in a perfectly warped way. The self-guidance step acts as a "correction fluid" for these architectural biases.

Furthermore, previous noise-warping methods struggled with Latent Diffusion Models (LDMs). Warped Diffusion proves that by enforcing equivariance through guidance, powerful LDMs like SDXL can finally be used for high-quality video tasks. Moving from discrete pixel-pushing to a continuous function space makes the math for optical flow and noise transformations much more principled and less prone to interpolation blur.

Results and Performance

Evaluated on the FETV dataset for real-world video performance, Warped Diffusion demonstrated significant improvements over existing techniques.

Comparison of Video Inpainting Results
  • Temporal Consistency: In synthetic translation tests, Warped Diffusion achieved a near-zero warping error ($10^{-4}$ mean pixel error), effectively "locking" the generated content to the motion.
  • Super-Resolution and Inpainting: The method outperformed state-of-the-art baselines (like "How I Warped Your Noise") in both visual quality and temporal stability for tasks like $8\times$ video super-resolution and object inpainting.
  • Efficiency: Their GP noise warping mechanism is significantly faster than previous high-resolution noise-mapping techniques—roughly $16\times$ faster (39ms vs 629ms per frame).

Limitations

While highly effective, the approach has a few constraints. The self-guidance step requires an extra backpropagation pass during sampling, making the generation process about $2.5\times$ slower than standard sampling. Additionally, the method relies heavily on external optical flow estimators (like RAFT); if the flow estimation fails due to heavy occlusions or extreme lighting changes, temporal consistency will break down. Finally, while the guidance is post-hoc, the model still requires an initial fine-tuning phase to "understand" the spatially correlated GP noise, meaning it isn't strictly plug-and-play for any arbitrary off-the-shelf model without prior setup.

Summary updated

BibTeX
@inproceedings{daras2024warped,
  author = {Giannis Daras and Weili Nie and Karsten Kreis and Alex Dimakis and Morteza Mardani and Nikola Borislavov Kovachki and Arash Vahdat},
  title = {{Warped Diffusion: Solving Video Inverse Problems with Image Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=LH94zPv8cu},
}
Figure