Source-linked AI summary

FIFO-Diffusion: Generating Infinite Videos from Text without Training

Jihwan Kim, Junoh Kang, Jinyoung Choi, Bohyung Han

arXiv:2405.11473v4cs.CVcs.AI

TL;DR

Long-video generation with diffusion models is limited by short-clip training and the difficulty of scaling video representations. FIFO-Diffusion addresses this with queue-based diagonal denoising, latent partitioning, and lookahead denoising, producing high-quality long videos with constant memory and no additional training. The method outperforms compared approaches and maintains scene consistency and motion, while relying on bounded-noise and Lipschitz-continuity assumptions in its theoretical analysis.

  • Problem

    Long video generation remains limited because video diffusion models often process videos as large 4D tensors and are commonly trained on short clips.

    Source: §1 · p. 2
  • Method

    FIFO-Diffusion uses queue-based diagonal denoising with latent partitioning and lookahead denoising to extend pretrained short-clip diffusion models without training.

    Source: §1 · p. 2, §3.1 · p. 3
  • Results

    FIFO-Diffusion generates extremely long, high-quality videos with maintained scene consistency and expressive motion, outperforming compared methods in reported evaluations.

    Source: §1 · p. 2, §4.2 · pp. 6, 8, §4.3 · p. 8
  • Takeaways & Limitations

    The approach enables arbitrarily long video generation with constant memory regardless of target length and is suitable for parallel multi-GPU inference.

    Source: §1 · p. 2, §6 · p. 10

    The theoretical analysis assumes bounded noise prediction and a K-Lipschitz-continuous diffusion model.

    Source: §3.2 · p. 5

Abstract

from arXiv · show

We propose a novel inference technique based on a pretrained diffusion model for text-conditional video generation. Our approach, called FIFO-Diffusion, is conceptually capable of generating infinitely long videos without additional training. This is achieved by iteratively performing diagonal denoising, which simultaneously processes a series of consecutive frames with increasing noise levels in a queue; our method dequeues a fully denoised frame at the head while enqueuing a new random noise frame at the tail. However, diagonal denoising is a double-edged sword as the frames near the tail can take advantage of cleaner frames by forward reference but such a strategy induces the discrepancy between training and inference. Hence, we introduce latent partitioning to reduce the training-inference gap and lookahead denoising to leverage the benefit of forward referencing. Practically, FIFO-Diffusion consumes a constant amount of memory regardless of the target video length given a baseline model, while well-suited for parallel inference on multiple GPUs. We have demonstrated the promising results and effectiveness of the proposed methods on existing text-to-video generation baselines. Generated video examples and source codes are available at our project page.

1 Introduction

FIFO-Diffusion is a training-free inference technique for generating arbitrarily long videos from pretrained short-clip video diffusion models. It uses diagonal denoising with latent partitioning and lookahead denoising to address training-inference mismatch while maintaining quality over time.

1 Introduction

  • Diagonal denoising processes frames at increasing noise levels, allowing noisier frames to reference cleaner preceding frames but creating a training-inference gap.Latent partitioning reduces this gap, while lookahead denoising exploits forward references to less noisy frames.Source: §1 · p. 2
  • FIFO-Diffusion generates arbitrarily long videos without additional training from video diffusion models pretrained on short clips.The method uses a queue-based diagonal denoising process that outputs fully denoised frames while adding new noisy frames.Source: §1 · p. 2
  • FIFO-Diffusion uses constant memory regardless of generated video length and supports straightforward parallel inference across multiple GPUs.Source: §1 · p. 2
  • Experiments on four U-Net- and DiT-based baselines show extremely long videos with natural motion and no quality degradation over time.Source: §1 · p. 2

2 Text-to-Video Diffusion Models

Text-to-video diffusion models encode videos into latent representations, perturb them with scheduled noise, and iteratively denoise them using a learned noise-prediction network. The formulation combines an encoder, decoder, text condition, and diffusion sampler to reconstruct video frames.

2 Text-to-Video Diffusion Models

  • Text-to-video diffusion models use an encoder, decoder, and noise-prediction network to learn text-conditioned video distributions.Videos are represented as sequences of latent frame representations before diffusion denoising.Source: §2 · p. 2
  • A video latent is formed by concatenating encoded frames, then perturbed with Gaussian noise at a sampled diffusion timestep.The perturbed latent uses predefined scale and noise coefficients, with the text condition supplied to the model.Source: §2 · pp. 2–3
  • Figure 2 illustrates diagonal denoising, where frames with increasing noise levels are processed together and the fully denoised frame is dequeued while new random noise is enqueued.Source: Figure 2 · p. 3
  • The model generates video by iteratively denoising an initial random latent over a scheduled sequence of diffusion steps using a sampler such as DDIM.Source: §2 · p. 3

