Introduction
Video object detection presents unique challenges compared to static image detection. Factors like motion blur, occlusion, and unusual poses often degrade the quality of individual frames. To mitigate these issues, temporal information from neighboring frames is typically leveraged to enhance the features of the current frame.
Historically, this has been achieved through flow-warping, which utilizes an optical flow network to estimate pixel-level motion. However, flow-based methods are computationally expensive, often suffer from a semantic mismatch between pixel-level flow and high-level features, and frequently require manual architectural tuning to maintain efficiency.
Learnable Spatio-Temporal Sampling (LSTS)
To overcome the limitations of optical flow, this work proposes Learnable Spatio-Temporal Sampling (LSTS). Unlike traditional methods that rely on explicit motion estimation, LSTS employs a learnable, attention-like mechanism to identify and aggregate relevant features from adjacent frames.
LSTS operates through a four-step process:
- Sampling: Initializing a set of locations within a local neighborhood.
- Comparison: Calculating similarity weights between the current frame's features and the sampled locations in the reference frame.
- Aggregation: Fusing features from these locations based on their similarity.
- Iterative Update: Treating sampling offsets as learnable parameters, allowing backpropagation to refine where the model "looks" based on the final detection loss.
Efficient Framework: SRFU and DFA
The LSTS module is integrated into a dual-path framework designed for maximum efficiency by treating frames as either "keyframes" or "non-keyframes."
Sparsely Recursive Feature Updating (SRFU)
SRFU manages keyframes by employing a heavy feature extractor (e.g., ResNet-101). It maintains a "memory feature" that is updated recursively across the video, capturing long-term temporal dependencies.
Dense Feature Aggregation (DFA)
Non-keyframes are processed using a lightweight feature extractor to minimize latency. DFA then uses the LSTS module to propagate high-quality features from the nearest keyframe to these low-quality frames, significantly boosting their accuracy without the computational cost of a full backbone.
Experimental Results
The framework was evaluated on the ImageNet VID dataset, a standard benchmark for video object detection. Using a ResNet-101 backbone, the model achieved 77.2% mAP at 23.0 FPS, demonstrating real-time capability. With the addition of Seq-NMS post-processing, accuracy reached 82.1% mAP.
Key advantages of this approach include:
- Efficiency: The model uses approximately 64.5M parameters, significantly fewer than flow-warping competitors like DFF, which often exceed 100M parameters.
- Semantic Alignment: LSTS focuses on semantic correspondences (e.g., matching parts of an object) rather than exact pixel movement, which is more effective for high-level detection tasks.
- Task-Driven Learning: By learning offsets directly from the detection loss, the model adapts its temporal focus specifically for object detection rather than a generic motion estimation task.
Conclusion
LSTS offers a powerful alternative to optical flow for video object detection, providing a better balance between accuracy and speed. By shifting from pixel-level warping to learnable semantic sampling, the proposed framework achieves state-of-the-art performance while remaining efficient enough for real-time applications. Future work may explore extending this learnable sampling paradigm to other video-based tasks such as semantic segmentation.
Summary updated