An Uncertain Future: Forecasting from Static Images using Variational Autoencoders

Jacob Walker, Carl Doersch, Abhinav Gupta, Martial Hebert

TL;DR

This paper introduces a generative framework that predicts the dense, one-second future trajectory of pixels from a single static image. By leveraging a Conditional Variational Autoencoder (cVAE), the model successfully captures the inherent ambiguity of the future, allowing it to sample multiple distinct and plausible motion paths without requiring any human labeling.

What Problem Does This Paper Address?

Predicting the future from a static scene is a natural human capability, but a notorious challenge for computer vision systems. The primary hurdle is ambiguity: the future is multimodal. For instance, if you see a snapshot of a woman mid-squat in a gym, she could be on her way up or on her way down (as illustrated in Figure 1).

Previous approaches have struggled with this. Deterministic models (like standard regressors) try to predict a single "average" future, which results in blurry, unrealistic pixel blends. Other methods simplify the problem by predicting sparse semantic labels or short-term optical flow, but these compromise on spatial or temporal richness. The authors aim to predict full, dense pixel trajectories over a relatively long horizon (one second) while explicitly modeling the distribution of multiple potential futures.

Figure 1: Predicting multiple potential motion trajectories (up or down) from a single static image of a woman in a gym.

Methods

To make the high-dimensional space of future trajectories tractable, the authors propose a Conditional Variational Autoencoder (cVAE) architecture consisting of three fully-convolutional "towers":

  1. Image Tower: Processes the static input image $X$ using a modified AlexNet architecture to extract scene context and object locations.
  2. Encoder Tower (Training Only): Takes both the image features and the ground-truth future trajectories $Y$ to output a distribution over a low-dimensional latent space $z$ (parameterized by mean $\mu'$ and variance $\sigma'$). To make sampling differentiable during training, they employ the standard reparameterization trick.
  3. Decoder Tower: Maps the image features combined with a latent sample $z$ back into the dense trajectory space $Y'$. At test time, the Encoder is discarded, and $z$ is simply sampled randomly from a standard normal distribution $\mathcal{N}(0,1)$, allowing the network to generate diverse future trajectories.
Training:  [Image X] + [Trajectory Y] ---> [Encoder] ---> Latent z ---> [Decoder] ---> Predicted Y'
Testing:   [Image X] + [Random Noise z] -----------------------------> [Decoder] ---> Predicted Y'

To further manage dimensionality, trajectories are encoded in the frequency domain using a Discrete Cosine Transform (DCT), retaining only the first 5 components for the $x$ and $y$ offsets over 31 frames (1 second at 30 fps). The loss function balances a structural Euclidean loss (split into normalized trajectory shape and global motion magnitude) with a KL-divergence penalty to keep the latent space regularized. Finally, a coarse-to-fine cascade generates predictions across three spatial resolutions (1/16, 1/8, and 1/4 of the input resolution).

Figure 2: Overview of the testing and training architectures for the conditional variational autoencoder.

Datasets

  • UCF101: Used for training. The authors extracted one-second clips, stabilized them, and generated dense pixel trajectories automatically using automated tracking algorithms. Sampling every 3rd frame yielded a training set of approximately 650,000 images.
  • THUMOS 2015: Used for quantitative evaluation. The authors randomly sampled 2,800 frames and their corresponding trajectories to serve as a test set.
  • PASCAL VOC 2012: Used to evaluate downstream representation learning for object detection.

Key Insights and Ideas

  • Trajectories over Pixels: Predicting pixel trajectories rather than raw pixel values dramatically restricts the output space. It prevents the model from having to learn complex appearance changes (like lighting or color shifts) and focuses purely on motion dynamics.
  • Conditioning as Inference: Unlike standard VAEs that generate data a priori, this cVAE conditions the generation on the input image. The image features act as a constraint, ensuring that the generated motions are physically plausible given the scene context (e.g., a skier moves horizontally, a swing moves in an arc).
  • Self-Supervised Feature Discovery: To successfully forecast motion, the network must implicitly learn to recognize objects, locate boundaries, and understand human poses. Consequently, motion prediction serves as an excellent self-supervised pretext task for learning visual representations without manual annotations.

Key Results

The model was evaluated against two baselines: a direct deterministic regressor and an optical flow extrapolation network.

  • Negative Log-Likelihood: On the THUMOS 2015 dataset, the cVAE achieved a significantly lower negative log-likelihood (11082) compared to the regressor (11463) and optical flow baseline (11734), proving it models the true distribution of futures much more accurately.
  • Euclidean Distance Evaluation: As shown in Figure 5, when allowed to sample multiple times ($n > 5$), the cVAE's best-sampled prediction consistently outperformed the baselines, demonstrating its ability to successfully cover different strategic modes of the future.
Fig. 1. Consider this picture of a woman in the gym — she could move up or down. Our framework is able to predict multiple correct one- second motion trajectories given the scene. The directions of the tra- jectories at each point in time are color-coded according to the square on the right. On the left is the projection of the trajectories on the image plane. The right diagram shows the complexity of the predicted motions in space time. Best seen in our videos.
  • Qualitative Diversity: The model successfully generated distinct future modes for ambiguous actions, such as predicting both the upward and downward motion of a weightlifter, or a swing moving forward versus backward.
Figure 4: Qualitative examples showing distinct, plausible future predictions (e.g., swing trajectories, weightlifting) generated by sampling the latent space.
  • Downstream Transfer: When fine-tuned for object detection on PASCAL VOC 2012, the representations learned by the cVAE achieved 47.3% mAP. Remarkably, it outperformed other unsupervised methods that were trained on datasets with substantially more frames and scene diversity.

Limitations and Future Work

While powerful, the approach has a few limitations:

  • Resolution Constraints: The final trajectory predictions are still relatively coarse, maxing out at 1/4 of the input image resolution (64x80).
  • Dependence on Tracking Labels: The training process relies entirely on automated trajectory tracking algorithms to generate ground-truth labels, meaning any errors or noise in the tracking pipeline are propagated to the model.
  • Graphics Applications: The authors suggest that future iterations could be directly applied to animation tools, enabling users to automatically animate still photographs based on the learned motion distributions.

Summary updated

BibTeX
@inproceedings{walker2016uncertain,
  author = {Jacob Walker and Carl Doersch and Abhinav Gupta and Martial Hebert},
  title = {{An Uncertain Future: Forecasting from Static Images using Variational Autoencoders}},
  booktitle = {European Conference on Computer Vision},
  year = {2016},
  doi = {10.1007/978-3-319-46478-7\_51},
}
Figure