When a vision-language model reasons step by step about an image, each step makes claims about the world. Some come from looking at the picture ("the angle at B is marked 90°"), some come from the accompanying text ("AB = 5"), and some are deductions from earlier claims. Today these claims are either trusted blindly or checked all-or-nothing. We propose to turn each reasoning step into logical facts, each tagged with where it came from. Each fact gets its own reliability weight. A logic solver then keeps the most trustworthy set of facts that is mutually consistent. The facts the solver throws out tell the model exactly which image region to look at again, or which text claim to distrust, before it answers.
The motivation is two failures that sit side by side in the literature. Multimodal models often do better when the diagram is deleted. MATHVERSE reports models gaining 5%+ accuracy with the image removed, and finds reasoning chains full of hallucinated steps even when the final answer is right. Language models also build confident arguments on top of false text premises. Thinking in a Crowd shows Qwen3-8B falling from 96.22% to 77.03% on SciAux with two misleading snippets when thinking is on, which is worse than the 74.87% it gets with thinking off. In both cases the model has no principled way to decide which source to believe when sources disagree. Our claim is that the right unit for "dynamic modality weighting" in reasoning is the individual fact, not the whole modality. Once facts are weighted individually, resolving conflicts becomes a standard weighted-optimization problem that a solver answers exactly.
Core Claim
The proposal combines three things. Chain-of-thought prompting (having the model write out intermediate reasoning) supplies the candidate facts. Dynamic modality weighting becomes a per-fact reliability score rather than a global vision-versus-text gate. A symbolic solver turns those scores into a consistent, auditable belief set. We make three claims. First, weighted repair beats both unverified reasoning and hard, unweighted logical checking on inputs where image and text conflict. Second, the gain does not reduce to simply re-examining every visual claim. Third, the weights can be set zero-shot, or calibrated from about 200 labeled facts, with no model fine-tuning. The data-efficiency constraint is deliberate. The whole point of routing deduction through a solver is that the reasoning layer never needs training. Neuro-symbolic systems such as Visual Question Answering based on Formal Logic (a Prolog engine over parsed scene graphs, 99.1% on CLEVR with 10% of the data) earn that efficiency. However, they collapse when their input facts are wrong, and the authors state that they depend on high-quality scene graphs.
How It Differs From the Closest Work
Four lines of work bracket this idea, and each plays a different role. VeriCoT supplies the method. It translates each chain-of-thought step into first-order logic, checks entailment with the Z3 solver, and self-reflects on failures, reaching 94.1% verification precision on ProofWriter. However, it is text-only, and its check is hard: a step either follows or it does not, and every premise is equally trusted. We keep its autoformalization but replace the hard check with weighted optimization over facts whose weights depend on perceptual evidence.
Attention-Guided Switching and Interleaved-Modal Chain-of-Thought supply the dynamic-weighting signal. The first uses the ratio of attention on image tokens versus text tokens to switch between latent and explicit reasoning, gaining 15.9 points on MathVerse for a 4B model. The second uses attention maps to insert selected image patches into the reasoning. Both leave deductions unverified. We reuse their attention signals as one input to fact provenance and reliability, and add a solver that acts on those signals. AGS also constrains our design: it shows that output-token entropy conflates perceptual ambiguity with logical difficulty. We therefore do not use entropy alone as a reliability score.
Open-World Visual Reasoning by a Neuro-Symbolic Program of Zero-Shot Symbols motivates the approach. It shows that soft, probabilistic visual symbols fed to a logic engine (Scallop) raise a zero-shot detector from 0.55 to 0.98 AUC. That system relies on expert-written rules for one domain, whereas our rules come from the model's own chain of thought. Finally, NS3D and BINDER show that LLM-generated programs over perceived inputs are data-efficient. In both, however, a single parse error propagates irreversibly: NS3D's stool-versus-chair confusions, and BINDER's static image captions. Our repair step targets exactly that irreversibility.
Research Program
The pipeline runs at inference time on a frozen vision-language model (Qwen3-VL-8B, matching AGS, and Qwen2-VL-7B, matching ICoT). It has four stages.
In the first stage, the model produces a chain of thought. Following VeriCoT, each step is autoformalized into SMT-LIB atoms and rules.
In the second stage, each atomic fact $f$ receives a provenance tag. A fact is tagged visual if it is not stated in the input text and, when it was generated, the vision-to-text attention ratio was high. It is tagged textual if it matches a span of the question or context. Otherwise it is tagged inferred. Inferred facts are not scored; they must be derived by the solver.
In the third stage, each visual or textual fact gets an estimated probability $p_f$ of being correct. For visual facts, the model answers a targeted yes/no question about the fact on an attention-selected crop, as in ICoT's patch selection, and we measure its confidence. We also check whether the fact survives paraphrased re-queries. Textual facts have a prior that depends on source type. Distractor-style auxiliary context gets a lower prior than the problem statement itself. These priors are set zero-shot, or fit by a four-feature logistic calibrator on 200 labeled facts.
In the fourth stage, Z3's optimization mode solves a weighted maximum-satisfiability problem.
$$S^\ast = \arg\max_{S \subseteq F} \sum_{f \in S} \log\frac{p_f}{1-p_f} \quad \text{subject to } S \cup R \text{ being satisfiable,}$$
Here $F$ is the set of scored facts and $R$ is the set of rules and definitions asserted in the chain. We use log-odds weights because, if fact errors are independent, maximizing this sum yields the most probable consistent set of facts. Facts dropped from $S^\ast$ trigger a single targeted re-perception or a flag that the text is untrustworthy. The model then continues its reasoning with $S^\ast$ as its premises. If $S^\ast$ does not entail any answer option, the system falls back to the model's original answer, so the method cannot do worse by abstaining.
Beyond accuracy, we analyze two things. The first is whether the solver's retractions line up with the known-corrupted modality. The second is how often the solver's final belief set agrees with the stated answer, which measures faithfulness.
Baselines
The naive reference is plain zero-shot chain-of-thought on the same frozen model with the same prompt. Its absolute numbers on our evaluation splits must be measured. The closest reported figure is Qwen2-VL-7B with ICoT at 44.1% zero-shot on M3CoT, from Interleaved-Modal Chain-of-Thought.
The strongest existing method on the multimodal side is Attention-Guided Switching, because it already arbitrates between perception and reasoning using the same attention signal we use. It reports a 15.9-point MathVerse gain on its 4B variant. No absolute MathVerse accuracy, and no ScienceQA or M3CoT figure for AGS, was found on Lacuna. We will run it ourselves with its published window and switch-budget settings. ICoT is run with its recommended setting of about 64 patches.
The strongest competitor on the conflict question is self-consistency: sample many chains and take a majority vote. It is cheap and hard to beat, and we will give it the same number of forward passes our pipeline spends on formalization and re-queries. Two ablations isolate the key ingredient. The first uses uniform weights, which is effectively VeriCoT's hard check extended to images, and tests whether weighting matters at all. The second uses modality-level weights, one weight for all visual facts and one for all textual facts, and tests whether per-fact weighting matters beyond a global gate.
All systems share the same model, benchmarks, and inference-compute budget, and each gets the same small tuning set of 200 examples. Beating the baselines means two things. We must beat cost-matched self-consistency and AGS on the conflict splits, with confidence intervals that exclude zero. We must also stay within one point of them on clean splits.
Why not just…?
Why not just use self-consistency? Majority voting helps when errors are random across samples. The SciAux result suggests misleading premises cause systematic rationalization: thinking mode gets worse under misleading context, so resampled chains will tend to agree on the wrong premise. This is a real threat on clean splits, and the cost-matched comparison settles it. Our prediction is that the gap favors weighted repair only on conflict splits. If self-consistency matches us there too, the solver is not earning its cost.
Why not just re-examine every visual claim with a second question, without a solver? This is the most dangerous alternative, because much of our gain could come from re-perception alone. We run it as a baseline with the same re-query budget, spent on all visual facts and followed by answer regeneration. The solver's claimed contribution has two parts: deciding which facts to re-query, and resolving conflicts where image and text disagree, which re-perception by itself cannot adjudicate. If this baseline matches us on the MathVerse vision-dominant and text-dominant versions, we will report that the logic layer adds nothing beyond targeting.
Why not just ask a second LLM to critique the chain? A critic drawn from the same model family inherits the same tendency to rationalize. VeriCoT's motivation is that solver-based checking catches ungrounded steps that neural judges miss. We include a critic prompted with the same facts and the same budget. Its failure should concentrate on the misleading-context splits.
Why not just use a larger model? Scale has not removed these failures. GPT-4V reached 49.9% on MathVista against 60.3% for humans, and the text-only paradox appears in current models. Our method is model-agnostic, so we will also apply it to the largest open model we can run and test whether the gain shrinks.
Proposed Experiments
Four settings test different parts of the claim. The first is MathVerse's six versions, which shift information from text to diagram. The key prediction is that retained visual facts rise and the accuracy gap over plain chain-of-thought widens in the vision-dominant and vision-only versions, while the modality-level ablation cannot track this shift within a single problem. The second is SciAux (billhdzhao/SciAux), which pairs ScienceQA questions with helpful, irrelevant, or misleading snippets. Where the underlying ScienceQA item has an image, we re-attach it so that textual lies can conflict with visual truth. The reference points are 96.22% clean and 77.03% under two misleading snippets with thinking on. Recovering most of that 19-point drop without hurting clean accuracy is the headline test. The third is M3CoT, for long chains of about 10.9 steps, where hard checking should reject too much and weighting should matter most. The fourth is a controlled CLEVR probe. We start from the formal-logic VQA setup, which reaches 99.6% with clean scene graphs, corrupt a known fraction of scene-graph facts, and plot accuracy against corruption rate for hard versus weighted solving.
The decisive checks are three. Weighted repair must beat uniform-weight checking on conflict splits. Otherwise, weighting is decoration. It must beat budget-matched re-perception. Otherwise, the solver is decoration. And the 200-example calibrator must perform close to the zero-shot weights. If it does not, the method is less data-efficient than claimed, and we will report how many labels closing the gap requires. We also report retraction precision on CLEVR, where the corrupted facts are known, and wall-clock overhead relative to AGS.
References
- MATHVERSE: Does Your Multi-modal LLM Truly See the Diagrams in Visual Math Problems?
- Thinking in a Crowd: How Auxiliary Information Shapes LLM Reasoning
- Visual Question Answering based on Formal Logic
- VeriCoT: Neuro-symbolic Chain-of-Thought Validation via Logical Consistency Checks
- Balancing Efficiency and Efficacy: Training-Free Attention-Guided Switching Between Explicit and Latent Thoughts for MLLMs
- Interleaved-Modal Chain-of-Thought
- Open-World Visual Reasoning by a Neuro-Symbolic Program of Zero-Shot Symbols
- NS3D: Neuro-Symbolic Grounding of 3D Objects and Relations
- Binding Language Models in Symbolic Languages
- MathVista: Evaluating Mathematical Reasoning of Foundation Models in Visual Contexts