TL;DR
When vision-language models solve geometry problems, standard "majority voting" across sampled answers fails because a single misread diagram poisons the whole crowd with the exact same error. This paper introduces a clever fix: have each candidate write both a mini-program and a direct answer, then only count votes where the model's gut claim matches what its own code actually computes. Without needing external reward models or extra LLM calls, this internal consistency check jumps accuracy by over 10 percentage points.
What Problem Does This Paper Address?
If you want an LLM to do better at math at test time, the standard playbook is self-consistency: sample $K$ reasoning paths and take a majority vote. This relies on Condorcet’s jury theorem—the idea that if individual errors are roughly independent, the crowd converges on the truth.
In multimodal geometry, that assumption falls apart. All $K$ candidates are staring at the same diagram. If the vision encoder harbors a systematic perceptual bias—say, misreading an angle label or mistaking supplementary lines for perpendicular ones—most candidates inherit the exact same hallucinated premise. Mathematically, when pairwise error correlation hits $\rho = 0.5$, 16 samples carry the actual information of barely two independent votes. You don't get wisdom of the crowds; you get a confident, unanimous, and completely wrong consensus. Existing fixes either count votes within one noisy output layer or train expensive external Process Reward Models (PRMs) that add heavy inference overhead.
Methods
Instead of treating a model's output as an opaque text blob, the authors turn each candidate into a self-verifying neuro-symbolic package using a format called SKETCH, paired with a lightweight routing algorithm called Compositional Consensus Verification (CCV).
Here is how a single autoregressive pass is structured under SKETCH (achieved via lightweight LoRA fine-tuning):
- Visual Grounding Facts (VGF): Atomic geometric relations extracted from the image using a closed vocabulary (e.g.,
perpendicular,parallel). - Typed DSL: A restricted, loop-free Python subset that calculates the answer from the VGF premises.
- Claim (Neural Pathway): Immediately after writing the code—before seeing it run—the model states its final answer.
- Exec (Symbolic Pathway): Afterward, an external Python sandbox deterministically executes the DSL code.
CCV then uses cross-channel agreement ($\kappa = 1$, meaning claim $\approx$ exec) as a strict gate:
- Gated Scoring: Votes are scored by combining surface claim consensus with execution consensus—but execution clusters only count if $\kappa = 1$.
- Smart Fallback Routing: If at least one self-consistent candidate exists, CCV picks the highest-scoring one. If $\kappa$ collapses across all $K$ samples (no candidate agrees with its own code), CCV treats this as a red flag that the neural pathway is confused; it falls back to symbolic execution consensus if the cluster is large enough ($\ge 9$ of 16 votes), and defaults to standard claim majority otherwise.
Datasets
- Training: 2,012 examples from the Geometry3K training split, using chain-of-thought traces from NVIDIA's Nemotron-Image-Training-v3 reformatted into SKETCH by DeepSeek V4 Pro. A 300-question Geometry3K dev split was used to tune CCV's single fallback threshold.
- Evaluation: Tested across 1,709 total instances (1,563 unique questions): Geometry3K test (601, English, in-distribution), GeoQA test (754, Chinese, cross-lingual OOD), and MathVista-GPS (208 reference questions and a 146-question "clean" subset, English, cross-domain OOD). No new benchmarks were introduced.
Key Insights and Ideas
- Pathways don't need to be independent for agreement to work: Because the model writes its claim right after writing the code, the two are positively coupled. Yet agreement acts as a potent likelihood-ratio filter: on Qwen3.5-9B, claim and execution agree $4.18\times$ more often when the execution is right than when it's wrong.
- Precision beats decorrelation: Counterintuitively, filtering for $\kappa=1$ actually increases pairwise correlation among the surviving votes ($\rho$ rises from $0.526$ to $0.646$) and shrinks the pool. However, per-candidate accuracy jumps so dramatically (from $61.7\%$ to $87.1\%$) that the signal-to-noise ratio quadruples. Trying to force diverse prompts is the wrong lever when perception is shared; filtering for precision wins.
- Within-layer consensus hits a hard ceiling: Whether you aggregate raw claims, weight by log-probabilities, ask the model its confidence, or use an external 8B reward model (URSA-RM), accuracy stubbornly clusters around 70–71%. Even adding VGF consensus hurts slightly, because any single layer shares the same visual blind spots.
- Works even when code is worse than intuition: On a weaker model (Gemma4-E4B), raw code execution (41.1%) actually underperforms raw neural claims (44.9%). Still, gating on their agreement boosts accuracy to 52.8%.
Key Results
Evidence ladder showing compositional methods breaking past the 71% non-compositional ceiling, alongside K-scaling curves.
- Breaking the ceiling: Across all evaluation sets ($K=16$ on Qwen3.5-9B), CCV hits 80.98% accuracy—a +10.41 pp gain over standard Majority Voting (70.57%) and +9.65 pp over external learned verifier URSA-RM (71.33%).
- Better scaling with $K$: Moving from $K=4$ to $K=16$, standard majority voting saturates (+1.23 pp gain), whereas CCV keeps extracting signal (+6.04 pp gain, widening its lead from +5.60 pp to +10.41 pp).
- Favorable error trade-off: Question by question, CCV fixes 237 majority-voting errors while introducing 59 new ones (a $4.0:1$ gain-to-loss ratio).
- Negligible test-time cost: Running all 27,344 Python snippets takes under 10 seconds total, and CCV aggregation takes 2–4 ms per question on a single CPU core with zero extra LLM passes.
Limitations and Future Work
- Requires SKETCH fine-tuning: CCV isn't a drop-in verifier for off-the-shelf CoT traces; the generator must emit structured VGF and executable DSL. Whether closed frontier models can do this reliably via few-shot prompting alone remains untested.
- Blind spots when $\kappa$ is empty: CCV can only select among existing candidates (capped by the ~93% oracle). When the $\kappa$-pool is empty, a unanimous hallucinated execution cluster can still override a correct claim majority—suggesting future verifiers need ways to independently check visual premises.
- Domain scope: Tested only on numeric/multiple-choice geometry with two open-weight models. Extending this to chart QA, physics, or formal proof checking (matching a proof assistant's verdict against what the model claims it proved) is a natural next step.
Summary updated