Abstract
Diffusion models exhibited tremendous progress in image and video generation, exceeding GANs in quality and diversity. However, they are usually trained on very large datasets and are not naturally adapted to manipulate a given input image or video. In this paper we show how this can be resolved by training a diffusion model on a single input image or video. Our image/video-specific diffusion model (SinFusion) learns the appearance and dynamics of the single image or video, while utilizing the conditioning capabilities of diffusion models. It can solve a wide array of image/video-specific manipulation tasks. In particular, our model can learn from few frames the motion and dynamics of a single input video. It can then generate diverse new video samples of the same dynamic scene, extrapolate short videos into long ones (both forward and backward in time) and perform video upsampling. Most of these tasks are not realizable by current video-specific generation methods.
Introduction
While Denoising Diffusion Probabilistic Models (DDPMs) have set new benchmarks in high-fidelity image and video synthesis, their reliance on massive datasets and significant computational power remains a barrier for personalized content manipulation. When a user wishes to edit or extend a specific image or video, standard models lack the necessary awareness of that specific asset's internal distribution. Existing single-sample methods, such as SinGAN, often resort to patch-based nearest-neighbor approaches that can lead to repetitive artifacts and a failure to capture complex temporal dynamics. SinFusion addresses these challenges by adapting the diffusion framework to the single-sample regime, enabling sophisticated generation and editing tasks from just one input.
Methodology
SinFusion modifies the standard DDPM framework to prevent the model from simply memorizing the single training input. The core of this adaptation lies in two structural changes:
- Fully Convolutional Architecture: Unlike standard U-Nets that use attention layers and spatial downsampling—creating a global receptive field—SinFusion utilizes a chain of ConvNext blocks and removes all downsampling. This restricts the model's receptive field, forcing it to learn local textures and dynamics rather than the global image structure.
- Direct $x_0$ Prediction: While standard DDPMs predict the added noise $\epsilon$, SinFusion predicts the clean image crop $\tilde{x}_{0,\theta}$ directly. This approach has been found to yield higher quality and faster convergence when dealing with single-image distributions.
For video tasks, the framework employs a "Video Trio" of models:
- Predictor: An autoregressive model that predicts frame $n+k$ conditioned on frame $n$, using curriculum learning to gradually increase the temporal gap $k$.
- Projector: A single-image DDPM trained on all video frames that acts as a refiner during inference to prevent error accumulation.
- Interpolator: A model conditioned on two non-consecutive frames to predict the intermediate frame, facilitating temporal upsampling.
Key Insights
Receptive Field and Overfitting
The authors identify that overfitting in single-sample diffusion is primarily a structural issue. By limiting the network's "view" to local patches via ConvNext blocks without attention, the model is compelled to learn the underlying "rules" of the scene—such as the texture of clouds or the motion of fish—rather than just copying the training data.
The Projector as an Anchor
In autoregressive video generation, "drift" is a common failure mode where the generated sequence gradually loses coherence. The Projector model serves as an anchor, mapping generated frames back toward the original patch distribution, thereby maintaining visual consistency over long sequences.
Zero-Shot Extrapolation
By learning the fundamental dynamics of a scene, SinFusion can perform zero-shot extrapolation. It can extend motion into the future or even reverse it (e.g., making balloons land) even if such sequences were not present in the training data.
Results and Evaluation
SinFusion was evaluated against benchmarks like SinGAN-GIF and Places50. In next-frame prediction tasks, it consistently outperformed baselines in PSNR, demonstrating a genuine understanding of motion. To quantify the trade-off between diversity and quality, the authors introduced NNFDIV (Nearest-Neighbor Field Diversity), which measures how much a model recomposes a scene versus copying it. SinFusion showed a superior balance compared to methods like VGPNN.
Training is notably efficient: a single-image model requires approximately 80 minutes, while a video predictor takes about 5.5 hours on a single NVIDIA V100 GPU.
Conclusion and Future Work
SinFusion successfully brings the power of diffusion models to the single-sample domain, enabling tasks like video extrapolation and temporal upsampling that were previously difficult for single-video methods. However, limitations remain, particularly regarding large camera movements and the structural integrity of large non-rigid objects. Future research may involve integrating semantic priors to provide the model with a higher-level understanding of the objects it manipulates.
Summary updated