Learning to Decompose and Disentangle Representations for Video Prediction

Jun-Ting Hsieh, Bingbin Liu, De-An Huang, L. Fei-Fei, Juan Carlos Niebles

TL;DR

Researchers from Stanford have developed the Decompositional Disentangled Predictive Auto-Encoder (DDPAE), a framework that simplifies video prediction by automatically breaking a scene into individual objects and separating their appearance from their movement. By predicting low-dimensional trajectories instead of high-dimensional pixels, the model achieves state-of-the-art results on complex tasks like predicting object collisions without any explicit supervision.

What Problem Does This Paper Address?

Predicting the future frames of a video is a "grand challenge" in computer vision. The primary hurdle is the curse of dimensionality. A standard $64 \times 64$ video frame has over 4,000 pixels; trying to predict how all those pixels change simultaneously is computationally expensive and often results in blurry, unrealistic images.

The authors argue that humans don't predict videos pixel-by-pixel. Instead, we perceive a scene as a collection of objects (decomposition) and understand that an object’s identity is separate from its location (disentanglement). If you see a ball flying, you know the "ball-ness" stays the same while only its $(x, y)$ coordinates change. The challenge is getting a machine to learn this decomposition and disentanglement automatically, without a human labeling every object in every frame.

Methods

The authors propose DDPAE, which combines structured probabilistic models (specifically Variational Auto-Encoders or VAEs) with deep neural networks.

DDPAE Architecture

The architecture follows a three-step logic:

  1. Decomposition: The model uses a 2D Recurrent Neural Network (RNN) to iterate through both time and the number of potential components in a scene. It learns to assign different parts of the image to different "latent slots."
  2. Disentanglement: For each component, the model separates the representation into two parts:
  3. Content: A time-invariant vector representing what the object looks like (e.g., the shape of the digit "3").
  4. Pose: A low-dimensional, time-dependent vector representing where the object is and its scale.
  5. Generative Warping: To create the final prediction, the model takes the "Content," decodes it into a small image, and then uses a Spatial Transformer Network (STN) to warp and place that image onto the canvas based on the predicted "Pose."

Crucially, the model is trained end-to-end to minimize the difference between the predicted and actual future frames. Because predicting a simple $(x, y)$ trajectory is much easier for the network than predicting raw pixels, the model naturally "prefers" to learn this decomposition.

Datasets

The researchers evaluated DDPAE on two primary synthetic benchmarks:

  • Moving MNIST: A dataset featuring two handwritten digits moving and bouncing within a $64 \times 64$ frame. This tests the model's ability to separate overlapping objects.
  • Bouncing Balls: A more complex physics-based simulation with four balls that collide and change direction. This tests the model's ability to handle inter-object dependencies and physical interactions.

Key Insights and Ideas

  • Unsupervised Object Discovery: The most striking takeaway is that the model learns to "see" individual objects without being told they exist. In Moving MNIST, it naturally assigns one component slot to the first digit and another to the second.
Decomposition of Moving MNIST
  • Predicting the "Why," Not the "What": By disentangling content from pose, the prediction task is reduced to forecasting a low-dimensional trajectory. The model doesn't have to "re-learn" what a digit looks like in every frame; it just calculates where to move the existing shape.
  • Handling Interdependency: Unlike previous models that treat objects in isolation, DDPAE passes hidden states between components in its RNN. This allows the model to predict collisions. If Ball A is heading toward Ball B, the representation for Ball A "knows" about Ball B’s position, allowing it to predict a bounce rather than having the balls pass through each other like ghosts.

Key Results

  • Moving MNIST: DDPAE significantly outperformed baselines like MCNet and DRNet. It achieved a Mean Squared Error (MSE) of 38.9, compared to DRNet’s 163.9. Qualitatively, DDPAE produced much sharper images, especially when digits overlapped.
  • Bouncing Balls: The model successfully recovered physical states (velocity and direction) directly from pixels. It correctly predicted the change in velocity magnitude and direction after collisions, whereas baseline models failed to account for the interaction.
  • Redundancy Management: When the model was given more "slots" than there were objects (e.g., 3 slots for 2 digits), it learned to leave the extra slots empty, demonstrating robustness to unknown object counts.

Limitations and Future Work

While powerful, DDPAE has some clear boundaries:

  • 2D Constraints: The use of Spatial Transformer Networks (STNs) for warping is inherently 2D. This works well for flat datasets like MNIST but would struggle with 3D rotations or complex lighting changes in real-world video.
  • Simple Backgrounds: The experiments were conducted on black backgrounds. Decomposing objects from a complex, moving natural background (like a forest or a busy street) remains a much harder problem.
  • Fixed Component Count: Although the model handles redundant slots well, the maximum number of components must still be defined upfront.

The authors suggest that future work could involve more sophisticated "content" models that can handle 3D transformations, potentially opening the door to predicting real-world video sequences.

Summary updated

BibTeX
@inproceedings{hsieh2018learning,
  author = {Jun-Ting Hsieh and Bingbin Liu and De-An Huang and L. Fei-Fei and Juan Carlos Niebles},
  title = {{Learning to Decompose and Disentangle Representations for Video Prediction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=HJb-FuZdWr},
}
Figure