Efficient Video Prediction via Sparsely Conditioned Flow Matching

Aram Davtyan, Sepehr Sameni, Paolo Favaro

Abstract

Video prediction is a computationally intensive task that typically requires processing extensive historical frame data to maintain temporal consistency. We present RIVER (Random frame conditioned flow Integration for VidEo pRediction), a novel generative model that achieves state-of-the-art video prediction quality with significantly reduced computational overhead. By combining latent flow matching with a unique sparse conditioning strategy, RIVER breaks the linear cost of history associated with traditional diffusion-based models, requiring an order of magnitude less training compute while maintaining high fidelity.

Introduction

Predicting future frames in a video sequence is a fundamental challenge in computer vision. To ensure temporal coherence, models must effectively "look back" at past frames. In current diffusion-based architectures, this creates a significant bottleneck: as the history window grows, memory and compute requirements scale linearly, making long-term prediction prohibitively expensive. Existing solutions, such as Recurrent Neural Networks or fixed-window transformers, often struggle with vanishing gradients or high inference costs. RIVER addresses these limitations by introducing a lightweight architecture capable of handling arbitrarily long histories on modest hardware.

Methodology

RIVER introduces three primary innovations to streamline the video generation process:

  1. Latent Flow Matching: Unlike standard diffusion models that learn to reverse a noise process, RIVER utilizes Flow Matching. This technique learns a vector field to map a simple noise distribution to the complex distribution of video frames, offering a more direct and efficient training path.
  2. Sparsely Conditioned Integration: This core innovation involves conditioning the model on only two frames at each step of the ODE integration: the immediate previous frame (the reference) and one additional frame selected randomly from the further past (the context). This constant input size ensures that computational costs do not scale with video length.
  3. Warm-start Sampling: By initializing the integration process from a noisy version of the previous frame rather than pure Gaussian noise, RIVER exploits the high similarity between consecutive frames, reducing the required sampling steps by up to 10x.
The RIVER architecture utilizes a sparse conditioning strategy, selecting a random context frame and a reference frame to guide the flow matching process.

The model operates within the latent space of a pretrained VQGAN and employs a U-ViT (Vision Transformer with skip connections) as its generative engine.

Experimental Setup

The model was evaluated across three diverse benchmarks:

  • KTH: Focused on human actions (e.g., walking, jogging) at 64x64 resolution.
  • BAIR Robot Pushing: Testing interaction dynamics at both 64x64 and 256x256 resolutions.
  • CLEVRER: A synthetic dataset used to evaluate the model's understanding of physical collisions and long-term causal interactions.

Results and Discussion

RIVER demonstrates exceptional efficiency compared to existing baselines. On the BAIR dataset, it achieved a competitive Fréchet Video Distance (FVD) of 106 using only 625 GB×Hours of compute—a fraction of the 294,912 GB×Hours required by the previous state-of-the-art, FitVid.

RIVER achieves state-of-the-art FVD scores while requiring significantly less training compute (measured in GB x Hours) compared to existing diffusion and GAN-based models.

Key Insights

  • Randomness as Regularization: Randomly sampling the context frame allows the model to effectively integrate the entire history over the course of generation without processing it simultaneously.
  • Reference Frame Criticality: While the random context provides global structure, the immediate previous frame is essential for maintaining motion velocity and preventing visual flickering.
  • Inference Speed: RIVER can generate 16 frames in approximately 10 seconds on a single RTX 3090 GPU, outperforming comparable diffusion models like RaMViD by a factor of four.

Conclusion

RIVER represents a significant step toward efficient, high-resolution video generation. While the model currently faces some limitations—such as artifacts inherited from the per-frame VQGAN and occasional stochastic "hallucinations" in complex scenes—its ability to perform visual planning and long-term prediction with minimal compute is a major advancement. Future work will explore temporal VQGANs and more sophisticated sampling schedulers to further enhance temporal consistency.

Summary updated

BibTeX
@inproceedings{davtyan2023efficient,
  author = {Aram Davtyan and Sepehr Sameni and Paolo Favaro},
  title = {{Efficient Video Prediction via Sparsely Conditioned Flow Matching}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.02126},
}
Figure