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

Masked Motion Encoding for Self-Supervised Video Representation Learning

Xinyu Sun, Peihao Chen, Liangwei Chen, Changhao Li, Thomas H. Li, Mingkui Tan, Chuang Gan

Abstract

How to learn discriminative video representation from unlabeled videos is challenging but crucial for video analysis. The latest attempts seek to learn a representation model by predicting the appearance contents in the masked regions. However, simply masking and recovering appearance contents may not be sufficient to model temporal clues as the appearance contents can be easily reconstructed from a single frame. To overcome this limitation, we present Masked Motion Encoding (MME), a new pretraining paradigm that reconstructs both appearance and motion information to explore temporal clues. In MME, we focus on addressing two critical challenges to improve the representation performance: 1) how to well represent the possible long-term motion across multiple frames; and 2) how to obtain fine-grained temporal clues from sparsely sampled videos. Motivated by the fact that human is able to recognize an action by tracking objects' position changes and shape changes, we propose to reconstruct a motion trajectory that represents these two kinds of change in the masked regions. Besides, given the sparse video input, we enforce the model to reconstruct dense motion trajectories in both spatial and temporal dimensions. Pre-trained with our MME paradigm, the model is able to anticipate long-term and fine-grained motion details.

Introduction

Self-supervised learning has seen a massive boom thanks to "mask-and-predict" tasks, such as Masked Autoencoders (MAE) and VideoMAE, where a model learns by filling in missing pieces of an image or video. However, applying this directly to video has two major flaws:

  1. The "Static Cheat": In many current models, a masked patch in one frame can be easily reconstructed using only the spatial information from that same frame. The model doesn't actually need to understand time or motion to succeed; it just becomes a very good image interpolator.
  2. The "Sparse Gap": To save on computation, researchers usually sample video frames sparsely (e.g., every 4th or 8th frame). Standard reconstruction tasks only ask the model to predict what happens in those specific sparse frames, leaving the fine-grained motion that happens between those frames completely unlearned.

Proposed Method: Masked Motion Encoding (MME)

The authors introduce Masked Motion Encoding (MME). Instead of predicting RGB pixels or static features, the model is tasked with reconstructing a motion trajectory for the masked regions. This approach captures the temporal "soul" of a video that appearance-based methods often miss.

The MME pipeline: from masked video clips to dense motion trajectory reconstruction.

Trajectory Generation and Encoding

The system uses a dense grid to sample points on objects and tracks them across $L$ frames using optical flow. Each trajectory consists of two features:

  • Position Changes ($\Delta p$): Tracking the relative movement of a point to capture the "where."
  • Shape Changes (HOG): Using Histograms of Oriented Gradients (HOG) around the tracked points to capture how the object's appearance/silhouette evolves (the "what").

Dense Interpolation and Architecture

Even if the input video is sampled sparsely, the model is forced to reconstruct dense trajectories at the original frame rate. This forces the model to "hallucinate" the missing motion details between the frames it actually sees. MME uses a standard Vision Transformer (ViT) encoder-decoder setup. The encoder only processes unmasked patches for efficiency, while the lightweight decoder predicts the trajectories for the masked "tubes."

Experimental Setup

The model was pre-trained and evaluated on several major video datasets:

  • Kinetics-400 (K400): A large-scale dataset focused on human actions.
  • Something-Something V2 (SSv2): A "temporal-heavy" dataset where the action depends on fine-grained movement (e.g., "putting something next to something").
  • UCF101 & HMDB51: Smaller, classic benchmarks used to test transferability.

Key Insights

The Shuffling Test

To prove that standard models "cheat," the authors shuffled the frames of a video. They found that pixel-reconstruction error barely changed for models like VideoMAE, meaning they weren't using temporal order anyway. In contrast, MME performance dropped significantly when frames were shuffled, proving it truly relies on temporal logic.

Performance comparison on SSv2 with raw vs. shuffled videos, highlighting MME's temporal sensitivity.

Motion as a Pretext Task

Predicting how an object moves is a much stronger pretext task for video than predicting what color it is. It forces the model to learn the underlying physics and semantics of the scene. By requiring the model to predict dense motion from sparse input, the authors effectively turned the representation learning into a "motion interpolation" problem.

Key Results

MME achieved state-of-the-art results across the board, particularly on datasets where motion is king:

  • Something-Something V2: MME outperformed VideoMAE by 2.3% (reaching 70.5% accuracy) when transferring from K400.
  • Kinetics-400: Achieved 81.8% accuracy, outperforming other masked modeling approaches like ST-MAE.
  • Linear Probing: When the backbone was frozen and only a simple classifier was trained, MME beat VideoMAE by 4.9% on SSv2, indicating that the learned features are inherently more discriminative for actions.

Limitations and Future Work

While effective, MME requires pre-extracting optical flow and trajectories to create the ground truth, adding pre-processing overhead. Additionally, extremely shaky camera work could introduce noise into the motion trajectories. Future work could involve scaling MME to even larger datasets to see if the motion-centric advantage holds as data volume increases.

Summary updated

BibTeX
@inproceedings{sun2023masked,
  author = {Xinyu Sun and Peihao Chen and Liangwei Chen and Changhao Li and Thomas H. Li and Mingkui Tan and Chuang Gan},
  title = {{Masked Motion Encoding for Self-Supervised Video Representation Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=nI8ZUmPJML},
}
Figure