3 FIFO-Diffusion

FIFO-Diffusion generates arbitrarily long videos from a short-clip pretrained model by iteratively denoising a queue of frames with increasing noise levels. Latent partitioning reduces the resulting training-inference gap, while lookahead denoising exploits cleaner preceding frames to improve noise prediction.

3.1 Diagonal denoising

  • FIFO-Diffusion generates arbitrary-length videos by diagonal denoising a queue, dequeuing each fully denoised frame and enqueuing a new noisy latent.The method initializes the queue from random noise and uses a first-in-first-out process without additional training.Source: §3.1 · p. 3
  • The sliding-window procedure uses O(f) memory per step for N frames, independent of N, and propagates context with stride 1 to later frames.Unlike chunked autoregressive methods that condition mainly on the last generated frame, FIFO-Diffusion allows each frame to reference sufficient preceding context.Source: §3.1 · p. 4

3.2 Latent partitioning

  • Latent partitioning extends the queue to nf frames, divides it into n blocks, and processes each block independently to narrow the maximum noise-level difference.Under boundedness and Lipschitz assumptions, the diagonal-denoising error is bounded by the noise-level difference, so narrowing that difference reduces the gap.Source: §3.2 · pp. 4–5
  • Latent partitioning also supports parallel multi-GPU inference and uses nf inference steps, reducing discretization error while increasing inference steps with the extended queue.Its throughput benefit comes from processing partitioned blocks in parallel.Source: §3.2 · p. 4

3.3 Lookahead denoising

  • Lookahead denoising updates only the later half of the queue with stride f′ = ⌊f/2⌋, ensuring each updated frame references at least f′ clearer frames.The method requires twice the computation of original diagonal denoising, but this overhead can be addressed through parallelization; Figure 5 reports improved noise-prediction performance except at a few early time steps.Source: §3.3 · pp. 5–6, Figure 5 · p. 6

4 Experiment

Experiments show that FIFO-Diffusion generates long, coherent videos, compares favorably with existing methods, and maintains constant memory with effective quality improvements from its proposed components.

4.2 Qualitative results

  • FIFO-Diffusion generates videos longer than 10K frames from a 16-frame pretrained baseline while preserving visual quality and semantic information across later frames.The method also maintains motion consistency and supports extensive motion driven by changing prompts.Source: §4.2 · p. 6
  • FIFO-Diffusion significantly outperforms FreeNoise, Gen-L-Video, and LaVie + SEINE in motion smoothness, frame quality, and scene diversity.FreeNoise struggles with dynamic scenes, Gen-L-Video often blurs backgrounds, and LaVie + SEINE accumulates errors and shows chunk discontinuities.Source: §4.2 · p. 8

4.3 Quantitative results

  • FIFO-Diffusion outperforms all compared long-video methods on FVD128 and IS, including PVDM-L (400-400s), while using 64 inference steps without additional training.PVDM-L iteratively generates 16 frames over 400 diffusion steps, whereas FIFO-Diffusion uses lookahead denoising with 64 steps.Source: §4.3 · p. 8, Table 1 · p. 8

4.4 Computational cost

  • FIFO-Diffusion uses constant memory for arbitrary video lengths, while FreeNoise scales memory with target length and Gen-L-Video is slowest because of redundant computation.Multiple GPUs can reduce FIFO-Diffusion sampling time, although lookahead denoising increases computational demand.Source: Table 2 · p. 8, §4.4 · p. 9

4.5 Ablation study

  • Latent partitioning improves visual quality, temporal consistency, and training-inference alignment, while lookahead denoising further reduces flickering and relative MSE.Together, the methods achieve relative MSE losses below 1.0 when lookahead denoising is combined with latent partitioning.Source: §4.5 · p. 9, Table 3 · p. 9

5 Related work

Related work spans video diffusion architectures, long-video prediction strategies, and sliding-window diffusion methods with varying noise levels. FIFO-Diffusion differs by enabling sequence generation through training-free inference with standard short-video diffusion models.

5.2 Long video generation

  • Long-video methods generally predict future frames autoregressively or generate frame sets hierarchically, with approaches including Video LDM, MCVD, FDM, and SEINE.Autoregressive methods can produce indefinitely long videos but depend on sequential prediction, while masked-learning methods support prediction and interpolation.Source: §5.2 · p. 10

