TL;DR
SpatialMath is a novel framework that significantly boosts the geometric and mathematical reasoning capabilities of Multimodal Small-to-Medium Language Models (MSLMs). By decoupling visual perception from symbolic reasoning into two distinct, specialized modules, it overcomes the tendency of standard vision-language models to fail when mathematical problems become highly visual or "vision-dense."
What Problem Does This Paper Address?
While modern Multimodal Small-to-Medium Language Models (MSLMs) excel at general vision-language tasks like image captioning, they struggle immensely with visual mathematical reasoning—specifically, geometry problems. Standard vision encoders are optimized for general image understanding rather than capturing the precise, structured, and symbolic spatial relationships essential for mathematics.
As a result, when geometry problems shift from being text-heavy to "vision-dense" (where crucial geometric properties or numerical values are only embedded within the diagram), model performance plummets. For instance, LLaVA-NeXT-34B scores 20% on text-dominant math problems but drops to a meager 9% on vision-only tasks. The authors address this bottleneck by asking: How can we effectively bridge the gap between raw visual perception and formal symbolic reasoning?
Methods
The authors introduce SpatialMath, a framework that splits the problem-solving process into two specialized pipelines rather than forcing a single model to handle perception and reasoning simultaneously.
- SpatialMath-SX (Spatial Comprehension Core): This module acts as the "eyes" of the framework. It is a vision-language model fine-tuned (via LoRA on the MLP projector) specifically to translate visual diagrams into detailed, structured textual descriptions called Spatial Comprehensions (SC). These descriptions explicitly capture geometric structures, labels, and implicit spatial relationships (like parallelism or similarity).
- SpatialMath-RX (Reasoning Infusion Core): This module acts as the "brain." It is a dedicated solver fine-tuned to take the structured SC text from the perception core and map out a logically coherent, step-by-step Reasoning Chain ($r$) to arrive at the correct mathematical answer.
- Evaluator Module (Quality Control): Because an incorrect perception can derail the entire reasoning process, the authors also introduce an intermediate binary classifier. This evaluator judges whether the generated SC is faithful and helpful to the question before passing it to the reasoning core, mitigating error propagation.
Datasets
To train and evaluate their framework, the authors developed MATHVERSE-PLUS, an extension of the existing MathVerse benchmark.
MATHVERSE-PLUS contains 2.76K training instances and 500 test instances uniformly distributed across five distinct visual-textual modalities (ranging from Text-Dominant to Vision-Only). Crucially, it enriches these problems with high-quality, ground-truth spatial comprehensions and step-by-step reasoning paths generated via GPT-4o and rigorously verified by humans.
To test out-of-distribution generalization, the authors also evaluated SpatialMath on the geometry subsets of three public benchmarks: MathVision, MathVista, and Geometry3K.
Key Insights and Ideas
- Decoupling Perception from Reasoning is Key: Forcing a model to explicitly articulate what it sees in mathematical terms before attempting to solve the math prevents it from relying on superficial pattern matching or memorization.
- Cross-Model Generalization: A smaller, more efficient reasoning model (e.g., a 7B-sized RX core) can successfully leverage the high-quality spatial interpretations generated by a larger, more capable perception model (e.g., a 34B-sized SX core).
- The Danger of Cascading Errors: Error analysis revealed that when SpatialMath fails, it is almost always because the perception module generated an incorrect spatial comprehension, which subsequently misleads the solver. This highlights why intermediate quality control (like the Evaluator module) is vital for multi-core VLM pipelines.
Key Results
- Accuracy Boosts: SpatialMath achieved a mean accuracy improvement of 10.2 percentage points over standard supervised fine-tuning (SFT) with data augmentation on LLaVA-NeXT-34B, and a 3.8 percentage point gain on Phi-4.
- Vision-Dense Excellence: In the most challenging vision-intensive and vision-only settings, SpatialMath improved LLaVA-NeXT-34B's performance by 10.0 and 6.0 percentage points, respectively.
- Robust Generalization: When tested on external benchmarks, providing SpatialMath-SX's spatial comprehensions as context improved default model accuracy by 3.47% on MathVision, 0.68% on MathVista, and 5.99% on Geometry3K.
- Computational Efficiency: SpatialMath proves highly efficient, running 16× faster and requiring significantly fewer resources (only 2 x A100 GPUs) compared to heavy multi-stage synthetic pipelines like MathPUMA (which requires 32 x A100 GPUs).
Limitations and Future Work
- Dataset Dependencies: MATHVERSE-PLUS is built on top of an existing dataset, meaning it inherits any baseline structural limitations or biases from the source data.
- Language Constraints: The dataset and evaluation are currently restricted entirely to the English language, limiting its verified applicability to low-resource or non-English settings.
- Perception Bottlenecks: The framework remains highly sensitive to the accuracy of the SpatialMath-SX module. The authors suggest that future work should explore advanced quality control mechanisms, such as Reinforcement Learning from Human Feedback (RLHF) or cross-context validation, to make the perception core more robust against generating misleading spatial contexts.
Summary updated