MathTales: Designing and Studying an AI Agent-Based Story Generation System for Teaching Mathematical Problem Solving to Children

Kejia Zhang, Yuqi Niu, Mona Y. Alqassim, Andrina L Inglis, Charaka Palansuriya and Aurora Constantin

Abstract

Mathematical stories, particularly those that incorporate problem-solving, are widely recognised as an effective approach to learning mathematics. By grounding problems in concrete examples, children can gradually develop problem-solving skills as the story unfolds. However, creating such stories typically relies on teachers or professional writers, making it challenging to produce stories for every problem at scale. In this paper, we present MathTales, a multi-agent system that leverages a locally deployed open-source large language model to automatically generate stories to teach children mathematical problems. Through human evaluation, we found MathTales produces reliable mathematical stories in terms of accuracy, relevance, coherence, integration and readability. A study with children and teachers revealed that MathTales-generated stories had a positive impact on engagement, enjoyment, and understanding. Additionally, we analyse teachers’ feedback to identify the pedagogical value of these stories and derive design implications for future mathematical story generation systems that support mathematics teaching and learning.

Venue
CHI 2026
Volume
Proceedings of the Extended Abstracts of the 2026 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3772363.3798774
PDF
https://dl.acm.org/doi/pdf/10.1145/3772363.3798774
Anthology ID
2026.chi-ea.504

Cite

@inproceedings{zhang-etal-2026-mathtales,
    title = {{MathTales: Designing and Studying an AI Agent-Based Story Generation System for Teaching Mathematical Problem Solving to Children}},
    author = {Kejia Zhang and Yuqi Niu and Mona Y. Alqassim and Andrina L Inglis and Charaka Palansuriya and Aurora Constantin},
    booktitle = {Proceedings of the Extended Abstracts of the 2026 CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400722813},
    year = {2026},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3772363.3798774},
    url = {https://doi.org/10.1145/3772363.3798774},
    abstract = {Mathematical stories, particularly those that incorporate problem-solving, are widely recognised as an effective approach to learning mathematics. By grounding problems in concrete examples, children can gradually develop problem-solving skills as the story unfolds. However, creating such stories typically relies on teachers or professional writers, making it challenging to produce stories for every problem at scale. In this paper, we present MathTales, a multi-agent system that leverages a locally deployed open-source large language model to automatically generate stories to teach children mathematical problems. Through human evaluation, we found MathTales produces reliable mathematical stories in terms of accuracy, relevance, coherence, integration and readability. A study with children and teachers revealed that MathTales-generated stories had a positive impact on engagement, enjoyment, and understanding. Additionally, we analyse teachers’ feedback to identify the pedagogical value of these stories and derive design implications for future mathematical story generation systems that support mathematics teaching and learning.}
}