Skip to main content
QUICK REVIEW

[论文解读] Mathify: Evaluating Large Language Models on Mathematical Problem Solving Tasks

Avinash Anand, Mohit Gupta|arXiv (Cornell University)|Apr 19, 2024
Intelligent Tutoring Systems and Adaptive LearningComputer Science被引用 5
一句话总结

本论文介绍 MathQuest,一个来自 NCERT 的高中数学数据集,并基于 NCERT 风格的问题对微调的大语言模型(MAmmoTH、LLaMA-2、WizardMath)进行基准测试,结果显示在测试模型中 MAmmoTH-13B 表现最佳。

ABSTRACT

The rapid progress in the field of natural language processing (NLP) systems and the expansion of large language models (LLMs) have opened up numerous opportunities in the field of education and instructional methods. These advancements offer the potential for tailored learning experiences and immediate feedback, all delivered through accessible and cost-effective services. One notable application area for this technological advancement is in the realm of solving mathematical problems. Mathematical problem-solving not only requires the ability to decipher complex problem statements but also the skill to perform precise arithmetic calculations at each step of the problem-solving process. However, the evaluation of the arithmetic capabilities of large language models remains an area that has received relatively little attention. In response, we introduce an extensive mathematics dataset called "MathQuest" sourced from the 11th and 12th standard Mathematics NCERT textbooks. This dataset encompasses mathematical challenges of varying complexity and covers a wide range of mathematical concepts. Utilizing this dataset, we conduct fine-tuning experiments with three prominent LLMs: LLaMA-2, WizardMath, and MAmmoTH. These fine-tuned models serve as benchmarks for evaluating their performance on our dataset. Our experiments reveal that among the three models, MAmmoTH-13B emerges as the most proficient, achieving the highest level of competence in solving the presented mathematical problems. Consequently, MAmmoTH-13B establishes itself as a robust and dependable benchmark for addressing NCERT mathematics problems.

研究动机与目标

  • Motivate improved evaluation of arithmetic and multi-step reasoning in LLMs for high-school math.
  • Create MathQuest, a NCERT-derived math problem dataset spanning multiple domains.
  • Assess the impact of fine-tuning LLMs with augmented Math-401 data on performance across datasets.
  • Establish baselines and compare models (LLaMA-2, WizardMath, MAmmoTH) on MathQuest and other benchmarks.

提出的方法

  • Assemble MathQuest, a NCERT-based math problem corpus with 14 domains and 223 samples.
  • Augment the existing Math-401 dataset with additional arithmetic problems via SymPy to increase diversity.
  • Fine-tune three LLM families (LLaMA-2, WizardMath, MAmmoTH) using QLora with 4-bit quantization and LoRA adapters.
  • Train for 10 epochs with AdamW, learning rate 3e-4, on a train/val/test split (241,600 / 30,200 / 30,200).
  • Evaluate exact-match accuracy on GSM-8K, DeepMind, NumGLUE, SimulEq, Math-401* and MathQuest before and after fine-tuning.
  • Compare 7B and 13B variants to assess scale effects.
Figure 1: This figure shows the fine-tuning flow, the LLMs we use for fine-tuning, and the datasets we use for inference.
Figure 1: This figure shows the fine-tuning flow, the LLMs we use for fine-tuning, and the datasets we use for inference.

实验结果

研究问题

  • RQ1How do NCERT-derived math problems challenge current open-source LLMs (7B/13B)?
  • RQ2What gains occur when LLMs are fine-tuned on augmented math datasets (Math-401) for NCERT-style problems?
  • RQ3Which model and size best address high-school level mathematical problem solving on MathQuest and other benchmarks?

主要发现

  • MAmmoTH-13B achieves the highest post-fine-tuning accuracy on MathQuest among the tested models (24.0%).
  • 13B models generally outperform 7B counterparts after fine-tuning across benchmarks.
  • MathQuest poses greater challenge than other datasets, yielding lower accuracies overall post fine-tuning.
  • All models show notable accuracy gains after fine-tuning, with post-tuning results improving from pre-tuning baselines.
Figure 2: Our Dataset MathQuest Sample
Figure 2: Our Dataset MathQuest Sample

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。