NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Dynamic Memory Networks for Object Tracking

Tianyu Yang, Antoni B. Chan

Visual object tracking remains a fundamental challenge in computer vision, primarily due to the difficulty of balancing real-time processing speeds with the ability to adapt to a target's changing appearance. Traditional methods often fall into two camps: fast but rigid template matching, or accurate but slow online learning. This paper introduces MemTrack, a framework that bridges this gap by incorporating a dynamic memory network into a Siamese tracking architecture.

The Speed-Adaptability Trade-off

Most modern trackers struggle with a specific trade-off. Template-matching methods, such as SiamFC, are computationally efficient because they are purely feed-forward. However, they typically rely on a fixed template from the initial frame, making them prone to failure when an object undergoes significant rotation, illumination changes, or deformation. Conversely, tracking-by-detection methods, like MDNet, achieve high accuracy by updating network weights online. The cost of this adaptability is high; the required stochastic gradient descent (SGD) optimization often slows tracking to near 1 fps, which is impractical for real-time applications.

The MemTrack Architecture

MemTrack introduces an external, addressable memory to allow the tracker to "remember" and retrieve past appearances without the need for expensive weight updates.

The MemTrack architecture featuring a Siamese network integrated with an LSTM-controlled memory block.

Key Components:

  1. Dynamic Memory Block: The system maintains an external memory with $N$ slots (typically 8) that store feature maps of the target from previous frames.
  2. LSTM Controller: An LSTM acts as the memory manager. It processes the current search image to generate control signals for reading (retrieving relevant past appearances) and writing (updating the memory with new information).
  3. Attention Mechanism: To ensure the memory retrieval is guided by the object rather than background noise, an attention mechanism "soft-localizes" target features before they reach the LSTM.
  4. Gated Residual Template Learning: To prevent model drift, MemTrack treats the retrieved memory as a residual added to the initial, most reliable template from the first frame. A channel-wise gate controls which specific features are updated, allowing for selective adaptation.
Visualization of the attention mechanism used to soft-localize target features for memory retrieval.

Experimental Results

The model was trained on the ILSVRC VID dataset and evaluated on major benchmarks including OTB-2013, OTB-2015, and VOT-2016.

  • Real-Time Performance: MemTrack achieves a processing speed of 50 fps on a single GPU, making it suitable for real-time deployment.
  • Accuracy and Robustness: On OTB-2015, it reached an AUC of 0.626, outperforming the baseline SiamFC (0.582). It showed particular strength in handling low-resolution video and out-of-plane rotations, scenarios where static template matchers often fail.
  • VOT-2016: The tracker achieved an Expected Average Overlap (EAO) of 0.273, surpassing the state-of-the-art threshold for that benchmark year.

Conclusion

MemTrack demonstrates that external memory is a computationally "cheaper" alternative to online weight updates for model adaptation. By anchoring the tracking process to the initial frame and using memory as a gated residual, the framework achieves a robust balance between stability and flexibility. Future work may explore more sophisticated memory replacement strategies and the integration of bounding box regression to further enhance localization precision.

Summary updated

BibTeX
@inproceedings{yang2018learning,
  author = {Tianyu Yang and Antoni B. Chan},
  title = {{Learning Dynamic Memory Networks for Object Tracking}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01240-3\_10},
}
Figure