NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Refocus with Video Diffusion Models

SaiKiran Kumar Tedla, Zhoutong Zhang, Xuaner Zhang, Shumian Xin · DOI

Introduction

Capturing a perfectly focused image remains a challenge in mobile photography, particularly in complex or low-light environments. While autofocus technology has advanced, users often find critical subjects blurred post-capture. Post-capture refocusing—the ability to adjust the focal plane after an image is taken—is an "ill-posed" problem because high-frequency details are physically lost in blurred regions. Researchers from Adobe and York University have proposed a novel solution: repurposing video diffusion models to "hallucinate" these missing details by treating focal shifts as a temporal sequence.

Methodology: Refocusing as a Video Sequence

The core innovation lies in treating a focal stack—a series of images with varying focus planes—as a video. In a standard video, pixels evolve over time; in a focal stack, they evolve as the lens moves.

The proposed pipeline: An out-of-focus input is processed by a video diffusion model to generate a reconstructed focal stack, allowing the user to select the desired focus point.

To implement this, the team adapted Stable Video Diffusion (SVD). Unlike typical video generation where an input frame is replicated across a sequence, this method uses Modified Classifier-Free Guidance (CFG). The input image is placed at its specific focal position within the conditioning tensor, while other positions are zeroed out. This "position-dependent conditioning" teaches the model the relationship between focal distance and optical blur, enabling it to generate sharp details for any frame in the stack.

Data and Training

To train and evaluate the model, the researchers developed a new benchmark dataset consisting of 1,637 real-world scenes. Captured using a custom rig of five iPhone 12s, the dataset includes both controlled lightbox shots and "in-the-wild" environments. Each scene features nine focal increments, meticulously processed to eliminate "focal breathing" (the slight zoom effect during focusing), ensuring perfect alignment across the stack.

Key Insights: Leveraging Video Priors

A significant discovery was that pre-trained video models inherently possess "priors" about optical focus. By prompting a standard model for a "focus pull" on a specific subject, the model naturally generates a focal stack.

Example of a video diffusion model's internal prior: generating a frame from a focus pull sequence of a bug on a leaf.

Furthermore, the generative nature of diffusion models allows them to outperform traditional discriminative (regression-based) methods. While older models often produce "plastic" or overly smooth results, this diffusion-based approach can synthesize realistic high-frequency textures, such as hair or skin pores, that are perceptually indistinguishable from real sharp images.

Results and Performance

The model demonstrates significant improvements in perceptual realism. In user studies, participants preferred the diffusion-based results 88.25% of the time over leading non-generative baselines like NAFNet. Quantitatively, the method achieved superior scores in LPIPS and FID, metrics that align closely with human visual perception. Beyond simple refocusing, the generated stacks can be used to create "All-in-Focus" images or to artistically adjust the depth-of-field (bokeh).

Limitations and Future Directions

Despite its success, the model has limitations. It currently struggles with the extreme bokeh produced by high-end DSLR apertures, as it was primarily trained on smartphone-scale data. Additionally, the use of a Variational Autoencoder (VAE) can sometimes lead to the loss of extremely fine details. Future work may involve pixel-space diffusion or improved temporal consistency to eliminate minor flickering when the focal stack is viewed as a continuous video.

Summary updated

BibTeX
@inproceedings{tedla2025learning,
  author = {SaiKiran Kumar Tedla and Zhoutong Zhang and Xuaner Zhang and Shumian Xin},
  title = {{Learning to Refocus with Video Diffusion Models}},
  booktitle = {SIGGRAPH Asia},
  year = {2025},
  doi = {10.1145/3757377.3763873},
}
Figure