Diffusion Transformer Captures Spatial-Temporal Dependencies: A Theory for Gaussian Process Data
Hengyu Fu, Zehao Dou, Jiawei Guo, Mengdi Wang, Minshuo Chen
TL;DR
This paper develops a theoretical framework for diffusion transformers that capture spatial-temporal dependencies in sequential data modeled as Gaussian processes with covariance $m{Gamma} mskip-3muigotimesm{Sigma}$. It introduces score-function approximation by unrolling gradient descent in a transformer and proves a Transformer-based approximation theorem, along with a sample-complexity bound showing how decay of temporal correlations improves learning efficiency. The results are-supported by numerical experiments on GP data and semi-synthetic video data, showing that attention layers learn and reveal the underlying temporal kernel and spatial covariance, respectively. The work provides a principled bridge between diffusion models and transformers for sequential data and suggests practical guidelines for leveraging correlation decay to improve learning efficiency in long sequences.
Abstract
Diffusion Transformer, the backbone of Sora for video generation, successfully scales the capacity of diffusion models, pioneering new avenues for high-fidelity sequential data generation. Unlike static data such as images, sequential data consists of consecutive data frames indexed by time, exhibiting rich spatial and temporal dependencies. These dependencies represent the underlying dynamic model and are critical to validate the generated data. In this paper, we make the first theoretical step towards bridging diffusion transformers for capturing spatial-temporal dependencies. Specifically, we establish score approximation and distribution estimation guarantees of diffusion transformers for learning Gaussian process data with covariance functions of various decay patterns. We highlight how the spatial-temporal dependencies are captured and affect learning efficiency. Our study proposes a novel transformer approximation theory, where the transformer acts to unroll an algorithm. We support our theoretical results by numerical experiments, providing strong evidence that spatial-temporal dependencies are captured within attention layers, aligning with our approximation theory.
