TL;DR
Ask a segmentation model to find "finger food" on a crowded baking tray, and it might stare back blankly; ask a vision-language model (VLM) to outline every single piece, and it will likely draw sloppy, hallucinated boxes. This paper introduces Visual Thinking, a training-free loop that pairs a VLM's semantic creativity with Segment Anything Model 3’s (SAM 3) pixel-sharp precision. Together, they spot, verify, and count hard-to-find objects on a single desktop GPU—matching massive frontier models at a fraction of the time.
What Problem Does This Paper Address?
Modern computer vision faces a classic division of labor problem. Vision foundation models like SAM 3 are phenomenal at drawing crisp segmentation masks around standard, clearly visible objects, provided you give them short, literal noun phrases. Throw them a curveball—tiny objects, heavy occlusion, or abstract categories like "finger food"—and their recall plummets.
Conversely, VLMs understand rich context. Looking at that same tray, a VLM immediately recognizes that "finger food" actually means "corn candy" in this specific scene. Yet VLMs are notoriously bad at translating high-level understanding into exact spatial coordinates or masks.
Simply chaining a VLM to SAM 3 isn't enough. If a VLM suggests searching for "green fruit" to catch missed limes, SAM 3 might also scoop up green apples or double-count limes it already found. To truly search an image, a system needs memory to track evidence across multiple queries, separating genuine new discoveries from noise.
Methods
The authors frame object detection as an active perception problem—a classic robotics concept where an agent iteratively chooses where and how to look next to maximize information gain. Everything here is training-free, using frozen off-the-shelf models orchestrated by a lightweight mathematical controller.
Architecture of the three-stage Visual Thinking pipeline. (Note: Let's look at the detailed workflow in Figure 3 below.)
The pipeline unfolds in three stages:
- Initialization & Tiling: SAM 3 scans the full image using the original text prompt. High-confidence detections are cropped and fed back into SAM 3 as positive visual exemplars (visual "hints"), alongside optional fixed or adaptive image tiling to zoom in on crowded regions.
- The Object Library: Every candidate object gets a file in a central library. Detections across passes are matched and deduplicated using Intersection-over-Minimum ($\text{IoM}$), which handles objects sliced by crop boundaries better than standard overlap metrics.
- VLM Proposer & Controller: A frozen VLM inspects the image, current detections, and past search history, proposing up to three new short phrases labeled by semantic breadth (narrow, moderate, or broad). A non-learned controller filters out irrelevant drift via text-embedding cosine similarity, then ranks the remaining prompts by balancing two drives: verification (resolving uncertain candidates via binary entropy) and novelty (testing unexplored descriptive words).
Crucially, an object's confidence score is updated via a weighted average where narrow, specific prompts carry heavier weight than broad ones. To make the final count, an object must have high overall confidence and be confirmed at least once by a narrow prompt—preventing broad searches like "vehicle" from flooding a "car" count with trucks.
Datasets
Because Visual Thinking requires zero training, all datasets are used strictly for evaluation:
- FSC-147 & FSCD-147: Generalist counting and bounding-box localization benchmarks spanning 147 classes, from sparse scenes to 3,700+ packed objects.
- CARPK: Aerial drone views of parking lots for testing dense, repetitive object localization.
- PixMo-Count: Low-count scenes (2–10 objects) featuring tricky viewpoints and occlusions.
- OmniCount (Fruits): Mixed fruit piles testing fine-grained discrimination without false positives.
- Green Citruses (Newly Introduced): A brutal real-world test split of 35 outdoor images (with newly annotated ground-truth boxes) featuring tiny green citruses camouflaged against green leaves under varying lighting.
Key Insights and Ideas
- Semantic Rewording Unlocks Zero-Shot Recall: When SAM 3 completely whiffs on an abstract prompt like "finger food" (0 detections), the VLM bridges the vocabulary gap by proposing concrete visual terms like "triangular candy," recovering all 191 instances.
- Frontier Models "Cheat" Like Humans: Testing Claude Opus 5.5 (with extra-high reasoning and image-zooming tools) on dense FSC-147 images revealed a fascinating quirk: rather than localizing every object, Claude often counts a couple of patches and extrapolates the total! Its estimated count error is remarkably low (10.50 MAE), whereas evaluating its explicit bounding boxes yields a much worse 30.07 MAE. Visual Thinking, by contrast, explicitly masks every counted object.
- Small Specialists Beat Monoliths on Efficiency: Orchestrating a general VLM with a specialized detector via simple information-theoretic heuristics matches frontier reasoning accuracy while keeping every prediction transparent, masked, and fast.
Key Results
- Massive Gains Over Vanilla SAM 3: Visual Thinking slashes counting Mean Absolute Error (MAE) by ~18 points on FSC-147 (from 33.47 down to 14.78) and by ~8 points on CARPK (9.50 to 1.47). Bounding-box Average Precision (AP) jumps by over 12 points on both FSCD-147 (32.24 to 44.28) and CARPK (52.05 to 64.53).
- Camouflaged Objects: On the new Green Citruses dataset, Visual Thinking cuts SAM 3's counting error nearly in half (26.26 to 14.14 MAE, beating Claude's 16.20) and boosts AP from a dismal 2.34 to 19.65.
- Speed: On benchmarks using fixed or no tiling, Visual Thinking runs locally on a single desktop GPU in 5.91 seconds per image on average, compared to 46.53 seconds for Claude Opus 5.5 via API.
Limitations and Future Work
Visual Thinking is ultimately bound by its sensor's vocabulary: on OmniCount, SAM 3 didn't know what a "sweet apple" was and confused it with red apples, dragging down localization scores (41.20 AP vs. Claude's 58.76). Additionally, VLM rewording can occasionally "drift"—proposing "spiky fruit" for a pineapple and accidentally adding a nearby dragon fruit, or chasing a mislabeled prompt onto the wrong objects entirely. On ultra-dense scenes requiring adaptive tiling (like FSCD-147), repeated SAM 3 calls also push runtime up to ~51 seconds. Future work can extend this lightweight VLM + specialist controller blueprint beyond counting to a broader array of computer vision tasks.
Summary updated