MultiMath: Bridging Visual and Mathematical Reasoning for Large Language Models

Shuai Peng, Di Fu, Liangcai Gao, Xiuqin Zhong, Hongguang Fu, Zhi TangarXiv 2024 · DOI

Introduction

MultiMath-7B is an open-source multimodal large language model (MLLM) designed to bridge the gap between visual perception and complex mathematical reasoning. While Large Language Models (LLMs) have become remarkably proficient at text-based mathematics, they often struggle with problems requiring "visual injection"—interpreting geometric diagrams, function plots, or scientific charts. MultiMath-7B addresses this by leveraging a massive new 300K-problem dataset and a four-stage training pipeline, culminating in process-supervised reinforcement learning.

Methodology

The architecture of MultiMath-7B is based on LLaVA, combining a CLIP-ViT-L/14 vision encoder with the DeepSeekMath-RL-7B language model. The training strategy consists of four rigorous stages:

  1. Vision-Language Alignment: Mapping visual features into the LLM’s embedding space.
  2. Visual Instruction-tuning: Enhancing general visual comprehension.
  3. Math Instruction-tuning: Training on the MultiMath-300K dataset to solve multimodal math problems.
  4. Process-supervised Reinforcement Learning (RL): Using Proximal Policy Optimization (PPO) to reward correct reasoning steps, utilizing preference data generated by GPT-4o to identify and correct intermediate logic errors.

The MultiMath-300K Dataset

A core contribution of this work is the MultiMath-300K dataset, a comprehensive collection of approximately 300,000 mathematical problems spanning K-12 levels. It features bilingual descriptions and images sourced from real textbooks and exams. Each entry includes an image, a detailed caption to facilitate visual grounding, and a multi-step solution.

Figure 2: Distribution of the MultiMath-300K dataset across grade bands, question types, image types, and knowledge points.

Key Results

MultiMath-7B achieves state-of-the-art performance among open-source models. It scored 50.0% on MathVista and 26.9% on MathVerse, outperforming models like Math-LLaVA and even the closed-source Qwen-VL-Plus. Notably, despite having only 7 billion parameters, it outperformed larger models (up to 34B) on several benchmarks.

Figure 1: Performance comparison of MultiMath-7B against other models on Math Benchmark and MathVista Skills.

Furthermore, the model maintained high accuracy on text-only benchmarks (79.2% on GSM8K and 46.3% on MATH), suggesting that multimodal training enhances rather than degrades linguistic reasoning. Ablation studies revealed that performance gains stem more from the "reasoning boost" (logic) than just "visual injection" (perception).

Conclusion

MultiMath-7B demonstrates that starting with a math-specialized LLM and applying step-level supervision through RL can significantly improve multimodal mathematical reasoning. While RL can lead to some specialization, future work will focus on expanding the dataset to university-level math and scaling the architecture to improve generalization across diverse mathematical sub-fields.

Summary updated

BibTeX
@misc{peng2024multimath,
  author = {Shuai Peng and Di Fu and Liangcai Gao and Xiuqin Zhong and Hongguang Fu and Zhi Tang},
  title = {{MultiMath: Bridging Visual and Mathematical Reasoning for Large Language Models}},
  year = {2024},
  eprint = {2409.00147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.00147},
}
Figure