Paying Attention to Video Generation

Rishika Bhagwatkar, Khurshed Fitter, Saketh Bachu, Akshay R. Kulkarni, Shital S. ChiddarwarPreregister @ NeurIPS 2020

TL;DR

This paper proposes a novel approach to video generation by combining an Attention-based Discretized Autoencoder (ADAE) for frame representation with a Generative Pre-trained Transformer (GPT) for sequential modeling. While the GPT component performed as expected, the ADAE struggled with mode collapse, leading to the generation of repetitive frames, highlighting the critical need for robust latent space representations in video generation.

What Problem Does This Paper Address?

Generating realistic and diverse video sequences is a significant challenge in machine learning. Existing methods often focus on pixel-level transformations or rely on complex generative models like GANs, which can be computationally expensive and difficult to train. The authors aim to bridge the gap between image and temporal data modeling by formulating video generation as a sequence modeling task on latent representations of frames, drawing inspiration from the success of Transformers in Natural Language Processing (NLP). They seek to leverage advancements in sequential modeling for video generation, moving beyond pixel-level prediction to a more abstract, latent space representation.

Methods

The core of the proposed method is a novel Attention-based Discretized Autoencoder (ADAE). Unlike traditional autoencoders that map inputs to a continuous latent space, the ADAE discretizes this space into a finite codebook of vectors. An input frame is then encoded into a latent vector that is a soft-aligned linear combination of these codebook vectors, determined by an attention mechanism. This approach aims to create a finite, learnable basis for frame representations, analogous to word embeddings in NLP.

This ADAE is then coupled with a Generative Pre-trained Transformer (GPT). The GPT, utilizing only the decoder blocks of the Transformer architecture, takes a sequence of these ADAE-generated frame embeddings and predicts the next frame embedding. The GPT's masked self-attention mechanism is crucial for learning sequential dependencies. The authors also explore various aspects of their model, including different attention metrics, codebook sizes, encoder architectures (ResNet-based), and loss functions, in an effort to mitigate observed issues.

Datasets

The authors evaluated their approach on three publicly available datasets:

  • BAIR Robot Pushing Dataset: Contains videos of robots interacting with objects.
  • Sky Time-lapse Dataset: Features time-lapse videos of the sky.
  • Dinosaur Game Dataset: Curated clips from the Google Chrome "Dinosaur Game."

All frames were resized to 64x64x3 pixels for consistent comparison with prior work.

Key Insights and Ideas

  • Mode Collapse is a Pervasive Problem: The most significant finding is the persistent mode collapse, where the model generates identical or very similar frames repeatedly, regardless of hyperparameter tuning or training strategy.
  • ADAE's Role in Mode Collapse: The authors pinpoint the ADAE, specifically its attention mechanism, as the root cause of mode collapse. The attention scores tend to become "peaky," forcing the model to select a single codebook vector and thus collapsing the latent space to a single representation.
  • GPT's Functionality: The GPT component itself was found to function correctly when trained on vector sequences, validating its capability for sequential modeling. The issue lay in the quality of the input embeddings it received from the ADAE.
  • Importance of Robust Latent Representations: The study strongly emphasizes that successful sequential modeling for video generation hinges on having reliable and diverse latent space representations of frames. The ADAE's inability to provide this diversity is the primary bottleneck.
  • Attention Mechanism Nuances: While attention is a powerful tool, its application in the ADAE for selecting codebook vectors proved problematic, leading to a "hard-choice" selection rather than a nuanced combination.

Key Results

  • Quantitative Performance: The paper presents tables comparing their "Ours" model against state-of-the-art (SOTA) methods on Frechet Video Distance (FVD) and Peak Signal to Noise Ratio (PSNR)/Structural Similarity Index (SSIM).
  • On the BAIR dataset, their FVD score of 407.4 is significantly higher than SOTA methods like TriVD-GAN-FP (103.3) and Video Transformer (94±2), indicating poorer video quality.
  • On the Sky Time-lapse dataset, their PSNR (2.445) and SSIM (0.192) scores are drastically lower than DTVNet (29.917 PSNR, 0.916 SSIM), further confirming the model's failure to generate high-quality video.
  • Qualitative Findings: Visualizations (Figure 2) clearly show the mode collapse, with generated videos exhibiting repetitive frames across all tested datasets. Figure 3 illustrates the peaky attention score distribution from the GPT, which directly leads to the collapsed output. Figure 4 shows how attention distributions collapse from uniform to peaky during training.

Limitations and Future Work

  • Mode Collapse: The primary limitation is the inability to overcome mode collapse, which severely hinders the model's ability to generate diverse and realistic video sequences.
  • Latent Space Representation: The paper concludes that the ADAE's failure to provide reliable and diverse latent frame representations is the fundamental issue.
  • Future Work Suggestions:
    • Improving Diversity: The authors suggest increasing the downsampling rate to encourage more diversity between consecutive frames.
  • Handling Blurriness: To address potential blurry regions or artifacts, they propose dividing frames into grids and learning multiple codebooks.
  • Robust Latent Representations: The overarching future direction is to develop more robust latent frame representations as a foundational prerequisite for successful sequential video generation.

Summary updated

BibTeX
@inproceedings{bhagwatkar2020paying,
  author = {Rishika Bhagwatkar and Khurshed Fitter and Saketh Bachu and Akshay R. Kulkarni and Shital S. Chiddarwar},
  title = {{Paying Attention to Video Generation}},
  booktitle = {Preregister @ NeurIPS},
  year = {2020},
}

Loading related content...

Figure