GriDiT: Factorized Grid-Based Diffusion for Efficient Long Image Sequence Generation
Snehal Singh Tomar, Alexandros Graikos, Arjun Krishna, Dimitris Samaras, Klaus Mueller
TL;DR
GriDiT reframes long image-sequence generation by representing sequences as grid images of subsampled frames and factorizing synthesis into a low-resolution coarse sequence (Stage 1) followed by high-resolution per-frame refinement (Stage 2). The approach leverages a Diffusion Transformer with 3D positional embeddings and a Grid-based Autoregressive Sampling scheme to enable arbitrary-length generation with strong long-range coherence. Empirical results across SkyTimelapse, Taichi, Minecraft, and 3D CT datasets show superior quality, improved temporal consistency, and at least 2× faster inference than state-of-the-art methods, while requiring less training data in data-constrained domains. The method generalizes across domains without domain-specific priors and offers a simpler, scalable data representation for image-sequence generation, with notable potential impact in medical imaging and other long-form video applications. $L = 12N - 4$ captures the relation between iteration count and resulting sequence length in the AR sampling procedure, underscoring the efficiency of the sampling strategy, and 3D positional embeddings mitigate looping artifacts observed with purely 2D embeddings.
Abstract
Modern deep learning methods typically treat image sequences as large tensors of sequentially stacked frames. However, is this straightforward representation ideal given the current state-of-the-art (SoTA)? In this work, we address this question in the context of generative models and aim to devise a more effective way of modeling image sequence data. Observing the inefficiencies and bottlenecks of current SoTA image sequence generation methods, we showcase that rather than working with large tensors, we can improve the generation process by factorizing it into first generating the coarse sequence at low resolution and then refining the individual frames at high resolution. We train a generative model solely on grid images comprising subsampled frames. Yet, we learn to generate image sequences, using the strong self-attention mechanism of the Diffusion Transformer (DiT) to capture correlations between frames. In effect, our formulation extends a 2D image generator to operate as a low-resolution 3D image-sequence generator without introducing any architectural modifications. Subsequently, we super-resolve each frame individually to add the sequence-independent high-resolution details. This approach offers several advantages and can overcome key limitations of the SoTA in this domain. Compared to existing image sequence generation models, our method achieves superior synthesis quality and improved coherence across sequences. It also delivers high-fidelity generation of arbitrary-length sequences and increased efficiency in inference time and training data usage. Furthermore, our straightforward formulation enables our method to generalize effectively across diverse data domains, which typically require additional priors and supervision to model in a generative context. Our method consistently outperforms SoTA in quality and inference speed (at least twice-as-fast) across datasets.
