Hierarchical Attentive Recurrent Tracking

Adam R. Kosiorek, Alex Bewley, Ingmar Posner

Introduction

Hierarchical Attentive Recurrent Tracking (HART) is a biologically-inspired model that mimics the human visual cortex to track unknown objects in cluttered videos. By separating "where" to look from "what" to look for through a multi-layered attention mechanism, it achieves state-of-the-art performance on challenging datasets like KITTI, significantly outperforming previous recurrent attention models.

The Challenge of Class-Agnostic Tracking

Object tracking is a fundamental computer vision task, but "class-agnostic" tracking—where the algorithm must follow an object it has never seen before—is notoriously difficult. In the real world, environments are cluttered with distractors: objects that look similar to the target (like one pedestrian walking past another) but are irrelevant.

Most traditional trackers either process the entire high-resolution image (which is computationally expensive and noisy) or use simple heuristics to guess where the object moved. The authors argue that these methods lack the sophisticated "visual attention" humans use to ignore the background and focus only on the features that distinguish a specific target from its surroundings.

The HART Architecture

The authors introduce HART, a framework that integrates hierarchical attention into a Recurrent Neural Network (RNN). The architecture is directly inspired by the dual-pathway theory of the human brain.

HART Architecture Diagram
  1. Spatial Attention (The "Where"): The first layer uses a differentiable "glimpse" mechanism (Gaussian grid filters) to crop a small region of interest from the high-resolution frame. This discards most of the background immediately.
  2. Appearance Attention (The "What"): Once a glimpse is extracted, the model splits processing into two streams:
  3. Ventral Stream: A standard CNN that extracts visual features (color, shape, texture).
  4. Dorsal Stream: A Dynamic Filter Network (DFN) that generates custom filters on-the-fly based on the target's expected appearance. These filters create a "location map" to segment the object from the background within the glimpse.
  5. Recurrent Integration: An LSTM (Long Short-Term Memory) network acts as the "working memory," storing the object's motion patterns and appearance over time. It uses this memory to predict where the object will be in the next frame.
  6. Auxiliary Losses: To make the model trainable, the authors added specific loss terms that force the spatial attention to stay centered on the object and the appearance attention to suppress distractors.

Datasets and Key Results

The model was evaluated on two key benchmarks: the KTH Pedestrian Dataset (relatively controlled environments) and the KITTI Object Tracking Dataset (a much more difficult real-world dataset featuring high-resolution footage from a moving car, containing multiple overlapping objects and varying lighting conditions).

Tracking and Attention on KITTI Dataset

HART demonstrated a massive leap in performance over previous recurrent attentive trackers (like RATM):

  • KTH Dataset: HART achieved an average Intersection-over-Union (IoU) of 77.11%, nearly doubling the performance of the previous state-of-the-art (55.03%).
  • KITTI Dataset: On this much harder task, HART maintained an IoU of 0.81, while the baseline RATM model essentially failed, achieving only 0.14.
  • Robustness: Qualitative results show the model successfully handling "ID swaps"—situations where a target is briefly occluded by a similar-looking object—thanks to its appearance-based filtering.

Key Insights

  • Biologically Plausible "Where" vs. "What": By explicitly modeling the dorsal and ventral streams, the tracker doesn't just look for "a pedestrian"; it looks for "the specific pedestrian it started with," effectively ignoring nearby people who look similar.
  • Solving the Vanishing Gradient Problem: The authors found that standard tracking losses weren't enough to train the attention layers. By adding an auxiliary Spatial Attention Loss, they provided a stronger "teaching signal" that prevents the model from losing the target early in training.
  • End-to-End Differentiability: Unlike many trackers that use non-differentiable cropping or "hard" attention, HART is fully differentiable. This means the entire system—from the glimpse extraction to the appearance filtering—can be optimized simultaneously using gradient descent.

Limitations and Future Work

  • Single Object Focus: As presented, HART is designed for single-object tracking. While the authors suggest the recurrent nature of the model could allow it to attend to multiple objects in sequence, this wasn't implemented in the paper.
  • Computational Overhead: While attention reduces the area of the image being processed, the use of Dynamic Filter Networks (which generate new weights for every frame) adds computational complexity compared to static CNNs.
  • Future Directions: The authors aim to extend this to multi-object tracking and explore more complex "top-down" influences, where the model's high-level understanding of a scene helps guide its low-level attention.

Summary updated

BibTeX
@inproceedings{kosiorek2017hierarchical,
  author = {Adam R. Kosiorek and Alex Bewley and Ingmar Posner},
  title = {{Hierarchical Attentive Recurrent Tracking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
}
Figure