Abstract
Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language tasks, yet they continue to struggle with multi-step mathematical reasoning. This paper introduces MathQuest, a novel benchmark consisting of challenging high-school mathematics problems derived from Indian NCERT textbooks. We evaluate the impact of fine-tuning prominent LLMs on a massive, programmatically augmented arithmetic dataset. Our results indicate that while high-school curriculum mathematics remains a significant challenge, targeted fine-tuning on foundational arithmetic—specifically using the MAmmoTH-13B architecture—can substantially enhance reasoning performance and establish a new baseline for educational AI applications.
Introduction
While modern LLMs can engage in sophisticated human-like dialogue, their performance often degrades when faced with complex, multi-step mathematical problems. Existing benchmarks frequently focus on elementary arithmetic or simple word problems, failing to capture the complexity of high-school level mathematics, such as calculus, trigonometry, and probability. For an AI to serve as a reliable educational aid for 11th and 12th-grade students, it must be capable of deciphering intricate problem statements, identifying relevant formulas, and executing precise calculations without numerical hallucinations.
To address this gap, we present MathQuest, a dataset designed to reflect the actual rigor of high-school curricula. We explore whether enhancing a model's "computational fluency" through large-scale arithmetic training can serve as a prerequisite for solving these higher-level reasoning tasks.
Methodology and Data Augmentation
Our research employs a two-stage approach to bolster model performance, focusing on supervised fine-tuning (SFT) and data augmentation.
Data Augmentation
We identified that the existing Math-401 dataset was too small for effective training. Using the SymPy Python library, we programmatically expanded this into a massive synthetic dataset containing 302,000 samples. This "arithmetic bootcamp" includes a wide range of expressions, from basic integers to complex equations involving nested brackets and decimals.
Fine-Tuning Strategy
We selected three state-of-the-art model families for evaluation: LLaMA-2, WizardMath, and MAmmoTH (in both 7B and 13B parameter configurations). Fine-tuning was conducted using QLoRA (Quantized Low-Rank Adaptation), an efficient technique that utilizes 4-bit quantization to enable high-performance training on accessible hardware. Models were trained to follow a "chain-of-thought" rationale, mimicking the step-by-step pedagogical style of a human instructor.
Benchmarks
- MathQuest (New): A curated set of 223 problems from NCERT textbooks spanning 14 domains, including Sets, Trigonometry, and Sequence & Series.
- Standard Benchmarks: To ensure generalizability, models were also tested on GSM-8K, DeepMind Math, NumGLUE, and SimulEq.
Key Results and Insights
The experimental results highlight a clear correlation between arithmetic foundation and complex reasoning. Fine-tuning on the augmented Math-401 dataset significantly improved performance across all benchmarks.
Performance Highlights
- Top Performer: MAmmoTH-13B emerged as the superior architecture, likely due to its hybrid pre-training on both chain-of-thought and program-of-thought rationales.
- Fine-Tuning Impact: The fine-tuning process provided a measurable boost; for instance, MAmmoTH-13B’s accuracy on MathQuest rose from 18.1% to 24.0%.
- Scaling and Generalization: 13B parameter models consistently outperformed 7B versions. Furthermore, the models demonstrated strong generalization, with MAmmoTH-13B’s accuracy on the external GSM-8K benchmark jumping from 44% to 67% after our arithmetic-focused fine-tuning.
Discussion and Future Work
Despite these gains, several challenges remain. Models frequently struggle with variable persistence (retaining values across nested equations) and the logical parsing of complex nested brackets. Additionally, the current MathQuest dataset, while high-quality, is limited in size.
Future research will focus on expanding the MathQuest corpus and exploring advanced prompting techniques, such as "Least-to-Most" prompting, to help models better decompose complex curriculum-based problems into manageable logical steps.
Summary updated