Memory Warps for Long-Term Online Video Representations and Anticipation

Tuan-Hung Vu, Wongun Choi, Samuel Schulter, Manmohan Chandraker

TL;DR

This paper introduces a memory-based framework for online video representation that explicitly accounts for motion by "warping" feature maps across frames. By combining this motion-aware memory with a multi-scale temporal architecture (ClockNet), the authors achieve state-of-the-art causal object detection that is 2.3x faster than previous offline methods and capable of anticipating objects in future, unseen frames.

What Problem Does This Paper Address?

Understanding video requires more than just looking at individual frames; it requires integrating information over time. However, learning effective temporal representations is challenging.

Existing approaches often fall into three traps:

  1. Computational Heaviness: Using 3D convolutions is extremely resource-intensive.
  2. Ignoring Motion: Standard recurrent networks (like LSTMs) often ignore the fact that objects move spatially between frames, leading to misaligned features.
  3. Lack of Causality: Many top-performing models are "offline," meaning they require access to future frames to understand the current one, making them useless for real-time applications like autonomous driving or live robotics.

The authors aim to create a representation that is efficient, accurate, and predictive while operating in a strictly online (causal) fashion.

Methods

The core of the paper is the MemNet and its hierarchical extension, ClockNet.

MemNet: Feature Warping and Aggregation

Instead of just passing a hidden state forward like a standard RNN, MemNet maintains a feature map "memory." At each time step:

  1. Feature Extraction: A standard CNN (like ResNet) extracts features from the current frame.
  2. Motion Estimation: A sub-network (FlowNet) estimates the displacement field (optical flow) between the current and previous frames.
  3. Spatial Warping: The memory from the previous frame is spatially warped using the estimated flow to align it with the current frame's geometry.
  4. Aggregation: The warped memory and new features are fused, either through simple averaging or a learned adaptive weighting.
Fig. 2: An illustration of the proposed MemNet running for three frames.

ClockNet: Multi-Scale Temporal Horizons

To capture even longer-term dependencies without massive overhead, the authors propose ClockNet. Inspired by clockwork RNNs, it maintains multiple memory maps operating at different temporal strides (e.g., updating every 1, 4, and 8 frames). This allows the model to efficiently "remember" information from much further back in the video sequence.

Fig. 3: Our ClockNet extends the MemNet by adding multiple time axes with increasing time scales.

Datasets

The primary testbed for this research is ImageNet-VID, a large-scale dataset for object detection in video containing over 5,000 video clips annotated with 30 object classes. The models were also pre-trained on the ImageNet-DET (still image) dataset to bolster spatial feature learning.

Key Insights and Ideas

  • Spatial Alignment is Crucial: The "aha moment" here is that temporal coherence in video isn't just about sequence; it's about geometry. By explicitly warping features to compensate for camera and object motion, the model achieves greater invariance to blur, lighting changes, and occlusions.
  • Warping vs. Standard cRNNs: The authors highlight a key difference from standard convolutional RNNs. While cRNNs keep hidden memory fixed across spatial dimensions, this model spatially aligns the memory with the actual video content.
Fig. 4: Relation between standard convolutional recurrent neural networks (left) and the proposed video representation (right).
  • Forcing the Network to Learn: During training, the authors randomly dropped the current frame's image evidence with an 80% probability. This forced the network to rely on and perfect its feature propagation and warping mechanisms rather than just "cheating" by looking at the current frame.
  • Feature-Level Propagation Wins: The paper demonstrates that propagating underlying high-level features is significantly more robust than simply propagating bounding box coordinates.

Key Results

  • Speed and Accuracy: On ImageNet-VID, the proposed framework achieved a 2.3x speedup compared to the state-of-the-art Flow-Guided Feature Aggregation (FGFA) while losing only 0.9% in mean Average Precision (mAP).
  • Causal Superiority: Among strictly online (causal) systems, ClockNet provided the best results, particularly for fast-moving objects.
  • Real-Time Boost: In a multi-threaded setup using two GPUs (one fast/weak detector and one slow/strong feature extractor), memory warping allowed the strong features to be aligned and "injected" into the fast detector, boosting its accuracy by over 10% mAP with zero impact on latency.
  • Future Anticipation: By extrapolating flow fields, the model could successfully anticipate object features in future frames that it hadn't even "seen" yet.

Limitations and Future Work

  • Flow Extrapolation: The current method for anticipating future frames relies on a simple constant acceleration motion model for flow extrapolation. The authors admit this is a limitation and suggest that more sophisticated motion models could improve anticipation.
  • Task Generalization: While demonstrated for object detection, the authors note that the effectiveness of this representation for other tasks like action recognition or semantic segmentation remains a subject for future investigation.
  • Horizon Degradation: As the anticipation horizon ($\delta$) increases, performance naturally degrades, indicating a limit to how far into the future a simple warping-based approach can reliably see.

Summary updated

BibTeX
@inproceedings{vu2019memory,
  author = {Tuan-Hung Vu and Wongun Choi and Samuel Schulter and Manmohan Chandraker},
  title = {{Memory Warps for Long-Term Online Video Representations and Anticipation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=ywhPbJBc3aC},
}
Figure