Once for All: a Two-flow Convolutional Neural Network for Visual Tracking

Kai Chen, Wenbing Tao

Abstract

The "Once for All" tracker (YCNN) addresses the fundamental bottlenecks of speed and model drift in visual tracking by reformulating the task as a general similarity problem. By utilizing a two-flow convolutional neural network (CNN) that compares a target patch to a search area, the model achieves high-accuracy tracking at a real-time speed of 45 frames-per-second (FPS). Crucially, the system requires no online retraining or updates, eliminating the primary source of cumulative error in traditional trackers.

Introduction

Most traditional visual trackers are "object-specific," requiring the algorithm to initialize a model and frequently retrain it frame-by-frame to account for appearance changes. This approach suffers from two major flaws: high computational cost, which prevents real-time performance, and "drift," where slight update errors compound over time, leading to eventual failure.

The YCNN architecture aims to create a "once-for-all" model trained offline to recognize any object. By treating tracking as a similarity measurement rather than a classification task, the model learns the concept of "objectness" and can generalize to unseen targets without the need for expensive online backpropagation.

The YCNN Architecture

The core of the system is a two-flow convolutional neural network designed for end-to-end localization.

Overview of the YCNN two-flow architecture, showing the object and search flows leading to a response map.

As shown in the architecture diagram, the network processes two inputs simultaneously: an "object patch" (the target) and a "search patch" (the candidate region). Both flows share weights across three convolutional layers to extract both spatial and semantic features. These features are concatenated and passed through fully connected layers to produce a 31x31 response map. The peak of this map indicates the most likely location of the object within the search area.

To handle the extreme class imbalance—where 95% of the search area is background—the authors implemented a custom loss function. This function uses exponential weighting to prioritize positive predictions and an "indicating map" to ignore negligible errors, preventing the network from defaulting to a zero-prediction state.

Training Strategy and Data Augmentation

Because labeled tracking data is relatively scarce compared to classification datasets, the authors utilized a two-stage training process. They first pre-trained the model on ImageNet. To simulate the temporal dynamics and appearance changes found in video, they applied heavy data augmentation to static images.

Examples of data augmentation techniques used to simulate appearance changes during offline training.

These augmentations—including rotation, translation, illumination variance, and mosaic effects—allow the model to learn robustness to common tracking challenges entirely offline. Following pre-training, the model was fine-tuned on the VOT2015 and TB-100 datasets to better capture temporal dynamics.

Key Results and Performance

YCNN demonstrates a significant leap in tracking efficiency, running at 45 FPS on a Tesla K40c. This is orders of magnitude faster than other deep trackers like MDNet, which often operate at 1 FPS.

On the CVPR2013 benchmark (51 sequences), YCNN outperformed nine state-of-the-art trackers in five out of six evaluation categories. It showed particular strength in Spatial Robustness Evaluation (SRE), achieving a success score 10% higher than the second-best tracker, MEEM. This performance validates the "object-free" approach, proving that a model can handle spatial perturbations and initialization errors effectively without online updates.

Conclusion

By avoiding backpropagation during the tracking phase, YCNN eliminates the primary cause of model drift and the main bottleneck for speed. While the tracker currently faces challenges in scenes with heavy background clutter or similar-looking "distractor" objects, its ability to provide high-accuracy, real-time tracking without online updates represents a significant shift in the visual tracking paradigm. Future work may involve optimizing scale estimation and training on larger video datasets to improve discriminative power in crowded environments.

Summary updated

BibTeX
@article{chen2018once,
  author = {Kai Chen and Wenbing Tao},
  title = {{Once for All: a Two-flow Convolutional Neural Network for Visual Tracking}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2018},
  doi = {10.1109/tcsvt.2017.2757061},
}
Figure