Multimodal Reasoning Reference Gap: Using Spatial Pointers in Chain-of-Thought
This article examines why multimodal models often lose track of referred objects during multi-step reasoning, a problem framed as the Reference Gap between entities mentioned in text and their spatial anchors in an image. It explains a framework that embeds explicit bounding box and point markers directly into the chain-of-thought sequence, along with the three-stage architecture, data construction practices, common failure modes, and engineering recommendations for building and evaluating this capability.
1. Where the Problem Starts: Models Can See, but Cannot Point Precisely
In multimodal reasoning, a recurring failure pattern is that a model describes a single frame reasonably well, but as soon as it enters multi-step reasoning, the referred object starts to drift. Typical symptoms include missed or repeated counts in dense object counting, offset localization of a curve endpoint, switching targets midway through a maze reachability judgment, and confusion of multi-object spatial relations (above/below, left/right, containment, occlusion) in the later part of the reasoning chain.
The root cause is not insufficient visual perception, but the lack of a stable binding channel between language reasoning and visual entities. Language is generated autoregressively, and entity descriptions inside the context window are constantly rewritten and compressed; objects in an image, by contrast, are coordinate-based and discrete. As the reasoning chain grows longer, early mentions such as “that person” or “this line” have no unique identifier to refer back to, so the model can only rely on implicit attention alignment, and the error rate accumulates with each step.
The industry abstracts this phenomenon as the Reference Gap: the entities referred to in reasoning text lack an explicit mapping to the spatial anchors that actually exist in the image. There are two possible directions: strengthen representations on the visual side so entities become more distinguishable, or introduce explicit pointers at the reasoning protocol layer so the model can “point back to the original place” at every generation step. The latter is the core of the framework discussed here.
2. Core Idea: Abstracting the “Finger” into Coordinate Pointers in the Chain-of-Thought
When humans count dense objects or walk a maze, they instinctively point with a finger. The cognitive value of this action is that it reduces working memory load: instead of maintaining all objects in mind, one only maintains “where I am pointing right now.” Abstracting this behavior into model reasoning means the chain-of-thought contains not only text but also spatial markers pointing to concrete positions in the image.
The key design of this framework can be summarized in three points:
- Explicit pointers: two kinds of spatial markers, bounding boxes and points, serve as precise pointers between language and image;
- Embedded rather than bolted on: markers are written directly into the chain-of-thought sequence and generated in the same order as the reasoning text, rather than being structured output produced by post-processing;
- Placeholder replacement mechanism: the reasoning text first refers to a target with a placeholder, then replaces it with coordinate markers where precise localization is needed, forming a loop of “point first, then reason, pointing while reasoning.”
A schematic marker protocol is as follows (it only expresses a general design pattern, not a specific product interface):
# Box marker: placeholder plus multiple coordinate groups<|ref|>TARGET<|/ref|><|box|>[[x1,y1,x2,y2],[x3,y3,x4,y4]]<|/box|># Point marker: placeholder replaced directly by coordinates<|point|>[[x1,y1],[x2,y2]]<|/point|>
Here TARGET is the object placeholder, and coordinates are relative normalized numeric sequences. The engineering value of this design is that markers are plain text token sequences, requiring no change to the decoder structure and keeping the training and inference pipelines unified.
3. Architecture Breakdown: The Classic Three-Stage Design and Visual-Side Compression
This class of multimodal models usually follows a three-stage structure of “vision encoder + projection/alignment layer + language model” rather than native joint multimodal modeling. This choice balances engineering maturity with iteration speed.
Vision encoder: an in-house vision backbone that supports arbitrary resolution input, avoiding small-object loss caused by fixed-size cropping. High resolution brings an explosion in the number of visual tokens, so a key-value cache compression mechanism is introduced at the end of encoding (a common attention compression approach in the industry), compressing visual tokens several times and thereby improving the overall compression ratio by an order of magnitude while preserving detail. The engineering trade-off here is that the higher the compression factor, the more easily fine-grained localization degrades in long-chain reasoning, which must be compensated on the data side.
Language model: a sparse structure with a large total parameter count and a small activated parameter count (for example, a common configuration with total parameters in the tens to hundreds of billions and activated parameters within tens of billions). The point of sparse activation is that multimodal token sequences are extremely long and inference cost is mainly determined by activated parameters and sequence length, so sparsification significantly improves throughput per unit of compute.
Alignment and training stages: usually two stages, vision-language alignment pre-training and instruction fine-tuning. The former lets the language model “understand” the distribution of visual tokens; the latter injects the reasoning paradigm of spatial markers. What really determines success or failure is data construction.
4. Data Construction: Making the Act of “Pointing” Supervisable
For spatial markers to become a learnable capability, they must appear in training data in the form of autoregressive targets. General points of data construction include:
- Mixed sources: mainly publicly available visual understanding datasets and web-collected data, covering task families such as counting, localization, chart reading, document layout, and spatial relations;
- Automatic marker generation: detection/segmentation models or rule-based pipelines generate boxes and points for entities as supervision signals in the chain-of-thought;
- Reasoning chain synthesis: templating the process of “observe-point-judge-point again” to generate multi-step reasoning trajectories, ensuring markers appear where disambiguation is genuinely needed rather than in every sentence;
- Negative samples and perturbations: adding hard samples such as occlusion, dense overlap, and similar-colored targets to prevent the model from degrading into “guess first, draw the box later”;
- Scale: pre-training consumes trillions of tokens of corpus, in which interleaved vision-text samples and marker samples are mixed according to task ratios.
It should be emphasized that marker density is a hyperparameter: markers that are too dense squeeze the length available for reasoning text and amplify coordinate errors, while markers that are too sparse lose their disambiguation effect. In practice, density is usually set per task type in layers.
5. Effect Boundaries and Common Failure Modes
This class of framework delivers clear gains on tasks such as counting, single-object localization, and local chart reading, but may still perform poorly on complex spatial logical reasoning, for four common reasons:
- Coordinate precision bottleneck: the resolution of the vision encoder and the compression factor jointly determine the localization ceiling, and small or adjacent objects are easily confused;
- Markers disconnected from semantics: the model may generate boxes that “look reasonable” but have no causal relation to the actual reasoning step;
- Long-chain drift: as the number of steps grows, early markers are not effectively referred back to, and reference degenerates into implicit alignment again;
- Training distribution shift: the style of synthetic marker data differs considerably from the distribution of real user questions, reducing generalization.
Corresponding mitigations include: raising the effective resolution on the visual side, enforcing “refer-back verification” in the reasoning chain (re-citing a previous marker before making a judgment), sampling in layers by task, and introducing self-supervised verification of coordinate consistency.
6. Engineering Implementation Recommendations
To implement similar capability in your own system, it is recommended to proceed in the following order:
- Define the protocol before the model: specify the serialization format of box/point markers and the placeholder replacement rules to keep training and inference consistent;
- Prioritize the data loop: building a loop of “hard sample mining - marker generation - reasoning chain synthesis - regression evaluation” yields more than tuning hyperparameters;
- Layered evaluation: evaluate perception metrics (counting, localization) and reasoning metrics (multi-step spatial relations) separately, so a total score does not mask weaknesses;
- Controllable cost: visual token compression, sparse activation, batching, and cache reuse are the main means of controlling long-sequence inference cost, and can be combined with containerized deployment and monitoring/alerting for capacity planning;
- Observability: record the correspondence between marker generation positions and the final answer, making it easier to determine whether the model “saw wrong” or “thought wrong.”
7. Conclusion
Embedding spatial markers into the chain-of-thought is essentially adding an explicit reference channel to multimodal reasoning. It does not solve every problem, but it turns “which object the model is actually pointing at” from implicit guessing into explicit behavior that can be inspected, supervised, and evaluated. For developers, the real difficulty lies not in protocol design but in data construction and layered evaluation, which determine whether the capability is “drawing boxes” or “reasoning.”
