Vision-language models are systems that answer questions about images. They now describe scenes fluently, yet they fail at elementary spatial questions: is the cup left of the plate, what can the person in the photo see, how does this piece look after rotation. When such a model gets an answer wrong, nobody can currently say which step went wrong. It could have misread an object relation, adopted the camera's viewpoint when the question asked for a person's viewpoint, or made a bad deduction from correct facts. This proposal borrows the main tool of automated software debugging, called spectrum-based fault localization. That tool runs a program on many tests and flags the lines that execute mostly in failing runs. We apply it to a model's step-by-step spatial reasoning. Each item becomes a small "test suite" of controlled image and question variants whose correct answers must change in known ways: a mirror flip swaps left and right, a viewpoint change rotates the frame, added grid lines should change nothing. Steps whose claims break these expected patterns mainly in failing runs are ranked as the likely fault. Because the expected patterns follow from the transformation itself, no ground-truth label is needed at test time.
The payoff is diagnostic and practical. Benchmarks such as MATH-Vision and MARBLE show that multimodal models collapse on geometric and 3D reasoning. MARBLE reports 0% on full 3D cube assembly. MATH-Vision's error breakdown of 42.2% reasoning errors versus 31.9% vision errors came from manual annotation. An automatic, step-level localizer would replace that manual labor. It would also let us repair only the broken step instead of resampling the whole answer.
Core Claim
Spatial reasoning failures in vision-language models can be localized to a specific intermediate step without labels. The method combines two signals: a spectrum signal computed over metamorphic variants of each problem, and an intent signal computed from what the question actually requires. The localizer should find the true faulty step more often than an LLM judge that reads the trace, and repairing the flagged step should beat full resampling at matched compute.
"Metamorphic" is a software-testing term for checks of the form "if the input changes like this, the output must change like that." These checks can be run even when the correct output is unknown.
How It Differs From What Exists
The localization recipe is taken from software engineering. Two papers supply it directly. Better Automatic Program Repair by Using Bug Reports and Tests Together ranks code lines by bug-report text similarity and fuses that ranking with test-spectrum suspiciousness through unsupervised rank aggregation. FuseFL feeds spectrum rankings, test outcomes and code summaries to a chain-of-thought LLM, and localizes the faulty line at top-1 in 197 of 324 student programs. Earlier adaptive fusion methods learn per-bug weights between text and spectrum signals:
All of these localize faults in code, where tests come with labeled expected outputs.
Our setting differs in three ways. The "program" is a model's reasoning trace. The "tests" are counterfactual images whose expected outputs are defined only relative to each other. The "statements" are claims (relations, a chosen reference frame, deductions) that must be aligned across runs.
FuseFL also constrains the design. 78.5% of its failures are silent output errors rather than crashes. A wrong spatial relation is exactly that kind of silent error, which is why we do not rely on an LLM reading a single trace.
Three lines of work motivate the gap without filling it:
- MATH-Vision and MARBLE diagnose compound perception-and-reasoning failures, but only end to end.
- ViewSpatial-Bench shows models are locked to camera coordinates (GPT-4o at 34.98%). Its fine-tuned MVSM model fixes this to 82.09%, but only by retraining.
- SpatialThinker trains models to write an explicit scene graph before answering. We reuse that structured trace format as the thing we debug, rather than as a training target.
Deductive Verification of Chain-of-Thought Reasoning is the closest competitor in spirit. It shows step-wise verification against isolated premises raises verification accuracy from 52% to 69–84% on text math. Our method instead reads behavior across many runs, not the judgment of a single reader.
Research Program
The trace. Every model is prompted, or for SpatialThinker natively trained, to emit a structured trace with five slots:
- the objects it observed;
- the reference frame it adopted (camera, or a named agent);
- pairwise relation claims;
- deduction steps;
- the answer.
Slots are given canonical keys, such as relation(A,B) or frame, so the same slot can be compared across variants of a problem.
The test suite. For each item we generate a family of variants with known metamorphic relations, in three kinds:
- Equivariant edits, where the right claim changes in a known way: horizontal mirror, object swap, and viewpoint change rendered from ScanNet 3D scenes.
- Invariant edits, where nothing should change: grid lines, recoloring, and removing or altering titles and textual cues, following the shortcut probes of Plot Twist.
- Perspective re-queries, which ask the same question from another agent's frame.
The spectrum signal. A run "fails" when its answer violates the metamorphic relation relative to the other runs. A slot is "covered with a violation" in a run when that slot's claim breaks its own expected transformation. Each slot then gets an Ochiai suspiciousness score:
$$s = \frac{e_f}{\sqrt{(e_f+n_f)(e_f+e_p)}}$$
Here $e_f$ and $e_p$ count failing and passing runs in which the slot violated its relation, and $n_f$ counts failing runs in which it did not.
The intent signal. Following the bug-report-similarity ranking in Blues, we parse the question into the slots it depends on. A question "from the woman's viewpoint" weights the frame slot, and "how many" weights the object slot.
Fusion and repair. The two rankings are fused by the unsupervised rank aggregation of RAFL. The top-ranked slot is then repaired by a targeted sub-query, such as a cropped region, an explicit "from X's position" re-query, or a recount. The downstream deduction is re-run conditioned on the corrected slot.
Ground truth for evaluation. The true fault is defined causally. It is the earliest slot whose oracle correction, using benchmark annotations, flips the final answer to correct. This needs datasets with intermediate ground truth:
- ViewSpatial-Bench, with ScanNet geometry and COCO keypoints;
- What'sUp, from Kamath et al., with controlled object placements;
- STVQA-7K, from SpatialThinker, with synthetic scene graphs;
- MARBLE's 3D-piece-to-2D-array perception test, with cell-level truth.
A secondary regime: emotional and narrative cues as shortcuts. Literary analysis of space reads physical layout as a projection of inner states:
- enclosure and confinement as oppression, in The House on Mango Street and Never Let Me Go;
- thresholds and isolation as trauma, in Shutter Island;
- macro-, micro- and domestic scales, in Eileen Chang's urban space.
These studies are qualitative, and we do not claim to formalize them. We borrow only their motif vocabulary of enclosure, threshold, visibility and scale. With it we build a small probe on ViewSpatial scenes. Each scene is paired with an affective sentence about a person in it ("she felt trapped, unable to see the door"), which is either consistent or inconsistent with the actual geometry. Questions ask only geometric facts.
Gao et al. found that models infer intentions well but do not take spatial perspectives. That predicts the affective sentence will act like a chart title in Plot Twist: a language prior that overrides the image. The probe tests whether the localizer correctly blames the frame and relation slots, rather than the deduction, when the emotional cue misleads.
Baselines
The naive reference point is a uniform or positional prior that always blames the earliest slot, or always the deduction slot. MATH-Vision's manual error analysis suggests deduction errors dominate (42.2%), so the deduction-always rule is a non-trivial prior. For repair, the naive point is the model's original single-pass answer.
The strongest existing localization competitor is the step-wise verifier of Deductive Verification of Chain-of-Thought Reasoning. We instantiate it with the same vision-language model, plus GPT-4o as a stronger judge. The verifier checks each slot against the image and the earlier slots and names the first invalid one. Its reported figures are 52% whole-chain and 69% (up to 84% on GSM8K) step-wise verification accuracy, on GPT-3.5-turbo and text math only. No reported result found on Lacuna for step-level fault localization on spatial vision-language traces, so we must measure it ourselves.
The second strong competitor is a FuseFL-style judge, after FuseFL. This is an LLM given the trace, all variant outcomes, and our spectrum ranking, prompted with chain-of-thought to name the faulty slot. It tests whether an LLM reading the evidence improves on the raw score.
For fairness, every method sees the same variant family and the same model calls. Verifier baselines receive a token budget equal to the variants plus localization cost of our method. Prompts for all methods are tuned on the same held-out split of STVQA-7K.
We count it as beating the baselines if fused localization exceeds the step-wise verifier in top-1 accuracy against the causal ground-truth fault. The margin must be statistically reliable on at least ViewSpatial-Bench and What'sUp, for both a weak base model (Qwen2.5-VL-3B) and a strong one (SpatialThinker-7B).
Ablations isolate each ingredient. We compare spectrum alone, intent alone, and fused; equivariant-only versus invariant-only variant families; and suite size from 2 to 16 variants.
For repair, the competitor is self-consistency resampling at matched tokens. Retraining approaches serve as reference ceilings, not compute-matched rivals: MVSM at 82.09% on ViewSpatial-Bench, and SpatialThinker's reported +12.1% over GPT-4o on 3DSRBench.
Why not just…?
Why not just ask a strong model to verify each step? This is the real threat. Ling et al. show step-wise verification works well on text. The weakness in our setting is that a verifier which misperceives the image will endorse the same wrong relation. Kamath et al. show models favor training-prior placements, such as objects "on the table," over actual geometry. The spectrum signal does not depend on any single perception being right, only on claims transforming consistently. The verifier-versus-spectrum comparison, split by whether the true fault is perceptual or deductive, settles this. If the verifier matches us on perceptual faults, the spectrum idea adds little and we would say so.
Why not just resample and take a majority vote? Self-consistency can fix answers, but it localizes nothing. MATH-Vision also reports that chain-of-thought sometimes hurts these models, because early visual errors propagate, and resampling repeats the same visual prior. Our repair experiment compares targeted single-slot repair against self-consistency at equal token budgets. If voting wins, localization still has diagnostic value but no repair value.
Why not just fine-tune on spatial data, like MVSM or SpatialThinker? Fine-tuning raises accuracy, but it does not tell anyone why a given answer failed. Kamath et al. also found that fine-tuning on spatial data often lowered accuracy on controlled What'sUp images. We treat the fine-tuned models as subjects, not rivals. The question is whether their remaining errors shift from frame faults to deduction faults, which only a localizer can reveal.
Why not just textualize the scene and reason in text? GeoSQA found that models still fail with clean text descriptions. SmartPlay agents given exact textual coordinates still issue contradictory moves. Textualizing removes perception faults but leaves deduction faults, which our method also targets.
Decisive Experiments
The first check is localization accuracy. We report top-1 and top-3 accuracy against causal ground-truth faults on ViewSpatial-Bench, What'sUp, STVQA-7K held-out, and MARBLE's perception test. We run four models: Qwen2.5-VL-3B, MVSM, SpatialThinker-7B and GPT-4o.
The second check is agreement with human judgment. Our automatic perception-versus-reasoning split on MATH-Vision geometry items is compared against the published manual GPT-4V error breakdown, as a sanity check on the distribution.
The third check is targeted repair. We measure answer accuracy gain at matched compute against self-consistency, on ViewSpatial-Bench allocentric questions, where camera-frame errors should make the frame slot the dominant fault.
The fourth check is the affective-cue probe. It succeeds if misleading emotional sentences measurably raise frame and relation faults, and the localizer attributes them there rather than to deduction.
The proposal fails cleanly in either of two cases: the fused localizer does not beat the step-wise verifier on perceptual faults, or targeted repair does not beat matched resampling. Either outcome would be reported as the main result.
References
- Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset
- MARBLE: A Hard Benchmark for Multimodal Spatial Reasoning and Planning
- Better Automatic Program Repair by Using Bug Reports and Tests Together
- Demystifying Faulty Code: Step-by-Step Reasoning for Explainable Fault Localization
- Information retrieval and spectrum based bug localization: better together
- Network-Clustered Multi-Modal Bug Localization
- ViewSpatial-Bench: Evaluating Multi-perspective Spatial Localization in Vision-Language Models
- SpatialThinker: Reinforcing 3D Reasoning in Multimodal LLMs via Spatial Rewards
- Deductive Verification of Chain-of-Thought Reasoning
- Plot Twist: Multimodal Models Don't Comprehend Simple Chart Details
- What's "up" with vision-language models? Investigating their struggle with spatial reasoning
- Symbolic Images Implied in The House on Mango Street from the Perspective of Feminism
- The Analyses on Themes and Images of the Film Never Let Me Go
- Spatial Narration and Psychotherapy in Suspense Novels Taking "Shutter Island" as an Example
- Space from Geographical and Psychological Perspectives: An Exploration of Urban Cultural Space in Eileen Chang's Works
- Vision Language Models See What You Want but not What You See
- GeoSQA: A Benchmark for Scenario-based Question Answering in the Geography Domain at High School Level
- SmartPlay : A Benchmark for LLMs as Intelligent Agents