SAM1K
Tracking over a Thousand Objects with Frozen SAM
on one 48 GiB GPU
windows, SAM 2.1
at 1,024 targets
training-free
Every car is prompted with its first-frame mask, and the frozen SAM 3 tracks all of them at once.
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.4× to 14.6× 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. All code and the MOSE1K dataset are publicly released.
A Thousand Masks, Frame by Frame
Stored predictions of SAM1K-2.1 and SAM1K-3 on the five MOSE1K Short videos, against the rendered ground truth. Each target keeps one colour in every view, and objects left gray carry no mask. Switch views while the video plays, and hover it to magnify.
Same Video, Same GPU
Each clip advances exactly as fast as its method tracks the 1,028 cars of MOSE1K 000 on one 48 GiB GPU, played ten times faster than real time. Frame times, memory and J&F are the paper's timing runs on this video.
Compute Where the Object Is
SAM1K keeps every module and weight of SAM 2.1 or SAM 3 and changes only where the object-specific stages run. Context that does not depend on any object is computed once per frame and read by all of them.
An 8×8 window with 64 satellites holds 128 queries, against 4,096 for the 64×64 grid of SAM 2.1.
The background memory and the pass without object pointers are computed once, however many objects there are.
With every window at full size SAM1K reduces to the official per-object tracker, and a frame with only full windows skips the shared pass.
Over a Thousand Targets per Video
MOSE1K renders procedural 3D scenes with Blender, so every target has an exact mask in every frame, empty when it is occluded or out of view. Lighting and weather range from clear sky and snow to night and dim indoor light. The released SAM 2.1, SAM 3.1 and SAM-MT predictors run out of memory on every video.
5 Short · 5 Long
1920 × 1080
densest video
under 16 × 16 pixels
Scaling Without Losing Accuracy
Numbers from the paper. Timing is the median frame time on one 48 GiB GPU, and accuracy is J&F under the VOS protocol.
From 16 to 1,024 Targets
Mean over seven 100-frame stress clips with nested random subsets of MOSE1K targets. A cross marks the last count before a method runs out of memory.
MOSE1K
Every target scored. Chunks and Freed run what the released trackers cannot fit.
Real Videos
Median frame time of the base tracker and SAM1K, and the paired J&F difference.
SAM1K