Benchmarking Large Language Models for Math Reasoning Tasks
Kathrin Seßler, Yao Rong, Emek Gözlüklü, Enkelejda Kasneci
TL;DR
This benchmarking study addresses the challenge of selecting LLMs for mathematical reasoning by evaluating seven prompting strategies across five math datasets on four foundation models, with a focus on accuracy, robustness, and efficiency. It reveals that larger models such as GPT-4o and LLaMA 3-70B achieve strong, strategy-agnostic performance on many tasks, while smaller models benefit more from tailored prompting like Auto CoT; the prompt strategy’s impact varies by model and dataset. The work highlights important trade-offs between cost, time, and accuracy, showing that Auto CoT often delivers a favorable balance for open models, while GPT-3.5 with Zero-Shot CoT can be cost-effective for simpler tasks. By open-sourcing benchmarking code and providing a multi-faceted evaluation framework, the paper offers practical guidance for deploying LLMs in educational and professional math-reasoning settings and establishes a platform for future cross-model benchmarking in this area.
Abstract
The use of Large Language Models (LLMs) in mathematical reasoning has become a cornerstone of related research, demonstrating the intelligence of these models and enabling potential practical applications through their advanced performance, such as in educational settings. Despite the variety of datasets and in-context learning algorithms designed to improve the ability of LLMs to automate mathematical problem solving, the lack of comprehensive benchmarking across different datasets makes it complicated to select an appropriate model for specific tasks. In this project, we present a benchmark that fairly compares seven state-of-the-art in-context learning algorithms for mathematical problem solving across five widely used mathematical datasets on four powerful foundation models. Furthermore, we explore the trade-off between efficiency and performance, highlighting the practical applications of LLMs for mathematical reasoning. Our results indicate that larger foundation models like GPT-4o and LLaMA 3-70B can solve mathematical reasoning independently from the concrete prompting strategy, while for smaller models the in-context learning approach significantly influences the performance. Moreover, the optimal prompt depends on the chosen foundation model. We open-source our benchmark code to support the integration of additional models in future research.
