Evaluating and Optimizing Visual Understanding in Multimodal Large Models
This article examines why multimodal large models often fail at visual understanding in real production workflows, and how to treat it as a measurable, reproducible engineering problem. It breaks down failures across four layers—perception, localization, comparison, and output—then shows how to build an evaluation set with stratified target scales, comparison types, task types, and distractors, along with sample data structures. It defines a metric suite covering existence accuracy, localization precision (IoU), comparison stability, and structured-output compliance, and outlines engineering optimizations such as input-side enhancement, structured prompts, multi-stage pipelines, human-in-the-loop active learning, and general cloud capabilities. Finally, it describes a fixed-set plus canary comparison method for deciding whether a new version is genuinely better.
1. Background: Why “Seeing” Is Not the Same as “Seeing Accurately”
In the engineering practice of multimodal large models, visual understanding is often the most overestimated capability. Many teams see strong results in demos, but once the model enters real business workflows—UI defect detection, game frame comparison, or industrial quality inspection image review—it starts to fail in a familiar way: there is an obvious error in the image, yet the model answers that it sees nothing. This is not simply a lack of model capability. It is the combined result of four stages: perception, localization, comparison, and output.
The typical symptoms raised in the original discussion can be abstracted into three categories:
- When the target is off-center or far from the camera, the model’s sensitivity to salient errors drops sharply.
- Given multiple screenshots from the same camera position, the model struggles to establish a stable comparison.
- Even with an explicit “same camera position” prompt, the model still needs a large number of redundant screenshots to barely localize the issue.
All three point to the same engineering conclusion: visual understanding should be treated as a measurable, reproducible, and optimizable system problem, not judged by a single subjective experience.
2. Root Cause Breakdown: Four Layers of Visual Understanding Failure
2.1 Perception Layer: The Trade-off Between Resolution and Receptive Field
Model inputs are usually resized to a fixed size. Small, distant targets lose effective pixels drastically after resizing, and details get smoothed away. This is the direct reason a target “disappears” once it is a little farther from the camera.
2.2 Localization Layer: Mismatch Between Global Semantics and Local Coordinates
Models are good at answering “what is this image roughly about,” but fine-grained localization tasks like “which pixel region contains the error” require additional region-alignment capability. Without explicit region hints, the model tends to produce global descriptions rather than precise coordinates.
2.3 Comparison Layer: No Stable Anchor Across Multiple Images
The essence of same-camera-position comparison is establishing pixel-level or semantic-level correspondence. If images have slight shifts, lighting changes, or compression noise, the model cannot tell where the “changed point” is and can only guess repeatedly.
2.4 Output Layer: Insufficient Prompting and Structured Constraints
A natural-language prompt like “find the same camera position” places only limited constraints on the model. Without a structured output specification, the model’s results are unstable and hard for downstream programs to consume.
3. Evaluation Set Design: Turning Subjective Experience into Quantifiable Metrics
To determine whether a version update genuinely improves visual capability, you must first establish an evaluation baseline. It is recommended to build the evaluation set across the following dimensions:
- Target scale stratification: near, medium, and far views in certain proportions, covering hard samples where the target occupies less than 5% of the frame.
- Comparison type stratification: exactly the same camera position, slight shift, lighting change, and compression noise.
- Task type stratification: existence judgment, region localization, difference comparison, and structured output.
- Distractor stratification: UI element occlusion, text watermarks, motion blur, and so on.
A sample evaluation data structure looks like this:
{"case_id": "visual-0421","task": "difference_localization","images": ["shot_a.png", "shot_b.png"],"meta": {"viewpoint": "same","target_ratio": 0.03,"noise": "compression"},"expected": {"changed": true,"bbox_normalized": [0.42, 0.18, 0.51, 0.27]}}
4. Metric System: From “Answering Correctly” to “Answering Stably”
A combination of four metric types is recommended:
- Existence accuracy: whether the target or difference is recognized as present.
- Localization precision: the overlap between the predicted region and the annotated region, measured by intersection over union.
- Comparison stability: consistency of results across repeated runs on the same set of multiple images.
- Structured compliance rate: whether the output meets format requirements that downstream systems can parse.
Localization precision can be computed as follows:
def iou(pred, gt):x1 = max(pred[0], gt[0]); y1 = max(pred[1], gt[1])x2 = min(pred[2], gt[2]); y2 = min(pred[3], gt[3])inter = max(0, x2 - x1) * max(0, y2 - y1)area_p = (pred[2]-pred[0]) * (pred[3]-pred[1])area_g = (gt[2]-gt[0]) * (gt[3]-gt[1])return inter / (area_p + area_g - inter + 1e-8)
5. Engineering Optimization Path: A Combined Approach That Does Not Rely on Model Capability Alone
5.1 Input-Side Enhancement
For distant small targets, apply super-resolution or region-of-interest cropping first, then feed the result to the model. For multi-image comparison, perform image registration first, moving “find the same camera position” out of the model’s responsibility and into preprocessing.
5.2 Structured Prompts and Output
Rewrite vague prompts into constrained, structured instructions that force the model to output fixed fields:
Output JSON only:{"changed": true/false, "bbox": [x1,y1,x2,y2], "reason": "brief explanation"}
5.3 Multi-Stage Pipeline
Adopt a two-stage “coarse localization—crop and upscale—fine localization” strategy: first let the model give a rough region, then run a second confirmation on the cropped image. This significantly reduces missed detections of small targets.
5.4 Human-in-the-Loop and Active Learning
Feed human-annotated hard samples back into the evaluation set and training set, forming a continuous iteration loop that prevents the same class of problems from recurring.
5.5 General Cloud Capability Support
For engineering deployment, you can combine object storage to store image samples, message queues to decouple evaluation tasks, container platforms to host inference services, and logging and monitoring with alerting to track metric fluctuations. The general cloud product categories offered by Baidu AI Cloud can serve as the foundation for this kind of architecture.
6. Version Iteration Evaluation: How to Answer “Is the New Version Better”
For an upcoming new version, it is recommended to use a fixed evaluation set plus canary comparison:
- Fix the evaluation set and random seed to ensure reproducibility.
- Run batch inference for the old and new versions on the same samples, and output a metric-difference table.
- Report statistics separately for the hard subset, so overall averages do not mask weaknesses.
- Combine with manual spot checks to confirm whether metric improvements translate into real experience improvements.
Only when localization precision, comparison stability, and structured compliance rate all improve at the same time can you conclude that visual understanding has genuinely advanced.
7. Conclusion
The reliability of visual understanding comes from system design rather than expectations pinned on a single point. By separating and measuring perception, localization, comparison, and output, and by backing them with structured evaluation and pipeline engineering, you can maintain stable engineering returns even in a fast release cadence.
