Introduction
Visual object tracking often fails when encountering "distractors"—objects that share a high degree of visual similarity with the target. While Meta’s Segment Anything Model 2 (SAM2) has significantly advanced memory-based tracking, its reliance on a simple First-In-First-Out (FIFO) buffer makes it susceptible to memory pollution and visual redundancy. When a target is occluded or a similar-looking object appears, the tracker may suffer an "identity crisis," drifting away from the intended target.
Methodology: Distractor-Aware Memory (DAM)
To address these limitations, we introduce DAM4SAM, which replaces the standard SAM2 memory with a dual-component architecture designed to handle both short-term appearance changes and long-term distractor resolution.
Dual-Component Memory Architecture
The proposed Distractor-Aware Memory (DAM) splits the memory into two distinct functional units:
- Recent Appearance Memory (RAM): This serves as short-term memory, storing the most recent target appearances to maintain segmentation accuracy. To reduce redundancy and prevent pollution from noisy or empty frames, it is updated only every 5 frames and only when the target is clearly present.
- Distractor-Resolving Memory (DRM): This acts as a long-term "anchor" storage. It specifically preserves frames containing challenging distractors. Unlike standard memory, these frames are stored without temporal timestamps, allowing the model to treat them as a "timeless prior" to distinguish the target from similar objects even after prolonged occlusions.
Introspection-Based Updates
A key innovation in DAM4SAM is the use of the tracker's internal uncertainty to trigger memory updates. SAM2 naturally generates multiple mask hypotheses. By monitoring the divergence between the top-predicted mask and alternative hypotheses (e.g., non-overlapping bounding boxes), the system can detect visual ambiguity. When high divergence is detected, it signals the presence of a distractor, triggering an update to the DRM to "remember" the scenario and avoid future identity swaps.
Experimental Results
DAM4SAM was evaluated across seven major benchmarks, including VOT2020, VOT2022, VOTS2024, and a new Distractor-Distilled (DiDi) dataset designed to test robustness in crowded environments.
- VOT2022 Performance: DAM4SAM achieved an Expected Average Overlap (EAO) of 0.753, representing a 12% improvement over the SAM2.1 baseline and a 9% improvement over the previous VOT2022 winner.
- Robustness: On the DiDi dataset, which features sequences filtered for high distractor presence using DINOv2 features, DAM4SAM significantly outperformed SAM2.1.
- Efficiency: The system maintains high operational efficiency, running at 11 FPS on an A100 GPU, compared to the 13.3 FPS of the baseline model.
Conclusion
By categorizing memory by function—short-term appearance versus long-term distractor resolution—and leveraging internal model introspection for updates, DAM4SAM provides a robust solution to the identity crisis in visual tracking. It sets a new state-of-the-art on six major benchmarks while maintaining real-time performance capabilities.
Summary updated