Abstract
We introduce Spatial-Temporal Memory Networks (STMN) for video object detection, utilizing a novel Spatial-Temporal Memory module (STMM) as a recurrent unit to model long-term appearance and motion dynamics. Crucially, the STMM is designed for full integration with pretrained backbone CNN weights. To address object motion, we propose the MatchTrans module to spatially align memory across frames. Our approach achieves state-of-the-art results on the ImageNet VID dataset, demonstrating significant improvements over static detectors and standard recurrent architectures.
What Problem Does This Paper Address?
Detecting objects in video presents unique challenges compared to static images. While modern detectors like Faster R-CNN are highly effective on clear, still images, they often struggle with video-specific artifacts such as motion blur, low resolution, and temporary occlusions. Because these detectors treat each frame independently, a slight change in viewpoint or a moment of blur can cause the model to lose track of an object or misclassify it entirely.
Existing temporal methods often rely on post-processing box links or short-term feature aggregation, which fail to capture long-term dependencies. Furthermore, standard recurrent units like LSTMs are difficult to initialize with the pretrained weights essential for high-performance detection, often leading to a loss of spatial resolution.
Methodology
The Spatial-Temporal Memory Network (STMN) introduces two primary innovations to bridge the gap between static detection and temporal modeling:
1. Spatial-Temporal Memory Module (STMM)
The STMM is a convolutional recurrent unit specifically engineered to be compatible with pretrained backbone weights (e.g., ResNet-101). Unlike standard ConvGRUs, the authors replaced Sigmoid and Tanh nonlinearities with ReLU and a custom BatchNorm ($BN^*$) that scales values into a $[0, 1]$ range for gating. This allows the memory state to maintain the same feature distribution as the CNN backbone, enabling effective initialization from static image detectors.
2. MatchTrans Alignment
Objects move between frames, meaning memory from time $t-1$ is spatially misaligned with frame $t$. To solve this without the high computational cost of optical flow, the authors developed MatchTrans. This module computes local affinities between feature cells in adjacent frames and warps the memory accordingly. This ensures that "remembered" features are spatially aligned with the current object position, preventing "ghosting" artifacts.
Key Results and Insights
The STMN was evaluated on the ImageNet VID benchmark, achieving a state-of-the-art 80.5% mAP with a ResNet-101 backbone—a +7.1% improvement over the static R-FCN baseline.
Key takeaways from the study include:
- Pre-training is Critical: Initializing the recurrent unit with pretrained static weights provided a ~6% mAP boost over standard initialization.
- Alignment Efficiency: MatchTrans is approximately 10x faster than using a dedicated optical flow network (2.9ms vs 24.3ms), making it a highly efficient solution for spatial alignment.
- Temporal Robustness: As shown in the qualitative results, STMN maintains consistent classifications even when individual frames are degraded, whereas baseline models often fluctuate between categories.
Conclusion
By combining a pre-training-compatible recurrent memory with an efficient spatial alignment module, the STMN significantly advances the state-of-the-art in video object detection. While challenges remain for objects with extreme deformation, the ability to leverage long-term temporal context provides a robust solution for the common pitfalls of video analysis.
Summary updated