Multimodal Reasoning with Visual Primitives: Closing the Reference Gap

    This article explains why multimodal models often fail at dense counting, relative positioning, and layout reconstruction, and how visual primitives address the underlying reference gap. It covers the dual-track language-and-space reasoning trace, a sparse Mixture-of-Experts backbone with patch-based image encoding and compressed sparse attention, evaluation metrics such as reference accuracy, and a practical path for data, training, serving, and enterprise deployment.

    1. The Starting Problem: Why Multimodal Models See but Cannot Point Accurately

    A counterintuitive pattern shows up often in engineering practice: multimodal models stay reliable on single-object recognition and standard visual question answering, but output quality drops sharply once a task involves dense counting, relative position judgments, or complex layout reconstruction. The industry has gradually converged on a shared view: these failures do not stem from insufficient perception, but from insufficient referencing capability, which can be called the Reference Gap.

    The Reference Gap refers to the lack of a stable, verifiable one-to-one correspondence between a model’s internal language symbols and spatial positions in an image. Natural language is inherently ambiguous: “the one on the left,” “the second from the top,” and “a scattered pile of coins” have no unique coordinates. Humans reduce cognitive load by pointing at coins while counting them; without an equivalent mechanism, a model drifts repeatedly along its reasoning chain, producing duplicate counts, missed counts, and reversed positions.

    The improvement direction, therefore, should not stop at “higher resolution, more pixels.” What is needed is an unambiguous bridge between language logic and spatial coordinates.

    2. Core Idea: Promoting Spatial Markers to the Minimal Unit of Thought

    The key abstraction in this framework is the visual primitive: spatial markers such as points and bounding boxes are moved forward from post-processing outputs to basic token units inside the reasoning trace. While generating a chain of thought, the model can alternate between natural language fragments and coordinate markers, forming dual-track “language-and-space” reasoning.

    A schematic reasoning trace looks like this (illustrative of form only, not a specific interface):

    1. Think: locate the center of every target first
    2. Point: point(x1,y1) point(x2,y2) point(x3,y3)
    3. Think: sort by y ascending, exclude overlapping boxes
    4. Point: bbox(x4,y4,w,h) marked as duplicate
    5. Answer: 3 unique targets in total

    This design yields three engineering benefits:

    • Verifiability: intermediate steps contain explicit coordinates, making programmatic checks and traceback localization straightforward.
    • Consistency: references are bound to concrete positions, reducing entity drift along the reasoning chain.
    • Transferability: coordinates are a modality-agnostic intermediate representation, naturally fitting downstream tasks such as detection, segmentation, and layout understanding.

    3. Model Architecture: A Sparse Backbone with Mixture-of-Experts Collaboration

    To carry the sequence growth caused by high-frequency coordinate markers, such solutions are typically built on a large-parameter language backbone and adopt a Mixture-of-Experts (MoE) architecture, keeping total parameter count while controlling the activated compute per token. Separating backbone size from activated size is the mainstream way to control inference cost in long chain-of-thought scenarios.

    Two supporting engineering techniques are especially important:

    1. Patch-based image encoding: the image is split into local patches and encoded separately, so spatial positions form a stable mapping to encoding units. Coordinate markers can align directly to patch indices, lowering referential ambiguity.
    2. Compressed sparse attention: visual tokens are compressed into compact representations while sparse connections are retained in attention computation, keeping memory and latency manageable under long sequences. In public industry discussion, such compression is reported to reduce visual information by several orders of magnitude, but the exact factor depends on data and implementation, so engineering evaluation should rely on your own benchmarks.

    One point deserves emphasis: visual information compression must be evaluated separately from coordinate precision. If a higher compression rate widens localization error, the Reference Gap actually gets worse.

    4. Evaluation and Deployment Recommendations

    Evaluation should cover three task types: spatial relation judgment, dense counting, and complex layout question answering. Reference accuracy (the ratio of coordinate hits to entity matches) should be reported separately, rather than looking only at final answer accuracy.

    Engineering deployment can follow this path:

    • Data: construct reasoning trace data with coordinate annotations, ensuring language descriptions align strictly with coordinates.
    • Training: first align visual encoding with language space, then strengthen the model’s use of coordinate markers in reasoning.
    • Serving: use container platforms for elastic scaling, object storage for sample hosting, and logging and monitoring with alerting to track localization deviation metrics.
    • Application: in scenarios such as quality inspection, facility inspection, and document layout understanding, treat coordinate output as part of an auditable evidence chain.

    5. Conclusion

    The next stage of competition in multimodal intelligence is not about “seeing more pixels,” but about whether precise, verifiable reference relationships between language and vision can be built. Making visual primitives such as points and boxes the minimal unit of thought gives models the ability to “think and point at the same time,” a clear technical path for improving the reliability of spatial reasoning today, and an explainable, auditable implementation paradigm for enterprise applications.