Date
Publisher
arXiv
For middle-school math students, interactive question-answering (QA) with
tutors is an effective way to learn. The flexibility and emergent capabilities
of generative large language models (LLMs) has led to a surge of interest in
automating portions of the tutoring process - including interactive QA to
support conceptual discussion of mathematical concepts. However, LLM responses
to math questions can be incorrect or mismatched to the educational context -
such as being misaligned with a school's curriculum. One potential solution is
retrieval-augmented generation (RAG), which involves incorporating a vetted
external knowledge source in the LLM prompt to increase response quality. In
this paper, we designed prompts that retrieve and use content from a
high-quality open-source math textbook to generate responses to real student
questions. We evaluate the efficacy of this RAG system for middle-school
algebra and geometry QA by administering a multi-condition survey, finding that
humans prefer responses generated using RAG, but not when responses are too
grounded in the textbook content. We argue that while RAG is able to improve
response quality, designers of math QA systems must consider trade-offs between
generating responses preferred by students and responses closely matched to
specific educational resources.
Study at a glance
- Question: Does connecting AI responses to a math textbook improve answers to middle school students' questions?
- Setting and data: Real student questions in middle school algebra and geometry, and content from an open-source math textbook.
- Method: Survey comparing human ratings of different AI-generated math responses (multi-condition survey).
Why it matters
Interactive math tutoring helps middle-school students learn, but large language model responses can be incorrect or mismatched to school curricula. Retrieval-augmented generation offers a potential solution by incorporating vetted external knowledge to increase response quality.
Key findings
- In middle-school algebra and geometry, people preferred AI answers that drew from an open-source textbook over standard AI responses.
- People did not prefer AI-generated math answers when the explanations were too strictly grounded in the textbook content.
- Incorporating vetted textbook content into AI prompts improved the overall quality of responses to real student math questions.
Summary drafted with AI from the paper’s abstract and may contain errors. See the full paper for details.
What is the application?
Who is the user?
Who age?
Why use AI?

