NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Visual Thinking: Training-Free Active Perception for Counting and Localizing Hard-to-Find Objects

Emil Kielar, Pratik ChaudhariarXiv 2026

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.

Figure 1. Visual Thinking turns SAM 3 and a VLM into an itera- tive active perception loop. The VLM proposes new text prompts, and the controller ranks them. Next, the prompts are run on SAM 3, utilizing confident detections as positive exemplars. Masks from all searches are saved and deduplicated in an object library, from which the final count is calculated.

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.)

Figure 3. Our approach for visual thinking for object detection has three main parts. (1) Initialization. We query SAM 3 with the target prompt q0 on the full image, then use positive exemplars to increases recall and, depending upon the dataset, perform a third query on crops of the image to recover small objects. These detections are used to initialize an object library with one entry per object that consists of a mask mi, a confidence ci (weighted mean of SAM 3 scores) and an indicator ei of whether the object was detected confidently by a semantically narrow phrase. (2) VLM proposer. A frozen VLM is provided the image, crops of objects in the library, the VLMs actions from past iterations and the outcomes of its past actions. It proposes up to three short phrases, with each phrase labeled as being semantically narrow, moderate, or broad relative to the original prompt q0. (3) Controller. The controller discards phrases unrelated to q0 and ranks the rest to achieve a balance between improving the uncertainty of existing object detections and discovering new objects using different text prompts. SAM 3 is used to execute the top-ranked action a = (q, τ, B), with phrase q, crops τ and exemplars B. Detections from SAM 3 are matched to the library using intersection-over-minimum metric (IoM) and confidence estimates of objects in the library are updated at each step. This system has no trainable parameters.

The pipeline unfolds in three stages:

  1. 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.
  2. 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.
  3. 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.
Figure 4. Successes and failures of Visual Thinking. (a) The abstract category “finger food” recovers no objects in the SAM 3 pass. The VLM’s rewordings into “corn candy” and “triangular candy” recover every instance. (b) Added descriptors of the structure and material (“window shade structure” and “striped fabric cover”) find awnings initially missed by SAM 3. (c) The rewording into “vehicle” and positive exemplars help recover the missing cars. (d) A mislabeled original query steers the rewording towards “candy sprinkle” recovering unintended objects. (e) The VLM’s rewording drifts into broader categories such as “spiky fruit” which adds dragon fruit, and “textured oval fruit”, which recovers every fruit in the image. (f) The VLM proposes the broad prompt “jar” which recovers a small jar in front of the vases.

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

BibTeX
@misc{kielar2026visual,
  author = {Emil Kielar and Pratik Chaudhari},
  title = {{Visual Thinking: Training-Free Active Perception for Counting and Localizing Hard-to-Find Objects}},
  year = {2026},
  eprint = {2611.31973},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31973},
}
Figure