Can Large Language Models Replicate ITS Feedback on Open-Ended Math Questions?

Hunter McNichols, Jaewook Lee, Stephen Fancsali, Steven Ritter, Andrew S. Lan

TL;DR

Researchers investigated whether Large Language Models (LLMs) can automate the "hint" systems used in math tutoring. While LLMs like GPT-3.5 and Mistral-7B are excellent at mimicking the style and format of human-authored feedback for known errors, they struggle to generalize to previously unseen student mistakes, suggesting they are better at following templates than truly understanding mathematical misconceptions.

What Problem Does This Paper Address?

Intelligent Tutoring Systems (ITSs) are highly effective but notoriously "brittle." Historically, they rely on human experts to anticipate every possible student error and manually write a corresponding feedback template. For open-ended math questions—where a student might write "13x - 1" instead of "13 - x"—the number of possible incorrect variations is massive.

Manually coding these responses is labor-intensive and doesn't scale. The authors ask: Can we use LLMs to replicate these high-quality, expert-designed feedback mechanisms? Specifically, can an LLM look at a question, the correct answer, and a student's wrong answer, and then generate the same helpful hint an expert would have written?

Methods

The researchers compared two primary LLMs: Mistral-7B (an open-source heavyweight) and GPT-3.5-turbo (proprietary). They tested three main approaches:

  1. Zero-shot: Asking the model to generate feedback with just instructions.
  2. In-Context Learning (ICL): Providing a single example of a question-response-feedback triplet in the prompt.
  3. Fine-tuning: Using Low-Rank Adaptation (LoRA) to update the models on a small subset of real student data (100 examples) to align their output with the ITS style.

They also introduced a variant called ICL-SE (Same Error), where the model is given an example of the exact same type of error it is currently trying to correct.

Datasets

The study utilized a real-world dataset from a large-scale math ITS. It included:

  • 26,845 unique student responses across 100 middle school math questions (focused on linear relationships).
  • 11 unique error labels (e.g., "swapped slope and intercept" or "negated intercept").
  • 1,100 unique expert-authored feedback messages used as the "ground truth."

Key Insights and Ideas

  • Style over Substance: LLMs are remarkably good at capturing the structure of feedback. If they have seen a specific error type before, they can replicate the expert's tone and formatting almost perfectly.
  • The Generalization Wall: The models' performance plummeted when faced with an "Error-Level Split"—testing the model on types of mistakes it hadn't seen during training. This suggests the models aren't "reasoning" about the math; they are performing high-level pattern matching.
  • ICL is a Powerhouse: Interestingly, providing a single relevant example (ICL-SE) often improved performance more than broad fine-tuning. This highlights the importance of "retrieval-augmented" approaches in educational tools.
  • Scale Matters for Labels: When explicit error labels (like "swapped slope") were added to the prompt, GPT-3.5 improved, but Mistral-7B actually got worse. The authors hypothesize that smaller models get "confused" by the semantic overlap of technical error labels, while larger models can parse their intent.

Key Results

The researchers used BLEU (precision-based) and ROUGE-L (recall-based) scores to measure similarity to expert feedback:

  • Replicating Known Errors: In the "Response-Level" tests, GPT-3.5 with fine-tuning and ICL-SE achieved a high BLEU score of 0.509 and ROUGE-L of 0.700.
  • The Generalization Gap: In the "Error-Level" split (unseen errors), BLEU scores for Mistral-7B dropped to as low as 0.061.
  • Proprietary vs. Open Source: GPT-3.5 consistently outperformed Mistral-7B across all settings, likely due to its significantly larger parameter count and superior instruction-following capabilities.

Limitations and Future Work

The primary limitation is domain breadth. The dataset was restricted to linear equations. Mathematical reasoning varies wildly between geometry, calculus, and basic arithmetic, so these results might not hold for other topics.

Furthermore, the authors note that "expert-authored templates" might not be the ultimate ceiling for feedback quality. Future work could explore whether LLMs can generate better or more personalized feedback than the original templates, rather than just trying to replicate them. They also suggest investigating larger open-source models (like Llama-3 70B) and exploring latent representations of student errors to help models generalize better.

Summary updated

BibTeX
@inproceedings{mcnichols2024can,
  author = {Hunter McNichols and Jaewook Lee and Stephen Fancsali and Steven Ritter and Andrew S. Lan},
  title = {{Can Large Language Models Replicate ITS Feedback on Open-Ended Math Questions?}},
  booktitle = {Edm},
  year = {2024},
}
Figure