Evaluating and Improving Visual Reference Capabilities in Multimodal Models

    This article explores the challenges of visual referencing in multimodal models, differentiating between perception gaps and reference gaps. It examines two key improvement paths: leveraging explicit geometric primitives and using images as intermediate thought carriers. Additionally, it highlights common factors causing inconsistent evaluation results across different interfaces and emphasizes the importance of recording complete configurations for accurate model comparisons.

    1. Problem Background: Image Recognition vs. Precise Reference

    When multimodal models process images, they typically go through three stages: the visual encoder converts pixels into features, the cross-modal module aligns these features with text, and the language model performs reasoning based on the aligned representations to output the final result. If information is lost or poorly expressed in any stage, the final answer may be incorrect.

    In practical evaluations, errors can generally be categorized into two types.

    1.1 Perception Gap

    The perception gap refers to insufficient information during the visual encoding stage. If the image resolution is too low, the target objects are too small, or details are lost due to occlusion or compression, the model cannot draw correct conclusions from incomplete inputs, even with strong reasoning capabilities. These issues can usually be mitigated by increasing the input resolution, employing patching techniques, or improving the encoder.

    1.2 Reference Gap

    The reference gap refers to the model’s imprecise way of describing objects using natural language during the reasoning process. Suppose there are over twenty people in the image wearing similar clothing. If the model only uses descriptions like “the person in the middle” or “a few people on the left,” the intermediate steps become difficult to verify. As the reasoning chain lengthens, descriptive errors accumulate, causing the counting result to deviate from reality and potentially breaking the localization logic.

    Distinguishing between these two types of problems is crucial. If the primary issue is a perception gap, simply increasing the number of reasoning steps is often ineffective. If the main issue is a reference gap, the model’s method of expressing referenced objects must be changed.

    2. Explicit Geometric Primitives: Replacing Vague Descriptions with Coordinates

    One approach is to have the model directly output geometric primitives during the reasoning process, such as points, bounding boxes, and polygons. Each primitive corresponds to a specific region in the image, allowing subsequent reasoning steps to reference these regions without relying on natural language descriptions.

    Below is an illustrative structure solely for explaining the concept, not a definition of any specific API:

    1. Step 3:
    2. Thought: Annotate and count the people in the first row one by one
    3. Primitives:
    4. - Type: Point, Coordinate: (0.12, 0.34)
    5. - Type: Bounding Box, Top-Left: (0.10, 0.30), Bottom-Right: (0.16, 0.45)

    The advantage of this representation is its unambiguity. Each object has a unique coordinate, allowing for deduplication through overlap checks during counting, and path planning can be verified point by point.

    Its limitations are equally clear:

    • Coordinate precision depends on training data quality and image resolution. Coordinate errors may lead to missed or duplicate object selections.
    • When there are many objects, the output length increases, raising reasoning costs.
    • The model needs to stably learn to output geometric representations during training, which demands high standards for data and training pipelines.

    When evaluating such methods, you should check whether the coordinates align with the actual objects, rather than just looking at whether the final answer is correct.

    3. Using Images as Intermediate Thought Carriers

    Another common approach is to have the model call image operations during reasoning. The model can crop local regions, zoom into details, draw boxes, or label numbers on the image, and then use the processed image as a new input to continue reasoning.

    The core workflow can be summarized in pseudocode:

    1. Function solve_via_image_ops(model, image, question, max_steps=8):
    2. context = [image, question]
    3. repeat max_steps times:
    4. action = model.next_step(context)
    5. if action.type is "answer": return action.content
    6. if action.type is "crop": context.append(crop(image, action.region))
    7. if action.type is "annotate": image = draw_markers(image, action.markers); context.append(image)
    8. return None

    The advantage of this approach is its interpretability. Each intermediate image can be manually inspected, and incorrect cropping regions or annotation positions can be directly located. It also reuses general image processing capabilities without requiring the model to internally learn coordinate output.

    The trade-off is a longer workflow. It requires support from a tool-calling layer, and each step may introduce latency and potential failures. Loop limits, exception handling, and intermediate result caching all need careful design.

    4. Why the Same Model Yields Inconsistent Results Across Entry Points

    In evaluations, the same model often performs differently across various interfaces or APIs. The reasons usually lie in the calling environment. Common factors include:

    1. Inference Mode Toggle: Some interfaces disable deep reasoning or image tools by default, which can cause significant differences in results.
    2. System Prompts: The calling wrapper layer may inject additional instructions, altering the output format and reasoning approach.
    3. Image Preprocessing: Automatic scaling and compression can alter the clarity of details.
    4. Sampling Parameters: Settings like temperature affect the stability of counting-related tasks.
    5. Version Differences: Default configurations may change after client or dependency library updates.

    Therefore, any performance comparison should record the complete configuration, including model version, inference mode, image resolution, and parameter values.