Markov Decision Process for Video Generation

Vladyslav Yushchenko, Nikita Araslanov, Stefan RothWorkshops @ ICCV 2019 · OpenReview

TL;DR

This paper tackles the problem of temporal artifacts like freezing and looping in generated videos by reformulating video generation as a Markov Decision Process (MDP). This allows models to consider an infinite forecast horizon, leading to more temporally coherent and diverse video generation, even with shorter training sequences.

What Problem Does This Paper Address?

Generating realistic videos is significantly harder than generating static images due to the added temporal dimension. Existing state-of-the-art video generation models, like MoCoGAN, often suffer from temporal artifacts such as "freezing" (where the video stops moving) or "looping" (where a segment of the video repeats indefinitely). These issues arise because these models are typically trained on fixed-length video subsequences, limiting their ability to model long-term temporal dependencies. This paper aims to overcome these limitations by proposing an MDP-based approach to video generation.

Methods

The core of the paper's contribution lies in reformulating video generation as a Markov Decision Process (MDP). In this framework:

  • States: Represented by the hidden recurrent state of the generator.
  • Actions: The frames predicted by the generator.
  • Rewards: Scores provided by the video discriminator, indicating temporal coherence.

The key innovation is to modify the video discriminator to predict not just an immediate reward but also a Q-value, which approximates the expected cumulative future reward. This is achieved using a Temporal Convolutional Network (TCN) architecture that allows for reward causality, meaning the reward at a given timestep only depends on past and present states and actions. By training the generator to maximize this Q-value, the model is encouraged to consider long-term consequences of its predictions, effectively approximating an infinite forecast horizon. This MDP formulation is integrated into the existing MoCoGAN framework with minimal modifications.

Additionally, the paper introduces new metrics, t-DSSIM and t-PSNR, to quantify temporal diversity. These metrics are data-agnostic and measure the similarity between frames in a generated sequence, providing a more interpretable way to detect artifacts compared to traditional metrics like Inception Score (IS) and Fréchet Video Distance (FVD).

Datasets

The paper uses the following datasets:

  • Human Actions: A dataset of 81 videos of 9 people performing 9 actions, downscaled to 64x64 pixels. For training, 4 action classes were used, resulting in 72 videos.
  • UCF-101: A larger dataset with 13,220 videos across 101 action categories, known for its diversity in scenes, motion dynamics, and viewpoints.
  • Tai-Chi: A subset of UCF-101 containing 72 Tai Chi videos, used for ablation studies due to its moderate complexity.

Key Insights and Ideas

  • Fixed-length training is a bottleneck: The paper strongly suggests that training on fixed-length video subsequences is the primary cause of temporal artifacts like freezing and looping.
  • MDP for infinite horizon: Reformulating video generation as an MDP allows the model to implicitly learn to optimize for an infinite forecast horizon, overcoming the limitations of fixed-length training.
  • Reward causality is crucial: Modifying the discriminator to ensure reward causality (i.e., rewards only depend on past and present) is essential for the MDP formulation to work effectively.
  • New metrics are interpretable: The proposed t-DSSIM and t-PSNR metrics offer a data-agnostic and interpretable way to quantify temporal diversity, complementing existing metrics.
  • MDP improves diversity without sacrificing frame quality: The MDP approach significantly improves temporal diversity and reduces artifacts, while maintaining comparable per-frame quality to baseline models.

Key Results

  • Temporal Diversity Improvement: The MDP-based model consistently improved temporal diversity as measured by t-PSNR and t-DSSIM across datasets. For example, on the Tai Chi dataset, t-DSSIM increased from 0.0135 (MoCoGAN) to 0.0031 (MDP model with γ=0.7, β=0.7), and t-PSNR decreased from 36.50 to 57.34.
  • FVD Score Improvement: The MDP model also showed improvements in FVD scores, particularly on the more complex UCF-101 dataset.
  • Memory Efficiency: The MDP approach is more memory-efficient than simply increasing the training sequence length (K) in MoCoGAN.
  • Qualitative Improvements: Visual comparisons showed that the MDP model generated videos with more perceivable motion and fewer artifacts compared to MoCoGAN, especially in complex scenes.
  • IS Score: While the primary focus was on temporal diversity, the IS score showed slight variations, sometimes slightly lower than MoCoGAN, which the authors attribute to the sensitivity of IS to evaluation specifics and data priors.

Limitations and Future Work

  • Limitations:
    • The paper notes that the IS and FVD scores can be sensitive to evaluation specifics and data priors, potentially making them less reliable in certain scenarios.
  • The proposed metrics (t-DSSIM, t-PSNR) are permutation invariant and do not assess the quality of individual frames themselves. They are also not robust to random noise.
  • While the MDP model improves temporal diversity, there can be slight drops in the Inception Score compared to some baselines.
  • Future Work:
    • The authors suggest maintaining the recurrent state between training iterations as a promising extension.
  • Imposing a tractable prior on the state is another avenue for future research, potentially leading to generating even longer and more coherent video sequences.

Summary updated

Abstract

We identify two pathological cases of temporal inconsistencies in video generation: video freezing and video looping. To better quantify the temporal diversity, we propose a class of complementary metrics that are effective, easy to implement, data agnostic, and interpretable. Further, we observe that current state-of-the-art models are trained on video samples of fixed length thereby inhibiting long-term modeling. To address this, we reformulate the problem of video generation as a Markov Decision Process (MDP). The underlying idea is to represent motion as a stochastic process with an infinite forecast horizon to overcome the fixed length limitation and to mitigate the presence of temporal artifacts. We show that our formulation is easy to integrate into the state-of-the-art MoCoGAN framework. Our experiments on the Human Actions and UCF-101 datasets demonstrate that our MDP-based model is more memory efficient and improves the video quality both in terms of the new and established metrics.
BibTeX
@misc{yushchenko2019markov,
  author = {Vladyslav Yushchenko and Nikita Araslanov and Stefan Roth},
  title = {{Markov Decision Process for Video Generation}},
  year = {2019},
  eprint = {1909.12400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.12400},
}
Figure