Abstract
Establishing visual correspondence across video frames is a fundamental challenge in computer vision, underpinning tasks such as motion estimation, object tracking, and video segmentation. While contrastive learning has dominated this field, it often requires complex data augmentations and architectural safeguards to prevent representational collapse. This paper presents Siamese Masked Autoencoders (SiamMAE), a simple yet effective self-supervised method that leverages an asymmetric masking strategy to learn robust visual correspondence. By keeping one frame fully visible while masking 95% of a subsequent frame, SiamMAE forces the model to learn temporal relationships and motion, achieving state-of-the-art results on multiple benchmarks without the need for complex contrastive heuristics.
Introduction
Visual correspondence—the ability to link the same object or part across different video frames—is essential for understanding dynamic scenes. Traditionally, the most successful self-supervised methods for this task have relied on contrastive learning. However, these methods are notoriously sensitive to hyperparameters and require extensive data augmentation (e.g., color jittering, blurring) to ensure the model learns meaningful features rather than trivial shortcuts.
Masked Autoencoders (MAE) have recently emerged as a powerful alternative for image-based representation learning by reconstructing missing pixels. However, simply extending MAE to video using "symmetric masking" (masking both frames equally) often fails to capture high-level motion. In such cases, the model tends to focus on reconstructing low-level textures rather than understanding the underlying temporal dynamics. SiamMAE addresses this by introducing a bottleneck that necessitates the learning of correspondence.
Methodology
SiamMAE adapts the Siamese network architecture for the MAE framework using a unique asymmetric masking strategy. The process is defined by several key stages:
1. Sampling and Asymmetric Masking
The model takes two frames from a video clip: a "past" frame ($f_1$) and a "future" frame ($f_2$). The core innovation lies in how these frames are presented to the model. Frame $f_1$ is left completely intact (0% masked), providing the full context of the scene. In contrast, frame $f_2$ is heavily masked, with only 5% of its patches remaining visible. This extreme masking creates an information bottleneck that prevents the model from relying solely on spatial interpolation within $f_2$.
2. Siamese Encoding
Both frames are processed independently by a weight-sharing Vision Transformer (ViT) encoder. Because $f_1$ is unmasked, the encoder extracts a complete feature map of the scene. For $f_2$, the encoder only processes the sparse set of visible patches, ensuring computational efficiency.
3. Cross-Attention Decoding
The decoder utilizes cross-attention layers to bridge the two frames. The visible patches and the mask tokens from $f_2$ act as queries, which attend to the full feature set of $f_1$ (acting as keys and values). To successfully reconstruct the missing pixels of $f_2$, the model must learn to find the corresponding patches in $f_1$ and propagate that information to the correct spatial locations in the future frame.
Experimental Setup
SiamMAE was pre-trained in a self-supervised manner on the Kinetics-400 dataset, which contains a diverse array of unlabeled video clips. To evaluate the quality of the learned features, the authors tested the model on three downstream tasks using simple k-Nearest Neighbor (k-NN) matching, without task-specific fine-tuning:
- Video Object Segmentation (DAVIS-2017): Tracking object masks through a sequence.
- Human Pose Keypoint Propagation (JHMDB): Tracking specific joints like elbows and knees.
- Semantic Part Propagation (VIP): Tracking specific body parts, such as a "left arm."
Results and Key Insights
SiamMAE demonstrates that simplicity can lead to superior performance. The model outperformed significantly larger and more complex contrastive methods across several benchmarks.
- State-of-the-Art Performance: On the DAVIS-2017 benchmark, SiamMAE (using a ViT-S/8 backbone) achieved 71.4% $\mathcal{J}\&\mathcal{F}_m$. This result surpasses the popular DINO method (69.9%) and vastly outperforms previous video-based MAE attempts like VideoMAE (39.3%), which used symmetric masking.
- Pose Tracking: On the JHMDB dataset, the model achieved 61.9 [email protected], marking a significant improvement over prior self-supervised approaches.
- The Importance of Resolution: The authors found that patch size is a critical factor. Moving from $16 \times 16$ patches to $8 \times 8$ patches yielded substantial performance gains, indicating that fine-grained correspondence requires higher-resolution feature maps.
- Robustness Without Augmentation: Unlike contrastive learning, SiamMAE requires almost no data augmentation. The masking process itself serves as the necessary information bottleneck, preventing representational collapse without the need for momentum encoders or projection heads.
Discussion and Limitations
While SiamMAE is highly effective, it currently operates on pairs of frames, meaning it does not explicitly model long-term temporal dependencies or complex multi-frame trajectories. Additionally, while the encoder is efficient due to masking, the use of smaller patch sizes ($8 \times 8$) increases the token count, which places a higher computational burden on the decoder.
Future research may explore extending the model to predict multiple future frames or testing its generalization on more diverse datasets, such as egocentric (first-person) video or large-scale internet video collections.
Conclusion
SiamMAE provides a streamlined and powerful framework for learning visual correspondence. By reframing reconstruction as a correspondence task through asymmetric masking, the model learns to "propagate" information across time. Its ability to outperform complex contrastive methods with a simpler architecture and fewer heuristics suggests that asymmetric masking is a potent tool for self-supervised video representation learning.
Summary updated