NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Visual Representation Learning with Stochastic Frame Prediction

Huiwon Jang, Dongyoung Kim, Junsu Kim, Jinwoo Shin, Pieter Abbeel, Younggyo Seo

TL;DR

Researchers have developed RSP (Representation learning with Stochastic frame Prediction), a framework that masters visual representations by learning to predict the future of a video. By embracing the inherent uncertainty of the world through stochastic modeling—rather than trying to predict a single, deterministic outcome—RSP learns temporal dynamics and dense spatial features that significantly outperform existing self-supervised methods in complex robotics and video tracking tasks.

The Challenge of Video Representation

Self-supervised learning (SSL) has revolutionized how AI understands images and text, but video remains a "final frontier." The core challenge is that the future is under-determined. If you see a single frame of a person reaching for a cup, they might pick it up, knock it over, or pull their hand back.

Standard "deterministic" models struggle here; they try to predict a single "average" future, which often results in blurry representations that fail to capture the true complexity of motion. While image-based models like Masked Autoencoders (MAE) are great at understanding what is in a frame, they often ignore the temporal relationship between frames—the "how" and "when" of the world. The authors of this paper set out to bridge this gap by creating a model that understands both the dense details of a single frame and the probabilistic nature of what happens next.

The RSP Framework

The authors introduce RSP, a synergistic architecture that combines two powerful learning objectives:

The RSP framework combining stochastic frame prediction and masked image modeling.
  1. Stochastic Frame Prediction: Instead of predicting one fixed future frame, RSP learns a distribution of possible futures. It uses a "Prior" network (which only sees the current frame) and a "Posterior" network (which sees both the current and future frames). During training, the model tries to make the Prior's guess as close as possible to the Posterior's knowledge using a latent variable. Crucially, the researchers found that using categorical (discrete) latent variables worked much better than standard Gaussian (continuous) ones for capturing complex dynamics.
  2. Auxiliary Masked Image Modeling (MIM): To ensure the model doesn't just focus on moving objects and ignore the static background, they add a secondary task. They mask 75% of the future frame and ask the model to reconstruct the missing pieces.
  3. Shared Decoder Architecture: This is the "secret sauce." Rather than having two separate models, RSP uses a single Transformer-based decoder that handles both the stochastic prediction and the masked reconstruction. This makes the training compute-efficient and forces the features to be useful for both tasks simultaneously.

Datasets and Evaluation

The model was pre-trained on Kinetics-400, a massive dataset of real-world YouTube videos. To prove its versatility, the researchers evaluated the learned representations on two very different domains:

  • Vision-Based Robot Learning: They tested on CortexBench (Adroit, MetaWorld, DMC, Trifinger), RLBench (complex manipulation tasks like opening a wine bottle or putting away rubbish), and Franka Kitchen.
  • Video Label Propagation: They used DAVIS (video object segmentation), VIP (video part segmentation), and JHMDB (human pose tracking).

Key Insights

  • Embrace the Chaos: The biggest takeaway is that modeling uncertainty (stochasticity) is not just a trick for generating pretty videos; it is fundamental for learning useful features. A model that knows "several things could happen" learns more about the environment than one trying to force a single answer.
  • Categorical is Better: Discrete labels are easier for the model to predict than continuous values when dealing with complex real-world video dynamics.
  • Synergy over Competition: By sharing the decoder between the prediction task (temporal) and the masking task (spatial), the model achieves a "1+1=3" effect where the two objectives complement each other.
  • Augmentation Matters: A subtle but vital finding was that you must apply the exact same random crops and flips to both the current and future frames. If you augment them differently, the temporal link is broken, and the model fails to learn.

Key Results

RSP consistently outperformed state-of-the-art baselines like MAE, Dino, and SiamMAE across multiple benchmarks:

Performance comparison of RSP against baselines on CortexBench, RLBench, and Franka Kitchen.
  • Robotic Manipulation: In the challenging RLBench environment, RSP achieved a 36.0% average success rate, while the standard MAE baseline only managed 13.5%. It also showed significant gains in the Franka Kitchen environment.
  • Video Segmentation: On the DAVIS benchmark, RSP achieved a score of 60.1 (J&Fm), significantly higher than the deterministic version of the same model (54.4), proving that the stochastic component is doing the heavy lifting.
  • Efficiency: Despite adding a stochastic layer and an auxiliary task, the shared decoder architecture means RSP adds negligible computational overhead compared to simpler models.

Limitations and Future Work

While RSP is a leap forward, the authors note a few areas for improvement:

  • Generation Quality: The model is optimized for learning representations, not for creating high-fidelity video. The predicted frames aren't "photorealistic" in the way a dedicated video generator might be.
  • Short Horizons: The current model predicts a single future frame at a time. Extending this to predict multiple frames into the distant future (long-horizon prediction) is a logical next step.
  • Scaling: The researchers suggest that incorporating even more expressive "priors" (like autoregressive models or diffusion-based decoders) could further unlock the potential of stochastic learning.

Summary updated

BibTeX
@inproceedings{jang2024visual,
  author = {Huiwon Jang and Dongyoung Kim and Junsu Kim and Jinwoo Shin and Pieter Abbeel and Younggyo Seo},
  title = {{Visual Representation Learning with Stochastic Frame Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=rI6lxIX0uX},
}
Figure