CVIF: A Criticality-Driven Visual Intervention Framework for Geometric Diagram Understanding in MLLMs

Jiahui Kang, Bifan Wei, Lingling Zhang, Tianwen Jiang, Qiuyong Xiao, Jihong Zhang, Jun LiuarXiv 2026

TL;DR

CVIF (Criticality-Driven Visual Intervention Framework) is a training-free, inference-time method that fixes "hallucinations" in Multimodal Large Language Models (MLLMs) when they interpret geometric diagrams. By identifying "critical" layers where the model is undecided and steering its attention back to sparse visual cues like vertices and edges, CVIF significantly improves the accuracy of diagram parsing without requiring any model retraining.

What Problem Does This Paper Address?

Despite their impressive reasoning capabilities, MLLMs frequently fail at basic geometric perception. They often suffer from confirmation bias: when faced with sparse visual evidence (like thin lines or small labels), the model relies too heavily on textual priors. For example, if a question mentions "parallelogram ABCD," the model might "see" a standard property that isn't actually in the diagram, or it might incorrectly associate a numerical label with the wrong angle.

The authors argue that these failures aren't necessarily due to a lack of visual information in the early layers, but rather a failure to maintain that information as the signal moves deeper into the network. As shown in Figure 1, the model's attention often shifts from visually correct features in shallow layers to incorrect, text-consistent features in deeper layers.

Figure 1: Attention failure modes of MLLMs in geometric diagram perception. (a) Perceptual errors during the process of geometric reasoning lead to prediction failures. (b) When predicting which line segment intersects BD at point E, shallow layers attend to the visually correct point C. As depth increases, attention shifts toward evidence that confirms a prior-compatible candidate (e.g., AF); by a later layer, the visually correct point C receives little attention. (c) When determining which angle is annotated by 43◦, late-layer attention may concentrate on the label “B” and nearby symbols while failing to recover the local topology of the three edges incident to B. In particular, the model does not sufficiently use edge BD as structural evidence for resolving the angle assignment.

Methods

CVIF introduces a three-part intervention strategy that occurs entirely during inference:

  1. Criticality Detection: The framework monitors "normalized predictive entropy" across the model's layers. It looks for the "critical state"—a window of layers where the model has integrated various cues but hasn't yet committed to a final (potentially biased) interpretation.
  2. Geometry-Constrained Local Relation Reconstruction (GCLR): Using an off-the-shelf vertex detector, this module identifies geometric vertices as spatial anchors. It then reconstructs the local topology—identifying which edges connect to which vertices and which labels are nearby—to create a "vision-driven" map of the diagram.
  3. Adaptive Visual Steering Operator (AVSO): Once the critical layers and relevant visual tokens are identified, AVSO reshapes the model's attention distribution. It amplifies the weights of the correct visual tokens, effectively "steering" the model's internal representation away from biased local minima and toward the correct global minimum.
Figure 2: Prior-induced local minima and vision-guided trajectory correction. (a) When examin- ing the angle at vertex B, textual priors tend to focus on the conventional ∠ABC, whereas visual perception is naturally drawn to the salient feature "43◦". As depicted in the energy landscape, this causes the prediction state to be pulled by prior forces (black arrow), making it highly suscepti- ble to being trapped in a neighboring local minimum that represents an erroneous prediction (i.e., ∠ABC = 43◦). During the critical state, introducing the local topological structure at vertex B pro- vides a vision-driven steering force (blue arrow), thereby reducing the confidence of local minima induced by prior and steering the prediction toward the global minimum. (b) Layer-wise normalized predictive entropy for Qwen3-VL-32B at the question-end token.

Datasets

The authors evaluated CVIF on two primary geometric diagram parsing benchmarks:

  • PGPS9K: A large-scale dataset containing 2,650 image-formal language pairs for geometric problem solving.
  • PGDP5K: Another standard dataset for plane geometry diagram parsing, which the authors converted to a unified format for evaluation.
  • MathVerse (Vision Dominant split): Used to test if improved diagram parsing actually leads to better downstream mathematical reasoning.

Key Insights and Ideas

  • The "Sweet Spot" for Intervention: Intervening too early is useless because the model hasn't formed a semantic judgment yet. Intervening too late is futile because the model has already "locked in" its biased interpretation. The use of entropy to find this "criticality" window is a clever way to time the intervention.
  • Decoupling Perception from Reasoning: The paper emphasizes that we cannot fix geometric reasoning until we fix perception. By forcing the model to generate a formal description of the diagram first, CVIF ensures the reasoning engine is working with accurate "facts."
  • Mechanism-Level Perturbation: Unlike prompt engineering or post-hoc correction, CVIF works inside the transformer blocks, modifying how the model processes information in real-time.

Key Results

Using Qwen3-VL-32B-Instruct as a backbone, CVIF achieved impressive gains:

  • PGPS9K: Raised the Overall F1 score from 77.85 to 85.58.
  • PGDP5K: Raised the Overall F1 score from 75.23 to 82.84.
  • Competitive Performance: CVIF-enhanced open-source models outperformed several proprietary models, including Claude-4.5-Sonnet, in diagram parsing accuracy.
  • Downstream Impact: On the MathVerse benchmark, providing the model with CVIF-corrected diagram descriptions improved final answer accuracy by up to 5.88 points.

Limitations and Future Work

  • Dependency on Vertex Detection: The framework relies on an external detector (like YOLOv8) to find vertices. If the detector fails on highly cluttered or unusual diagrams, the GCLR module's anchors will be off.
  • 2D Focus: The current work focuses on plane geometry. Extending this to 3D geometric diagrams or other technical schematics (like circuit diagrams) remains an open challenge.
  • Computational Overhead: While training-free, the layer-wise entropy calculation and attention reshaping add some latency to the inference process.

Summary updated

BibTeX
@misc{kang2026cvif,
  author = {Jiahui Kang and Bifan Wei and Lingling Zhang and Tianwen Jiang and Qiuyong Xiao and Jihong Zhang and Jun Liu},
  title = {{CVIF: A Criticality-Driven Visual Intervention Framework for Geometric Diagram Understanding in MLLMs}},
  year = {2026},
  eprint = {2610.06399},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.06399},
}
Figure