Overview
Visual Object Tracking (VOT) requires continuously predicting an object's bounding box in a video based solely on its initial location. Because videos are highly dynamic, a target's appearance frequently changes due to rotation, lighting, or occlusion, while the background shifts. To handle this, modern trackers compare the current "search region" against a "template" (the first frame) or a "memory" bank of recent historical frames.
However, existing methods force the model to interact with all features from these templates or memory banks. This is highly inefficient and often harmful. Not all historical information is relevant to the current frame; forcing the network to process outdated appearances or background noise introduces redundancy and distractors, ultimately degrading tracking accuracy.
To address this, researchers introduce a novel tracking paradigm called RFGM (Relevance Feature Global Memory). RFGM uses a "relevance attention" mechanism to dynamically select only the most useful token-level features from a Global Representation (GR) memory. This approach reduces memory overhead, mitigates error accumulation, and achieves state-of-the-art tracking performance at a fast 71 FPS.
The RFGM Framework
Built on a vanilla Vision Transformer (ViT-B) architecture, RFGM introduces two major innovations to streamline how historical data is processed:
1. Global Representation (GR) Memory
Instead of saving entire historical frames—which wastes space and retains background noise—the GR memory stores information strictly at the token level. As new frames are processed, a Token Filter evaluates the new tokens alongside the existing memory, keeping only the most representative target tokens from the entire video sequence. By breaking templates into tokens and aggressively filtering them, the model naturally discards background noise, creating a highly concentrated representation of the object's core features.
2. Relevance Attention Mechanism
Standard cross-attention mixes the current frame with every single token in memory. RFGM replaces standard multi-head attention in specific transformer layers (the 4th, 7th, and 10th blocks) with Relevance Attention. This mechanism scores memory tokens based on their relevance to the current search region and strictly selects only the top-$k$ tokens to participate in the attention calculation. Forcing the model to only look at the most relevant historical tokens prevents outdated or occluded appearances from confusing the tracker.
3. Adaptive Token Ranking
To make this hard top-$k$ selection differentiable during training, the authors utilize the Gumbel-Softmax trick. During inference, the model simply ranks and selects the highest-scoring tokens, discarding the rest. Discarding unselected tokens actually reduces the computational complexity of subsequent transformer layers, allowing the model to maintain a robust memory bank without sacrificing real-time inference speeds.
Key Insights and Performance
The model was trained on standard VOT datasets (COCO, LaSOT, GOT-10k, TrackingNet) and evaluated across both large-scale and small-scale benchmarks.
Key Findings: * Memory "Goldilocks Zone": Bigger memory isn't always better. Performance peaked at a memory size of 192 tokens. Exceeding this limit caused performance to drop, as a larger memory is more prone to accumulating tracking errors over time. * Efficiency: The relevance attention mechanism reduces the computational cost from 40.00G MACs to 37.66G MACs compared to standard attention. * State-of-the-Art Accuracy: RFGM outperforms models that use much larger search resolutions (>300x300), despite using a standard 256x256 resolution. * TrackingNet: 84.7% AUC and 89.6% Normalized Precision ($P_{Norm}$). * GOT-10k: 74.1% Average Overlap (AO) and 84.6% Success Rate ($SR_{0.5}$). * LaSOT: 70.3% AUC. * Speed: The tracker runs at a highly competitive 71 FPS on a single NVIDIA RTX 3090 GPU, making it highly viable for real-time applications.
Limitations and Future Work
A critical limitation common to memory-based trackers is error accumulation. Because the GR memory updates based on the model's own tracking predictions, an incorrect prediction (e.g., drifting onto a visually similar background object) will cause incorrect features to be permanently stored in the memory. This "poisoned" memory can then derail tracking in subsequent frames. Future work will investigate new methods to actively identify and reduce the accumulation of these errors and distractors over long video sequences.
Summary updated