Tracking over a Thousand Objects with Frozen SAM
Segment Anything Models such as SAM 2.1 and SAM 3 perform full-frame tracking independently for each prompted object. This makes tracking hundreds or thousands of objects, such as cells and people in crowds, computationally expensive. To reduce this cost, we present SAM1K, a training-free method that preserves the original model weights, restricts object-specific computation to adaptive windows around each object, and shares object-independent context across all objects. Specifically, each object maintains a small memory patch, while a shared background memory is computed once per frame. A small number of satellite tokens allow each window to access object-specific memory outside its boundaries. When tracking 1024 targets on a single 48 GiB GPU, SAM1K runs 13.4x to 14.6x faster than full-frame tracking with the same SAM 2.1 and SAM 3 models. To facilitate research on tracking thousands of objects, we further introduce MOSE1K, a rendered benchmark containing over a thousand prompted targets per video, on which the released SAM 2.1, SAM 3.1, and SAM-MT predictors all run out of memory. SAM1K tracks all targets in a single streaming pass. On real-world videos, both SAM1K-2.1 and SAM1K-3 maintain tracking accuracy within a 1.5-point margin of their original trackers across all sparse and dense datasets.
