Elementary Math Word Problem Generation using Large Language Models

Nimesh Ariyarathne, Harshani Bandara, Yasith Heshan, Omega Gamage, Surangika Ranathunga +7 more
6/6/2025
cs.CL

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Mathematics is often perceived as a complex subject by students, leading to high failure rates in exams. To improve Mathematics skills, it is important to provide sample questions for students to practice problem-solving. Manually creating Math Word Problems (MWPs) is time consuming for tutors, because they have to type in natural language while adhering to grammar and spelling rules of the language. Existing Deep Learning techniques for MWP generation either require a tutor to provide the initial portion of the MWP, and/or additional information such as an equation. In this paper, we present an MWP generation system based on Large Language Models (LLMs) that overcome the need for additional input - the only input to our system is the number of MWPs needed, the grade and the type of question (e.g. addition, subtraction). Unlike the existing LLM-based solutions for MWP generation, we carried out an extensive set of experiments involving different LLMs, prompting strategies, techniques to improve the diversity of questions, as well as techniques that employ human feedback to improve LLM performance. Human and automated evaluations confirmed that the generated MWPs are high in quality, with minimal spelling and grammar issues. However, LLMs still struggle to generate questions that adhere to the specified grade and question type requirements.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ariyarathne2025elementary,
  title  = {Elementary Math Word Problem Generation using Large Language Models},
  author = {Nimesh Ariyarathne and Harshani Bandara and Yasith Heshan and Omega Gamage and Surangika Ranathunga and Dilan Nayanajith and Yutharsan Sivapalan and Gayathri Lihinikaduarachchi and Tharoosha Vihidun and Meenambika Chandirakumar and Sanujen Premakumar and Sanjula Gathsara},
  year   = {2025},
  eprint = {2506.05950},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.05950v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.05950.svg)](https://codeofpaper.com/paper/2506.05950)

Discussion