Binding Visual Features Point by Point

Udith Haputhanthri, Declan Iain Campbell, Rim Assouel, Jonathan D. Cohen, Taylor Whittington Webb

TL;DR

Vision Language Models (VLMs) can easily write a poem about a painting, yet routinely fail to count ten apples or find a "green T" in a sea of red T's and green L's. This paper reveals that training VLMs to "point" to objects—by writing out spatial coordinates one by one in text—spontaneously induces a human-like internal visual search routine. By processing objects sequentially rather than all at once, VLMs overcome feature interference and genuinely learn to generalize on multi-object tasks.

What Problem Does This Paper Address?

If you flash an image of a red circle and a blue square at a human for a split second, they might swear they saw a blue circle. In neuroscience, this is the binding problem: when a system processes an entire scene in parallel using shared feature representations (like "red," "blue," "circle," "square"), those features get cross-wired. Humans solve this by shifting from rapid, parallel perception to slower, serial processing—moving our spotlight of attention to inspect one object at a time.

VLMs suffer from the exact same binding errors on multi-object tasks like counting and visual search. Recently, researchers found that training VLMs to "point" via text (outputting explicit (x, y) coordinates for objects before answering) boosts accuracy. However, nobody knew why this worked under the hood. Does spitting out text coordinates actually force the model's internal attention to scan the image like a human eye, and does this solve the binding problem?

Methods

Rather than inventing a new architecture, the authors open the black box of existing VLMs (including Molmo-7B, Qwen2.5-VL-7B, Gemma-3-12B, and LLaVA-1.5-7B) using mechanistic interpretability and controlled fine-tuning:

  • Representational Similarity Analysis (RSA): Measuring how similarly a VLM represents different colored shapes to see if its internal codes are conjunctive (unique representation per object, no overlap) or compositional (shared representations for shared features).
  • Attention Tracking & Causal Mediation: Mapping where the model's internal attention focuses while generating (x, y) coordinates. The authors then perform "brain surgery"—swapping the internal attention maps of two objects mid-generation—to see which specific layers and attention heads causally drive where the model points next.
  • Direct vs. Point-to-Answer Fine-Tuning: Training models from scratch on binding tasks in two ways: outputting the answer in a single forward pass (direct answer) versus enumerating object coordinates and features in text before answering (point-to-answer).
Figure 1: Pointing-via-text induces an internal visual search routine in VLMs. The left-most column shows example images and corresponding prompts. Columns 2–5 illustrate the pointing trace generated by the Molmo vision language model, along with the model’s internal attentional states. Each frame displays the average distribution of attention accompanying the generation of coordinates for a single object. The red dots indicate the centroids of these attention distributions, and the green dots indicate the coordinates generated in the model’s textual output. The results show a close match between textual coordinates and internal attentional states, despite the lack of explicit supervision on these internal states.

Datasets

The authors combine real-world data with custom synthetic suites designed to isolate feature binding and out-of-distribution (OOD) generalization:

  • PixMo-Count: Real-world images with ground-truth object coordinates and counts, used for mechanistic analysis and real-world counting fine-tuning.
  • Synthetic Single-Object & Visual Search: Custom arrays of colored letters/shapes (including perceptually graded colors) where models must spot a target (e.g., a gray "F") among distractors sharing colors or shapes. Fine-tuned on 1 target; tested OOD on up to 50 targets and unseen color-shape combinations.
  • Synthetic Counting: Multi-object scenes varying in object diversity (medium vs. high). Models are trained on 6–10 objects and tested OOD on 11–15 objects and swapped diversity levels.

Key Insights and Ideas

  • Compositionality is a double-edged sword: VLMs represent features compositionally. That’s great for flexible generalization, but in a single parallel pass, distractors sharing a feature with a target hijack the model's attention.
  • Textual pointing creates an internal spotlight: Even though models receive zero supervision on their internal states, training them to output text coordinates causes their intermediate layers to form a tight, focal spotlight of attention on one object at a time.
  • Discovery of "Search Heads": The visual search routine isn't smeared vaguely across the network. In Molmo-7B, a specific cluster of attention heads in layer 19—dubbed search heads—causally steers the spotlight from object to object.
  • An emergent bookkeeper: Through attention-swapping interventions, the authors uncovered a remarkably systematic internal algorithm: the model scans scenes in an intrinsic spatial order and remembers the farthest object along that path it has already counted so it doesn't loop backward.
Layer-wise analysis showing a sharp peak in causal mediation score and minimum error between attention centroids and generated points at layer 19.

Key Results

  • Compositional interference confirmed: Qwen2.5-VL’s visual representations strongly correlated with an idealized compositional model ($r = 0.9269$, and $r = 0.8968$ for continuous color gradients) over a conjunctive one ($r = 0.6278$).
  • Pinpointing the mechanism: In Molmo-7B, generated coordinates closely matched ground-truth locations (normalized RMSE of 1.84 vs. 25.82 shuffled). Internal attention alignment and causal mediation both peaked sharply at layer 19.
  • Eliminating distractor interference: Fine-tuning Qwen2.5-VL to point boosted normalized attention on the true target object from 0.514 to 0.955, slashing attention wasted on shared-feature distractors from 0.248 down to 0.024.
  • Dramatic OOD generalization: While direct-answer models aced in-distribution tests via statistical shortcuts, they collapsed on OOD tests—dropping to 0% accuracy when counting 11–15 synthetic objects, and failing when more targets were added in visual search (which should make the task easier!). Point-to-answer models maintained near-perfect accuracy across visual search and generalized robustly across higher counts and real-world scenes.

Limitations and Future Work

First, while the representational and attention analyses strongly link compositional codes to binding errors, further mechanistic work is needed to prove the exact causal chain between them. Second, the point-to-answer models were trained via supervised fine-tuning on explicit, procedurally generated coordinate traces. That is impractical for general-purpose AI—and notably, models fine-tuned on synthetic counting did not transfer to real-world counting. Looking ahead, the authors suggest borrowing a page from modern reasoning LLMs (like DeepSeek-R1): using reinforcement learning so VLMs can discover spatial, serial visual search strategies on their own without needing hand-crafted pointing traces.

Summary updated

BibTeX
@inproceedings{haputhanthri2026binding,
  author = {Udith Haputhanthri and Declan Iain Campbell and Rim Assouel and Jonathan D. Cohen and Taylor Whittington Webb},
  title = {{Binding Visual Features Point by Point}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=yu8ajcYUw2},
}
Figure