Temporal Shift GAN for Large Scale Video Generation

Andrés Muñoz, Mohammadreza Zolfaghari, Max Argus, Thomas Brox

Abstract

Generating high-fidelity video remains a significant challenge in computer vision due to the "3D tax"—the high computational cost and memory requirements of 3D convolutional neural networks. We introduce Temporal Shift GAN (TS-GAN), a novel framework that achieves state-of-the-art video generation by integrating a temporal shift mechanism into efficient 2D architectures. By shifting feature channels along the temporal axis, TS-GAN facilitates spatio-temporal modeling without increasing parameters or FLOPs. Furthermore, we propose the Symmetric-Similarity-Score (S3) for more reliable evaluation of generative models and introduce MaisToy, a dataset designed to assess semantic generalization. Our results on UCF-101 demonstrate a significant improvement in Inception Score, moving from 32.97 to 42.79.

Introduction

The core difficulty in video generation lies in maintaining spatio-temporal consistency. While 2D CNNs are computationally efficient, they often produce videos with flickering or disjointed motion because they lack a mechanism to correlate pixels across time. Conversely, 3D CNNs provide an intuitive solution but suffer from high parameter counts, leading to overfitting and excessive resource consumption. TS-GAN addresses this dilemma by enabling 2D kernels to "see" adjacent frames through simple channel shifting, providing spatio-temporal modeling at the cost of 2D computation.

Methodology: The TS-GAN Framework

TS-GAN decomposes the video generation task into two primary submodules: a Sequence Generator and a TSB Image Generator.

System Architecture

As shown in Figure 1, the Sequence Generator uses a Gated Recurrent Unit (GRU) to map a latent code into a sequence of points in latent space. To improve feature learning, the latent code is decomposed into three subspaces ($Z_A, Z_B, Z_C$) with varying variances, allowing the network to learn a hierarchy of features ranging from global identity to fine-grained motion dynamics. The training process employs a dual-discriminator setup: a 2D discriminator ($D_{image}$) to ensure per-frame realism and a 3D discriminator ($D_{video}$) to maintain motion consistency.

The TS-GAN architecture consists of a Sequence Generator and a TSB Image Generator, trained using a dual-discriminator approach for spatial and temporal realism.

TSB Image Generator and Temporal Shifting

The "secret sauce" of the model is the TSB Image Generator, based on the BigGAN architecture. It incorporates a Temporal Shift Module (TSM) within its residual blocks. Instead of using expensive 3D convolutions, TSM simply shifts a subset of feature channels along the temporal dimension, allowing neighboring frames to exchange information for zero extra parameters.

Detailed view of the TSB-ResNet Image Generator and the Temporal Residual Block, which integrates the channel-shifting mechanism to ensure temporal coherence.

Evaluation: Beyond Inception Score

Standard metrics like the Inception Score (IS) can be unreliable for video, as they may fail to detect mode collapse or poor motion quality. We introduce the Symmetric-Similarity-Score (S3), which uses a cross-evaluation approach: training a classifier on synthetic data and testing it on real data (and vice versa). This provides a more robust signal of whether the model has truly learned the underlying distribution.

To test semantic generalization, we introduce the MaisToy dataset, featuring clay figures with various shapes, colors, and motions. By withholding specific attribute combinations (e.g., "red square moving right") during training, we can evaluate if the GAN can "imagine" novel combinations, proving it has learned independent semantic concepts rather than just memorizing samples.

Results and Discussion

TS-GAN achieves state-of-the-art performance on the UCF-101 dataset, reaching an Inception Score of 42.79, a massive jump over the previous best of 32.97 (DVD-GAN). Qualitative results show that the model maintains superior structural integrity over time; for instance, human limbs remain consistent across frames without the random morphing common in standard 2D GANs. Experiments on MaisToy further confirm the model's ability to generalize to unseen attribute combinations, demonstrating a deep understanding of the dataset's semantics.

Conclusion

Temporal Shift GAN offers a highly efficient alternative to 3D-based video generation models. By leveraging the temporal shift mechanism, it provides the benefits of spatio-temporal modeling with the efficiency of 2D convolutions. Coupled with the S3 metric and the MaisToy dataset, this work provides a comprehensive framework for developing and evaluating high-resolution video generation models.

Summary updated

BibTeX
@inproceedings{munoz2021temporal,
  author = {Andrés Muñoz and Mohammadreza Zolfaghari and Max Argus and Thomas Brox},
  title = {{Temporal Shift GAN for Large Scale Video Generation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  doi = {10.1109/wacv48630.2021.00322},
}
Figure