SAM3RL: Memory Control via Reinforcement Learning for Visual Object Tracking
Organizations: Charles University, Prague · Czech Technical University in Prague · University of Oxford · EquiLibre Technologies, Inc.
Abstract
Segment Anything Model 3 (SAM 3) is a foundation model for image and video segmentation that sets the state of the art in visual object tracking. Its tracker, inherited from SAM 2, stores information from past frames in a memory bank, managed by a simple First-In-First-Out rule, allowing temporal consistency in complex videos. Several recent methods improve SAM 2 with hand-crafted memory update rules, each targeting a specific failure mode, such as distractors, occlusions, or object motion. However, their gains transfer only partially to the stronger SAM 3 backbone. We instead present a more general, data-driven approach that frames memory control as a sequential decision-making task. SAM3RL is an extension of the SAM 3 tracker with a lightweight memory controller, trained by reinforcement learning, that decides which frames enter the memory bank in order to maximize tracking performance. SAM3RL sets a new state of the art on 10 of 12 tracking and video object segmentation benchmarks, outperforming all hand-crafted rules without any runtime overhead. The same approach applied to SAM 2 gives SAM2RL, which outperforms hand-crafted rules on 9 of the 12 benchmarks, showing the generality of our method across model generations.
Figures & tables
| Quality | F-score | |||||
| Model | FPS | VOTS | VOTS | VOTS-RT | VOT-LT | VOT-LT |
| SAM 3 | 15.3 | 66.4 | 73.4 | 69.1 | 77.1 | 62.8 |
| SAMURAI3 | 15.1 | 64.0 -2.4 | 72.2 -1.2 | 71.5 +2.4 | 77.4 +0.3 | 63.4 +0.6 |
| SAM3Long | 9.3 | 67.9 +1.5 | 75.2 +1.8 | – | 77.1 ±0.0 | 64.5 +1.7 |
| DAM4SAM3 | 14.2 | 66.7 +0.3 | 73.3 -0.1 | 69.5 +0.4 | 77.6 +0.5 | 63.4 +0.6 |
| SAMITE3 | 12.7 | 65.4 -1.0 | 73.6 +0.2 | 72.7 +3.6 | 78.3 +1.2 | 66.2 +3.4 |
| Quality | F-score | AUC | |||||||
| Model | FPS | VOTS | VOTS | DiDi | VOT-LT | VOT-LT | LaSOT | LaSOT | |
| SAM 3 | 15.3 | 66.4 | 73.4 | 71.4 | 77.1 | 62.8 | 75.9 | 61.7 | |
| SAM3RL | 14.9 | 69.3 +2.9 | 75.4 +2.0 | 71.7 +0.3 | 77.2 +0.1 | 65.6 +2.8 | 77.1 +1.2 | 65.2 +3.5 | |
| SAM 3 | 15.5 | 55.5 -10.9 | 66.9 -6.5 | 60.5 -10.9 | 76.2 -0.9 | 61.8 -1.0 | 72.0 -3.9 | 57.4 -4.3 | |
| SAM 3 | 15.8 | 68.1 +1.7 | 75.9 +2.5 | 71.2 -0.2 | 75.7 -1.4 | 65.6 +2.8 | 77.4 +1.5 | 64.8 +3.1 | |
| SAM3RL | 16.0 | 70.0 +3.6 | 76.9 +3.5 | 72.0 +0.6 | 79.0 +1.9 | 68.3 +5.5 | 78.4 +2.5 | 64.7 +3.0 | |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Quality | F-score | |||||
| Model | FPS | VOTS | VOTS | VOTS-RT | VOT-LT | VOT-LT |
| SAM 3 | 15.3 | 66.4 | 73.4 | 69.1 | 77.1 | 62.8 |
| SAMURAI3 | 15.1 | 64.0 -2.4 | 72.2 -1.2 | 71.5 +2.4 | 77.4 +0.3 | 63.4 +0.6 |
| SAM3Long | 9.3 | 67.9 +1.5 | 75.2 +1.8 | – | 77.1 ±0.0 | 64.5 +1.7 |
| DAM4SAM3 | 14.2 | 66.7 +0.3 | 73.3 -0.1 | 69.5 +0.4 | 77.6 +0.5 | 63.4 +0.6 |
| SAMITE3 | 12.7 | 65.4 -1.0 | 73.6 +0.2 | 72.7 +3.6 | 78.3 +1.2 | 66.2 +3.4 |
| Quality | AUC | AO | ||
| Model | DiDi | LaSOT | LaSOT | GOT-10k |
| SAM 3 | 71.4 | 75.9 | 61.7 | 84.7 |
| SAMURAI3 | 71.8 +0.4 | 76.3 +0.4 | 63.5 +1.8 | 85.0 +0.3 |
| SAM3Long | 71.7 +0.3 | 76.1 +0.2 | 62.0 +0.3 | 84.9 +0.2 |
| DAM4SAM3 | 71.8 +0.4 | 77.3 +1.4 | 65.0 +3.3 | 84.8 +0.1 |
| SAMITE3 | 71.8 +0.4 | 77.6 +1.7 | 64.7 +3.0 | 84.5 -0.2 |
| Model | FPS | MOSE | SA-V | SA-V | LVOS | DAVIS | YT-VOS |
| SAM 3 | 15.7 | 59.8 | 82.9 | 84.6 | 88.7 | 91.6 | 89.6 |
| SAMURAI3 | 15.2 | 56.6 -3.2 | 78.7 -4.2 | 81.4 -3.2 | 88.4 -0.3 | 91.3 -0.3 | 89.2 -0.4 |
| SAM3Long | 9.4 | 59.3 -0.5 | 82.5 -0.4 | 85.0 +0.4 | 89.0 +0.3 | 91.3 -0.3 | 89.5 -0.1 |
| DAM4SAM3 | 14.5 | 58.0 -1.8 | 80.4 -2.5 | 83.1 -1.5 | 88.9 +0.2 | 91.6 ±0.0 | 89.4 -0.2 |
| SAMITE3 | 12.8 | 53.4 -6.4 | 81.1 -1.8 | 82.2 -2.4 | 89.3 +0.6 | 90.7 -0.9 | 88.9 -0.7 |
| Length (s) | ||||||||
| Dataset | Seq. | Obj. | FPS | Frames | Avg. | Min | Max | |
| VOTS ( Kristan et al., 2026 ) | 170 | 375 | 30 | 6 | 1860 | 62.0 | 2.1 | 356.6 |
| VOTS(-RT) ( Kristan et al., 2023b ; Kristan et al., 2025 ) | 144 | 341 | 30 | 6 | 2074 | 69.1 | 2.1 | 356.6 |
| VOT-LT ( Kristan et al., 2021 ) | 50 | 50 | 30 | 6 | 4306 | 143.5 | 46.3 | 990.0 |
| VOT-LT ( Kristan et al., 2023a ) | 50 | 50 | 30 | 6 | 3366 | 112.2 | 32.6 | 356.6 |
| DiDi ( Videnović et al., 2026 ) | 180 | 180 | 30 | 6 | 1527 | 50.9 | 2.1 | 333.3 |
| Quality | AUC | AO | ||||
| Source | Model | DiDi | VOTS | LaSOT | LaSOT | GOT-10k |
| SAMURAI ( Yang et al., 2026 ) | SAM 2.1 L | – | – | 68.5 | 58.6 | – |
| SAMURAI | – | – | 74.2 | 61.0 | 81.7 | |
| SAM2Long ( Ding et al., 2025b ) | SAM 2.1 L | – | – | 70.0 | 56.9 | 80.7 |
| SAM2Long | – | – | 73.9 | 60.9 | 81.1 | |
| SAMITE ( Xu et al., 2025 ) | SAM 2.1 L | – | – | 68.5 | 58.6 | – |
| Source | Model | MOSE | SA-V | SA-V | LVOS | DAVIS | YT-VOS | |
| MOSE ( Ding et al., 2025a ) | SAM 2.1 L | 49.4 | – | 78.4 | 84.0 | 90.7 | 89.3 | |
| SAMURAI | 51.1 | – | – | – | – | – | ||
| DAM4SAM | 51.2 | – | – | – | – | – | ||
| SAM2Long | 51.5 | – | 81.2 | 85.3 | 88.8 | 90.2 | ||
| DAM4SAM ( Videnović et al., 2026 ) | SAM 2.1 L | – | – | – | 80.6 | – | – | |
| Hyperparameter | Value |
| Task | |
| Backbones | SAM 3, frozen; image size , bf16 |
| SAM 2.1 L, frozen; image size , bf16 | |
| Memory bank size | 7 slots |
| Action space | 7 (evict one slot after appending the current frame) |
| Trainable parameters | 6.45 M (actor 3.23 M, critic 3.22 M) |
| Quality | F-score | AUC | |||
| Actor input | VOTS | VOT-LT | LaSOT | LaSOT | MOSE |
| SAM3RL (all inputs) | 69.5 0.2 | 68.5 0.3 | 78.0 0.3 | 64.6 0.1 | 60.6 0.3 |
| w/o temporal | 69.1 0.3 | 68.9 0.5 | 78.0 0.1 | 64.3 0.3 | 60.7 0.3 |
| w/o confidence | 69.2 0.2 | 68.4 0.4 | 77.9 0.1 | 64.1 0.1 | 60.4 0.1 |
| w/o semantic | 69.1 0.4 | 67.3 0.4 | 78.0 0.2 | 64.5 0.2 | 60.2 0.2 |
| w/o geometry | 69.2 0.2 | 68.2 0.2 | 77.8 0.1 | 64.5 0.2 | 59.7 0.2 |
| Quality | F-score | AUC | |||
| Actor input | VOTS | VOT-LT | LaSOT | LaSOT | MOSE |
| SAM3RL (all inputs) | 69.5 0.2 | 68.5 0.3 | 78.0 0.3 | 64.6 0.1 | 60.6 0.3 |
| only temporal | 68.7 0.3 | 68.3 0.0 | 77.6 0.2 | 64.1 0.1 | 59.2 0.1 |
| only confidence | 68.7 0.2 | 66.3 0.2 | 77.7 0.2 | 64.8 0.1 | 60.1 0.6 |
| only semantic | 69.1 0.4 | 68.8 0.3 | 78.1 0.3 | 63.7 0.4 | 59.8 0.2 |
| only geometry | 68.8 0.2 | 67.6 0.6 | 77.7 0.2 | 63.9 0.2 | 58.9 0.8 |
Visual Object Tracking
Visual object tracking follows objects across video frames, maintaining their locations and identities despite motion, occlusion, and changing appearance.
See all 175 papers