End-to-End Flow Correlation Tracking With Spatial-Temporal Attention

Zheng Zhu, Wei Wu, Wei Zou, Junjie Yan

Abstract

Discriminative correlation filters (DCF) with deep convolutional features have achieved favorable performance in recent tracking benchmarks. However, most existing DCF trackers only consider appearance features of the current frame and hardly benefit from motion and inter-frame information. The lack of temporal information degrades tracking performance during challenges such as partial occlusion and deformation. In this paper, we propose FlowTrack, which focuses on making use of the rich flow information in consecutive frames to improve feature representation and tracking accuracy. FlowTrack formulates individual components—including optical flow estimation, feature extraction, aggregation, and correlation filter tracking—as special layers in a network. To the best of our knowledge, this is the first work to jointly train flow and tracking tasks in a deep learning framework. Historical feature maps at predefined intervals are warped and aggregated with current ones guided by flow. For adaptive aggregation, we propose a novel spatial-temporal attention mechanism. In experiments, the proposed method achieves leading performance on OTB2013, OTB2015, VOT2015, and VOT2016.

Introduction

Visual object tracking is a fundamental computer vision task that requires maintaining a target's identity across a video sequence. While Discriminative Correlation Filters (DCF) have become a staple in the field due to their efficiency, most existing DCF trackers suffer from "tunnel vision"—they rely almost exclusively on the appearance of the current frame. This lack of temporal context makes them fragile; if a target is momentarily occluded or undergoes a sudden shape deformation, an appearance-only tracker often drifts or fails.

FlowTrack addresses this by proposing a framework where "how it looks" (appearance) and "how it moves" (flow) are learned together. Unlike previous methods that used "off-the-shelf" flow algorithms not optimized for tracking, FlowTrack integrates flow estimation directly into the training pipeline, allowing the motion features to be specifically tuned for the tracking objective.

Methods

FlowTrack is built on a Siamese-style architecture that processes both a "current" branch and a "historical" branch. Its novelty lies in four interconnected components:

  1. End-to-End Flow & Tracking: Optical flow estimation (FlowNet), feature extraction (FeatureNet), and the correlation filter itself are all differentiable layers, allowing the entire system to be optimized for tracking accuracy.
  2. Feature Warping: To utilize information from previous frames, FlowTrack uses estimated optical flow to "warp" historical feature maps into the coordinate system of the current frame, ensuring spatial alignment.
  3. Spatial-Temporal Attention: Not all historical information is equally useful. Spatial Attention uses cosine similarity to weight pixels that look most like the current target, while Temporal Attention uses a sub-network to re-calibrate feature channels, deciding which past frames are reliable and which should be ignored (e.g., due to blur).
  4. Adaptive Aggregation: The warped and weighted features from multiple past frames are aggregated to create a "super-feature" representation richer than any single-frame snapshot.
The FlowTrack architecture showing the historical and current branches, feature warping, and the spatial-temporal attention module.

Key Insights

  • The "Fix Flow" Trap: Using a fixed, pre-trained FlowNet can actually hurt performance. It was only when the flow was trained end-to-end with the tracker that performance surged, proving that tracking-specific motion is distinct from general motion.
  • Alignment is Mandatory: Naive fusion of features from different frames without warping often degrades performance due to spatial misalignment. Flow-guided warping is the essential "glue" for multi-frame aggregation.
  • Attention as a Quality Filter: The temporal attention mechanism acts as an automated gatekeeper. In challenging scenarios, such as a target passing behind an obstacle, the mechanism automatically down-weights the low-quality, occluded frames.

Results

FlowTrack achieved state-of-the-art results across major benchmarks at the time of publication. On OTB2013, it achieved a success score (AUC) of 0.689, outperforming top-tier trackers like CCOT. In the VOT2016 challenge, it ranked 1st in the Expected Average Overlap (EAO) metric (0.334).

Beyond accuracy, FlowTrack offers significant practical advantages. Despite its dual-branch complexity, it operates at 12 FPS. While not yet full real-time, it is roughly 40 times faster than previous leaders like CCOT (0.3 FPS), making it far more viable for real-world deployment.

Success and precision plots of One-Pass Evaluation (OPE) on the OTB2013 benchmark, demonstrating FlowTrack's superior performance.

Conclusion

FlowTrack demonstrates that integrating motion and appearance in an end-to-end framework significantly enhances tracking robustness. While 12 FPS is a massive improvement, future work remains to optimize the model for mobile hardware and explore longer-term temporal dependencies through architectures like Transformers or RNNs.

Summary updated

BibTeX
@inproceedings{zhu2018end,
  author = {Zheng Zhu and Wei Wu and Wei Zou and Junjie Yan},
  title = {{End-to-End Flow Correlation Tracking With Spatial-Temporal Attention}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=SJ-3MAZdWS},
}
Figure