Introduction
The Segment Anything Model (SAM) has revolutionized interactive segmentation, yet its heavy Vision Transformer (ViT) backbone remains a significant bottleneck for real-time applications. While existing "Efficient SAM" variants focus on model distillation or smaller architectures, "Segment This Thing" (STT) addresses the problem through the lens of biological vision. By implementing a foveated approach, STT prioritizes high-resolution processing at the user's point of interest while aggressively downsampling the periphery.
Methodology: Foveated Tokenization
The core innovation of STT is Foveated Tokenization. Inspired by the human eye, which maintains peak visual acuity only in the central fovea, STT processes images using a variable-resolution grid centered on the user's point prompt.
The process involves three main steps:
- Crop and Center: A square crop is extracted from the image, centered on the point prompt.
- Variable-Resolution Patching: Instead of uniform patching, the crop is divided into concentric rings. Patches near the center are small, capturing fine details, while outer patches are larger.
- Resampling: To maintain compatibility with standard Transformer encoders, all patches—regardless of their original size—are resampled to a uniform $16 \times 16$ pixel size.
This strategy reduces the token count from 4,096 in the original SAM to just 172. This reduction significantly lowers the computational cost of the Transformer's self-attention mechanism, which scales quadratically with the number of tokens. Notably, STT omits the explicit prompt encoder used in SAM; since the foveated crop is always centered on the prompt, the location information is implicitly encoded in the token sequence.
Experimental Results
STT-Base (STT-B) achieves a remarkable latency of 7.3ms (approximately 137 FPS) on an NVIDIA RTX 3080, making it 42x faster than SAM-H. In terms of efficiency, STT-B requires only 30.9 GFLOPs, a fraction of the 1,000+ GFLOPs needed for SAM-B.
The model was evaluated across nine diverse benchmarks, including ADE20K, Cityscapes, and EgoHOS. Despite the drastic reduction in tokens, STT maintains competitive mIoU scores. It particularly excels at segmenting small objects, as the foveated crop ensures high-resolution features are always available at the prompt location. The authors also demonstrated real-time gaze-prompting, where STT segments objects based on eye-tracking data from AR glasses.
Conclusion
STT demonstrates that efficiency in foundation models can be achieved by rethinking input representation rather than just model architecture. By mimicking the foveated nature of human vision, STT enables high-fidelity, real-time segmentation on edge devices, paving the way for advanced AR/VR and robotic vision systems.
Summary updated