5.3 Diffusion models with latents of different noise levels

  • Sliding-window diffusion methods use temporally varying noise levels and train diffusion models from scratch, incurring substantial computational costs for text-to-video generation.FIFO-Diffusion instead performs training-free inference with standard models trained on uniformly noisy latents.Source: §5.3 · p. 10
  • FIFO-Diffusion combines frame index and diffusion time into a one-dimensional queue, replacing the nested-loop processing used by a prior sequence-generation method.This design improves efficiency by using a single loop.Source: §5.3 · p. 10

6 Conclusion

FIFO-Diffusion generates infinitely long videos from text without tuning short-clip video diffusion models, using diagonal denoising with latent partitioning and lookahead denoising.

  • FIFO-Diffusion enables infinitely long video generation from text without tuning video diffusion models pretrained on short clips.Source: §6 · p. 10
  • Diagonal denoising processes increasingly noisy latents in a first-in-first-out queue, while latent partitioning reduces the training-inference gap and lookahead denoising exploits cleaner reference frames.Source: §6 · p. 10
  • The training-inference gap persists because diagonal denoising changes the model’s input distribution, motivating future integration of the paradigm into training.Source: §6 · p. 10

A Details for Lemma 3.2 and Theorem 3.3

The appendix justifies a Lipschitz-continuity assumption for the diffusion model’s noise predictor by bounding its differential function under inference conditions.

  • The proof begins from bounded noise prediction, asserting a finite bound M for ||ϵ(·)||.Source: §A.1 · p. 13
  • During inference, latents and noise levels lie in bounded ranges with σmin > 0, supporting analysis of the predictor over the relevant domain.Source: §A.2 · p. 13
  • Gaussian-smoothed data terms are twice differentiable and continuous, while their denominator is bounded below, making the differential function bounded and Lipschitz continuous.Source: §A.2 · p. 13
  • Because ϵθ estimates the ideal predictor ϵ, the appendix treats Lipschitz continuity of ϵθ as a justified assumption.Source: §A.2 · p. 13

B Implementation details

The implementation uses several pretrained video diffusion baselines, fixed experimental settings, and FIFO-Diffusion variants with parallelizable queue-processing procedures and qualitative evaluations.

Implementation details

Evaluation

  • The experiments randomly generate 30 prompts and 100-frame videos, then compare FIFO-Diffusion with FreeNoise across preference, motion, text fidelity, and aesthetic criteria.Source: §B.1 · p. 14

Algorithms

Qualitative results

Multi-prompt generation

  • Multiple prompts are applied sequentially by changing the conditioning prompt over specified frame intervals.Source: §E.1 · p. 23

E.2 Qualitative results

The qualitative-results section presents multi-prompt videos generated with VideoCrafter2, with frame indices shown to document temporal progression.

Qualitative results

  • Figures 16 and 17 provide qualitative multi-prompt generation results based on VideoCrafter2.Source: §E.2 · p. 23
  • The displayed videos use three prompts in Figure 16 and two prompts in Figure 17, with each frame labeled by its index.Source: Figure 16 · p. 23, Figure 17 · p. 24

F Qualitative comparisons with other long video generation methods

Figures 18 and 19 present qualitative comparisons between FIFO-Diffusion and other long-video generation methods, using frame-indexed examples.

G Motion evaluation

The paper evaluates motion using optical-flow magnitudes and examines the contributions of latent partitioning and lookahead denoising through ablations.

Motion evaluation

  • Over 65% of FreeNoise videos fall in the first optical-flow bin, whereas FIFO-Diffusion produces a broader motion range.The videos use randomly sampled prompts from the MSR-VTT test set.Source: G Motion evaluation · p. 27, Figure 20 · p. 27

Ablation study

  • The ablation compares diagonal denoising alone, diagonal denoising plus latent partitioning with n=4, and the full addition of lookahead denoising.DD, LP, and LD denote diagonal denoising, latent partitioning, and lookahead denoising, respectively.Source: H Ablation study · p. 28, Figure 21 · p. 28, Figure 22 · p. 29

Potential Broader Impact

  • The paper notes that pretrained video diffusion models can potentially synthesize unexpectedly inappropriate content because the method requires no additional training.The authors also state that the method could mildly address ethical concerns associated with generative-model training data.Source: I Potential Broader Impact · p. 29
Loading 2405.11473v4…