Fast SAM2 with Text-Driven Token Pruning
On the map: Efficient LLM inference and serving → Token pruning and merging for ViTs
Abstract (arXiv)
Segment Anything Model 2 (SAM2), a vision foundation model has significantly advanced in prompt-driven video object segmentation, yet their practical deployment remains limited by the high computational and memory cost of processing dense visual tokens across time. The SAM2 pipelines typically propagate all visual tokens produced by the image encoder through downstream temporal reasoning modules, regardless of their relevance to the target object, resulting in reduced scalability due to quadratic memory attention overhead. In this work, we introduce a text-guided token pruning framework that improves inference efficiency by selectively reducing token density prior to temporal propagation, without modifying the underlying segmentation architecture. Operating after visual encoding and before memory based propagation, our method ranks tokens using a lightweight routing mechanism that integrates local visual context, semantic relevance derived from object-centric textual descriptions (either user-provided or automatically generated), and uncertainty cues that help preserve ambiguous or boundary critical regions. By retaining only the most informative tokens for downstream processing, the proposed approach reduces redundant computation while maintaining segmentation fidelity. Extensive experiments across multiple challenging video segmentation benchmarks demonstrate that post-encoder token pruning provides a practical and effective pathway to efficient, prompt-aware video segmentation, achieving up to 42.50 percent faster inference and 37.41 percent lower GPU memory usage compared to the unpruned baseline SAM2, while preserving competitive J and F performance. These results highlight the potential of early token selection to improve the scalability of transformer-based video segmentation systems for real-time and resource-constrained applications.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Token pruning and merging for ViTs, one of 12 directions in Efficient LLM inference and serving. Builds on 35 of its 45 references that are in the map. First posted on arXiv 24 Dec 2025.
Builds on
35 of 45 references.
Closest ancestors · 3
Same direction, newest first
- 2024VLTP: Vision-Language Guided Token Pruning for Task-Oriented Segmentation13 Sep
- 2023Dynamic Token Pruning in Plain Vision Transformers for Semantic Segmentation2 Aug
- 2023Revisiting Token Pruning for Object Detection and Instance Segmentation12 Jun
Other references · 32
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
- 2023Segment Anythingcited by 8,234
- 2023Visual Instruction Tuningcited by 7,869
- 2022A ConvNet for the 2020scited by 3,579
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,446
20 more
- 2023Video-LLaVA: Learning United Visual Representation by Alignment Before Projectioncited by 1,402
- 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,358
- 2017The 2017 DAVIS Challenge on Video Object Segmentationcited by 957
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 675
- 2022XMem: Long-Term Video Object Segmentation with an Atkinson-Shiffrin Memory Modelcited by 439
- 2019Video Object Segmentation using Space-Time Memory Networkscited by 438
- 2023Hiera: A Hierarchical Vision Transformer without the Bells-and-Whistlescited by 290
- 2016One-Shot Video Object Segmentationcited by 235
- 2015Bayesian SegNet: Model Uncertainty in Deep Convolutional Encoder-Decoder Architectures for Scene Understandingcited by 218
- 2023Putting the Object Back into Video Object Segmentationcited by 188
- 2022Decoupling Features in Hierarchical Propagation for Video Object Segmentationcited by 148
- 2021Unidentified Video Objects: A Benchmark for Dense, Open-World Segmentationcited by 133
- 20202018 Robotic Scene Segmentation Challengecited by 124
- 2021BERT: A Review of Applications in Natural Language Processing and Understandingcited by 109
- 2021Stereo Correspondence and Reconstruction of Endoscopic Data Challengecited by 103
- 2023XMem++: Production-level Video Segmentation From Few Annotated Framescited by 53
- 2022Breaking the "Object" in Video Object Segmentationcited by 49
- 2024LVOS: A Benchmark for Large-scale Long-term Video Object Segmentationcited by 44
- 2025EdgeTAM: On-Device Track Anything Modelcited by 21
- 2021CLIP-Lite: Information Efficient Visual Representation Learning with Language Supervisioncited by 7
Built on by
Citing papers per year: 2026: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Adaptive Two-Stage Visual Token Pruning for Efficient Inference in Video-Language Models
- 2024Token Cropr: Faster ViTs for Quite a Few Tasks
- 2025Decoupled Seg Tokens Make Stronger Reasoning Video Segmenter and Grounder
- 2025Where Do Tokens Go? Understanding Pruning Behaviors in STEP at High Resolutions
- 2025EVTP-IVS: Effective Visual Token Pruning For Unifying Instruction Visual Segmentation In Multi-Modal Large Language Models
- 2025The SAM2-to-SAM3 Gap in the Segment Anything Model Family: Why Prompt-Based Expertise Fails in Concept-Driven Image Segmentation
- 2025Correspondence as Video: Test-Time Adaption on SAM2 for Reference Segmentation in the Wild
- 2025LVLM_CSP: Accelerating Large Vision Language Models via Clustering, Scattering, and Pruning for Reasoning Segmentation