[NeurIPS 2024] MATH-Vision dataset and code to measure multimodal mathematical reasoning capabilities.
142
stars
34
commits
Python
primary language
May 16, 2025
updated
🌟 This is the official repository for the paper "Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset", which contains both evaluation code and data for the MATH-V benchmark.
[🌐 Homepage] [🤗 Huggingface Dataset] [📊 Leaderboard ] [📊 Open Source Leaderboard ] [📖 Paper]

Recent advancements in Large Multimodal Models (LMMs) have shown promising results in mathematical reasoning within visual contexts, with models approaching human-level performance on existing benchmarks such as MathVista. However, we observe significant limitations in the diversity of questions and breadth of subjects covered by these benchmarks. To address this issue, we present the MATH-Vision (MATH-V) dataset, a meticulously curated collection of 3,040 high-quality mathematical problems with visual contexts sourced from real math competitions. Spanning 16 distinct mathematical disciplines and graded across 5 levels of difficulty, our dataset provides a comprehensive and diverse set of challenges for evaluating the mathematical reasoning abilities of LMMs.
The accuracies of four prominent Large Multimodal Models (LMMs), random chance, and human
performance are evaluated on our proposed MATH-Vision (MATH-V) across 16 subjects.
Through extensive experimentation, we unveil a notable performance gap between current LMMs and human performance on MATH-V, underscoring the imperative for further advancements in LMMs.
You can refer to our project homepage and the paper for more details.
Some examples of MATH-V on three subjects: analytic geometry, topology, and graph theory.
The leaderboard is available here.
python models/Gemini.py --in_path ./data/test.jsonl --save_path ./Gemini.jsonl
This will run the Gemini API and save the outputs to ./Gemini.jsonl path. You can modify the system prompt, max tokens, etc. in the benchmark_gemini function.
Generate image captions using GPT-4V:
python models/GPT_with_caption.py --model gpt-4-vision-preview --in_path ./data/test.jsonl --save_path ./data/gpt4v-captions.jsonl
Generate outputs using ChatGPT-3.5 or GPT-4 with image captions:
python models/GPT_with_caption.py --model gpt-3.5-turbo-0125 (gpt-4-turbo-preview) --in_path ./data/test.jsonl --save_path ./gpt3.5_caption.jsonl (./gpt4_caption.jsonl)
Once all the model outputs have been generated, execute the python evaluation/evaluate.py function to assess these outputs. This script will examine all outputs located in the outputs/ directory, computing overall accuracy as well as accuracy for each subject and level.
If you find this benchmark useful in your research, please consider citing this BibTex:
@inproceedings{
wang2024measuring,
title={Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset},
author={Ke Wang and Junting Pan and Weikang Shi and Zimu Lu and Houxing Ren and Aojun Zhou and Mingjie Zhan and Hongsheng Li},
booktitle={The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
year={2024},
url={https://openreview.net/forum?id=QWTCcxMpPA}
}
@inproceedings{
wang2025mathcodervl,
title={MathCoder-{VL}: Bridging Vision and Code for Enhanced Multimodal Mathematical Reasoning},
author={Ke Wang and Junting Pan and Linda Wei and Aojun Zhou and Weikang Shi and Zimu Lu and Han Xiao and Yunqiao Yang and Houxing Ren and Mingjie Zhan and Hongsheng Li},
booktitle={The 63rd Annual Meeting of the Association for Computational Linguistics},
year={2025},
url={https://openreview.net/forum?id=nuvtX1imAb}
}
26 commits
8 commits
Python
100.0%
[NeurIPS 2024] MATH-Vision dataset and code to measure multimodal mathematical reasoning capabilities.
142
stars
34
commits
Python
primary language
May 16, 2025
updated
🌟 This is the official repository for the paper "Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset", which contains both evaluation code and data for the MATH-V benchmark.
[🌐 Homepage] [🤗 Huggingface Dataset] [📊 Leaderboard ] [📊 Open Source Leaderboard ] [📖 Paper]

Recent advancements in Large Multimodal Models (LMMs) have shown promising results in mathematical reasoning within visual contexts, with models approaching human-level performance on existing benchmarks such as MathVista. However, we observe significant limitations in the diversity of questions and breadth of subjects covered by these benchmarks. To address this issue, we present the MATH-Vision (MATH-V) dataset, a meticulously curated collection of 3,040 high-quality mathematical problems with visual contexts sourced from real math competitions. Spanning 16 distinct mathematical disciplines and graded across 5 levels of difficulty, our dataset provides a comprehensive and diverse set of challenges for evaluating the mathematical reasoning abilities of LMMs.
The accuracies of four prominent Large Multimodal Models (LMMs), random chance, and human
performance are evaluated on our proposed MATH-Vision (MATH-V) across 16 subjects.
Through extensive experimentation, we unveil a notable performance gap between current LMMs and human performance on MATH-V, underscoring the imperative for further advancements in LMMs.
You can refer to our project homepage and the paper for more details.
Some examples of MATH-V on three subjects: analytic geometry, topology, and graph theory.
The leaderboard is available here.
python models/Gemini.py --in_path ./data/test.jsonl --save_path ./Gemini.jsonl
This will run the Gemini API and save the outputs to ./Gemini.jsonl path. You can modify the system prompt, max tokens, etc. in the benchmark_gemini function.
Generate image captions using GPT-4V:
python models/GPT_with_caption.py --model gpt-4-vision-preview --in_path ./data/test.jsonl --save_path ./data/gpt4v-captions.jsonl
Generate outputs using ChatGPT-3.5 or GPT-4 with image captions:
python models/GPT_with_caption.py --model gpt-3.5-turbo-0125 (gpt-4-turbo-preview) --in_path ./data/test.jsonl --save_path ./gpt3.5_caption.jsonl (./gpt4_caption.jsonl)
Once all the model outputs have been generated, execute the python evaluation/evaluate.py function to assess these outputs. This script will examine all outputs located in the outputs/ directory, computing overall accuracy as well as accuracy for each subject and level.
If you find this benchmark useful in your research, please consider citing this BibTex:
@inproceedings{
wang2024measuring,
title={Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset},
author={Ke Wang and Junting Pan and Weikang Shi and Zimu Lu and Houxing Ren and Aojun Zhou and Mingjie Zhan and Hongsheng Li},
booktitle={The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
year={2024},
url={https://openreview.net/forum?id=QWTCcxMpPA}
}
@inproceedings{
wang2025mathcodervl,
title={MathCoder-{VL}: Bridging Vision and Code for Enhanced Multimodal Mathematical Reasoning},
author={Ke Wang and Junting Pan and Linda Wei and Aojun Zhou and Weikang Shi and Zimu Lu and Han Xiao and Yunqiao Yang and Houxing Ren and Mingjie Zhan and Hongsheng Li},
booktitle={The 63rd Annual Meeting of the Association for Computational Linguistics},
year={2025},
url={https://openreview.net/forum?id=nuvtX1imAb}
}
26 commits
8 commits
Python
100.0%