From Visual Illusions to Pixel Verification: Building Reliable Multimodal AI Systems
Multimodal large models can describe images and reason about them fluently, but fluency does not guarantee correct answers when a question requires actual measurement. This article examines why multimodal systems sometimes substitute familiar knowledge templates for direct image evidence, using a classic circle-size illusion as a case study. It explains why visual representations may not preserve precise dimensions, how conversational context can shift the weight of evidence, and how to turn vague natural-language questions into well-defined measurement tasks. Readers will learn a practical "localize–segment–measure–verify" workflow, pseudocode for a tool-agnostic measurement pipeline, evaluation methods that go beyond single screenshots, and design principles for separating semantic understanding from verifiable computation in production multimodal applications.
1. Understanding an Image Is Not the Same as Measuring It
Multimodal large models can recognize objects, interpret charts, and generate complete reasoning chains around an image. But when the question becomes “are these two circles actually the same size?”, verbal fluency alone does not guarantee a correct answer.
The original material describes a phenomenon worth examining: when presented with modified versions of classic visual illusions, some responses simply reused the common explanation that “the center circles are actually the same size—only the surrounding shapes change the visual perception.” In another attempt, the system first suspected the image was not the standard version, then verified through a script-based measurement. The material also notes that the same system may reach different conclusions across repeated tests or under different context conditions.
These observations are instructive, but their evidentiary boundaries must be made explicit: without the actual image, complete conversation logs, and reproducible measurements, we can neither independently confirm the sizes of the two targets nor rank any model’s overall capability based on them. The more tractable technical question is: why do multimodal systems treat familiar knowledge templates as facts about the current image, and how can engineering processes reduce such errors?
The core distinction is this: recognizing an image type and verifying image properties are two different tasks. The former answers “what does this look like?” The latter answers “what is actually true of this particular sample?”
2. Why Visual Illusions Easily Trigger Template-Based Judgments
2.1 Familiarity Can Override Local Evidence
In the common circle-size illusion, the central target is influenced by surrounding shapes and appears to differ in size, yet in standard examples the center circles are actually identical. If a model recognizes this layout, it may simply retrieve the explanation it has already learned.
The problem is that the current input may not be the standard example. If someone adjusts the diameter of one circle, the layout still “looks like” the classic illusion—but the correct answer has changed.
This produces a characteristic failure mode: the model correctly identifies the subject matter yet incorrectly inherits the default conclusion associated with it. Similar risks exist in charts, forms, and UI screenshots. A table that looks like a familiar format does not mean its field ordering and value semantics match expectations.
Prior knowledge should be used to generate hypotheses, not to replace evidence.
2.2 Visual Representations May Not Preserve Exact Dimensions
Multimodal systems typically resize, patch, or otherwise encode input images to understand them within available compute budgets. These transformations help semantic recognition but are not necessarily suitable for precise measurement.
When two circles differ only slightly in size, image compression, edge anti-aliasing, low-resolution input, and the target’s proportion of the frame can all affect judgment. Note that these are general potential contributing factors, not confirmed explanations for any specific failure. Pinpointing the cause still requires inspecting the input image, the processing pipeline, and experiment logs.
In engineering terms, three levels should be distinguished:
- Semantic judgment: knowing that two orange circles exist in the image.
- Relative judgment: deciding that one appears larger.
- Geometric measurement: producing verifiable pixel widths, areas, or fitted diameters.
Completing the first level does not mean the third level has been achieved.
2.3 Context Can Shift the Evidentiary Weight of a Question
If the input contains not only the target image but also a prior conversation containing an incorrect conclusion, the model must process both visual evidence and textual information. A conclusion repeated in the text can act as an additional cue.
This does not mean context is always harmful. Conversation history can help clarify the task—but unverified historical conclusions should not carry more evidentiary weight than the original image.
For tasks requiring objective determination, it is best to input the target image separately from prior discussion, with an explicit instruction: historical answers are for reference only; the final conclusion must come from observable properties of the current image.
3. Turning Natural-Language Questions into Executable Measurement Tasks
“Are these two orange dots the same size?” looks simple, but it lacks a measurement definition.
“Size” could mean diameter, area, bounding-box width, or perceived size to the human eye. If the targets have outlines, you must specify whether the outline counts toward the size. If the image was taken at an angle, pixel dimensions cannot be equated directly with real-world physical dimensions.
Before executing, define four things:
- Target objects: which two shapes are being compared, and whether surrounding same-colored decorations are excluded.
- Measurement space: pixel dimensions in the original image, or inferred real-world dimensions.
- Metric: area, diameter, or another geometric quantity.
- Error convention: how to handle edge pixels, compression noise, and measurement uncertainty.
For approximately solid circles in flat diagrams, you can cross-check using both area and diameter. Given a segmented area A, the equivalent diameter can be defined as:
d = 2 × √(A / π)
The equivalent diameter is the diameter of an ideal circle with the same area as the region; it does not guarantee the target is a perfect circle. You should therefore also check whether the shape is regular and whether there are gaps, occlusions, or extra connected regions.
4. Establishing a “Localize–Segment–Measure–Verify” Pipeline
4.1 Preserve the Original Input and Its Coordinate Relationships
Prefer the original image over screenshots containing chat text, UI controls, and multiple rounds of scaling. Preserve the original dimensions and log all cropping and resizing operations.
If you must process a screenshot, first locate the target image region. Cropping must not cut off target edges, and left and right regions must not be scaled by different factors. Otherwise, any measured difference may come from processing rather than from the shapes themselves.
4.2 Locate Targets and Generate Candidate Regions
For distinctly colored circles, you can first generate candidate masks using color features, then use connected-component analysis to find individual targets. The key here is not “find all orange pixels” but “find the two center circles specified in the question.”
If surrounding shapes share the same color, color filtering alone is insufficient for localization—you also need to use position, shape, and local layout. For complex images, a model can propose candidate regions that are then measured by a deterministic image-processing pipeline, but you must verify that the candidate regions are accurate.
4.3 Handle Edges and Segmentation Errors
Anti-aliasing produces edge pixels with colors between foreground and background. A threshold that is too strict may miss edges; one that is too loose may include background pixels.
A practical approach is to vary the segmentation threshold within a reasonable range and observe whether the measurement result is stable. If slightly adjusting the threshold flips the size relationship, the result should be marked as inconclusive rather than forced into a definitive answer.
For regular circles, you can also fit a circle to boundary points and check the fitting residuals. When area measurement, bounding-box dimensions, and circle fitting agree, the conclusion is usually more convincing; if the three clearly conflict, segmentation quality should be checked first.
4.4 Output the Conclusion Together with Its Evidence
A reliable output should include at least the measured objects, the metric used, the measurement results, and the limitations. For example:
“The comparison covers the filled regions of the two center circles in the original image. Both area measurement and circle-boundary fitting show the right-hand target is larger; the size relationship holds across the tested range of segmentation thresholds. This conclusion refers to pixel dimensions in the image and does not represent real-world physical size without calibration.”
If the evidence is insufficient, state where it falls short: targets too small, blurred boundaries, heavy occlusion, or a measured difference within the error margin. “Cannot reliably distinguish” is also a valid conclusion.
5. A Tool-Agnostic Reference Pipeline
The following pseudocode expresses the processing logic; it is not a runnable interface example:
image = load_original_image()target_regions = locate_two_circles_to_compare(image)for each target_region:candidate_results = []for each reasonable segmentation_setting:mask = segment_by_color_and_spatial_constraints(target_region, segmentation_setting)component = select_connected_component_matching_target(mask)if component is missing, touches the crop boundary, or has an abnormal shape:record_segmentation_failure()continuearea = count_component_pixel_area()equivalent_diameter = 2 * sqrt(area / pi)fitted_diameter, fitting_residual = fit_circle_to_boundary()record_measurement_and_quality_info()compare_valid_measurements_of_both_targets()if the result is stable across segmentation settings AND the difference exceeds measurement uncertainty:output_size_relationship_with_evidence()else:output_cannot_reliably_distinguish()recommend obtaining a clearer image
What matters most here is not the algorithm names but three constraints: the measurement must target the correct objects, the conclusion must account for error, and failure must be detectable.
Invoking a script does not automatically mean verification has succeeded. If the script measures the wrong object, uses the wrong scale, or treats background as target, the tool merely makes the error look more precise.
6. How to Evaluate Instead of Relying on One Screenshot
The repeated-testing phenomenon described in the original material reminds us: a single response shows one behavior, not stability. Proper evaluation requires simultaneously controlling image content, prompt phrasing, and context conditions.
6.1 Build a Sample Set That Includes Counterexamples
An evaluation set must not contain only standard illusion images. At minimum, it should cover:
- Images where the center circles are genuinely equal in size;
- Images with similar layouts but different center-circle sizes;
- Images with both obvious and subtle size differences;
- Control images without surrounding distractor elements;
- Images with reduced resolution, compression, or cropping.
“Familiar appearance but changed answer” samples are especially important, because they test whether the system relies on current evidence or merely recites a memorized explanation.
6.2 Separate Visual Capability from Context Interference
Test the same image under four conditions: clean input, neutral framing, prior conversation containing an incorrect conclusion, and screenshots with extra UI text. Keep the question phrasing and other conditions as consistent as possible, then compare how results change.
If answers shift markedly with textual context, context interference deserves further study; if answers mainly shift with image clarity, improving visual input should come first. But such experiments still need sufficient samples—internal causes cannot be asserted from isolated results.
6.3 Record Process Metrics, Not Just Accuracy
Beyond the final answer, record:
- Whether the targets were correctly located;
- Whether an appropriate measurement metric was used;
- Whether the measurement basis was reported;
- Whether cases that cannot be reliably judged were recognized as such;
- Whether conclusions were stable under identical input conditions;
- Whether verification was performed when visual and textual cues conflicted.
Ideally, evaluate both tool-free judgment and judgment supported by a measurement pipeline. This lets you separate visual recognition ability, tool-use ability, and overall system reliability, rather than collapsing them into a single score.
7. Extending from Small Tests to Real System Design
Circle comparison is only a low-risk example. The same failure pattern can appear in chart reading, engineering drawing inspection, form recognition, and quality control: the system sees a familiar layout and assumes the details match the common pattern.
Application design should therefore divide labor by task nature:
- For scene description and open-ended interpretation, leverage the model’s semantic understanding.
- For judgments about quantity, size, position, and consistency, introduce verifiable computational pipelines.
- For ambiguous inputs and edge cases, allow the system to decline judgment or request additional material.
- For high-stakes conclusions, add independent verification and human review.
- For every operation, retain logs of inputs, coordinates, measurement settings, and results for traceability.
A genuinely reliable multimodal system is not one that always gives an immediate confident answer, but one that can distinguish knowledge, observation, and measurement: it knows what comes from experience, what comes from the current image, and what has been verified.
The value of visual illusion testing is not to prove that a model is “smart” or “dumb.” It reveals a practical engineering principle: when a question has an objective, measurable answer, do not let fluent explanation substitute for factual verification. Use the model to understand the task, use deterministic computation to verify properties, and constrain conclusions with explicit error conventions—only then can an occasionally correct demo become a stable, traceable production capability.
