Abstract
Self-supervised representation learning is able to learn semantically meaningful features; however, much of its recent success relies on multiple crops of an image with very few objects. Instead of learning view-invariant representation from simple images, humans learn representations in a complex world with changing scenes by observing object movement, deformation, pose variation and ego motion. Motivated by this ability, we present a new self-supervised learning representation framework that can be directly deployed on a video stream of complex scenes with many moving objects. Our framework features a simple flow equivariance objective that encourages the network to predict the features of another frame by applying a flow transformation to the features of the current frame. Our representations, learned from high-resolution raw video, can be readily used for downstream tasks on static images. Readout experiments on challenging semantic segmentation, instance segmentation, and object detection benchmarks show that we are able to outperform representations obtained from previous state-of-the-art methods including SimCLR and BYOL.
Introduction: The Limitations of View Invariance
Most successful self-supervised learning (SSL) methods, such as SimCLR or BYOL, are built on the principle of "view invariance." These methods typically take a single, curated, object-centered image, generate two different random crops, and train the network to produce identical feature representations for both. While effective for datasets like ImageNet, this approach faces significant challenges when applied to "in-the-wild" video streams of complex scenes.
In crowded environments like a busy city street, random crops often capture entirely different semantic entities—for instance, one crop might contain a car while the other contains a tree. In such cases, the invariance assumption is fundamentally flawed. Furthermore, standard SSL methods often ignore the rich temporal information inherent in video, such as how objects rotate or deform. Finally, the common practice of global pooling squashes spatial information into a single vector, which is detrimental for downstream tasks requiring pixel-level precision, such as semantic segmentation.
Methodology: Flow Equivariance (FlowE)
To address these limitations, we introduce Flow Equivariance (FlowE). Rather than forcing features to be invariant to motion, we encourage them to be equivariant. If an object moves or deforms between two frames, its high-level feature representation should undergo the same transformation.
The Core Objective
FlowE utilizes an "online" network and a "target" network, similar to the BYOL architecture. However, instead of matching global features, we integrate optical flow to track spatial changes. Using an off-the-shelf flow estimator (RAFT), we calculate a pixel-wise flow map between two frames ($I_1$ and $I_2$). The network is then tasked with predicting the features of the second frame by taking the features of the first frame and "warping" them according to the calculated optical flow and any applied random affine transformations (like scaling or rotation).
Dense Representations
Unlike standard models that downsample images heavily, FlowE maintains a higher spatial resolution (stride 8) and removes global pooling. This ensures the network learns "dense" features, where every pixel or local region receives a meaningful representation suitable for spatial downstream tasks.
Experimental Setup and Datasets
We trained and evaluated FlowE on three major driving-related datasets to test its efficacy in complex, real-world environments:
- UrbanCity: An in-house dataset featuring 15,000 high-resolution (1080p) video snippets of complex urban driving.
- BDD100K: A diverse public dataset containing 100,000 raw video snippets across various weather conditions and times of day.
- Cityscapes: Used for transfer learning experiments to evaluate the generalizability of the learned features.
Key Results
FlowE demonstrated significant performance gains over previous state-of-the-art self-supervised methods across multiple benchmarks:
- Superiority in Segmentation: On the UrbanCity dataset, FlowE achieved a 49.6 mIoU (mean Intersection over Union) for semantic segmentation. This significantly outperformed the previous video-based SSL method, VINCE, which scored 30.6 mIoU.
- Outperforming Supervised Pre-training: Perhaps most notably, FlowE outperformed ImageNet-pretrained models—the industry standard—on driving tasks. On UrbanCity, FlowE's 49.6 mIoU surpassed the supervised ImageNet model's 39.6 mIoU, suggesting that learning from raw, domain-specific video is more effective than using generic, human-curated datasets.
- Data Efficiency: FlowE is highly efficient with limited labels. Using only 1% of labeled data, it achieved 53.9 mIoU, whereas a model trained from scratch on the same 1% of data reached only 42.0 mIoU.
Discussion and Future Work
While FlowE provides a powerful framework for dense representation learning, it is not without limitations. We observed a "heavier header" gap: when a very complex decoder is used for the downstream task, ImageNet-pretrained models can sometimes close the performance gap, indicating that FlowE's primary strength lies in the quality of its frozen backbone features. Additionally, because the objective is pixel-based, the network tends to prioritize common classes (like roads and buildings) over rare classes (like motorcycles or riders).
Future research will explore combining FlowE's equivariance (motion tracking) with traditional invariance (object matching) to create representations that capture both the spatial "where" and the semantic "what" of a scene more robustly.
Summary updated