GriDiT: Factorized Grid-Based Diffusion for Efficient Long Image Sequence Generation

Snehal Singh Tomar, Alexandros Graikos, Arjun Krishna, Dimitris Samaras, Klaus Mueller

TL;DR

This paper introduces GriDiT, a novel method for generating long, high-fidelity image sequences by factorizing the process into low-resolution coarse sequence generation and high-resolution frame refinement. By treating sequences as grid images and leveraging Diffusion Transformers, GriDiT achieves superior quality, efficiency, and arbitrary-length generation compared to existing state-of-the-art methods.

What Problem Does This Paper Address?

Generating realistic and coherent image sequences, especially long ones, is a significant challenge in deep learning. Current methods often treat sequences as large, sequential tensors, which leads to computational bottlenecks, limited sequence length, and slow inference. This makes it difficult to capture long-range temporal dependencies effectively. The authors aim to overcome these limitations by proposing a more efficient and effective way to model image sequence data.

Methods

GriDiT employs a two-stage approach:

  1. Stage 1: Coarse Sequence Generation (Grid-based Diffusion): Instead of processing sequences as large tensors, GriDiT reorganizes subsampled frames into grid images. This allows a standard 2D Diffusion Transformer (DiT) model, augmented with 3D positional embeddings, to learn the coarse dynamics of the sequence at a lower resolution. This factorization avoids the computational burden of high-resolution, long sequences.
  2. Stage 2: Frame Refinement (Super-Resolution): Individual frames from the generated coarse sequence are then individually super-resolved to high resolution using a conditional DiT-based super-resolution model. This stage adds sequence-independent high-resolution details.

A key innovation is the Grid-based Autoregressive Sampling Algorithm, which enables the generation of arbitrarily long sequences by iteratively generating grid elements and interpolating frames. This algorithm leverages diffusion inpainting principles to ensure spatial and temporal coherence.

Datasets

The authors evaluate GriDiT on several datasets:

  • SkyTimelapse: For general video generation, focusing on temporal consistency and photorealism.
  • CT-RATE: For 3D CT volume generation, requiring modeling of high-frequency structures and long-range consistency.
  • Taichi: For human action recognition, demanding accurate modeling of motion at both coarse and fine scales.
  • Minecraft: Used for evaluating performance on videos with significant motion content.

Key Insights and Ideas

  • Factorization is Key: Treating image sequences as large tensors is inefficient. Factorizing generation into low-resolution coarse sequence modeling and high-resolution frame refinement significantly improves efficiency and quality.
  • Grid Representation for Sequences: Representing sequences as grid images allows standard 2D image generation models (like DiT) to be adapted for sequence generation without architectural changes, while still capturing temporal information.
  • 3D Positional Embeddings are Crucial: For grid-based sequence modeling, 3D positional embeddings are essential to capture both spatial location within a patch and its temporal location within the sequence, mitigating "looping artifacts."
  • Autoregressive Sampling for Long Sequences: The proposed Grid-based Autoregressive Sampling algorithm is vital for generating arbitrarily long sequences by iteratively building upon previous outputs, ensuring coherence.
  • Custom SR for Domain Adaptation: Fine-tuning a super-resolution model (Stage 2) is necessary for optimal performance, especially on out-of-distribution domains like medical imaging, outperforming off-the-shelf SR methods.

Key Results

  • Superior Synthesis Quality: GriDiT achieves superior perceptual quality and spatiotemporal consistency compared to SoTA methods across various datasets.
  • Efficiency Gains: The method offers a >2x speedup in inference rates and requires significantly less training data (e.g., 10% for comparable performance in data-critical domains).
  • Arbitrary-Length Generation: GriDiT can generate sequences of arbitrary length (up to 1024 frames) with high fidelity.
  • Generalization: The approach generalizes well across diverse data domains without requiring domain-specific priors.
  • Qualitative Improvements: Visual comparisons show more coherent, sharper, and less artifact-prone sequences compared to baselines, especially for longer sequences. For example, on the Taichi dataset, GriDiT maintains scene consistency over 1024 frames where others fail.

Limitations and Future Work

  • Fine Motion Capture: Modeling motion at low resolution might lead to some loss in capturing very fine motion details, potentially causing inconsistencies for unobservable moving objects.
  • Interpolation Artifacts: The interpolation involved in the sampling scheme might cause undesired smoothening for very high frame rate videos.
  • Efficient Autoregressive Sampling: Further improvements in diffusion inpainting algorithms could enhance the efficiency of long-form video generation.
  • Scaling Laws: Investigating scaling laws for larger models and comparing them with state-of-the-art large models is a promising future direction.
  • Multi-modal Conditioning: Incorporating multi-modal conditioning and exploring ethics and safety aspects are suggested for future work.

Summary updated

BibTeX
@article{tomar2025gridit,
  author = {Snehal Singh Tomar and Alexandros Graikos and Arjun Krishna and Dimitris Samaras and Klaus Mueller},
  title = {{GriDiT: Factorized Grid-Based Diffusion for Efficient Long Image Sequence Generation}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=QLD47Ou5lp},
}
Figure