Distractor-Aware Memory-Based Visual Object Tracking

Jovana Videnovic, Matej Kristan, Alan Lukezic

TL;DR

DAM4SAM introduces a "drop-in" distractor-aware memory module for the Segment Anything Model 2 (SAM2), specifically designed to prevent tracking drift when visually similar objects are nearby. By splitting memory into recent appearances and "distractor-resolving" anchor frames, the researchers achieved state-of-the-art results across 10 major tracking benchmarks and significantly boosted the performance of real-time trackers like EfficientTAM.

What Problem Does This Paper Address?

While recent memory-based models like SAM2 have revolutionized video segmentation, they often fail in "general visual object tracking" scenarios involving distractors. Distractors are objects that look nearly identical to the target (e.g., one zebra in a herd or a specific player in a sports game).

Standard memory modules typically store the most recent frames to handle appearance changes. However, if a tracker slightly drifts onto a distractor, it begins storing the distractor's features as "the target," leading to irreversible failure. The authors identify a "blind spot" in current architectures: they prioritize segmentation accuracy (what the target looks like now) over discrimination (how the target differs from its neighbors).

Methods

The authors propose DAM4SAM, which replaces the standard SAM2 memory bank with a dual-component Distractor-Aware Memory (DAM):

  1. Recent Appearance Memory (RAM): A standard FIFO (First-In-First-Out) buffer that stores the three most recent target appearances with temporal encoding. This ensures the mask remains "tight" and accurate to the current frame.
  2. Distractor-Resolving Memory (DRM): This stores "anchor frames"—specific past moments where distractors were present. Crucially, these frames are not time-stamped, serving as a "time-less" reference to help the model distinguish the target from similar-looking competitors throughout the video.

The "Aha!" Update Logic: SAM2 naturally predicts three potential masks (multi-hypothesis output), but usually only the top-scoring one is used. DAM4SAM monitors the divergence between the best mask and the alternative masks. If an alternative mask starts segmenting a nearby object while the primary mask stays on the target, the system realizes a distractor is present and triggers an update to the DRM to "remember" that specific ambiguity.

Datasets

The researchers evaluated their model on a massive suite of benchmarks, including VOT2020, VOT2022, VOTS2024, LaSOT, and GOT-10k.

Most importantly, they introduced DiDi (Distractor-Distilled). They observed that many standard sequences are too easy for modern trackers, "diluting" the scores. To fix this, they semi-automatically filtered 808 sequences down to 180 high-difficulty videos where distractors are present for at least one-third of the duration. This dataset serves as a stress test for distractor-handling capabilities.

Key Insights and Ideas

  • Memory Functionality Split: The most significant insight is that tracking memory should serve two distinct roles: segmentation (RAM) and discrimination (DRM).
  • The Danger of Time-Stamps: While temporal encoding (knowing when a frame happened) helps with smooth segmentation, the authors found it actually hurts distractor resolution. DRM works better when it treats anchor frames as "timeless" truths about what the target is (and isn't).
  • Exploiting "Wasted" Data: By using the alternative mask outputs from SAM2—data that is usually discarded—the authors found a "free" way to detect when the tracker is in a high-risk distractor environment.
  • Generalization: The DAM module is "drop-in," meaning it doesn't require retraining the heavy SAM2 encoders. It even improved the performance of lightweight, real-time models (EfficientTAM and EdgeTAM), proving the logic is architecture-agnostic.

Key Results

  • SOTA Performance: DAM4SAM set new state-of-the-art results on 10 benchmarks. On the new DiDi dataset, it outperformed the baseline SAM2.1 by 7% in tracking quality.
  • VOT Success: On the prestigious VOT2022 benchmark, it surpassed the previous winner (MS_AOT) by 12% in Expected Average Overlap (EAO).
  • Real-Time Boost: Integrating DAM into EfficientTAM resulted in an 11% improvement, allowing a much smaller model to match the tracking quality of the much larger, non-real-time SAM2.1-L.
  • Robustness: Qualitative results show DAM4SAM successfully tracking targets through full occlusions and "crowded" scenes (like fish or flamingos) where the baseline SAM2.1 consistently drifted.

Limitations and Future Work

Despite the improvements, the authors noted two main failure modes:

  1. Extreme Visual Similarity: In cases where the target and background are nearly identical (e.g., a white rabbit against a snowy avalanche), the model can still lose the target.
  2. Internal Distractors: SAM2 has a tendency to "overgeneralize." If prompted to track just a bird's head, it might eventually decide to track the whole body because the body has higher "objectness."

The authors suggest that future work should focus on even more efficient memory designs and potentially "learnable" management policies that can decide which frames to store without relying on manual thresholds.

Summary updated

BibTeX
@article{videnovic2026distractor,
  author = {Jovana Videnovic and Matej Kristan and Alan Lukezic},
  title = {{Distractor-Aware Memory-Based Visual Object Tracking}},
  journal = {Int. J. Comput. Vis.},
  year = {2026},
  doi = {10.1007/s11263-026-02790-7},
}
Figure