FIFO-Diffusion: Generating Infinite Videos from Text without Training

Jihwan Kim, Junoh Kang, Jinyoung Choi, Bohyung Han

Overview

FIFO-Diffusion is a novel, training-free inference technique that enables pretrained video diffusion models to generate arbitrarily long videos while maintaining constant memory usage. By employing a "first-in-first-out" queue and a "diagonal denoising" strategy, it allows models originally trained on short clips (e.g., 16 frames) to produce consistent, high-quality videos spanning thousands of frames.

The Memory Wall in Video Generation

Current Video Diffusion Models (VDMs) excel at generating short, high-quality clips but struggle significantly with scale. Most models treat a video as a single 4D tensor, creating a "memory wall"—fitting a 1,000-frame high-resolution video into GPU VRAM is computationally infeasible.

To bypass this limitation, researchers typically use chunked autoregressive generation. In this approach, the model generates a short segment and uses the final frames as a "seed" for the next. Unfortunately, this often results in temporal drift or discontinuous motion, making the video look like a series of stitched-together clips rather than a fluid scene. The core challenge is providing the model with enough temporal context to maintain consistency without causing computational costs to explode.

How FIFO-Diffusion Works

The authors introduce FIFO-Diffusion, which reimagines video generation as a streaming process using three key components:

  1. Diagonal Denoising: Instead of denoising a whole block of frames at the same noise level, the model maintains a queue of frames at different stages of the denoising process. The "head" of the queue is nearly finished (low noise), while the "tail" is just starting (pure noise). In each step, the model denoises the entire queue, pops the fully denoised frame from the head, and pushes a new noisy frame to the tail.
  2. Latent Partitioning: Standard models are trained on clips where every frame shares the same noise level. Diagonal denoising breaks this assumption, creating a "training-inference gap." Latent partitioning groups the queue into blocks to narrow the range of noise levels the model processes at once, aligning the input more closely with the model's training data.
  3. Lookahead Denoising: This technique allows noisier frames at the end of the queue to "look ahead" at cleaner versions of future frames from previous iterations. This improves noise prediction accuracy and helps maintain long-term consistency.

Crucially, this entire process requires zero additional training and works out-of-the-box with existing models like VideoCrafter2 or Open-Sora Plan.

Key Innovations

  • The Queue as a Sliding Window: By treating the denoising process as a FIFO queue, the model effectively utilizes a sliding window of context. Every frame "sees" a sufficient number of preceding frames throughout its denoising journey.
  • Constant Memory: Because the queue size is fixed to match the base model's training length, the memory required to generate a 10,000-frame video is identical to the memory required for a 16-frame video.
  • Balancing Reference Context: While referring to other frames aids consistency, referring to frames with drastically different noise levels can confuse the model. Latent Partitioning serves as the critical fix that balances temporal consistency with model stability.

Performance and Capabilities

The researchers evaluated FIFO-Diffusion using state-of-the-art pretrained baselines, including VideoCrafter1, VideoCrafter2, zeroscope, and Open-Sora Plan.

  • Infinite Length: The authors successfully generated videos longer than 10,000 frames with no visual degradation over time.
Astronaut walking on the moon across 10,000 frames
  • State-of-the-Art Metrics: On the UCF-101 benchmark, FIFO-Diffusion achieved a Fréchet Video Distance (FVD) of 596.64, significantly outperforming other long-video methods like PVDM (648.4) and StyleGAN-V (1773.4).
  • User Preference: In user studies, FIFO-Diffusion was preferred over competitors (like FreeNoise) in over 60% of cases for "Overall Preference" and "Plausibility of Motion."
  • Efficiency: While the base method is sequential, it is highly parallelizable. Using 8 GPUs, inference time was reduced from 12.37s per frame to just 1.84s per frame.

Limitations and Future Directions

  • The Training-Inference Gap: While Latent Partitioning reduces this gap, it does not eliminate it entirely. Future models could be trained specifically with a "diagonal denoising" objective to achieve even higher quality.
  • Computational Cost: Lookahead denoising effectively doubles the computation per step. Despite parallelization, it remains more computationally expensive than simple autoregressive methods.
  • Semantic Drift: While motion remains consistent, extremely long videos might still experience "semantic drift" (e.g., a character slowly changing appearance) if the prompt is not carefully managed, though multi-prompt sequencing shows promising mitigation.

Summary updated

BibTeX
@inproceedings{kim2024fifo,
  author = {Jihwan Kim and Junoh Kang and Jinyoung Choi and Bohyung Han},
  title = {{FIFO-Diffusion: Generating Infinite Videos from Text without Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=uikhNa4wam},
}
Figure