Retrieval-augmented Generation to Improve Math Question-Answering: Trade-offs Between Groundedness and Human Preference

Zachary Levonian, Chenglu Li, Wangda Zhu, Anoushka Gade, Owen Henkel, Millie-Ellen Postle, Wanli XingarXiv 2023

TL;DR

This paper explores how Retrieval-Augmented Generation (RAG) can improve math question-answering (QA) for middle school students. They found that while RAG generally leads to preferred responses, there's a sweet spot: responses that are grounded in a textbook but not too rigidly so. This highlights a crucial trade-off for educators building AI tutors: balancing accuracy and adherence to curriculum with student preference.

What Problem Does This Paper Address?

Math education often struggles with students lacking basic conceptual understanding. While human tutors are effective, they are expensive and hard to scale. Large Language Models (LLMs) offer a potential solution for automated math QA, but they are prone to "hallucinations" – generating plausible but incorrect answers that can mislead students. This is particularly problematic in math, where conceptual understanding is key. The paper addresses the challenge of making LLM-generated math answers both accurate and aligned with educational content, while also being preferred by students.

Methods

The researchers implemented a Retrieval-Augmented Generation (RAG) system. This system takes a student's math question, retrieves relevant content from an OpenStax Prealgebra textbook, and then uses this retrieved content to guide an LLM (GPT-3.5) in generating a response. They experimented with different "guidance conditions" for the LLM prompt:

  • No Guidance: The LLM responds without explicit instructions to use retrieved text.
  • Low Guidance: The LLM is instructed to use examples and language from the retrieved text only if relevant.
  • High Guidance: The LLM is instructed to reference content from the textbook section in its response.
  • Information Retrieval (IR): A baseline condition where the LLM simply repeats the student's question and the most relevant textbook paragraph.

They evaluated these systems using real student questions from the Math Nation platform. Human annotators (educators and designers) ranked the generated responses for preference and assessed their "groundedness" (how well they adhered to the retrieved textbook content).

Datasets

  • Student Queries: 51 factual and conceptual math questions were collected from the Math Nation online platform, spanning Algebra 1 and Geometry.
  • Knowledge Corpus: The OpenStax Prealgebra textbook was used as the external knowledge source for the RAG system.

Key Insights and Ideas

  • The "Sweet Spot" of Guidance: Simply forcing an LLM to be highly grounded in a textbook doesn't necessarily lead to the best student experience. The "Low Guidance" condition, which encourages using retrieved text only when relevant, emerged as the preferred approach. This suggests that students benefit from responses that are informed by the material but still feel natural and conversational, rather than rigidly adhering to textbook phrasing.
  • Groundedness vs. Preference Trade-off: The study clearly demonstrates a tension between making responses factually grounded in a source and making them preferred by users. While increased grounding (as measured by automated metrics and human judgment) was observed with higher guidance, human preference peaked at the "Low Guidance" level.
  • Automated Metrics Aren't Enough: While automated metrics like K-F1++, BERTScore, and BLEURT can indicate how well a response aligns with a source document, they don't fully capture human preference or the nuances of effective tutoring. The IR condition, for example, was highly "grounded" by automated metrics but was not preferred by humans.

Key Results

  • Human Preference: Responses generated with "Low Guidance" were preferred by human annotators over both "No Guidance" and "High Guidance" responses. The "High Guidance" and "No Guidance" conditions were statistically indistinguishable in terms of preference.
  • Groundedness: Human annotators perceived "High Guidance" responses as significantly more grounded in the retrieved document than "Low Guidance" or "No Guidance" responses. Automated metrics also showed increasing groundedness with higher guidance levels.
  • Relevance Impact: While retrieved document relevance was positively correlated with response groundedness, it did not significantly predict human preference. This suggests that even if the retrieved document is highly relevant, the way the LLM uses that information (i.e., the guidance level) is more critical for user preference.

Limitations and Future Work

  • Annotator Bias: The study used educators and designers as annotators, not actual middle school students. The authors acknowledge that student preferences might differ.
  • Single-Turn Interaction: The research focused on single-turn QA. Future work should explore multi-turn conversations and follow-up questions.
  • Defining Faithfulness: The paper highlights "faithfulness" (being grounded and answering the query effectively) as an open problem. Future research could build taxonomies for faithfulness based on educational theories.
  • Cultural and Contextual Relevance: The authors note the need for qualitative research with students to understand preferences beyond correctness, considering factors like cultural relevance and curricular alignment.
  • Learning Outcomes: The study focused on preference, not actual learning outcomes. Future work should investigate how these RAG-enhanced QA systems impact student learning.

Summary updated

Abstract

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.
BibTeX
@misc{levonian2023retrieval,
  author = {Zachary Levonian and Chenglu Li and Wangda Zhu and Anoushka Gade and Owen Henkel and Millie-Ellen Postle and Wanli Xing},
  title = {{Retrieval-augmented Generation to Improve Math Question-Answering: Trade-offs Between Groundedness and Human Preference}},
  year = {2023},
  eprint = {2310.03184},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.03184},
}
Figure