Closing the Reference Gap in Multimodal Reasoning with Explicit Spatial Markers

    This article explains why complex visual reasoning often fails due to a reference gap between language and image regions, and how embedding spatial markers into the chain of thought can make references explicit and traceable. It covers the core method of box and point markers, a typical three-stage multimodal architecture with visual token compression and a sparse language backbone, common reasons spatial logic still underperforms, and a three-layer evaluation approach with engineering guardrails for more stable and interpretable reasoning.

    1. Background: Why Complex Visual Reasoning Gets Lost

    In multimodal tasks, a model faces more than “what is in the image.” At every step of reasoning, it must resolve “which object in the image am I referring to.” As tasks move from single-point recognition to counting, path judgment, curve endpoint localization, and spatial relation comparison, common failure modes emerge: object confusion, repeated counting, missed counts, reference drift, and loss of a stable representation of spatial relations in the middle and later stages of reasoning.

    The root cause can be summarized as a reference gap: there is no stable, traceable mapping between the noun phrases in a language reasoning chain and the concrete regions in an image. When humans count dense objects or navigate a maze, they gesture and point to reduce cognitive load. Abstracted into model reasoning, this means having the model explicitly write spatial coordinates in its chain of thought, acting as a “pointer” between language and vision.

    2. Core Idea: Embedding Spatial Markers into the Chain of Thought

    The key of this framework is not to make the model “see more clearly,” but to make it “point more accurately.” It writes two types of spatial markers into the reasoning process:

    • Box markers: use a placeholder to represent an object and insert a sequence of normalized coordinates into the chain of thought, illustrated as follows (format only, not any specific interface):
      1. <|ref|>TARGET<|/ref|><|box|>[[x1,y1,x2,y2],[x3,y3,x4,y4]...]<|/box|>
    • Point markers: replace the placeholder with coordinate points, illustrated as follows:
      1. <|point|>[[x1,y1],[x2,y2]...]<|/point|>

    This brings three benefits. First, references are “materialized” as coordinates, so later reasoning can repeatedly cite the same marker, reducing drift. Second, counting and path judgment can use explicit markers for deduplication and state tracking. Third, marker sequences are naturally auditable, making it easier to locate whether an error happened in “seeing” or “thinking.”

    3. Architecture Breakdown: The Classic Three-Stage Design and Visual Compression

    This type of solution typically adopts a mature three-stage multimodal architecture rather than an end-to-end raw multimodal one:

    1. Visual encoder: an internal vision backbone that supports arbitrary-resolution input, preserving detail for dense small-object scenarios.
    2. Visual compression and cache optimization: multi-fold compression of the key-value cache of visual tokens at the attention level to reduce the cost of long-sequence reasoning. The emphasis here is on a general engineering idea: high resolution causes token inflation, and compression plus cache reuse is a viable direction, but the specific compression factor is an implementation detail and should not be treated as a universal conclusion.
    3. Language model backbone: a sparsified configuration with “large total parameters, small activated parameters” to trade off cost and capability. This structure is a common route in the industry, with the focus on activating only part of the parameters during inference.

    Note that the specific model sizes, compression factors, and internal mechanism names mentioned in the original text are unverified implementation claims. Engineering readers should focus on the methodology: arbitrary-resolution encoding + visual token compression + sparse language backbone + explicit spatial markers.

    4. Why Spatial Logic May Still Perform Poorly in Practice

    Even with the right idea, complex spatial logical reasoning can remain unstable, often due to:

    • Coupling between coordinate normalization and resolution: inconsistent coordinate scales across input sizes cause marker semantics to drift.
    • Insufficient alignment between markers and visual features: the language model may “know how to write coordinates,” but the coordinates are not truly anchored to visual regions.
    • State decay in long reasoning chains: with too many markers, the model struggles to maintain object sets and visited states.
    • Insufficient training data coverage: mazes, dense counting, and curve endpoints are long-tail structured tasks.

    5. Evaluation and Deployment Recommendations

    Split evaluation into three layers: the reference layer (whether boxes/points hit the target), the state layer (whether counting repeats or paths form loops), and the conclusion layer (whether the final answer is correct). In engineering, use “marker-constrained decoding + an external verifier” to intercept out-of-bounds coordinates, duplicate markers, and set inconsistencies with rules; use logging services and monitoring alerts to track the reference failure rate. For a cloud application, object storage can manage image data, a container platform can host inference services, and a message queue can orchestrate asynchronous tasks, all using general capability categories.

    In summary, the value of embedding spatial markers into the chain of thought is turning “reference” into a computable, traceable first-class citizen. It is not a master key, but combined with strict evaluation and engineering checks, it can significantly improve the stability and interpretability of complex visual reasoning.